diff options
author | George Hazan <ghazan@miranda.im> | 2021-10-14 02:19:20 -0700 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-10-14 02:19:20 -0700 |
commit | dfef60fc690a3246d917d92c78c5b1031c809e20 (patch) | |
tree | 7d4783d1dc1d43bdeb54eb7e131789c524660c39 /protocols | |
parent | 4f71cf8247fd6313173cf70f03144fc8c1287d3e (diff) |
WhatsApp: protobuf adaptation for new version of libprotobuf
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/WhatsAppWeb/src/pmsg.pb.cc | 11144 | ||||
-rw-r--r-- | protocols/WhatsAppWeb/src/pmsg.pb.h | 15003 |
2 files changed, 12322 insertions, 13825 deletions
diff --git a/protocols/WhatsAppWeb/src/pmsg.pb.cc b/protocols/WhatsAppWeb/src/pmsg.pb.cc index 632ae67396..7f10811a30 100644 --- a/protocols/WhatsAppWeb/src/pmsg.pb.cc +++ b/protocols/WhatsAppWeb/src/pmsg.pb.cc @@ -20,7 +20,7 @@ namespace proto { constexpr PaymentMoney::PaymentMoney( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : currencycode_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , value_(PROTOBUF_LONGLONG(0)) + , value_(int64_t{0}) , offset_(0u){} struct PaymentMoneyDefaultTypeInternal { constexpr PaymentMoneyDefaultTypeInternal() @@ -181,8 +181,8 @@ 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)){} + , sendertimestamp_(uint64_t{0u}) + , recipienttimestamp_(uint64_t{0u}){} struct DeviceListMetadataDefaultTypeInternal { constexpr DeviceListMetadataDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -258,7 +258,7 @@ constexpr ContextInfo::ContextInfo( , forwardingscore_(0u) , isforwarded_(false) , expiration_(0u) - , ephemeralsettingtimestamp_(PROTOBUF_LONGLONG(0)){} + , ephemeralsettingtimestamp_(int64_t{0}){} struct ContextInfoDefaultTypeInternal { constexpr ContextInfoDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -301,10 +301,10 @@ constexpr ImageMessage::ImageMessage( , thumbnailsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , thumbnailencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , contextinfo_(nullptr) - , filelength_(PROTOBUF_ULONGLONG(0)) + , filelength_(uint64_t{0u}) , height_(0u) , width_(0u) - , mediakeytimestamp_(PROTOBUF_LONGLONG(0)) + , mediakeytimestamp_(int64_t{0}) , firstscanlength_(0u) , experimentgroupid_(0u) , viewonce_(false){} @@ -327,7 +327,7 @@ constexpr InvoiceMessage::InvoiceMessage( , 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)) + , attachmentmediakeytimestamp_(int64_t{0}) , attachmenttype_(0) {} struct InvoiceMessageDefaultTypeInternal { @@ -416,10 +416,10 @@ constexpr DocumentMessage::DocumentMessage( , thumbnailencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , jpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , contextinfo_(nullptr) - , filelength_(PROTOBUF_ULONGLONG(0)) + , filelength_(uint64_t{0u}) , pagecount_(0u) , contactvcard_(false) - , mediakeytimestamp_(PROTOBUF_LONGLONG(0)) + , mediakeytimestamp_(int64_t{0}) , thumbnailheight_(0u) , thumbnailwidth_(0u){} struct DocumentMessageDefaultTypeInternal { @@ -441,10 +441,10 @@ constexpr AudioMessage::AudioMessage( , directpath_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , streamingsidecar_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , contextinfo_(nullptr) - , filelength_(PROTOBUF_ULONGLONG(0)) + , filelength_(uint64_t{0u}) , seconds_(0u) , ptt_(false) - , mediakeytimestamp_(PROTOBUF_LONGLONG(0)){} + , mediakeytimestamp_(int64_t{0}){} struct AudioMessageDefaultTypeInternal { constexpr AudioMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -470,13 +470,13 @@ constexpr VideoMessage::VideoMessage( , thumbnailsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , thumbnailencsha256_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , contextinfo_(nullptr) - , filelength_(PROTOBUF_ULONGLONG(0)) + , filelength_(uint64_t{0u}) , seconds_(0u) , height_(0u) , width_(0u) , gifplayback_(false) , viewonce_(false) - , mediakeytimestamp_(PROTOBUF_LONGLONG(0)) + , mediakeytimestamp_(int64_t{0}) , gifattribution_(0) {} struct VideoMessageDefaultTypeInternal { @@ -524,7 +524,7 @@ constexpr ProtocolMessage::ProtocolMessage( , type_(0) , ephemeralexpiration_(0u) - , ephemeralsettingtimestamp_(PROTOBUF_LONGLONG(0)){} + , ephemeralsettingtimestamp_(int64_t{0}){} struct ProtocolMessageDefaultTypeInternal { constexpr ProtocolMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -541,7 +541,7 @@ constexpr HistorySyncNotification::HistorySyncNotification( , 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)) + , filelength_(uint64_t{0u}) , synctype_(0) , chunkorder_(0u){} @@ -582,7 +582,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateSyncKeyIdDefaultTypeInt constexpr AppStateSyncKeyFingerprint::AppStateSyncKeyFingerprint( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : deviceindexes_() - , _deviceindexes_cached_byte_size_() + , _deviceindexes_cached_byte_size_(0) , rawid_(0u) , currentindex_(0u){} struct AppStateSyncKeyFingerprintDefaultTypeInternal { @@ -598,7 +598,7 @@ constexpr AppStateSyncKeyData::AppStateSyncKeyData( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : keydata_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , fingerprint_(nullptr) - , timestamp_(PROTOBUF_LONGLONG(0)){} + , timestamp_(int64_t{0}){} struct AppStateSyncKeyDataDefaultTypeInternal { constexpr AppStateSyncKeyDataDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -635,7 +635,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AppStateSyncKeyRequestDefaultTy constexpr AppStateFatalExceptionNotification::AppStateFatalExceptionNotification( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : collectionnames_() - , timestamp_(PROTOBUF_LONGLONG(0)){} + , timestamp_(int64_t{0}){} struct AppStateFatalExceptionNotificationDefaultTypeInternal { constexpr AppStateFatalExceptionNotificationDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -674,7 +674,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ContactsArrayMessageDefaultType constexpr HSMCurrency::HSMCurrency( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : currencycode_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , amount1000_(PROTOBUF_LONGLONG(0)){} + , amount1000_(int64_t{0}){} struct HSMCurrencyDefaultTypeInternal { constexpr HSMCurrencyDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -706,7 +706,7 @@ struct HSMDateTimeComponentDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT HSMDateTimeComponentDefaultTypeInternal _HSMDateTimeComponent_default_instance_; constexpr HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : timestamp_(PROTOBUF_LONGLONG(0)){} + : timestamp_(int64_t{0}){} struct HSMDateTimeUnixEpochDefaultTypeInternal { constexpr HSMDateTimeUnixEpochDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -780,8 +780,8 @@ constexpr RequestPaymentMessage::RequestPaymentMessage( , requestfrom_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , notemessage_(nullptr) , amount_(nullptr) - , amount1000_(PROTOBUF_ULONGLONG(0)) - , expirytimestamp_(PROTOBUF_LONGLONG(0)){} + , amount1000_(uint64_t{0u}) + , expirytimestamp_(int64_t{0}){} struct RequestPaymentMessageDefaultTypeInternal { constexpr RequestPaymentMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -826,7 +826,7 @@ constexpr LiveLocationMessage::LiveLocationMessage( , speedinmps_(0) , degreesclockwisefrommagneticnorth_(0u) , timeoffset_(0u) - , sequencenumber_(PROTOBUF_LONGLONG(0)){} + , sequencenumber_(int64_t{0}){} struct LiveLocationMessageDefaultTypeInternal { constexpr LiveLocationMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -849,8 +849,8 @@ constexpr StickerMessage::StickerMessage( , contextinfo_(nullptr) , height_(0u) , width_(0u) - , filelength_(PROTOBUF_ULONGLONG(0)) - , mediakeytimestamp_(PROTOBUF_LONGLONG(0)) + , filelength_(uint64_t{0u}) + , mediakeytimestamp_(int64_t{0}) , firstframelength_(0u) , isanimated_(false){} struct StickerMessageDefaultTypeInternal { @@ -946,7 +946,7 @@ constexpr ProductSnapshot::ProductSnapshot( , url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , firstimageid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , productimage_(nullptr) - , priceamount1000_(PROTOBUF_LONGLONG(0)) + , priceamount1000_(int64_t{0}) , productimagecount_(0u){} struct ProductSnapshotDefaultTypeInternal { constexpr ProductSnapshotDefaultTypeInternal() @@ -982,7 +982,7 @@ constexpr OrderMessage::OrderMessage( , token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , totalcurrencycode_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , contextinfo_(nullptr) - , totalamount1000_(PROTOBUF_LONGLONG(0)) + , totalamount1000_(int64_t{0}) , itemcount_(0) , status_(1) @@ -1078,7 +1078,7 @@ constexpr GroupInviteMessage::GroupInviteMessage( , jpegthumbnail_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , caption_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , contextinfo_(nullptr) - , inviteexpiration_(PROTOBUF_LONGLONG(0)){} + , inviteexpiration_(int64_t{0}){} struct GroupInviteMessageDefaultTypeInternal { constexpr GroupInviteMessageDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -1091,7 +1091,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GroupInviteMessageDefaultTypeIn constexpr EphemeralSetting::EphemeralSetting( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : chatjid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , ephemeralsettingtimestamp_(PROTOBUF_LONGLONG(0)) + , ephemeralsettingtimestamp_(int64_t{0}) , ephemeralexpiration_(0u){} struct EphemeralSettingDefaultTypeInternal { constexpr EphemeralSettingDefaultTypeInternal() @@ -1347,7 +1347,7 @@ constexpr NotificationMessageInfo::NotificationMessageInfo( : participant_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , key_(nullptr) , message_(nullptr) - , messagetimestamp_(PROTOBUF_ULONGLONG(0)){} + , messagetimestamp_(uint64_t{0u}){} struct NotificationMessageInfoDefaultTypeInternal { constexpr NotificationMessageInfoDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -1360,7 +1360,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NotificationMessageInfoDefaultT constexpr WebNotificationsInfo::WebNotificationsInfo( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : notifymessages_() - , timestamp_(PROTOBUF_ULONGLONG(0)) + , timestamp_(uint64_t{0u}) , unreadchats_(0u) , notifymessagecount_(0u){} struct WebNotificationsInfoDefaultTypeInternal { @@ -1379,13 +1379,13 @@ constexpr PaymentInfo::PaymentInfo( , requestmessagekey_(nullptr) , primaryamount_(nullptr) , exchangeamount_(nullptr) - , amount1000_(PROTOBUF_ULONGLONG(0)) + , amount1000_(uint64_t{0u}) , currencydeprecated_(0) , status_(0) - , transactiontimestamp_(PROTOBUF_ULONGLONG(0)) - , expirytimestamp_(PROTOBUF_ULONGLONG(0)) + , transactiontimestamp_(uint64_t{0u}) + , expirytimestamp_(uint64_t{0u}) , futureproofed_(false) , usenovifiatformat_(false) , txnstatus_(0) @@ -1412,7 +1412,7 @@ constexpr WebMessageInfo::WebMessageInfo( , paymentinfo_(nullptr) , finallivelocation_(nullptr) , quotedpaymentinfo_(nullptr) - , messagetimestamp_(PROTOBUF_ULONGLONG(0)) + , messagetimestamp_(uint64_t{0u}) , status_(0) , ignore_(false) @@ -1427,7 +1427,7 @@ constexpr WebMessageInfo::WebMessageInfo( , ephemeralofftoon_(false) , duration_(0u) , ephemeralduration_(0u) - , ephemeralstarttimestamp_(PROTOBUF_ULONGLONG(0)) + , ephemeralstarttimestamp_(uint64_t{0u}) , ephemeraloutofsync_(false) , bizprivacystatus_(0) {} @@ -1451,6 +1451,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, value_), PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, offset_), PROTOBUF_FIELD_OFFSET(::proto::PaymentMoney, currencycode_), @@ -1462,6 +1463,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::HydratedQuickReplyButton, id_), 0, @@ -1471,6 +1473,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::HydratedURLButton, url_), 0, @@ -1480,6 +1483,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::HydratedCallButton, phonenumber_), 0, @@ -1489,6 +1493,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, _oneof_case_[0]), ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HydratedTemplateButton, index_), ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, @@ -1503,6 +1508,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::QuickReplyButton, id_), 1, @@ -1512,6 +1518,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::URLButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::URLButton, url_), 0, @@ -1521,6 +1528,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::CallButton, displaytext_), PROTOBUF_FIELD_OFFSET(::proto::CallButton, phonenumber_), 0, @@ -1530,6 +1538,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, _oneof_case_[0]), ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::TemplateButton, index_), ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, @@ -1544,6 +1553,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::Location, degreeslatitude_), PROTOBUF_FIELD_OFFSET(::proto::Location, degreeslongitude_), PROTOBUF_FIELD_OFFSET(::proto::Location, name_), @@ -1555,6 +1565,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::Point, xdeprecated_), PROTOBUF_FIELD_OFFSET(::proto::Point, ydeprecated_), PROTOBUF_FIELD_OFFSET(::proto::Point, x_), @@ -1568,6 +1579,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, _oneof_case_[0]), ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, polygonvertices_), ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::proto::InteractiveAnnotation, action_), @@ -1576,6 +1588,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, senderkeyhash_), PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, sendertimestamp_), PROTOBUF_FIELD_OFFSET(::proto::DeviceListMetadata, recipientkeyhash_), @@ -1589,6 +1602,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::MessageContextInfo, devicelistmetadata_), 0, PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, _has_bits_), @@ -1596,6 +1610,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, advertisername_), PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, mediatype_), PROTOBUF_FIELD_OFFSET(::proto::AdReplyInfo, jpegthumbnail_), @@ -1609,6 +1624,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, title_), PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, body_), PROTOBUF_FIELD_OFFSET(::proto::ExternalAdReplyInfo, mediatype_), @@ -1632,6 +1648,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, stanzaid_), PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, participant_), PROTOBUF_FIELD_OFFSET(::proto::ContextInfo, quotedmessage_), @@ -1669,6 +1686,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, groupid_), PROTOBUF_FIELD_OFFSET(::proto::SenderKeyDistributionMessage, axolotlsenderkeydistributionmessage_), 0, @@ -1678,6 +1696,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, url_), PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, mimetype_), PROTOBUF_FIELD_OFFSET(::proto::ImageMessage, caption_), @@ -1733,6 +1752,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, note_), PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, token_), PROTOBUF_FIELD_OFFSET(::proto::InvoiceMessage, attachmenttype_), @@ -1758,6 +1778,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, displayname_), PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, vcard_), PROTOBUF_FIELD_OFFSET(::proto::ContactMessage, contextinfo_), @@ -1769,6 +1790,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, degreeslatitude_), PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, degreeslongitude_), PROTOBUF_FIELD_OFFSET(::proto::LocationMessage, name_), @@ -1798,6 +1820,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, text_), PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, matchedtext_), PROTOBUF_FIELD_OFFSET(::proto::ExtendedTextMessage, canonicalurl_), @@ -1827,6 +1850,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, url_), PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, mimetype_), PROTOBUF_FIELD_OFFSET(::proto::DocumentMessage, title_), @@ -1870,6 +1894,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, url_), PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, mimetype_), PROTOBUF_FIELD_OFFSET(::proto::AudioMessage, filesha256_), @@ -1899,6 +1924,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, url_), PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, mimetype_), PROTOBUF_FIELD_OFFSET(::proto::VideoMessage, filesha256_), @@ -1948,6 +1974,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::Call, callkey_), 0, PROTOBUF_FIELD_OFFSET(::proto::Chat, _has_bits_), @@ -1955,6 +1982,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::Chat, displayname_), PROTOBUF_FIELD_OFFSET(::proto::Chat, id_), 0, @@ -1964,6 +1992,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, key_), PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, type_), PROTOBUF_FIELD_OFFSET(::proto::ProtocolMessage, ephemeralexpiration_), @@ -1987,6 +2016,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, filesha256_), PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, filelength_), PROTOBUF_FIELD_OFFSET(::proto::HistorySyncNotification, mediakey_), @@ -2008,6 +2038,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, keyid_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKey, keydata_), 0, @@ -2017,6 +2048,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyId, keyid_), 0, PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, _has_bits_), @@ -2024,6 +2056,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, rawid_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, currentindex_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyFingerprint, deviceindexes_), @@ -2035,6 +2068,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, keydata_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, fingerprint_), PROTOBUF_FIELD_OFFSET(::proto::AppStateSyncKeyData, timestamp_), @@ -2046,18 +2080,21 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ 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_ + ~0u, // no _inlined_string_donated_ 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_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, collectionnames_), PROTOBUF_FIELD_OFFSET(::proto::AppStateFatalExceptionNotification, timestamp_), ~0u, @@ -2067,6 +2104,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::InitialSecurityNotificationSettingSync, securitynotificationenabled_), 0, PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, _has_bits_), @@ -2074,6 +2112,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, displayname_), PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, contacts_), PROTOBUF_FIELD_OFFSET(::proto::ContactsArrayMessage, contextinfo_), @@ -2085,6 +2124,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, currencycode_), PROTOBUF_FIELD_OFFSET(::proto::HSMCurrency, amount1000_), 0, @@ -2094,6 +2134,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, dayofweek_), PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, year_), PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeComponent, month_), @@ -2113,6 +2154,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HSMDateTimeUnixEpoch, timestamp_), 0, ~0u, // no _has_bits_ @@ -2120,6 +2162,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::HSMDateTime, _oneof_case_[0]), ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::proto::HSMDateTime, datetimeOneof_), @@ -2128,6 +2171,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, _oneof_case_[0]), ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HSMLocalizableParameter, default__), ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, @@ -2140,6 +2184,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, namespace__), PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, elementname_), PROTOBUF_FIELD_OFFSET(::proto::HighlyStructuredMessage, params_), @@ -2163,6 +2208,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, notemessage_), PROTOBUF_FIELD_OFFSET(::proto::SendPaymentMessage, requestmessagekey_), 0, @@ -2172,6 +2218,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, notemessage_), PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, currencycodeiso4217_), PROTOBUF_FIELD_OFFSET(::proto::RequestPaymentMessage, amount1000_), @@ -2189,6 +2236,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::DeclinePaymentRequestMessage, key_), 0, PROTOBUF_FIELD_OFFSET(::proto::CancelPaymentRequestMessage, _has_bits_), @@ -2196,6 +2244,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::CancelPaymentRequestMessage, key_), 0, PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, _has_bits_), @@ -2203,6 +2252,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, degreeslatitude_), PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, degreeslongitude_), PROTOBUF_FIELD_OFFSET(::proto::LiveLocationMessage, accuracyinmeters_), @@ -2228,6 +2278,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, url_), PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, filesha256_), PROTOBUF_FIELD_OFFSET(::proto::StickerMessage, fileencsha256_), @@ -2263,6 +2314,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, _oneof_case_[0]), ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, content_), PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, footer_), PROTOBUF_FIELD_OFFSET(::proto::FourRowTemplate, buttons_), @@ -2285,6 +2337,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, _oneof_case_[0]), ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, hydratedcontenttext_), PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, hydratedfootertext_), PROTOBUF_FIELD_OFFSET(::proto::HydratedFourRowTemplate, hydratedbuttons_), @@ -2309,6 +2362,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, _oneof_case_[0]), ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, contextinfo_), PROTOBUF_FIELD_OFFSET(::proto::TemplateMessage, hydratedtemplate_), ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, @@ -2323,6 +2377,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, selectedid_), PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, selecteddisplaytext_), PROTOBUF_FIELD_OFFSET(::proto::TemplateButtonReplyMessage, contextinfo_), @@ -2336,6 +2391,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, catalogimage_), PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, title_), PROTOBUF_FIELD_OFFSET(::proto::CatalogSnapshot, description_), @@ -2347,6 +2403,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, productimage_), PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, productid_), PROTOBUF_FIELD_OFFSET(::proto::ProductSnapshot, title_), @@ -2372,6 +2429,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, product_), PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, businessownerjid_), PROTOBUF_FIELD_OFFSET(::proto::ProductMessage, catalog_), @@ -2385,6 +2443,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, orderid_), PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, thumbnail_), PROTOBUF_FIELD_OFFSET(::proto::OrderMessage, itemcount_), @@ -2414,6 +2473,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::Row, title_), PROTOBUF_FIELD_OFFSET(::proto::Row, description_), PROTOBUF_FIELD_OFFSET(::proto::Row, rowid_), @@ -2425,6 +2485,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::Section, title_), PROTOBUF_FIELD_OFFSET(::proto::Section, rows_), 0, @@ -2434,6 +2495,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ListMessage, title_), PROTOBUF_FIELD_OFFSET(::proto::ListMessage, description_), PROTOBUF_FIELD_OFFSET(::proto::ListMessage, buttontext_), @@ -2449,6 +2511,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::SingleSelectReply, selectedrowid_), 0, PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, _has_bits_), @@ -2456,6 +2519,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, title_), PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, listtype_), PROTOBUF_FIELD_OFFSET(::proto::ListResponseMessage, singleselectreply_), @@ -2471,6 +2535,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, groupjid_), PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, invitecode_), PROTOBUF_FIELD_OFFSET(::proto::GroupInviteMessage, inviteexpiration_), @@ -2490,6 +2555,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, chatjid_), PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, ephemeralexpiration_), PROTOBUF_FIELD_OFFSET(::proto::EphemeralSetting, ephemeralsettingtimestamp_), @@ -2501,6 +2567,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, destinationjid_), PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, message_), PROTOBUF_FIELD_OFFSET(::proto::DeviceSentMessage, phash_), @@ -2514,6 +2581,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::FutureProofMessage, message_), 0, PROTOBUF_FIELD_OFFSET(::proto::ButtonText, _has_bits_), @@ -2521,6 +2589,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ButtonText, displaytext_), 0, PROTOBUF_FIELD_OFFSET(::proto::Button, _has_bits_), @@ -2528,6 +2597,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::Button, buttonid_), PROTOBUF_FIELD_OFFSET(::proto::Button, buttontext_), PROTOBUF_FIELD_OFFSET(::proto::Button, type_), @@ -2539,6 +2609,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, _oneof_case_[0]), ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, contenttext_), PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, footertext_), PROTOBUF_FIELD_OFFSET(::proto::ButtonsMessage, contextinfo_), @@ -2565,6 +2636,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, _oneof_case_[0]), ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, selectedbuttonid_), PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, contextinfo_), PROTOBUF_FIELD_OFFSET(::proto::ButtonsResponseMessage, type_), @@ -2579,6 +2651,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::Message, conversation_), PROTOBUF_FIELD_OFFSET(::proto::Message, senderkeydistributionmessage_), PROTOBUF_FIELD_OFFSET(::proto::Message, imagemessage_), @@ -2654,6 +2727,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::MessageKey, remotejid_), PROTOBUF_FIELD_OFFSET(::proto::MessageKey, fromme_), PROTOBUF_FIELD_OFFSET(::proto::MessageKey, id_), @@ -2667,6 +2741,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, labelsdisplay_), PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, voipindividualoutgoing_), PROTOBUF_FIELD_OFFSET(::proto::WebFeatures, groupsv3_), @@ -2752,6 +2827,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, key_), PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, message_), PROTOBUF_FIELD_OFFSET(::proto::NotificationMessageInfo, messagetimestamp_), @@ -2765,6 +2841,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, timestamp_), PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, unreadchats_), PROTOBUF_FIELD_OFFSET(::proto::WebNotificationsInfo, notifymessagecount_), @@ -2778,6 +2855,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, currencydeprecated_), PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, amount1000_), PROTOBUF_FIELD_OFFSET(::proto::PaymentInfo, receiverjid_), @@ -2809,6 +2887,7 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, key_), PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, message_), PROTOBUF_FIELD_OFFSET(::proto::WebMessageInfo, messagetimestamp_), @@ -2865,85 +2944,85 @@ const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_pmsg_2eproto::offsets[] PROTOB 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)}, + { 0, 9, -1, sizeof(::proto::PaymentMoney)}, + { 12, 20, -1, sizeof(::proto::HydratedQuickReplyButton)}, + { 22, 30, -1, sizeof(::proto::HydratedURLButton)}, + { 32, 40, -1, sizeof(::proto::HydratedCallButton)}, + { 42, 53, -1, sizeof(::proto::HydratedTemplateButton)}, + { 57, 65, -1, sizeof(::proto::QuickReplyButton)}, + { 67, 75, -1, sizeof(::proto::URLButton)}, + { 77, 85, -1, sizeof(::proto::CallButton)}, + { 87, 98, -1, sizeof(::proto::TemplateButton)}, + { 102, 111, -1, sizeof(::proto::Location)}, + { 114, 124, -1, sizeof(::proto::Point)}, + { 128, -1, -1, sizeof(::proto::InteractiveAnnotation)}, + { 137, 147, -1, sizeof(::proto::DeviceListMetadata)}, + { 151, 158, -1, sizeof(::proto::MessageContextInfo)}, + { 159, 169, -1, sizeof(::proto::AdReplyInfo)}, + { 173, 188, -1, sizeof(::proto::ExternalAdReplyInfo)}, + { 197, 219, -1, sizeof(::proto::ContextInfo)}, + { 235, 243, -1, sizeof(::proto::SenderKeyDistributionMessage)}, + { 245, 276, -1, sizeof(::proto::ImageMessage)}, + { 301, 317, -1, sizeof(::proto::InvoiceMessage)}, + { 327, 336, -1, sizeof(::proto::ContactMessage)}, + { 339, 357, -1, sizeof(::proto::LocationMessage)}, + { 369, 387, -1, sizeof(::proto::ExtendedTextMessage)}, + { 399, 424, -1, sizeof(::proto::DocumentMessage)}, + { 443, 461, -1, sizeof(::proto::AudioMessage)}, + { 473, 501, -1, sizeof(::proto::VideoMessage)}, + { 523, 530, -1, sizeof(::proto::Call)}, + { 531, 539, -1, sizeof(::proto::Chat)}, + { 541, 556, -1, sizeof(::proto::ProtocolMessage)}, + { 565, 579, -1, sizeof(::proto::HistorySyncNotification)}, + { 587, 595, -1, sizeof(::proto::AppStateSyncKey)}, + { 597, 604, -1, sizeof(::proto::AppStateSyncKeyId)}, + { 605, 614, -1, sizeof(::proto::AppStateSyncKeyFingerprint)}, + { 617, 626, -1, sizeof(::proto::AppStateSyncKeyData)}, + { 629, -1, -1, sizeof(::proto::AppStateSyncKeyShare)}, + { 636, -1, -1, sizeof(::proto::AppStateSyncKeyRequest)}, + { 643, 651, -1, sizeof(::proto::AppStateFatalExceptionNotification)}, + { 653, 660, -1, sizeof(::proto::InitialSecurityNotificationSettingSync)}, + { 661, 670, -1, sizeof(::proto::ContactsArrayMessage)}, + { 673, 681, -1, sizeof(::proto::HSMCurrency)}, + { 683, 696, -1, sizeof(::proto::HSMDateTimeComponent)}, + { 703, 710, -1, sizeof(::proto::HSMDateTimeUnixEpoch)}, + { 711, -1, -1, sizeof(::proto::HSMDateTime)}, + { 720, 730, -1, sizeof(::proto::HSMLocalizableParameter)}, + { 733, 748, -1, sizeof(::proto::HighlyStructuredMessage)}, + { 757, 765, -1, sizeof(::proto::SendPaymentMessage)}, + { 767, 779, -1, sizeof(::proto::RequestPaymentMessage)}, + { 785, 792, -1, sizeof(::proto::DeclinePaymentRequestMessage)}, + { 793, 800, -1, sizeof(::proto::CancelPaymentRequestMessage)}, + { 801, 817, -1, sizeof(::proto::LiveLocationMessage)}, + { 827, 848, -1, sizeof(::proto::StickerMessage)}, + { 863, 878, -1, sizeof(::proto::FourRowTemplate)}, + { 886, 902, -1, sizeof(::proto::HydratedFourRowTemplate)}, + { 911, 922, -1, sizeof(::proto::TemplateMessage)}, + { 926, 936, -1, sizeof(::proto::TemplateButtonReplyMessage)}, + { 940, 949, -1, sizeof(::proto::CatalogSnapshot)}, + { 952, 968, -1, sizeof(::proto::ProductSnapshot)}, + { 978, 988, -1, sizeof(::proto::ProductMessage)}, + { 992, 1010, -1, sizeof(::proto::OrderMessage)}, + { 1022, 1031, -1, sizeof(::proto::Row)}, + { 1034, 1042, -1, sizeof(::proto::Section)}, + { 1044, 1055, -1, sizeof(::proto::ListMessage)}, + { 1060, 1067, -1, sizeof(::proto::SingleSelectReply)}, + { 1068, 1079, -1, sizeof(::proto::ListResponseMessage)}, + { 1084, 1097, -1, sizeof(::proto::GroupInviteMessage)}, + { 1104, 1113, -1, sizeof(::proto::EphemeralSetting)}, + { 1116, 1126, -1, sizeof(::proto::DeviceSentMessage)}, + { 1130, 1137, -1, sizeof(::proto::FutureProofMessage)}, + { 1138, 1145, -1, sizeof(::proto::ButtonText)}, + { 1146, 1155, -1, sizeof(::proto::Button)}, + { 1158, 1175, -1, sizeof(::proto::ButtonsMessage)}, + { 1185, 1196, -1, sizeof(::proto::ButtonsResponseMessage)}, + { 1200, 1241, -1, sizeof(::proto::Message)}, + { 1276, 1286, -1, sizeof(::proto::MessageKey)}, + { 1290, 1336, -1, sizeof(::proto::WebFeatures)}, + { 1376, 1386, -1, sizeof(::proto::NotificationMessageInfo)}, + { 1390, 1400, -1, sizeof(::proto::WebNotificationsInfo)}, + { 1404, 1423, -1, sizeof(::proto::PaymentInfo)}, + { 1436, 1469, -1, sizeof(::proto::WebMessageInfo)}, }; static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { @@ -3684,10 +3763,8 @@ const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_pmsg_2 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]; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_pmsg_2eproto_getter() { + return &descriptor_table_pmsg_2eproto; } // Force running AddDescriptors() at dynamic initialization time. @@ -4586,10 +4663,13 @@ class PaymentMoney::_Internal { } }; -PaymentMoney::PaymentMoney(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +PaymentMoney::PaymentMoney(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.PaymentMoney) } PaymentMoney::PaymentMoney(const PaymentMoney& from) @@ -4599,7 +4679,7 @@ PaymentMoney::PaymentMoney(const PaymentMoney& from) currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_currencycode()) { currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycode(), - GetArena()); + GetArenaForAllocation()); } ::memcpy(&value_, &from.value_, static_cast<size_t>(reinterpret_cast<char*>(&offset_) - @@ -4617,12 +4697,13 @@ currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStrin PaymentMoney::~PaymentMoney() { // @@protoc_insertion_point(destructor:proto.PaymentMoney) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void PaymentMoney::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void PaymentMoney::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); currencycode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -4661,7 +4742,6 @@ const char* PaymentMoney::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I 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: @@ -4669,7 +4749,8 @@ const char* PaymentMoney::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_value(&has_bits); value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 offset = 2; case 2: @@ -4677,7 +4758,8 @@ const char* PaymentMoney::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_offset(&has_bits); offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string currencyCode = 3; case 3: @@ -4688,28 +4770,30 @@ const char* PaymentMoney::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.PaymentMoney.currencyCode"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -4769,47 +4853,34 @@ size_t PaymentMoney::ByteSizeLong() const { // optional int64 value = 1; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_value()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_value()); } // optional uint32 offset = 2; if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_offset()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PaymentMoney::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PaymentMoney::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PaymentMoney::GetClassData() const { return &_class_data_; } + +void PaymentMoney::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<PaymentMoney *>(to)->MergeFrom( + static_cast<const PaymentMoney &>(from)); } + void PaymentMoney::MergeFrom(const PaymentMoney& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.PaymentMoney) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -4826,13 +4897,7 @@ void PaymentMoney::MergeFrom(const PaymentMoney& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PaymentMoney::CopyFrom(const PaymentMoney& from) { @@ -4848,9 +4913,15 @@ bool PaymentMoney::IsInitialized() const { void PaymentMoney::InternalSwap(PaymentMoney* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ¤cycode_, lhs_arena, + &other->currencycode_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(PaymentMoney, offset_) + sizeof(PaymentMoney::offset_) @@ -4860,10 +4931,11 @@ void PaymentMoney::InternalSwap(PaymentMoney* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata PaymentMoney::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[0]); } - // =================================================================== class HydratedQuickReplyButton::_Internal { @@ -4877,10 +4949,13 @@ class HydratedQuickReplyButton::_Internal { } }; -HydratedQuickReplyButton::HydratedQuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HydratedQuickReplyButton::HydratedQuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HydratedQuickReplyButton) } HydratedQuickReplyButton::HydratedQuickReplyButton(const HydratedQuickReplyButton& from) @@ -4890,12 +4965,12 @@ HydratedQuickReplyButton::HydratedQuickReplyButton(const HydratedQuickReplyButto displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displaytext()) { displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), - GetArena()); + GetArenaForAllocation()); } id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_id()) { id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.HydratedQuickReplyButton) } @@ -4907,12 +4982,13 @@ id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyIn HydratedQuickReplyButton::~HydratedQuickReplyButton() { // @@protoc_insertion_point(destructor:proto.HydratedQuickReplyButton) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HydratedQuickReplyButton::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HydratedQuickReplyButton::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -4952,7 +5028,6 @@ const char* HydratedQuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF 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: @@ -4963,7 +5038,8 @@ const char* HydratedQuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedQuickReplyButton.displayText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string id = 2; case 2: @@ -4974,28 +5050,30 @@ const char* HydratedQuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -5059,34 +5137,25 @@ size_t HydratedQuickReplyButton::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HydratedQuickReplyButton::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HydratedQuickReplyButton::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HydratedQuickReplyButton::GetClassData() const { return &_class_data_; } + +void HydratedQuickReplyButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HydratedQuickReplyButton *>(to)->MergeFrom( + static_cast<const HydratedQuickReplyButton &>(from)); } + void HydratedQuickReplyButton::MergeFrom(const HydratedQuickReplyButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedQuickReplyButton) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -5099,13 +5168,7 @@ void HydratedQuickReplyButton::MergeFrom(const HydratedQuickReplyButton& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HydratedQuickReplyButton::CopyFrom(const HydratedQuickReplyButton& from) { @@ -5121,17 +5184,28 @@ bool HydratedQuickReplyButton::IsInitialized() const { void HydratedQuickReplyButton::InternalSwap(HydratedQuickReplyButton* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &displaytext_, lhs_arena, + &other->displaytext_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &id_, lhs_arena, + &other->id_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedQuickReplyButton::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[1]); } - // =================================================================== class HydratedURLButton::_Internal { @@ -5145,10 +5219,13 @@ class HydratedURLButton::_Internal { } }; -HydratedURLButton::HydratedURLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HydratedURLButton::HydratedURLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HydratedURLButton) } HydratedURLButton::HydratedURLButton(const HydratedURLButton& from) @@ -5158,12 +5235,12 @@ HydratedURLButton::HydratedURLButton(const HydratedURLButton& from) displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displaytext()) { displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), - GetArena()); + GetArenaForAllocation()); } url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.HydratedURLButton) } @@ -5175,12 +5252,13 @@ url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyI HydratedURLButton::~HydratedURLButton() { // @@protoc_insertion_point(destructor:proto.HydratedURLButton) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HydratedURLButton::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HydratedURLButton::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -5220,7 +5298,6 @@ const char* HydratedURLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP 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: @@ -5231,7 +5308,8 @@ const char* HydratedURLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedURLButton.displayText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string url = 2; case 2: @@ -5242,28 +5320,30 @@ const char* HydratedURLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -5327,34 +5407,25 @@ size_t HydratedURLButton::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HydratedURLButton::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HydratedURLButton::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HydratedURLButton::GetClassData() const { return &_class_data_; } + +void HydratedURLButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HydratedURLButton *>(to)->MergeFrom( + static_cast<const HydratedURLButton &>(from)); } + void HydratedURLButton::MergeFrom(const HydratedURLButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedURLButton) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -5367,13 +5438,7 @@ void HydratedURLButton::MergeFrom(const HydratedURLButton& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HydratedURLButton::CopyFrom(const HydratedURLButton& from) { @@ -5389,17 +5454,28 @@ bool HydratedURLButton::IsInitialized() const { void HydratedURLButton::InternalSwap(HydratedURLButton* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &displaytext_, lhs_arena, + &other->displaytext_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &url_, lhs_arena, + &other->url_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedURLButton::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[2]); } - // =================================================================== class HydratedCallButton::_Internal { @@ -5413,10 +5489,13 @@ class HydratedCallButton::_Internal { } }; -HydratedCallButton::HydratedCallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HydratedCallButton::HydratedCallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HydratedCallButton) } HydratedCallButton::HydratedCallButton(const HydratedCallButton& from) @@ -5426,12 +5505,12 @@ HydratedCallButton::HydratedCallButton(const HydratedCallButton& from) displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displaytext()) { displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), - GetArena()); + GetArenaForAllocation()); } phonenumber_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_phonenumber()) { phonenumber_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_phonenumber(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.HydratedCallButton) } @@ -5443,12 +5522,13 @@ phonenumber_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString HydratedCallButton::~HydratedCallButton() { // @@protoc_insertion_point(destructor:proto.HydratedCallButton) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HydratedCallButton::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HydratedCallButton::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); phonenumber_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -5488,7 +5568,6 @@ const char* HydratedCallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMES 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: @@ -5499,7 +5578,8 @@ const char* HydratedCallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMES ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedCallButton.displayText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string phoneNumber = 2; case 2: @@ -5510,28 +5590,30 @@ const char* HydratedCallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMES ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -5595,34 +5677,25 @@ size_t HydratedCallButton::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HydratedCallButton::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HydratedCallButton::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HydratedCallButton::GetClassData() const { return &_class_data_; } + +void HydratedCallButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HydratedCallButton *>(to)->MergeFrom( + static_cast<const HydratedCallButton &>(from)); } + void HydratedCallButton::MergeFrom(const HydratedCallButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedCallButton) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -5635,13 +5708,7 @@ void HydratedCallButton::MergeFrom(const HydratedCallButton& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HydratedCallButton::CopyFrom(const HydratedCallButton& from) { @@ -5657,17 +5724,28 @@ bool HydratedCallButton::IsInitialized() const { void HydratedCallButton::InternalSwap(HydratedCallButton* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &displaytext_, lhs_arena, + &other->displaytext_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &phonenumber_, lhs_arena, + &other->phonenumber_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedCallButton::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[3]); } - // =================================================================== class HydratedTemplateButton::_Internal { @@ -5694,11 +5772,11 @@ 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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_hydratedButton(); if (quickreplybutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(quickreplybutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HydratedQuickReplyButton>::GetOwningArena(quickreplybutton); if (message_arena != submessage_arena) { quickreplybutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, quickreplybutton, submessage_arena); @@ -5709,11 +5787,11 @@ void HydratedTemplateButton::set_allocated_quickreplybutton(::proto::HydratedQui // @@protoc_insertion_point(field_set_allocated:proto.HydratedTemplateButton.quickReplyButton) } void HydratedTemplateButton::set_allocated_urlbutton(::proto::HydratedURLButton* urlbutton) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_hydratedButton(); if (urlbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(urlbutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HydratedURLButton>::GetOwningArena(urlbutton); if (message_arena != submessage_arena) { urlbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, urlbutton, submessage_arena); @@ -5724,11 +5802,11 @@ void HydratedTemplateButton::set_allocated_urlbutton(::proto::HydratedURLButton* // @@protoc_insertion_point(field_set_allocated:proto.HydratedTemplateButton.urlButton) } void HydratedTemplateButton::set_allocated_callbutton(::proto::HydratedCallButton* callbutton) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_hydratedButton(); if (callbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(callbutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HydratedCallButton>::GetOwningArena(callbutton); if (message_arena != submessage_arena) { callbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, callbutton, submessage_arena); @@ -5738,10 +5816,13 @@ void HydratedTemplateButton::set_allocated_callbutton(::proto::HydratedCallButto } // @@protoc_insertion_point(field_set_allocated:proto.HydratedTemplateButton.callButton) } -HydratedTemplateButton::HydratedTemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HydratedTemplateButton::HydratedTemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HydratedTemplateButton) } HydratedTemplateButton::HydratedTemplateButton(const HydratedTemplateButton& from) @@ -5777,12 +5858,13 @@ clear_has_hydratedButton(); HydratedTemplateButton::~HydratedTemplateButton() { // @@protoc_insertion_point(destructor:proto.HydratedTemplateButton) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HydratedTemplateButton::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HydratedTemplateButton::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_hydratedButton()) { clear_hydratedButton(); } @@ -5802,19 +5884,19 @@ void HydratedTemplateButton::clear_hydratedButton() { // @@protoc_insertion_point(one_of_clear_start:proto.HydratedTemplateButton) switch (hydratedButton_case()) { case kQuickReplyButton: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete hydratedButton_.quickreplybutton_; } break; } case kUrlButton: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete hydratedButton_.urlbutton_; } break; } case kCallButton: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete hydratedButton_.callbutton_; } break; @@ -5845,28 +5927,30 @@ const char* HydratedTemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_N 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; + } 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; + } 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; + } else + goto handle_unusual; continue; // optional uint32 index = 4; case 4: @@ -5874,28 +5958,30 @@ const char* HydratedTemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_N _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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -5955,9 +6041,7 @@ size_t HydratedTemplateButton::ByteSizeLong() const { // 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); } switch (hydratedButton_case()) { @@ -5986,34 +6070,25 @@ size_t HydratedTemplateButton::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HydratedTemplateButton::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HydratedTemplateButton::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HydratedTemplateButton::GetClassData() const { return &_class_data_; } + +void HydratedTemplateButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HydratedTemplateButton *>(to)->MergeFrom( + static_cast<const HydratedTemplateButton &>(from)); } + void HydratedTemplateButton::MergeFrom(const HydratedTemplateButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedTemplateButton) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -6037,13 +6112,7 @@ void HydratedTemplateButton::MergeFrom(const HydratedTemplateButton& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HydratedTemplateButton::CopyFrom(const HydratedTemplateButton& from) { @@ -6059,7 +6128,7 @@ bool HydratedTemplateButton::IsInitialized() const { void HydratedTemplateButton::InternalSwap(HydratedTemplateButton* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(index_, other->index_); swap(hydratedButton_, other->hydratedButton_); @@ -6067,10 +6136,11 @@ void HydratedTemplateButton::InternalSwap(HydratedTemplateButton* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedTemplateButton::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[4]); } - // =================================================================== class QuickReplyButton::_Internal { @@ -6089,10 +6159,13 @@ const ::proto::HighlyStructuredMessage& QuickReplyButton::_Internal::displaytext(const QuickReplyButton* msg) { return *msg->displaytext_; } -QuickReplyButton::QuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +QuickReplyButton::QuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.QuickReplyButton) } QuickReplyButton::QuickReplyButton(const QuickReplyButton& from) @@ -6102,7 +6175,7 @@ QuickReplyButton::QuickReplyButton(const QuickReplyButton& from) id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_id()) { id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_displaytext()) { displaytext_ = new ::proto::HighlyStructuredMessage(*from.displaytext_); @@ -6119,12 +6192,13 @@ displaytext_ = nullptr; QuickReplyButton::~QuickReplyButton() { // @@protoc_insertion_point(destructor:proto.QuickReplyButton) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void QuickReplyButton::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void QuickReplyButton::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete displaytext_; } @@ -6165,14 +6239,14 @@ const char* QuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA 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; + } else + goto handle_unusual; continue; // optional string id = 2; case 2: @@ -6183,28 +6257,30 @@ const char* QuickReplyButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.QuickReplyButton.id"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -6266,34 +6342,25 @@ size_t QuickReplyButton::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData QuickReplyButton::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + QuickReplyButton::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*QuickReplyButton::GetClassData() const { return &_class_data_; } + +void QuickReplyButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<QuickReplyButton *>(to)->MergeFrom( + static_cast<const QuickReplyButton &>(from)); } + void QuickReplyButton::MergeFrom(const QuickReplyButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.QuickReplyButton) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -6306,13 +6373,7 @@ void QuickReplyButton::MergeFrom(const QuickReplyButton& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void QuickReplyButton::CopyFrom(const QuickReplyButton& from) { @@ -6328,17 +6389,24 @@ bool QuickReplyButton::IsInitialized() const { void QuickReplyButton::InternalSwap(QuickReplyButton* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); - id_.Swap(&other->id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &id_, lhs_arena, + &other->id_, rhs_arena + ); swap(displaytext_, other->displaytext_); } ::PROTOBUF_NAMESPACE_ID::Metadata QuickReplyButton::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[5]); } - // =================================================================== class URLButton::_Internal { @@ -6362,10 +6430,13 @@ const ::proto::HighlyStructuredMessage& URLButton::_Internal::url(const URLButton* msg) { return *msg->url_; } -URLButton::URLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +URLButton::URLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.URLButton) } URLButton::URLButton(const URLButton& from) @@ -6394,12 +6465,13 @@ void URLButton::SharedCtor() { URLButton::~URLButton() { // @@protoc_insertion_point(destructor:proto.URLButton) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void URLButton::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void URLButton::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete displaytext_; if (this != internal_default_instance()) delete url_; } @@ -6441,42 +6513,44 @@ const char* URLButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID:: 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; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -6536,34 +6610,25 @@ size_t URLButton::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData URLButton::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + URLButton::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*URLButton::GetClassData() const { return &_class_data_; } + +void URLButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<URLButton *>(to)->MergeFrom( + static_cast<const URLButton &>(from)); } + void URLButton::MergeFrom(const URLButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.URLButton) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -6576,13 +6641,7 @@ void URLButton::MergeFrom(const URLButton& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void URLButton::CopyFrom(const URLButton& from) { @@ -6598,7 +6657,7 @@ bool URLButton::IsInitialized() const { void URLButton::InternalSwap(URLButton* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(URLButton, url_) @@ -6609,10 +6668,11 @@ void URLButton::InternalSwap(URLButton* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata URLButton::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[6]); } - // =================================================================== class CallButton::_Internal { @@ -6636,10 +6696,13 @@ const ::proto::HighlyStructuredMessage& CallButton::_Internal::phonenumber(const CallButton* msg) { return *msg->phonenumber_; } -CallButton::CallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CallButton::CallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.CallButton) } CallButton::CallButton(const CallButton& from) @@ -6668,12 +6731,13 @@ void CallButton::SharedCtor() { CallButton::~CallButton() { // @@protoc_insertion_point(destructor:proto.CallButton) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void CallButton::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void CallButton::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete displaytext_; if (this != internal_default_instance()) delete phonenumber_; } @@ -6715,42 +6779,44 @@ const char* CallButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: 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; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -6810,34 +6876,25 @@ size_t CallButton::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CallButton::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CallButton::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CallButton::GetClassData() const { return &_class_data_; } + +void CallButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<CallButton *>(to)->MergeFrom( + static_cast<const CallButton &>(from)); } + void CallButton::MergeFrom(const CallButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.CallButton) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -6850,13 +6907,7 @@ void CallButton::MergeFrom(const CallButton& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CallButton::CopyFrom(const CallButton& from) { @@ -6872,7 +6923,7 @@ bool CallButton::IsInitialized() const { void CallButton::InternalSwap(CallButton* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(CallButton, phonenumber_) @@ -6883,10 +6934,11 @@ void CallButton::InternalSwap(CallButton* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata CallButton::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[7]); } - // =================================================================== class TemplateButton::_Internal { @@ -6913,11 +6965,11 @@ 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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_button(); if (quickreplybutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(quickreplybutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::QuickReplyButton>::GetOwningArena(quickreplybutton); if (message_arena != submessage_arena) { quickreplybutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, quickreplybutton, submessage_arena); @@ -6928,11 +6980,11 @@ void TemplateButton::set_allocated_quickreplybutton(::proto::QuickReplyButton* q // @@protoc_insertion_point(field_set_allocated:proto.TemplateButton.quickReplyButton) } void TemplateButton::set_allocated_urlbutton(::proto::URLButton* urlbutton) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_button(); if (urlbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(urlbutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::URLButton>::GetOwningArena(urlbutton); if (message_arena != submessage_arena) { urlbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, urlbutton, submessage_arena); @@ -6943,11 +6995,11 @@ void TemplateButton::set_allocated_urlbutton(::proto::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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_button(); if (callbutton) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(callbutton); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::CallButton>::GetOwningArena(callbutton); if (message_arena != submessage_arena) { callbutton = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, callbutton, submessage_arena); @@ -6957,10 +7009,13 @@ void TemplateButton::set_allocated_callbutton(::proto::CallButton* callbutton) { } // @@protoc_insertion_point(field_set_allocated:proto.TemplateButton.callButton) } -TemplateButton::TemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TemplateButton::TemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.TemplateButton) } TemplateButton::TemplateButton(const TemplateButton& from) @@ -6996,12 +7051,13 @@ clear_has_button(); TemplateButton::~TemplateButton() { // @@protoc_insertion_point(destructor:proto.TemplateButton) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void TemplateButton::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void TemplateButton::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_button()) { clear_button(); } @@ -7021,19 +7077,19 @@ void TemplateButton::clear_button() { // @@protoc_insertion_point(one_of_clear_start:proto.TemplateButton) switch (button_case()) { case kQuickReplyButton: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete button_.quickreplybutton_; } break; } case kUrlButton: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete button_.urlbutton_; } break; } case kCallButton: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete button_.callbutton_; } break; @@ -7064,28 +7120,30 @@ const char* TemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE 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; + } 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; + } 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; + } else + goto handle_unusual; continue; // optional uint32 index = 4; case 4: @@ -7093,28 +7151,30 @@ const char* TemplateButton::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -7174,9 +7234,7 @@ size_t TemplateButton::ByteSizeLong() const { // 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_index()); } switch (button_case()) { @@ -7205,34 +7263,25 @@ size_t TemplateButton::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TemplateButton::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TemplateButton::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TemplateButton::GetClassData() const { return &_class_data_; } + +void TemplateButton::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<TemplateButton *>(to)->MergeFrom( + static_cast<const TemplateButton &>(from)); } + void TemplateButton::MergeFrom(const TemplateButton& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateButton) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -7256,13 +7305,7 @@ void TemplateButton::MergeFrom(const TemplateButton& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TemplateButton::CopyFrom(const TemplateButton& from) { @@ -7278,7 +7321,7 @@ bool TemplateButton::IsInitialized() const { void TemplateButton::InternalSwap(TemplateButton* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(index_, other->index_); swap(button_, other->button_); @@ -7286,10 +7329,11 @@ void TemplateButton::InternalSwap(TemplateButton* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata TemplateButton::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[8]); } - // =================================================================== class Location::_Internal { @@ -7306,10 +7350,13 @@ class Location::_Internal { } }; -Location::Location(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Location::Location(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.Location) } Location::Location(const Location& from) @@ -7319,7 +7366,7 @@ Location::Location(const Location& from) name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_name()) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), - GetArena()); + GetArenaForAllocation()); } ::memcpy(°reeslatitude_, &from.degreeslatitude_, static_cast<size_t>(reinterpret_cast<char*>(°reeslongitude_) - @@ -7337,12 +7384,13 @@ name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlready Location::~Location() { // @@protoc_insertion_point(destructor:proto.Location) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Location::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void Location::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -7381,7 +7429,6 @@ const char* Location::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i 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: @@ -7389,7 +7436,8 @@ const char* Location::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i _Internal::set_has_degreeslatitude(&has_bits); degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional double degreesLongitude = 2; case 2: @@ -7397,7 +7445,8 @@ const char* Location::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i _Internal::set_has_degreeslongitude(&has_bits); degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string name = 3; case 3: @@ -7408,28 +7457,30 @@ const char* Location::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::i ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -7498,34 +7549,25 @@ size_t Location::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Location::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Location::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Location::GetClassData() const { return &_class_data_; } + +void Location::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<Location *>(to)->MergeFrom( + static_cast<const Location &>(from)); } + void Location::MergeFrom(const Location& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Location) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -7542,13 +7584,7 @@ void Location::MergeFrom(const Location& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Location::CopyFrom(const Location& from) { @@ -7564,9 +7600,15 @@ bool Location::IsInitialized() const { void Location::InternalSwap(Location* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &name_, lhs_arena, + &other->name_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Location, degreeslongitude_) + sizeof(Location::degreeslongitude_) @@ -7576,10 +7618,11 @@ void Location::InternalSwap(Location* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Location::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[9]); } - // =================================================================== class Point::_Internal { @@ -7599,10 +7642,13 @@ class Point::_Internal { } }; -Point::Point(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Point::Point(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.Point) } Point::Point(const Point& from) @@ -7624,12 +7670,13 @@ void Point::SharedCtor() { Point::~Point() { // @@protoc_insertion_point(destructor:proto.Point) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Point::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void Point::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void Point::ArenaDtor(void* object) { @@ -7664,7 +7711,6 @@ const char* Point::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte 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: @@ -7672,7 +7718,8 @@ const char* Point::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte _Internal::set_has_xdeprecated(&has_bits); xdeprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int32 yDeprecated = 2; case 2: @@ -7680,7 +7727,8 @@ const char* Point::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte _Internal::set_has_ydeprecated(&has_bits); ydeprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional double x = 3; case 3: @@ -7688,7 +7736,8 @@ const char* Point::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte _Internal::set_has_x(&has_bits); x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional double y = 4; case 4: @@ -7696,28 +7745,30 @@ const char* Point::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inte _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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -7772,16 +7823,12 @@ size_t Point::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_xdeprecated()); } // optional int32 yDeprecated = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_ydeprecated()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_ydeprecated()); } // optional double x = 3; @@ -7795,34 +7842,25 @@ size_t Point::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Point::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Point::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Point::GetClassData() const { return &_class_data_; } + +void Point::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<Point *>(to)->MergeFrom( + static_cast<const Point &>(from)); } + void Point::MergeFrom(const Point& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Point) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -7842,13 +7880,7 @@ void Point::MergeFrom(const Point& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Point::CopyFrom(const Point& from) { @@ -7864,7 +7896,7 @@ bool Point::IsInitialized() const { void Point::InternalSwap(Point* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Point, y_) @@ -7875,10 +7907,11 @@ void Point::InternalSwap(Point* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Point::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[10]); } - // =================================================================== class InteractiveAnnotation::_Internal { @@ -7891,11 +7924,11 @@ 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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_action(); if (location) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(location); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Location>::GetOwningArena(location); if (message_arena != submessage_arena) { location = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, location, submessage_arena); @@ -7905,11 +7938,14 @@ void InteractiveAnnotation::set_allocated_location(::proto::Location* location) } // @@protoc_insertion_point(field_set_allocated:proto.InteractiveAnnotation.location) } -InteractiveAnnotation::InteractiveAnnotation(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +InteractiveAnnotation::InteractiveAnnotation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), polygonvertices_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.InteractiveAnnotation) } InteractiveAnnotation::InteractiveAnnotation(const InteractiveAnnotation& from) @@ -7935,12 +7971,13 @@ clear_has_action(); InteractiveAnnotation::~InteractiveAnnotation() { // @@protoc_insertion_point(destructor:proto.InteractiveAnnotation) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void InteractiveAnnotation::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void InteractiveAnnotation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_action()) { clear_action(); } @@ -7960,7 +7997,7 @@ void InteractiveAnnotation::clear_action() { // @@protoc_insertion_point(one_of_clear_start:proto.InteractiveAnnotation) switch (action_case()) { case kLocation: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete action_.location_; } break; @@ -7989,7 +8026,6 @@ const char* InteractiveAnnotation::_InternalParse(const char* ptr, ::PROTOBUF_NA 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: @@ -8001,34 +8037,37 @@ const char* InteractiveAnnotation::_InternalParse(const char* ptr, ::PROTOBUF_NA CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; + } 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; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -8089,34 +8128,25 @@ size_t InteractiveAnnotation::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InteractiveAnnotation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + InteractiveAnnotation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InteractiveAnnotation::GetClassData() const { return &_class_data_; } + +void InteractiveAnnotation::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<InteractiveAnnotation *>(to)->MergeFrom( + static_cast<const InteractiveAnnotation &>(from)); } + void InteractiveAnnotation::MergeFrom(const InteractiveAnnotation& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.InteractiveAnnotation) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -8130,13 +8160,7 @@ void InteractiveAnnotation::MergeFrom(const InteractiveAnnotation& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InteractiveAnnotation::CopyFrom(const InteractiveAnnotation& from) { @@ -8152,17 +8176,18 @@ bool InteractiveAnnotation::IsInitialized() const { void InteractiveAnnotation::InternalSwap(InteractiveAnnotation* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&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(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[11]); } - // =================================================================== class DeviceListMetadata::_Internal { @@ -8182,10 +8207,13 @@ class DeviceListMetadata::_Internal { } }; -DeviceListMetadata::DeviceListMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +DeviceListMetadata::DeviceListMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.DeviceListMetadata) } DeviceListMetadata::DeviceListMetadata(const DeviceListMetadata& from) @@ -8195,12 +8223,12 @@ DeviceListMetadata::DeviceListMetadata(const DeviceListMetadata& from) senderkeyhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_senderkeyhash()) { senderkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_senderkeyhash(), - GetArena()); + GetArenaForAllocation()); } recipientkeyhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_recipientkeyhash()) { recipientkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_recipientkeyhash(), - GetArena()); + GetArenaForAllocation()); } ::memcpy(&sendertimestamp_, &from.sendertimestamp_, static_cast<size_t>(reinterpret_cast<char*>(&recipienttimestamp_) - @@ -8219,12 +8247,13 @@ recipientkeyhash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyS DeviceListMetadata::~DeviceListMetadata() { // @@protoc_insertion_point(destructor:proto.DeviceListMetadata) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void DeviceListMetadata::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void DeviceListMetadata::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); senderkeyhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); recipientkeyhash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -8269,7 +8298,6 @@ const char* DeviceListMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMES 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: @@ -8277,7 +8305,8 @@ const char* DeviceListMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMES auto str = _internal_mutable_senderkeyhash(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 senderTimestamp = 2; case 2: @@ -8285,7 +8314,8 @@ const char* DeviceListMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMES _Internal::set_has_sendertimestamp(&has_bits); sendertimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes recipientKeyHash = 8; case 8: @@ -8293,7 +8323,8 @@ const char* DeviceListMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMES auto str = _internal_mutable_recipientkeyhash(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 recipientTimestamp = 9; case 9: @@ -8301,28 +8332,30 @@ const char* DeviceListMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMES _Internal::set_has_recipienttimestamp(&has_bits); recipienttimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -8391,47 +8424,34 @@ size_t DeviceListMetadata::ByteSizeLong() const { // optional uint64 senderTimestamp = 2; if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_sendertimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_sendertimestamp()); } // optional uint64 recipientTimestamp = 9; if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_recipienttimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeviceListMetadata::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeviceListMetadata::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeviceListMetadata::GetClassData() const { return &_class_data_; } + +void DeviceListMetadata::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<DeviceListMetadata *>(to)->MergeFrom( + static_cast<const DeviceListMetadata &>(from)); } + void DeviceListMetadata::MergeFrom(const DeviceListMetadata& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.DeviceListMetadata) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -8451,13 +8471,7 @@ void DeviceListMetadata::MergeFrom(const DeviceListMetadata& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeviceListMetadata::CopyFrom(const DeviceListMetadata& from) { @@ -8473,10 +8487,20 @@ bool DeviceListMetadata::IsInitialized() const { void DeviceListMetadata::InternalSwap(DeviceListMetadata* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &senderkeyhash_, lhs_arena, + &other->senderkeyhash_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &recipientkeyhash_, lhs_arena, + &other->recipientkeyhash_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(DeviceListMetadata, recipienttimestamp_) + sizeof(DeviceListMetadata::recipienttimestamp_) @@ -8486,10 +8510,11 @@ void DeviceListMetadata::InternalSwap(DeviceListMetadata* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata DeviceListMetadata::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[12]); } - // =================================================================== class MessageContextInfo::_Internal { @@ -8505,10 +8530,13 @@ const ::proto::DeviceListMetadata& MessageContextInfo::_Internal::devicelistmetadata(const MessageContextInfo* msg) { return *msg->devicelistmetadata_; } -MessageContextInfo::MessageContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +MessageContextInfo::MessageContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.MessageContextInfo) } MessageContextInfo::MessageContextInfo(const MessageContextInfo& from) @@ -8529,12 +8557,13 @@ devicelistmetadata_ = nullptr; MessageContextInfo::~MessageContextInfo() { // @@protoc_insertion_point(destructor:proto.MessageContextInfo) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void MessageContextInfo::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void MessageContextInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete devicelistmetadata_; } @@ -8569,35 +8598,36 @@ const char* MessageContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMES 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -8640,47 +8670,32 @@ size_t MessageContextInfo::ByteSizeLong() const { *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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageContextInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MessageContextInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageContextInfo::GetClassData() const { return &_class_data_; } + +void MessageContextInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<MessageContextInfo *>(to)->MergeFrom( + static_cast<const MessageContextInfo &>(from)); } + void MessageContextInfo::MergeFrom(const MessageContextInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.MessageContextInfo) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageContextInfo::CopyFrom(const MessageContextInfo& from) { @@ -8696,16 +8711,17 @@ bool MessageContextInfo::IsInitialized() const { void MessageContextInfo::InternalSwap(MessageContextInfo* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(devicelistmetadata_, other->devicelistmetadata_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageContextInfo::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[13]); } - // =================================================================== class AdReplyInfo::_Internal { @@ -8725,10 +8741,13 @@ class AdReplyInfo::_Internal { } }; -AdReplyInfo::AdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +AdReplyInfo::AdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.AdReplyInfo) } AdReplyInfo::AdReplyInfo(const AdReplyInfo& from) @@ -8738,17 +8757,17 @@ AdReplyInfo::AdReplyInfo(const AdReplyInfo& from) advertisername_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_advertisername()) { advertisername_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_advertisername(), - GetArena()); + GetArenaForAllocation()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArena()); + GetArenaForAllocation()); } caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_caption()) { caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), - GetArena()); + GetArenaForAllocation()); } mediatype_ = from.mediatype_; // @@protoc_insertion_point(copy_constructor:proto.AdReplyInfo) @@ -8763,12 +8782,13 @@ mediatype_ = 0; AdReplyInfo::~AdReplyInfo() { // @@protoc_insertion_point(destructor:proto.AdReplyInfo) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void AdReplyInfo::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void AdReplyInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); advertisername_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); caption_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -8813,7 +8833,6 @@ const char* AdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID 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: @@ -8824,7 +8843,8 @@ const char* AdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AdReplyInfo.advertiserName"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.AdReplyInfo.AdReplyInfoMediaType mediaType = 2; case 2: @@ -8836,7 +8856,8 @@ const char* AdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: @@ -8844,7 +8865,8 @@ const char* AdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string caption = 17; case 17: @@ -8855,28 +8877,30 @@ const char* AdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -8966,34 +8990,25 @@ size_t AdReplyInfo::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AdReplyInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AdReplyInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AdReplyInfo::GetClassData() const { return &_class_data_; } + +void AdReplyInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<AdReplyInfo *>(to)->MergeFrom( + static_cast<const AdReplyInfo &>(from)); } + void AdReplyInfo::MergeFrom(const AdReplyInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AdReplyInfo) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -9013,13 +9028,7 @@ void AdReplyInfo::MergeFrom(const AdReplyInfo& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AdReplyInfo::CopyFrom(const AdReplyInfo& from) { @@ -9035,19 +9044,34 @@ bool AdReplyInfo::IsInitialized() const { void AdReplyInfo::InternalSwap(AdReplyInfo* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &advertisername_, lhs_arena, + &other->advertisername_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &jpegthumbnail_, lhs_arena, + &other->jpegthumbnail_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &caption_, lhs_arena, + &other->caption_, rhs_arena + ); swap(mediatype_, other->mediatype_); } ::PROTOBUF_NAMESPACE_ID::Metadata AdReplyInfo::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[14]); } - // =================================================================== class ExternalAdReplyInfo::_Internal { @@ -9082,10 +9106,13 @@ class ExternalAdReplyInfo::_Internal { } }; -ExternalAdReplyInfo::ExternalAdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ExternalAdReplyInfo::ExternalAdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ExternalAdReplyInfo) } ExternalAdReplyInfo::ExternalAdReplyInfo(const ExternalAdReplyInfo& from) @@ -9095,42 +9122,42 @@ ExternalAdReplyInfo::ExternalAdReplyInfo(const ExternalAdReplyInfo& from) title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArena()); + GetArenaForAllocation()); } body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_body()) { body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_body(), - GetArena()); + GetArenaForAllocation()); } thumbnailurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailurl()) { thumbnailurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailurl(), - GetArena()); + GetArenaForAllocation()); } mediaurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediaurl()) { mediaurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediaurl(), - GetArena()); + GetArenaForAllocation()); } thumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnail()) { thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnail(), - GetArena()); + GetArenaForAllocation()); } sourcetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_sourcetype()) { sourcetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sourcetype(), - GetArena()); + GetArenaForAllocation()); } sourceid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_sourceid()) { sourceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sourceid(), - GetArena()); + GetArenaForAllocation()); } sourceurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_sourceurl()) { sourceurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sourceurl(), - GetArena()); + GetArenaForAllocation()); } mediatype_ = from.mediatype_; // @@protoc_insertion_point(copy_constructor:proto.ExternalAdReplyInfo) @@ -9150,12 +9177,13 @@ mediatype_ = 0; ExternalAdReplyInfo::~ExternalAdReplyInfo() { // @@protoc_insertion_point(destructor:proto.ExternalAdReplyInfo) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ExternalAdReplyInfo::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ExternalAdReplyInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); thumbnailurl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -9220,7 +9248,6 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME 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: @@ -9231,7 +9258,8 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.title"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string body = 2; case 2: @@ -9242,7 +9270,8 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.body"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.ExternalAdReplyInfo.ExternalAdReplyInfoMediaType mediaType = 3; case 3: @@ -9254,7 +9283,8 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string thumbnailUrl = 4; case 4: @@ -9265,7 +9295,8 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.thumbnailUrl"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string mediaUrl = 5; case 5: @@ -9276,7 +9307,8 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.mediaUrl"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes thumbnail = 6; case 6: @@ -9284,7 +9316,8 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME auto str = _internal_mutable_thumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string sourceType = 7; case 7: @@ -9295,7 +9328,8 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.sourceType"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string sourceId = 8; case 8: @@ -9306,7 +9340,8 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExternalAdReplyInfo.sourceId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string sourceUrl = 9; case 9: @@ -9317,28 +9352,30 @@ const char* ExternalAdReplyInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -9513,34 +9550,25 @@ size_t ExternalAdReplyInfo::ByteSizeLong() const { ::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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExternalAdReplyInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ExternalAdReplyInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExternalAdReplyInfo::GetClassData() const { return &_class_data_; } + +void ExternalAdReplyInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ExternalAdReplyInfo *>(to)->MergeFrom( + static_cast<const ExternalAdReplyInfo &>(from)); } + void ExternalAdReplyInfo::MergeFrom(const ExternalAdReplyInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ExternalAdReplyInfo) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -9574,13 +9602,7 @@ void ExternalAdReplyInfo::MergeFrom(const ExternalAdReplyInfo& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ExternalAdReplyInfo::CopyFrom(const ExternalAdReplyInfo& from) { @@ -9596,24 +9618,59 @@ bool ExternalAdReplyInfo::IsInitialized() const { void ExternalAdReplyInfo::InternalSwap(ExternalAdReplyInfo* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &title_, lhs_arena, + &other->title_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &body_, lhs_arena, + &other->body_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnailurl_, lhs_arena, + &other->thumbnailurl_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mediaurl_, lhs_arena, + &other->mediaurl_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnail_, lhs_arena, + &other->thumbnail_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &sourcetype_, lhs_arena, + &other->sourcetype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &sourceid_, lhs_arena, + &other->sourceid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &sourceurl_, lhs_arena, + &other->sourceurl_, rhs_arena + ); swap(mediatype_, other->mediatype_); } ::PROTOBUF_NAMESPACE_ID::Metadata ExternalAdReplyInfo::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[15]); } - // =================================================================== class ContextInfo::_Internal { @@ -9686,11 +9743,14 @@ const ::proto::ExternalAdReplyInfo& ContextInfo::_Internal::externaladreply(const ContextInfo* msg) { return *msg->externaladreply_; } -ContextInfo::ContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +ContextInfo::ContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), mentionedjid_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ContextInfo) } ContextInfo::ContextInfo(const ContextInfo& from) @@ -9701,32 +9761,32 @@ ContextInfo::ContextInfo(const ContextInfo& from) stanzaid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_stanzaid()) { stanzaid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_stanzaid(), - GetArena()); + GetArenaForAllocation()); } participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_participant()) { participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), - GetArena()); + GetArenaForAllocation()); } remotejid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_remotejid()) { remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_remotejid(), - GetArena()); + GetArenaForAllocation()); } conversionsource_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_conversionsource()) { conversionsource_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_conversionsource(), - GetArena()); + GetArenaForAllocation()); } conversiondata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_conversiondata()) { conversiondata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_conversiondata(), - GetArena()); + GetArenaForAllocation()); } ephemeralsharedsecret_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_ephemeralsharedsecret()) { ephemeralsharedsecret_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ephemeralsharedsecret(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_quotedmessage()) { quotedmessage_ = new ::proto::Message(*from.quotedmessage_); @@ -9769,12 +9829,13 @@ ephemeralsharedsecret_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetE ContextInfo::~ContextInfo() { // @@protoc_insertion_point(destructor:proto.ContextInfo) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ContextInfo::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ContextInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); stanzaid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); remotejid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -9858,7 +9919,6 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID 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: @@ -9869,7 +9929,8 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContextInfo.stanzaId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string participant = 2; case 2: @@ -9880,14 +9941,16 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContextInfo.participant"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional string remoteJid = 4; case 4: @@ -9898,7 +9961,8 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContextInfo.remoteJid"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated string mentionedJid = 15; case 15: @@ -9914,7 +9978,8 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<122>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string conversionSource = 18; case 18: @@ -9925,7 +9990,8 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContextInfo.conversionSource"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes conversionData = 19; case 19: @@ -9933,7 +9999,8 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID auto str = _internal_mutable_conversiondata(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 conversionDelaySeconds = 20; case 20: @@ -9941,7 +10008,8 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _Internal::set_has_conversiondelayseconds(&has_bits); conversiondelayseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 forwardingScore = 21; case 21: @@ -9949,7 +10017,8 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _Internal::set_has_forwardingscore(&has_bits); forwardingscore_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool isForwarded = 22; case 22: @@ -9957,21 +10026,24 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _Internal::set_has_isforwarded(&has_bits); isforwarded_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; + } else + goto handle_unusual; continue; // optional uint32 expiration = 25; case 25: @@ -9979,7 +10051,8 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _Internal::set_has_expiration(&has_bits); expiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 ephemeralSettingTimestamp = 26; case 26: @@ -9987,7 +10060,8 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _Internal::set_has_ephemeralsettingtimestamp(&has_bits); ephemeralsettingtimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes ephemeralSharedSecret = 27; case 27: @@ -9995,35 +10069,38 @@ const char* ContextInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID auto str = _internal_mutable_ephemeralsharedsecret(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -10290,34 +10367,25 @@ size_t ContextInfo::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ContextInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ContextInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ContextInfo::GetClassData() const { return &_class_data_; } + +void ContextInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ContextInfo *>(to)->MergeFrom( + static_cast<const ContextInfo &>(from)); } + void ContextInfo::MergeFrom(const ContextInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ContextInfo) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -10373,13 +10441,7 @@ void ContextInfo::MergeFrom(const ContextInfo& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ContextInfo::CopyFrom(const ContextInfo& from) { @@ -10395,15 +10457,41 @@ bool ContextInfo::IsInitialized() const { void ContextInfo::InternalSwap(ContextInfo* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); mentionedjid_.InternalSwap(&other->mentionedjid_); - 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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &stanzaid_, lhs_arena, + &other->stanzaid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &participant_, lhs_arena, + &other->participant_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &remotejid_, lhs_arena, + &other->remotejid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &conversionsource_, lhs_arena, + &other->conversionsource_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &conversiondata_, lhs_arena, + &other->conversiondata_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &ephemeralsharedsecret_, lhs_arena, + &other->ephemeralsharedsecret_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ContextInfo, ephemeralsettingtimestamp_) + sizeof(ContextInfo::ephemeralsettingtimestamp_) @@ -10413,10 +10501,11 @@ void ContextInfo::InternalSwap(ContextInfo* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ContextInfo::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[16]); } - // =================================================================== class SenderKeyDistributionMessage::_Internal { @@ -10430,10 +10519,13 @@ class SenderKeyDistributionMessage::_Internal { } }; -SenderKeyDistributionMessage::SenderKeyDistributionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SenderKeyDistributionMessage::SenderKeyDistributionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.SenderKeyDistributionMessage) } SenderKeyDistributionMessage::SenderKeyDistributionMessage(const SenderKeyDistributionMessage& from) @@ -10443,12 +10535,12 @@ SenderKeyDistributionMessage::SenderKeyDistributionMessage(const SenderKeyDistri groupid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_groupid()) { groupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_groupid(), - GetArena()); + GetArenaForAllocation()); } axolotlsenderkeydistributionmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_axolotlsenderkeydistributionmessage()) { axolotlsenderkeydistributionmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_axolotlsenderkeydistributionmessage(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.SenderKeyDistributionMessage) } @@ -10460,12 +10552,13 @@ axolotlsenderkeydistributionmessage_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID:: SenderKeyDistributionMessage::~SenderKeyDistributionMessage() { // @@protoc_insertion_point(destructor:proto.SenderKeyDistributionMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void SenderKeyDistributionMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void SenderKeyDistributionMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); groupid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); axolotlsenderkeydistributionmessage_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -10505,7 +10598,6 @@ const char* SenderKeyDistributionMessage::_InternalParse(const char* ptr, ::PROT 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: @@ -10516,7 +10608,8 @@ const char* SenderKeyDistributionMessage::_InternalParse(const char* ptr, ::PROT ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.SenderKeyDistributionMessage.groupId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes axolotlSenderKeyDistributionMessage = 2; case 2: @@ -10524,28 +10617,30 @@ const char* SenderKeyDistributionMessage::_InternalParse(const char* ptr, ::PROT auto str = _internal_mutable_axolotlsenderkeydistributionmessage(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -10605,34 +10700,25 @@ size_t SenderKeyDistributionMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SenderKeyDistributionMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SenderKeyDistributionMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SenderKeyDistributionMessage::GetClassData() const { return &_class_data_; } + +void SenderKeyDistributionMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<SenderKeyDistributionMessage *>(to)->MergeFrom( + static_cast<const SenderKeyDistributionMessage &>(from)); } + void SenderKeyDistributionMessage::MergeFrom(const SenderKeyDistributionMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.SenderKeyDistributionMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -10645,13 +10731,7 @@ void SenderKeyDistributionMessage::MergeFrom(const SenderKeyDistributionMessage& _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SenderKeyDistributionMessage::CopyFrom(const SenderKeyDistributionMessage& from) { @@ -10667,17 +10747,28 @@ bool SenderKeyDistributionMessage::IsInitialized() const { void SenderKeyDistributionMessage::InternalSwap(SenderKeyDistributionMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &groupid_, lhs_arena, + &other->groupid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &axolotlsenderkeydistributionmessage_, lhs_arena, + &other->axolotlsenderkeydistributionmessage_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata SenderKeyDistributionMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[17]); } - // =================================================================== class ImageMessage::_Internal { @@ -10759,12 +10850,15 @@ const ::proto::ContextInfo& ImageMessage::_Internal::contextinfo(const ImageMessage* msg) { return *msg->contextinfo_; } -ImageMessage::ImageMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +ImageMessage::ImageMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), interactiveannotations_(arena), scanlengths_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ImageMessage) } ImageMessage::ImageMessage(const ImageMessage& from) @@ -10776,77 +10870,77 @@ ImageMessage::ImageMessage(const ImageMessage& from) url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArena()); + GetArenaForAllocation()); } mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mimetype()) { mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), - GetArena()); + GetArenaForAllocation()); } caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_caption()) { caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), - GetArena()); + GetArenaForAllocation()); } filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArena()); + GetArenaForAllocation()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArena()); + GetArenaForAllocation()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArena()); + GetArenaForAllocation()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArena()); + GetArenaForAllocation()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArena()); + GetArenaForAllocation()); } firstscansidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_firstscansidecar()) { firstscansidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_firstscansidecar(), - GetArena()); + GetArenaForAllocation()); } scanssidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_scanssidecar()) { scanssidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_scanssidecar(), - GetArena()); + GetArenaForAllocation()); } midqualityfilesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_midqualityfilesha256()) { midqualityfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_midqualityfilesha256(), - GetArena()); + GetArenaForAllocation()); } midqualityfileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_midqualityfileencsha256()) { midqualityfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_midqualityfileencsha256(), - GetArena()); + GetArenaForAllocation()); } thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnaildirectpath()) { thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnaildirectpath(), - GetArena()); + GetArenaForAllocation()); } thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailsha256()) { thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailsha256(), - GetArena()); + GetArenaForAllocation()); } thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailencsha256()) { thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailencsha256(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -10883,12 +10977,13 @@ thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmpt ImageMessage::~ImageMessage() { // @@protoc_insertion_point(destructor:proto.ImageMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ImageMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ImageMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); mimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); caption_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -10994,7 +11089,6 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I 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: @@ -11005,7 +11099,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ImageMessage.url"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string mimetype = 2; case 2: @@ -11016,7 +11111,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ImageMessage.mimetype"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string caption = 3; case 3: @@ -11027,7 +11123,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ImageMessage.caption"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileSha256 = 4; case 4: @@ -11035,7 +11132,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 fileLength = 5; case 5: @@ -11043,7 +11141,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_filelength(&has_bits); filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 height = 6; case 6: @@ -11051,7 +11150,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_height(&has_bits); height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 width = 7; case 7: @@ -11059,7 +11159,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_width(&has_bits); width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes mediaKey = 8; case 8: @@ -11067,7 +11168,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileEncSha256 = 9; case 9: @@ -11075,7 +11177,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .proto.InteractiveAnnotation interactiveAnnotations = 10; case 10: @@ -11087,7 +11190,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string directPath = 11; case 11: @@ -11098,7 +11202,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ImageMessage.directPath"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 mediaKeyTimestamp = 12; case 12: @@ -11106,7 +11211,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_mediakeytimestamp(&has_bits); mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: @@ -11114,14 +11220,16 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional bytes firstScanSidecar = 18; case 18: @@ -11129,7 +11237,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_firstscansidecar(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 firstScanLength = 19; case 19: @@ -11137,7 +11246,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_firstscanlength(&has_bits); firstscanlength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 experimentGroupId = 20; case 20: @@ -11145,7 +11255,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_experimentgroupid(&has_bits); experimentgroupid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes scansSidecar = 21; case 21: @@ -11153,7 +11264,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_scanssidecar(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated uint32 scanLengths = 22; case 22: @@ -11168,7 +11280,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I } 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; + } else + goto handle_unusual; continue; // optional bytes midQualityFileSha256 = 23; case 23: @@ -11176,7 +11289,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_midqualityfilesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes midQualityFileEncSha256 = 24; case 24: @@ -11184,7 +11298,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_midqualityfileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool viewOnce = 25; case 25: @@ -11192,7 +11307,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_viewonce(&has_bits); viewonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string thumbnailDirectPath = 26; case 26: @@ -11203,7 +11319,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ImageMessage.thumbnailDirectPath"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes thumbnailSha256 = 27; case 27: @@ -11211,7 +11328,8 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_thumbnailsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes thumbnailEncSha256 = 28; case 28: @@ -11219,28 +11337,30 @@ const char* ImageMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -11577,30 +11697,22 @@ size_t ImageMessage::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional uint32 height = 6; if (cached_has_bits & 0x00020000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_height()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height()); } // optional uint32 width = 7; if (cached_has_bits & 0x00040000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_width()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width()); } // optional int64 mediaKeyTimestamp = 12; if (cached_has_bits & 0x00080000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_mediakeytimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); } // optional uint32 firstScanLength = 19; @@ -11623,34 +11735,25 @@ size_t ImageMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ImageMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ImageMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ImageMessage::GetClassData() const { return &_class_data_; } + +void ImageMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ImageMessage *>(to)->MergeFrom( + static_cast<const ImageMessage &>(from)); } + void ImageMessage::MergeFrom(const ImageMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ImageMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -11733,13 +11836,7 @@ void ImageMessage::MergeFrom(const ImageMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ImageMessage::CopyFrom(const ImageMessage& from) { @@ -11755,25 +11852,87 @@ bool ImageMessage::IsInitialized() const { void ImageMessage::InternalSwap(ImageMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); interactiveannotations_.InternalSwap(&other->interactiveannotations_); scanlengths_.InternalSwap(&other->scanlengths_); - 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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mimetype_, lhs_arena, + &other->mimetype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &caption_, lhs_arena, + &other->caption_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &filesha256_, lhs_arena, + &other->filesha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mediakey_, lhs_arena, + &other->mediakey_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fileencsha256_, lhs_arena, + &other->fileencsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &directpath_, lhs_arena, + &other->directpath_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &jpegthumbnail_, lhs_arena, + &other->jpegthumbnail_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &firstscansidecar_, lhs_arena, + &other->firstscansidecar_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &scanssidecar_, lhs_arena, + &other->scanssidecar_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &midqualityfilesha256_, lhs_arena, + &other->midqualityfilesha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &midqualityfileencsha256_, lhs_arena, + &other->midqualityfileencsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnaildirectpath_, lhs_arena, + &other->thumbnaildirectpath_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnailsha256_, lhs_arena, + &other->thumbnailsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnailencsha256_, lhs_arena, + &other->thumbnailencsha256_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ImageMessage, viewonce_) + sizeof(ImageMessage::viewonce_) @@ -11783,10 +11942,11 @@ void ImageMessage::InternalSwap(ImageMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ImageMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[18]); } - // =================================================================== class InvoiceMessage::_Internal { @@ -11824,10 +11984,13 @@ class InvoiceMessage::_Internal { } }; -InvoiceMessage::InvoiceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +InvoiceMessage::InvoiceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.InvoiceMessage) } InvoiceMessage::InvoiceMessage(const InvoiceMessage& from) @@ -11837,42 +12000,42 @@ InvoiceMessage::InvoiceMessage(const InvoiceMessage& from) note_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_note()) { note_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_note(), - GetArena()); + GetArenaForAllocation()); } token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_token()) { token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_token(), - GetArena()); + GetArenaForAllocation()); } attachmentmimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentmimetype()) { attachmentmimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentmimetype(), - GetArena()); + GetArenaForAllocation()); } attachmentmediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentmediakey()) { attachmentmediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentmediakey(), - GetArena()); + GetArenaForAllocation()); } attachmentfilesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentfilesha256()) { attachmentfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentfilesha256(), - GetArena()); + GetArenaForAllocation()); } attachmentfileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentfileencsha256()) { attachmentfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentfileencsha256(), - GetArena()); + GetArenaForAllocation()); } attachmentdirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentdirectpath()) { attachmentdirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentdirectpath(), - GetArena()); + GetArenaForAllocation()); } attachmentjpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_attachmentjpegthumbnail()) { attachmentjpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_attachmentjpegthumbnail(), - GetArena()); + GetArenaForAllocation()); } ::memcpy(&attachmentmediakeytimestamp_, &from.attachmentmediakeytimestamp_, static_cast<size_t>(reinterpret_cast<char*>(&attachmenttype_) - @@ -11897,12 +12060,13 @@ attachmentjpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::Ge InvoiceMessage::~InvoiceMessage() { // @@protoc_insertion_point(destructor:proto.InvoiceMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void InvoiceMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void InvoiceMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); note_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); attachmentmimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -11971,7 +12135,6 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE 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: @@ -11982,7 +12145,8 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.InvoiceMessage.note"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string token = 2; case 2: @@ -11993,7 +12157,8 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.InvoiceMessage.token"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.InvoiceMessage.InvoiceMessageAttachmentType attachmentType = 3; case 3: @@ -12005,7 +12170,8 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string attachmentMimetype = 4; case 4: @@ -12016,7 +12182,8 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.InvoiceMessage.attachmentMimetype"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes attachmentMediaKey = 5; case 5: @@ -12024,7 +12191,8 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE auto str = _internal_mutable_attachmentmediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 attachmentMediaKeyTimestamp = 6; case 6: @@ -12032,7 +12200,8 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_attachmentmediakeytimestamp(&has_bits); attachmentmediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes attachmentFileSha256 = 7; case 7: @@ -12040,7 +12209,8 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE auto str = _internal_mutable_attachmentfilesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes attachmentFileEncSha256 = 8; case 8: @@ -12048,7 +12218,8 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE auto str = _internal_mutable_attachmentfileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string attachmentDirectPath = 9; case 9: @@ -12059,7 +12230,8 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.InvoiceMessage.attachmentDirectPath"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes attachmentJpegThumbnail = 10; case 10: @@ -12067,28 +12239,30 @@ const char* InvoiceMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -12254,9 +12428,7 @@ size_t InvoiceMessage::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_attachmentmediakeytimestamp()); } // optional .proto.InvoiceMessage.InvoiceMessageAttachmentType attachmentType = 3; @@ -12266,34 +12438,25 @@ size_t InvoiceMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InvoiceMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + InvoiceMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InvoiceMessage::GetClassData() const { return &_class_data_; } + +void InvoiceMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<InvoiceMessage *>(to)->MergeFrom( + static_cast<const InvoiceMessage &>(from)); } + void InvoiceMessage::MergeFrom(const InvoiceMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.InvoiceMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -12333,13 +12496,7 @@ void InvoiceMessage::MergeFrom(const InvoiceMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InvoiceMessage::CopyFrom(const InvoiceMessage& from) { @@ -12355,16 +12512,50 @@ bool InvoiceMessage::IsInitialized() const { void InvoiceMessage::InternalSwap(InvoiceMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ¬e_, lhs_arena, + &other->note_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &token_, lhs_arena, + &other->token_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &attachmentmimetype_, lhs_arena, + &other->attachmentmimetype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &attachmentmediakey_, lhs_arena, + &other->attachmentmediakey_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &attachmentfilesha256_, lhs_arena, + &other->attachmentfilesha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &attachmentfileencsha256_, lhs_arena, + &other->attachmentfileencsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &attachmentdirectpath_, lhs_arena, + &other->attachmentdirectpath_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &attachmentjpegthumbnail_, lhs_arena, + &other->attachmentjpegthumbnail_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(InvoiceMessage, attachmenttype_) + sizeof(InvoiceMessage::attachmenttype_) @@ -12374,10 +12565,11 @@ void InvoiceMessage::InternalSwap(InvoiceMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata InvoiceMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[19]); } - // =================================================================== class ContactMessage::_Internal { @@ -12399,10 +12591,13 @@ const ::proto::ContextInfo& ContactMessage::_Internal::contextinfo(const ContactMessage* msg) { return *msg->contextinfo_; } -ContactMessage::ContactMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ContactMessage::ContactMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ContactMessage) } ContactMessage::ContactMessage(const ContactMessage& from) @@ -12412,12 +12607,12 @@ ContactMessage::ContactMessage(const ContactMessage& from) displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displayname()) { displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displayname(), - GetArena()); + GetArenaForAllocation()); } vcard_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_vcard()) { vcard_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vcard(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -12435,12 +12630,13 @@ contextinfo_ = nullptr; ContactMessage::~ContactMessage() { // @@protoc_insertion_point(destructor:proto.ContactMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ContactMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ContactMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); displayname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); vcard_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete contextinfo_; @@ -12485,7 +12681,6 @@ const char* ContactMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE 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: @@ -12496,7 +12691,8 @@ const char* ContactMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContactMessage.displayName"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string vcard = 16; case 16: @@ -12507,35 +12703,38 @@ const char* ContactMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContactMessage.vcard"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -12614,34 +12813,25 @@ size_t ContactMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ContactMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ContactMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ContactMessage::GetClassData() const { return &_class_data_; } + +void ContactMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ContactMessage *>(to)->MergeFrom( + static_cast<const ContactMessage &>(from)); } + void ContactMessage::MergeFrom(const ContactMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ContactMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -12657,13 +12847,7 @@ void ContactMessage::MergeFrom(const ContactMessage& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ContactMessage::CopyFrom(const ContactMessage& from) { @@ -12679,18 +12863,29 @@ bool ContactMessage::IsInitialized() const { void ContactMessage::InternalSwap(ContactMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &displayname_, lhs_arena, + &other->displayname_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &vcard_, lhs_arena, + &other->vcard_, rhs_arena + ); swap(contextinfo_, other->contextinfo_); } ::PROTOBUF_NAMESPACE_ID::Metadata ContactMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[20]); } - // =================================================================== class LocationMessage::_Internal { @@ -12739,10 +12934,13 @@ const ::proto::ContextInfo& LocationMessage::_Internal::contextinfo(const LocationMessage* msg) { return *msg->contextinfo_; } -LocationMessage::LocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +LocationMessage::LocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.LocationMessage) } LocationMessage::LocationMessage(const LocationMessage& from) @@ -12752,27 +12950,27 @@ LocationMessage::LocationMessage(const LocationMessage& from) name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_name()) { name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), - GetArena()); + GetArenaForAllocation()); } address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_address()) { address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_address(), - GetArena()); + GetArenaForAllocation()); } url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArena()); + GetArenaForAllocation()); } comment_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_comment()) { comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_comment(), - GetArena()); + GetArenaForAllocation()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -12799,12 +12997,13 @@ jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStri LocationMessage::~LocationMessage() { // @@protoc_insertion_point(destructor:proto.LocationMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void LocationMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void LocationMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -12871,7 +13070,6 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC 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: @@ -12879,7 +13077,8 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_degreeslatitude(&has_bits); degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional double degreesLongitude = 2; case 2: @@ -12887,7 +13086,8 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_degreeslongitude(&has_bits); degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string name = 3; case 3: @@ -12898,7 +13098,8 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.LocationMessage.name"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string address = 4; case 4: @@ -12909,7 +13110,8 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.LocationMessage.address"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string url = 5; case 5: @@ -12920,7 +13122,8 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.LocationMessage.url"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool isLive = 6; case 6: @@ -12928,7 +13131,8 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_islive(&has_bits); islive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 accuracyInMeters = 7; case 7: @@ -12936,7 +13140,8 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_accuracyinmeters(&has_bits); accuracyinmeters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional float speedInMps = 8; case 8: @@ -12944,7 +13149,8 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_speedinmps(&has_bits); speedinmps_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr); ptr += sizeof(float); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 degreesClockwiseFromMagneticNorth = 9; case 9: @@ -12952,7 +13158,8 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_degreesclockwisefrommagneticnorth(&has_bits); degreesclockwisefrommagneticnorth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string comment = 11; case 11: @@ -12963,7 +13170,8 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.LocationMessage.comment"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: @@ -12971,35 +13179,38 @@ const char* LocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -13179,9 +13390,7 @@ size_t LocationMessage::ByteSizeLong() const { // optional uint32 accuracyInMeters = 7; if (cached_has_bits & 0x00000200u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_accuracyinmeters()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_accuracyinmeters()); } // optional float speedInMps = 8; @@ -13191,40 +13400,29 @@ size_t LocationMessage::ByteSizeLong() const { // optional uint32 degreesClockwiseFromMagneticNorth = 9; if (cached_has_bits & 0x00000800u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_degreesclockwisefrommagneticnorth()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LocationMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LocationMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LocationMessage::GetClassData() const { return &_class_data_; } + +void LocationMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<LocationMessage *>(to)->MergeFrom( + static_cast<const LocationMessage &>(from)); } + void LocationMessage::MergeFrom(const LocationMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.LocationMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -13271,13 +13469,7 @@ void LocationMessage::MergeFrom(const LocationMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LocationMessage::CopyFrom(const LocationMessage& from) { @@ -13293,13 +13485,35 @@ bool LocationMessage::IsInitialized() const { void LocationMessage::InternalSwap(LocationMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &name_, lhs_arena, + &other->name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &address_, lhs_arena, + &other->address_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &comment_, lhs_arena, + &other->comment_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &jpegthumbnail_, lhs_arena, + &other->jpegthumbnail_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(LocationMessage, degreesclockwisefrommagneticnorth_) + sizeof(LocationMessage::degreesclockwisefrommagneticnorth_) @@ -13309,10 +13523,11 @@ void LocationMessage::InternalSwap(LocationMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata LocationMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[21]); } - // =================================================================== class ExtendedTextMessage::_Internal { @@ -13361,10 +13576,13 @@ const ::proto::ContextInfo& ExtendedTextMessage::_Internal::contextinfo(const ExtendedTextMessage* msg) { return *msg->contextinfo_; } -ExtendedTextMessage::ExtendedTextMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ExtendedTextMessage::ExtendedTextMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ExtendedTextMessage) } ExtendedTextMessage::ExtendedTextMessage(const ExtendedTextMessage& from) @@ -13374,32 +13592,32 @@ ExtendedTextMessage::ExtendedTextMessage(const ExtendedTextMessage& from) text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_text()) { text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_text(), - GetArena()); + GetArenaForAllocation()); } matchedtext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_matchedtext()) { matchedtext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_matchedtext(), - GetArena()); + GetArenaForAllocation()); } canonicalurl_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_canonicalurl()) { canonicalurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_canonicalurl(), - GetArena()); + GetArenaForAllocation()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArena()); + GetArenaForAllocation()); } title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArena()); + GetArenaForAllocation()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -13427,12 +13645,13 @@ jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStri ExtendedTextMessage::~ExtendedTextMessage() { // @@protoc_insertion_point(destructor:proto.ExtendedTextMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ExtendedTextMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ExtendedTextMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); text_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); matchedtext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); canonicalurl_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -13499,7 +13718,6 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME 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: @@ -13510,7 +13728,8 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExtendedTextMessage.text"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string matchedText = 2; case 2: @@ -13521,7 +13740,8 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExtendedTextMessage.matchedText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string canonicalUrl = 4; case 4: @@ -13532,7 +13752,8 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExtendedTextMessage.canonicalUrl"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string description = 5; case 5: @@ -13543,7 +13764,8 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExtendedTextMessage.description"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string title = 6; case 6: @@ -13554,7 +13776,8 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ExtendedTextMessage.title"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional fixed32 textArgb = 7; case 7: @@ -13562,7 +13785,8 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME _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; + } else + goto handle_unusual; continue; // optional fixed32 backgroundArgb = 8; case 8: @@ -13570,7 +13794,8 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME _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; + } else + goto handle_unusual; continue; // optional .proto.ExtendedTextMessage.ExtendedTextMessageFontType font = 9; case 9: @@ -13582,7 +13807,8 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.ExtendedTextMessage.ExtendedTextMessagePreviewType previewType = 10; case 10: @@ -13594,7 +13820,8 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: @@ -13602,14 +13829,16 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional bool doNotPlayInline = 18; case 18: @@ -13617,28 +13846,30 @@ const char* ExtendedTextMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME _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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -13842,34 +14073,25 @@ size_t ExtendedTextMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExtendedTextMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ExtendedTextMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExtendedTextMessage::GetClassData() const { return &_class_data_; } + +void ExtendedTextMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ExtendedTextMessage *>(to)->MergeFrom( + static_cast<const ExtendedTextMessage &>(from)); } + void ExtendedTextMessage::MergeFrom(const ExtendedTextMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ExtendedTextMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -13916,13 +14138,7 @@ void ExtendedTextMessage::MergeFrom(const ExtendedTextMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ExtendedTextMessage::CopyFrom(const ExtendedTextMessage& from) { @@ -13938,14 +14154,40 @@ bool ExtendedTextMessage::IsInitialized() const { void ExtendedTextMessage::InternalSwap(ExtendedTextMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &text_, lhs_arena, + &other->text_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &matchedtext_, lhs_arena, + &other->matchedtext_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &canonicalurl_, lhs_arena, + &other->canonicalurl_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &title_, lhs_arena, + &other->title_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &jpegthumbnail_, lhs_arena, + &other->jpegthumbnail_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ExtendedTextMessage, donotplayinline_) + sizeof(ExtendedTextMessage::donotplayinline_) @@ -13955,10 +14197,11 @@ void ExtendedTextMessage::InternalSwap(ExtendedTextMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ExtendedTextMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[22]); } - // =================================================================== class DocumentMessage::_Internal { @@ -14028,10 +14271,13 @@ const ::proto::ContextInfo& DocumentMessage::_Internal::contextinfo(const DocumentMessage* msg) { return *msg->contextinfo_; } -DocumentMessage::DocumentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +DocumentMessage::DocumentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.DocumentMessage) } DocumentMessage::DocumentMessage(const DocumentMessage& from) @@ -14041,62 +14287,62 @@ DocumentMessage::DocumentMessage(const DocumentMessage& from) url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArena()); + GetArenaForAllocation()); } mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mimetype()) { mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), - GetArena()); + GetArenaForAllocation()); } title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArena()); + GetArenaForAllocation()); } filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArena()); + GetArenaForAllocation()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArena()); + GetArenaForAllocation()); } filename_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filename()) { filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filename(), - GetArena()); + GetArenaForAllocation()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArena()); + GetArenaForAllocation()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArena()); + GetArenaForAllocation()); } thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnaildirectpath()) { thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnaildirectpath(), - GetArena()); + GetArenaForAllocation()); } thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailsha256()) { thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailsha256(), - GetArena()); + GetArenaForAllocation()); } thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailencsha256()) { thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailencsha256(), - GetArena()); + GetArenaForAllocation()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -14130,12 +14376,13 @@ jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStri DocumentMessage::~DocumentMessage() { // @@protoc_insertion_point(destructor:proto.DocumentMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void DocumentMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void DocumentMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); mimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -14232,7 +14479,6 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC 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: @@ -14243,7 +14489,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.url"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string mimetype = 2; case 2: @@ -14254,7 +14501,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.mimetype"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string title = 3; case 3: @@ -14265,7 +14513,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.title"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileSha256 = 4; case 4: @@ -14273,7 +14522,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 fileLength = 5; case 5: @@ -14281,7 +14531,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_filelength(&has_bits); filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 pageCount = 6; case 6: @@ -14289,7 +14540,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_pagecount(&has_bits); pagecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes mediaKey = 7; case 7: @@ -14297,7 +14549,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string fileName = 8; case 8: @@ -14308,7 +14561,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.fileName"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileEncSha256 = 9; case 9: @@ -14316,7 +14570,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string directPath = 10; case 10: @@ -14327,7 +14582,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.directPath"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 mediaKeyTimestamp = 11; case 11: @@ -14335,7 +14591,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_mediakeytimestamp(&has_bits); mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool contactVcard = 12; case 12: @@ -14343,7 +14600,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_contactvcard(&has_bits); contactvcard_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string thumbnailDirectPath = 13; case 13: @@ -14354,7 +14612,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DocumentMessage.thumbnailDirectPath"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes thumbnailSha256 = 14; case 14: @@ -14362,7 +14621,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC auto str = _internal_mutable_thumbnailsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes thumbnailEncSha256 = 15; case 15: @@ -14370,7 +14630,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC auto str = _internal_mutable_thumbnailencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: @@ -14378,14 +14639,16 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional uint32 thumbnailHeight = 18; case 18: @@ -14393,7 +14656,8 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_thumbnailheight(&has_bits); thumbnailheight_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 thumbnailWidth = 19; case 19: @@ -14401,28 +14665,30 @@ const char* DocumentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -14686,16 +14952,12 @@ size_t DocumentMessage::ByteSizeLong() const { // optional uint64 fileLength = 5; if (cached_has_bits & 0x00002000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_filelength()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional uint32 pageCount = 6; if (cached_has_bits & 0x00004000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_pagecount()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_pagecount()); } // optional bool contactVcard = 12; @@ -14707,9 +14969,7 @@ size_t DocumentMessage::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); } // optional uint32 thumbnailHeight = 18; @@ -14727,34 +14987,25 @@ size_t DocumentMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DocumentMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DocumentMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DocumentMessage::GetClassData() const { return &_class_data_; } + +void DocumentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<DocumentMessage *>(to)->MergeFrom( + static_cast<const DocumentMessage &>(from)); } + void DocumentMessage::MergeFrom(const DocumentMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.DocumentMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -14824,13 +15075,7 @@ void DocumentMessage::MergeFrom(const DocumentMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DocumentMessage::CopyFrom(const DocumentMessage& from) { @@ -14846,20 +15091,70 @@ bool DocumentMessage::IsInitialized() const { void DocumentMessage::InternalSwap(DocumentMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mimetype_, lhs_arena, + &other->mimetype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &title_, lhs_arena, + &other->title_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &filesha256_, lhs_arena, + &other->filesha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mediakey_, lhs_arena, + &other->mediakey_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &filename_, lhs_arena, + &other->filename_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fileencsha256_, lhs_arena, + &other->fileencsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &directpath_, lhs_arena, + &other->directpath_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnaildirectpath_, lhs_arena, + &other->thumbnaildirectpath_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnailsha256_, lhs_arena, + &other->thumbnailsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnailencsha256_, lhs_arena, + &other->thumbnailencsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &jpegthumbnail_, lhs_arena, + &other->jpegthumbnail_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(DocumentMessage, thumbnailwidth_) + sizeof(DocumentMessage::thumbnailwidth_) @@ -14869,10 +15164,11 @@ void DocumentMessage::InternalSwap(DocumentMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata DocumentMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[23]); } - // =================================================================== class AudioMessage::_Internal { @@ -14921,10 +15217,13 @@ const ::proto::ContextInfo& AudioMessage::_Internal::contextinfo(const AudioMessage* msg) { return *msg->contextinfo_; } -AudioMessage::AudioMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +AudioMessage::AudioMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.AudioMessage) } AudioMessage::AudioMessage(const AudioMessage& from) @@ -14934,37 +15233,37 @@ AudioMessage::AudioMessage(const AudioMessage& from) url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArena()); + GetArenaForAllocation()); } mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mimetype()) { mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), - GetArena()); + GetArenaForAllocation()); } filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArena()); + GetArenaForAllocation()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArena()); + GetArenaForAllocation()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArena()); + GetArenaForAllocation()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArena()); + GetArenaForAllocation()); } streamingsidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_streamingsidecar()) { streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_streamingsidecar(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -14993,12 +15292,13 @@ streamingsidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyS AudioMessage::~AudioMessage() { // @@protoc_insertion_point(destructor:proto.AudioMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void AudioMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void AudioMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); mimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); filesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -15068,7 +15368,6 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I 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: @@ -15079,7 +15378,8 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AudioMessage.url"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string mimetype = 2; case 2: @@ -15090,7 +15390,8 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AudioMessage.mimetype"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileSha256 = 3; case 3: @@ -15098,7 +15399,8 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 fileLength = 4; case 4: @@ -15106,7 +15408,8 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_filelength(&has_bits); filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 seconds = 5; case 5: @@ -15114,7 +15417,8 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_seconds(&has_bits); seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool ptt = 6; case 6: @@ -15122,7 +15426,8 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_ptt(&has_bits); ptt_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes mediaKey = 7; case 7: @@ -15130,7 +15435,8 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileEncSha256 = 8; case 8: @@ -15138,7 +15444,8 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string directPath = 9; case 9: @@ -15149,7 +15456,8 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.AudioMessage.directPath"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 mediaKeyTimestamp = 10; case 10: @@ -15157,14 +15465,16 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_mediakeytimestamp(&has_bits); mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional bytes streamingSidecar = 18; case 18: @@ -15172,28 +15482,30 @@ const char* AudioMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -15368,16 +15680,12 @@ size_t AudioMessage::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional uint32 seconds = 5; if (cached_has_bits & 0x00000200u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_seconds()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seconds()); } // optional bool ptt = 6; @@ -15387,40 +15695,29 @@ size_t AudioMessage::ByteSizeLong() const { // optional int64 mediaKeyTimestamp = 10; if (cached_has_bits & 0x00000800u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_mediakeytimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AudioMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AudioMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AudioMessage::GetClassData() const { return &_class_data_; } + +void AudioMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<AudioMessage *>(to)->MergeFrom( + static_cast<const AudioMessage &>(from)); } + void AudioMessage::MergeFrom(const AudioMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AudioMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -15466,13 +15763,7 @@ void AudioMessage::MergeFrom(const AudioMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AudioMessage::CopyFrom(const AudioMessage& from) { @@ -15488,15 +15779,45 @@ bool AudioMessage::IsInitialized() const { void AudioMessage::InternalSwap(AudioMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mimetype_, lhs_arena, + &other->mimetype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &filesha256_, lhs_arena, + &other->filesha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mediakey_, lhs_arena, + &other->mediakey_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fileencsha256_, lhs_arena, + &other->fileencsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &directpath_, lhs_arena, + &other->directpath_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &streamingsidecar_, lhs_arena, + &other->streamingsidecar_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(AudioMessage, mediakeytimestamp_) + sizeof(AudioMessage::mediakeytimestamp_) @@ -15506,10 +15827,11 @@ void AudioMessage::InternalSwap(AudioMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata AudioMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[24]); } - // =================================================================== class VideoMessage::_Internal { @@ -15585,11 +15907,14 @@ const ::proto::ContextInfo& VideoMessage::_Internal::contextinfo(const VideoMessage* msg) { return *msg->contextinfo_; } -VideoMessage::VideoMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +VideoMessage::VideoMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), interactiveannotations_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.VideoMessage) } VideoMessage::VideoMessage(const VideoMessage& from) @@ -15600,62 +15925,62 @@ VideoMessage::VideoMessage(const VideoMessage& from) url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArena()); + GetArenaForAllocation()); } mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mimetype()) { mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), - GetArena()); + GetArenaForAllocation()); } filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArena()); + GetArenaForAllocation()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArena()); + GetArenaForAllocation()); } caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_caption()) { caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), - GetArena()); + GetArenaForAllocation()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArena()); + GetArenaForAllocation()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArena()); + GetArenaForAllocation()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArena()); + GetArenaForAllocation()); } streamingsidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_streamingsidecar()) { streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_streamingsidecar(), - GetArena()); + GetArenaForAllocation()); } thumbnaildirectpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnaildirectpath()) { thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnaildirectpath(), - GetArena()); + GetArenaForAllocation()); } thumbnailsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailsha256()) { thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailsha256(), - GetArena()); + GetArenaForAllocation()); } thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnailencsha256()) { thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnailencsha256(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -15689,12 +16014,13 @@ thumbnailencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmpt VideoMessage::~VideoMessage() { // @@protoc_insertion_point(destructor:proto.VideoMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void VideoMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void VideoMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); mimetype_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); filesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -15792,7 +16118,6 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I 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: @@ -15803,7 +16128,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.VideoMessage.url"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string mimetype = 2; case 2: @@ -15814,7 +16140,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.VideoMessage.mimetype"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileSha256 = 3; case 3: @@ -15822,7 +16149,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 fileLength = 4; case 4: @@ -15830,7 +16158,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_filelength(&has_bits); filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 seconds = 5; case 5: @@ -15838,7 +16167,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_seconds(&has_bits); seconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes mediaKey = 6; case 6: @@ -15846,7 +16176,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string caption = 7; case 7: @@ -15857,7 +16188,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.VideoMessage.caption"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool gifPlayback = 8; case 8: @@ -15865,7 +16197,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_gifplayback(&has_bits); gifplayback_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 height = 9; case 9: @@ -15873,7 +16206,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_height(&has_bits); height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 width = 10; case 10: @@ -15881,7 +16215,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_width(&has_bits); width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileEncSha256 = 11; case 11: @@ -15889,7 +16224,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .proto.InteractiveAnnotation interactiveAnnotations = 12; case 12: @@ -15901,7 +16237,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<98>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string directPath = 13; case 13: @@ -15912,7 +16249,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.VideoMessage.directPath"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 mediaKeyTimestamp = 14; case 14: @@ -15920,7 +16258,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_mediakeytimestamp(&has_bits); mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: @@ -15928,14 +16267,16 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional bytes streamingSidecar = 18; case 18: @@ -15943,7 +16284,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_streamingsidecar(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.VideoMessage.VideoMessageAttribution gifAttribution = 19; case 19: @@ -15955,7 +16297,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(19, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool viewOnce = 20; case 20: @@ -15963,7 +16306,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_viewonce(&has_bits); viewonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string thumbnailDirectPath = 21; case 21: @@ -15974,7 +16318,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.VideoMessage.thumbnailDirectPath"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes thumbnailSha256 = 22; case 22: @@ -15982,7 +16327,8 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_thumbnailsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes thumbnailEncSha256 = 23; case 23: @@ -15990,28 +16336,30 @@ const char* VideoMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -16299,32 +16647,24 @@ size_t VideoMessage::ByteSizeLong() const { // optional uint64 fileLength = 4; if (cached_has_bits & 0x00002000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_filelength()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional uint32 seconds = 5; if (cached_has_bits & 0x00004000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_seconds()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_seconds()); } // optional uint32 height = 9; if (cached_has_bits & 0x00008000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_height()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width()); } // optional bool gifPlayback = 8; @@ -16339,9 +16679,7 @@ size_t VideoMessage::ByteSizeLong() const { // optional int64 mediaKeyTimestamp = 14; if (cached_has_bits & 0x00080000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_mediakeytimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); } // optional .proto.VideoMessage.VideoMessageAttribution gifAttribution = 19; @@ -16351,34 +16689,25 @@ size_t VideoMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData VideoMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + VideoMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*VideoMessage::GetClassData() const { return &_class_data_; } + +void VideoMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<VideoMessage *>(to)->MergeFrom( + static_cast<const VideoMessage &>(from)); } + void VideoMessage::MergeFrom(const VideoMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.VideoMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -16455,13 +16784,7 @@ void VideoMessage::MergeFrom(const VideoMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void VideoMessage::CopyFrom(const VideoMessage& from) { @@ -16477,21 +16800,71 @@ bool VideoMessage::IsInitialized() const { void VideoMessage::InternalSwap(VideoMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); interactiveannotations_.InternalSwap(&other->interactiveannotations_); - 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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mimetype_, lhs_arena, + &other->mimetype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &filesha256_, lhs_arena, + &other->filesha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mediakey_, lhs_arena, + &other->mediakey_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &caption_, lhs_arena, + &other->caption_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fileencsha256_, lhs_arena, + &other->fileencsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &directpath_, lhs_arena, + &other->directpath_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &jpegthumbnail_, lhs_arena, + &other->jpegthumbnail_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &streamingsidecar_, lhs_arena, + &other->streamingsidecar_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnaildirectpath_, lhs_arena, + &other->thumbnaildirectpath_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnailsha256_, lhs_arena, + &other->thumbnailsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnailencsha256_, lhs_arena, + &other->thumbnailencsha256_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(VideoMessage, gifattribution_) + sizeof(VideoMessage::gifattribution_) @@ -16501,10 +16874,11 @@ void VideoMessage::InternalSwap(VideoMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata VideoMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[25]); } - // =================================================================== class Call::_Internal { @@ -16515,10 +16889,13 @@ class Call::_Internal { } }; -Call::Call(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Call::Call(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.Call) } Call::Call(const Call& from) @@ -16528,7 +16905,7 @@ Call::Call(const Call& from) callkey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_callkey()) { callkey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_callkey(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.Call) } @@ -16539,12 +16916,13 @@ callkey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlre Call::~Call() { // @@protoc_insertion_point(destructor:proto.Call) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Call::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void Call::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); callkey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -16578,7 +16956,6 @@ const char* Call::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter 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: @@ -16586,28 +16963,30 @@ const char* Call::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -16648,47 +17027,32 @@ size_t Call::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Call::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Call::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Call::GetClassData() const { return &_class_data_; } + +void Call::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<Call *>(to)->MergeFrom( + static_cast<const Call &>(from)); } + void Call::MergeFrom(const Call& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Call) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Call::CopyFrom(const Call& from) { @@ -16704,16 +17068,23 @@ bool Call::IsInitialized() const { void Call::InternalSwap(Call* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); - callkey_.Swap(&other->callkey_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &callkey_, lhs_arena, + &other->callkey_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata Call::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[26]); } - // =================================================================== class Chat::_Internal { @@ -16727,10 +17098,13 @@ class Chat::_Internal { } }; -Chat::Chat(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Chat::Chat(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.Chat) } Chat::Chat(const Chat& from) @@ -16740,12 +17114,12 @@ Chat::Chat(const Chat& from) displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displayname()) { displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displayname(), - GetArena()); + GetArenaForAllocation()); } id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_id()) { id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.Chat) } @@ -16757,12 +17131,13 @@ id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyIn Chat::~Chat() { // @@protoc_insertion_point(destructor:proto.Chat) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Chat::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void Chat::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); displayname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -16802,7 +17177,6 @@ const char* Chat::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter 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: @@ -16813,7 +17187,8 @@ const char* Chat::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Chat.displayName"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string id = 2; case 2: @@ -16824,28 +17199,30 @@ const char* Chat::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::inter ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -16909,34 +17286,25 @@ size_t Chat::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Chat::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Chat::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Chat::GetClassData() const { return &_class_data_; } + +void Chat::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<Chat *>(to)->MergeFrom( + static_cast<const Chat &>(from)); } + void Chat::MergeFrom(const Chat& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Chat) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -16949,13 +17317,7 @@ void Chat::MergeFrom(const Chat& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Chat::CopyFrom(const Chat& from) { @@ -16971,17 +17333,28 @@ bool Chat::IsInitialized() const { void Chat::InternalSwap(Chat* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &displayname_, lhs_arena, + &other->displayname_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &id_, lhs_arena, + &other->id_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata Chat::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[27]); } - // =================================================================== class ProtocolMessage::_Internal { @@ -17046,10 +17419,13 @@ const ::proto::AppStateFatalExceptionNotification& ProtocolMessage::_Internal::appstatefatalexceptionnotification(const ProtocolMessage* msg) { return *msg->appstatefatalexceptionnotification_; } -ProtocolMessage::ProtocolMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ProtocolMessage::ProtocolMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ProtocolMessage) } ProtocolMessage::ProtocolMessage(const ProtocolMessage& from) @@ -17101,12 +17477,13 @@ void ProtocolMessage::SharedCtor() { ProtocolMessage::~ProtocolMessage() { // @@protoc_insertion_point(destructor:proto.ProtocolMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ProtocolMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ProtocolMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete key_; if (this != internal_default_instance()) delete historysyncnotification_; if (this != internal_default_instance()) delete appstatesynckeyshare_; @@ -17163,7 +17540,7 @@ void ProtocolMessage::Clear() { reinterpret_cast<char*>(&ephemeralexpiration_) - reinterpret_cast<char*>(&type_)) + sizeof(ephemeralexpiration_)); } - ephemeralsettingtimestamp_ = PROTOBUF_LONGLONG(0); + ephemeralsettingtimestamp_ = int64_t{0}; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -17174,14 +17551,14 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC 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; + } else + goto handle_unusual; continue; // optional .proto.ProtocolMessage.ProtocolMessageType type = 2; case 2: @@ -17193,7 +17570,8 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 ephemeralExpiration = 4; case 4: @@ -17201,7 +17579,8 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_ephemeralexpiration(&has_bits); ephemeralexpiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 ephemeralSettingTimestamp = 5; case 5: @@ -17209,63 +17588,70 @@ const char* ProtocolMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_ephemeralsettingtimestamp(&has_bits); ephemeralsettingtimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; + } 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; + } 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; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -17411,47 +17797,34 @@ size_t ProtocolMessage::ByteSizeLong() const { // optional uint32 ephemeralExpiration = 4; if (cached_has_bits & 0x00000080u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_ephemeralexpiration()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_ephemeralexpiration()); } } // optional int64 ephemeralSettingTimestamp = 5; if (cached_has_bits & 0x00000100u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_ephemeralsettingtimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProtocolMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ProtocolMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProtocolMessage::GetClassData() const { return &_class_data_; } + +void ProtocolMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ProtocolMessage *>(to)->MergeFrom( + static_cast<const ProtocolMessage &>(from)); } + void ProtocolMessage::MergeFrom(const ProtocolMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ProtocolMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -17486,13 +17859,7 @@ void ProtocolMessage::MergeFrom(const ProtocolMessage& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ProtocolMessage::CopyFrom(const ProtocolMessage& from) { @@ -17508,7 +17875,7 @@ bool ProtocolMessage::IsInitialized() const { void ProtocolMessage::InternalSwap(ProtocolMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ProtocolMessage, ephemeralsettingtimestamp_) @@ -17519,10 +17886,11 @@ void ProtocolMessage::InternalSwap(ProtocolMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ProtocolMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[28]); } - // =================================================================== class HistorySyncNotification::_Internal { @@ -17554,10 +17922,13 @@ class HistorySyncNotification::_Internal { } }; -HistorySyncNotification::HistorySyncNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HistorySyncNotification::HistorySyncNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HistorySyncNotification) } HistorySyncNotification::HistorySyncNotification(const HistorySyncNotification& from) @@ -17567,27 +17938,27 @@ HistorySyncNotification::HistorySyncNotification(const HistorySyncNotification& filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArena()); + GetArenaForAllocation()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArena()); + GetArenaForAllocation()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArena()); + GetArenaForAllocation()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArena()); + GetArenaForAllocation()); } originalmessageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_originalmessageid()) { originalmessageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_originalmessageid(), - GetArena()); + GetArenaForAllocation()); } ::memcpy(&filelength_, &from.filelength_, static_cast<size_t>(reinterpret_cast<char*>(&chunkorder_) - @@ -17609,12 +17980,13 @@ originalmessageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmpty HistorySyncNotification::~HistorySyncNotification() { // @@protoc_insertion_point(destructor:proto.HistorySyncNotification) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HistorySyncNotification::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HistorySyncNotification::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); filesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); mediakey_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fileencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -17671,7 +18043,6 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ 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: @@ -17679,7 +18050,8 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 fileLength = 2; case 2: @@ -17687,7 +18059,8 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ _Internal::set_has_filelength(&has_bits); filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes mediaKey = 3; case 3: @@ -17695,7 +18068,8 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileEncSha256 = 4; case 4: @@ -17703,7 +18077,8 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string directPath = 5; case 5: @@ -17714,7 +18089,8 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HistorySyncNotification.directPath"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType syncType = 6; case 6: @@ -17726,7 +18102,8 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 chunkOrder = 7; case 7: @@ -17734,7 +18111,8 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ _Internal::set_has_chunkorder(&has_bits); chunkorder_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string originalMessageId = 8; case 8: @@ -17745,28 +18123,30 @@ const char* HistorySyncNotification::_InternalParse(const char* ptr, ::PROTOBUF_ ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -17889,9 +18269,7 @@ size_t HistorySyncNotification::ByteSizeLong() const { // optional uint64 fileLength = 2; if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_filelength()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional .proto.HistorySyncNotification.HistorySyncNotificationHistorySyncType syncType = 6; @@ -17902,40 +18280,29 @@ size_t HistorySyncNotification::ByteSizeLong() const { // optional uint32 chunkOrder = 7; if (cached_has_bits & 0x00000080u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_chunkorder()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HistorySyncNotification::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HistorySyncNotification::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HistorySyncNotification::GetClassData() const { return &_class_data_; } + +void HistorySyncNotification::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HistorySyncNotification *>(to)->MergeFrom( + static_cast<const HistorySyncNotification &>(from)); } + void HistorySyncNotification::MergeFrom(const HistorySyncNotification& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HistorySyncNotification) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -17967,13 +18334,7 @@ void HistorySyncNotification::MergeFrom(const HistorySyncNotification& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HistorySyncNotification::CopyFrom(const HistorySyncNotification& from) { @@ -17989,13 +18350,35 @@ bool HistorySyncNotification::IsInitialized() const { void HistorySyncNotification::InternalSwap(HistorySyncNotification* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &filesha256_, lhs_arena, + &other->filesha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mediakey_, lhs_arena, + &other->mediakey_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fileencsha256_, lhs_arena, + &other->fileencsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &directpath_, lhs_arena, + &other->directpath_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &originalmessageid_, lhs_arena, + &other->originalmessageid_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(HistorySyncNotification, chunkorder_) + sizeof(HistorySyncNotification::chunkorder_) @@ -18005,10 +18388,11 @@ void HistorySyncNotification::InternalSwap(HistorySyncNotification* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata HistorySyncNotification::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[29]); } - // =================================================================== class AppStateSyncKey::_Internal { @@ -18032,10 +18416,13 @@ const ::proto::AppStateSyncKeyData& AppStateSyncKey::_Internal::keydata(const AppStateSyncKey* msg) { return *msg->keydata_; } -AppStateSyncKey::AppStateSyncKey(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +AppStateSyncKey::AppStateSyncKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKey) } AppStateSyncKey::AppStateSyncKey(const AppStateSyncKey& from) @@ -18064,12 +18451,13 @@ void AppStateSyncKey::SharedCtor() { AppStateSyncKey::~AppStateSyncKey() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKey) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void AppStateSyncKey::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void AppStateSyncKey::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete keyid_; if (this != internal_default_instance()) delete keydata_; } @@ -18111,42 +18499,44 @@ const char* AppStateSyncKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC 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; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -18206,34 +18596,25 @@ size_t AppStateSyncKey::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKey::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AppStateSyncKey::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKey::GetClassData() const { return &_class_data_; } + +void AppStateSyncKey::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<AppStateSyncKey *>(to)->MergeFrom( + static_cast<const AppStateSyncKey &>(from)); } + void AppStateSyncKey::MergeFrom(const AppStateSyncKey& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKey) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -18246,13 +18627,7 @@ void AppStateSyncKey::MergeFrom(const AppStateSyncKey& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKey::CopyFrom(const AppStateSyncKey& from) { @@ -18268,7 +18643,7 @@ bool AppStateSyncKey::IsInitialized() const { void AppStateSyncKey::InternalSwap(AppStateSyncKey* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(AppStateSyncKey, keydata_) @@ -18279,10 +18654,11 @@ void AppStateSyncKey::InternalSwap(AppStateSyncKey* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKey::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[30]); } - // =================================================================== class AppStateSyncKeyId::_Internal { @@ -18293,10 +18669,13 @@ class AppStateSyncKeyId::_Internal { } }; -AppStateSyncKeyId::AppStateSyncKeyId(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +AppStateSyncKeyId::AppStateSyncKeyId(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyId) } AppStateSyncKeyId::AppStateSyncKeyId(const AppStateSyncKeyId& from) @@ -18306,7 +18685,7 @@ AppStateSyncKeyId::AppStateSyncKeyId(const AppStateSyncKeyId& from) keyid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_keyid()) { keyid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_keyid(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.AppStateSyncKeyId) } @@ -18317,12 +18696,13 @@ keyid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlread AppStateSyncKeyId::~AppStateSyncKeyId() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyId) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void AppStateSyncKeyId::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void AppStateSyncKeyId::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); keyid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -18356,7 +18736,6 @@ const char* AppStateSyncKeyId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP 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: @@ -18364,28 +18743,30 @@ const char* AppStateSyncKeyId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -18426,47 +18807,32 @@ size_t AppStateSyncKeyId::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKeyId::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AppStateSyncKeyId::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKeyId::GetClassData() const { return &_class_data_; } + +void AppStateSyncKeyId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<AppStateSyncKeyId *>(to)->MergeFrom( + static_cast<const AppStateSyncKeyId &>(from)); } + void AppStateSyncKeyId::MergeFrom(const AppStateSyncKeyId& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyId) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKeyId::CopyFrom(const AppStateSyncKeyId& from) { @@ -18482,16 +18848,23 @@ bool AppStateSyncKeyId::IsInitialized() const { void AppStateSyncKeyId::InternalSwap(AppStateSyncKeyId* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); - keyid_.Swap(&other->keyid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &keyid_, lhs_arena, + &other->keyid_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyId::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[31]); } - // =================================================================== class AppStateSyncKeyFingerprint::_Internal { @@ -18505,11 +18878,14 @@ class AppStateSyncKeyFingerprint::_Internal { } }; -AppStateSyncKeyFingerprint::AppStateSyncKeyFingerprint(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +AppStateSyncKeyFingerprint::AppStateSyncKeyFingerprint(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), deviceindexes_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyFingerprint) } AppStateSyncKeyFingerprint::AppStateSyncKeyFingerprint(const AppStateSyncKeyFingerprint& from) @@ -18532,12 +18908,13 @@ void AppStateSyncKeyFingerprint::SharedCtor() { AppStateSyncKeyFingerprint::~AppStateSyncKeyFingerprint() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyFingerprint) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void AppStateSyncKeyFingerprint::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void AppStateSyncKeyFingerprint::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void AppStateSyncKeyFingerprint::ArenaDtor(void* object) { @@ -18573,7 +18950,6 @@ const char* AppStateSyncKeyFingerprint::_InternalParse(const char* ptr, ::PROTOB 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: @@ -18581,7 +18957,8 @@ const char* AppStateSyncKeyFingerprint::_InternalParse(const char* ptr, ::PROTOB _Internal::set_has_rawid(&has_bits); rawid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 currentIndex = 2; case 2: @@ -18589,7 +18966,8 @@ const char* AppStateSyncKeyFingerprint::_InternalParse(const char* ptr, ::PROTOB _Internal::set_has_currentindex(&has_bits); currentindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated uint32 deviceIndexes = 3 [packed = true]; case 3: @@ -18599,28 +18977,30 @@ const char* AppStateSyncKeyFingerprint::_InternalParse(const char* ptr, ::PROTOB } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -18687,47 +19067,34 @@ size_t AppStateSyncKeyFingerprint::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_rawid()); } // optional uint32 currentIndex = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_currentindex()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKeyFingerprint::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AppStateSyncKeyFingerprint::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKeyFingerprint::GetClassData() const { return &_class_data_; } + +void AppStateSyncKeyFingerprint::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<AppStateSyncKeyFingerprint *>(to)->MergeFrom( + static_cast<const AppStateSyncKeyFingerprint &>(from)); } + void AppStateSyncKeyFingerprint::MergeFrom(const AppStateSyncKeyFingerprint& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyFingerprint) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -18742,13 +19109,7 @@ void AppStateSyncKeyFingerprint::MergeFrom(const AppStateSyncKeyFingerprint& fro } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKeyFingerprint::CopyFrom(const AppStateSyncKeyFingerprint& from) { @@ -18764,7 +19125,7 @@ bool AppStateSyncKeyFingerprint::IsInitialized() const { void AppStateSyncKeyFingerprint::InternalSwap(AppStateSyncKeyFingerprint* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); deviceindexes_.InternalSwap(&other->deviceindexes_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< @@ -18776,10 +19137,11 @@ void AppStateSyncKeyFingerprint::InternalSwap(AppStateSyncKeyFingerprint* other) } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyFingerprint::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[32]); } - // =================================================================== class AppStateSyncKeyData::_Internal { @@ -18801,10 +19163,13 @@ const ::proto::AppStateSyncKeyFingerprint& AppStateSyncKeyData::_Internal::fingerprint(const AppStateSyncKeyData* msg) { return *msg->fingerprint_; } -AppStateSyncKeyData::AppStateSyncKeyData(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +AppStateSyncKeyData::AppStateSyncKeyData(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyData) } AppStateSyncKeyData::AppStateSyncKeyData(const AppStateSyncKeyData& from) @@ -18814,7 +19179,7 @@ AppStateSyncKeyData::AppStateSyncKeyData(const AppStateSyncKeyData& from) keydata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_keydata()) { keydata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_keydata(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_fingerprint()) { fingerprint_ = new ::proto::AppStateSyncKeyFingerprint(*from.fingerprint_); @@ -18835,12 +19200,13 @@ keydata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlre AppStateSyncKeyData::~AppStateSyncKeyData() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyData) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void AppStateSyncKeyData::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void AppStateSyncKeyData::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); keydata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete fingerprint_; } @@ -18871,7 +19237,7 @@ void AppStateSyncKeyData::Clear() { fingerprint_->Clear(); } } - timestamp_ = PROTOBUF_LONGLONG(0); + timestamp_ = int64_t{0}; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -18882,7 +19248,6 @@ const char* AppStateSyncKeyData::_InternalParse(const char* ptr, ::PROTOBUF_NAME 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: @@ -18890,14 +19255,16 @@ const char* AppStateSyncKeyData::_InternalParse(const char* ptr, ::PROTOBUF_NAME auto str = _internal_mutable_keydata(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional int64 timestamp = 3; case 3: @@ -18905,28 +19272,30 @@ const char* AppStateSyncKeyData::_InternalParse(const char* ptr, ::PROTOBUF_NAME _Internal::set_has_timestamp(&has_bits); timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -18991,40 +19360,29 @@ size_t AppStateSyncKeyData::ByteSizeLong() const { // optional int64 timestamp = 3; if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_timestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKeyData::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AppStateSyncKeyData::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKeyData::GetClassData() const { return &_class_data_; } + +void AppStateSyncKeyData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<AppStateSyncKeyData *>(to)->MergeFrom( + static_cast<const AppStateSyncKeyData &>(from)); } + void AppStateSyncKeyData::MergeFrom(const AppStateSyncKeyData& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyData) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -19041,13 +19399,7 @@ void AppStateSyncKeyData::MergeFrom(const AppStateSyncKeyData& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKeyData::CopyFrom(const AppStateSyncKeyData& from) { @@ -19063,9 +19415,15 @@ bool AppStateSyncKeyData::IsInitialized() const { void AppStateSyncKeyData::InternalSwap(AppStateSyncKeyData* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &keydata_, lhs_arena, + &other->keydata_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(AppStateSyncKeyData, timestamp_) + sizeof(AppStateSyncKeyData::timestamp_) @@ -19075,21 +19433,25 @@ void AppStateSyncKeyData::InternalSwap(AppStateSyncKeyData* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyData::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[33]); } - // =================================================================== class AppStateSyncKeyShare::_Internal { public: }; -AppStateSyncKeyShare::AppStateSyncKeyShare(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +AppStateSyncKeyShare::AppStateSyncKeyShare(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), keys_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyShare) } AppStateSyncKeyShare::AppStateSyncKeyShare(const AppStateSyncKeyShare& from) @@ -19104,12 +19466,13 @@ void AppStateSyncKeyShare::SharedCtor() { AppStateSyncKeyShare::~AppStateSyncKeyShare() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyShare) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void AppStateSyncKeyShare::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void AppStateSyncKeyShare::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void AppStateSyncKeyShare::ArenaDtor(void* object) { @@ -19137,7 +19500,6 @@ const char* AppStateSyncKeyShare::_InternalParse(const char* ptr, ::PROTOBUF_NAM 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: @@ -19149,27 +19511,29 @@ const char* AppStateSyncKeyShare::_InternalParse(const char* ptr, ::PROTOBUF_NAM 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -19210,45 +19574,30 @@ size_t AppStateSyncKeyShare::ByteSizeLong() const { ::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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKeyShare::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AppStateSyncKeyShare::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKeyShare::GetClassData() const { return &_class_data_; } + +void AppStateSyncKeyShare::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<AppStateSyncKeyShare *>(to)->MergeFrom( + static_cast<const AppStateSyncKeyShare &>(from)); } + void AppStateSyncKeyShare::MergeFrom(const AppStateSyncKeyShare& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyShare) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKeyShare::CopyFrom(const AppStateSyncKeyShare& from) { @@ -19264,26 +19613,30 @@ bool AppStateSyncKeyShare::IsInitialized() const { void AppStateSyncKeyShare::InternalSwap(AppStateSyncKeyShare* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); keys_.InternalSwap(&other->keys_); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyShare::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[34]); } - // =================================================================== class AppStateSyncKeyRequest::_Internal { public: }; -AppStateSyncKeyRequest::AppStateSyncKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +AppStateSyncKeyRequest::AppStateSyncKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), keyids_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.AppStateSyncKeyRequest) } AppStateSyncKeyRequest::AppStateSyncKeyRequest(const AppStateSyncKeyRequest& from) @@ -19298,12 +19651,13 @@ void AppStateSyncKeyRequest::SharedCtor() { AppStateSyncKeyRequest::~AppStateSyncKeyRequest() { // @@protoc_insertion_point(destructor:proto.AppStateSyncKeyRequest) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void AppStateSyncKeyRequest::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void AppStateSyncKeyRequest::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void AppStateSyncKeyRequest::ArenaDtor(void* object) { @@ -19331,7 +19685,6 @@ const char* AppStateSyncKeyRequest::_InternalParse(const char* ptr, ::PROTOBUF_N 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: @@ -19343,27 +19696,29 @@ const char* AppStateSyncKeyRequest::_InternalParse(const char* ptr, ::PROTOBUF_N 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -19404,45 +19759,30 @@ size_t AppStateSyncKeyRequest::ByteSizeLong() const { ::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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateSyncKeyRequest::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AppStateSyncKeyRequest::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateSyncKeyRequest::GetClassData() const { return &_class_data_; } + +void AppStateSyncKeyRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<AppStateSyncKeyRequest *>(to)->MergeFrom( + static_cast<const AppStateSyncKeyRequest &>(from)); } + void AppStateSyncKeyRequest::MergeFrom(const AppStateSyncKeyRequest& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateSyncKeyRequest) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateSyncKeyRequest::CopyFrom(const AppStateSyncKeyRequest& from) { @@ -19458,15 +19798,16 @@ bool AppStateSyncKeyRequest::IsInitialized() const { void AppStateSyncKeyRequest::InternalSwap(AppStateSyncKeyRequest* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); keyids_.InternalSwap(&other->keyids_); } ::PROTOBUF_NAMESPACE_ID::Metadata AppStateSyncKeyRequest::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[35]); } - // =================================================================== class AppStateFatalExceptionNotification::_Internal { @@ -19477,11 +19818,14 @@ class AppStateFatalExceptionNotification::_Internal { } }; -AppStateFatalExceptionNotification::AppStateFatalExceptionNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +AppStateFatalExceptionNotification::AppStateFatalExceptionNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), collectionnames_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.AppStateFatalExceptionNotification) } AppStateFatalExceptionNotification::AppStateFatalExceptionNotification(const AppStateFatalExceptionNotification& from) @@ -19494,17 +19838,18 @@ AppStateFatalExceptionNotification::AppStateFatalExceptionNotification(const App } void AppStateFatalExceptionNotification::SharedCtor() { -timestamp_ = PROTOBUF_LONGLONG(0); +timestamp_ = int64_t{0}; } AppStateFatalExceptionNotification::~AppStateFatalExceptionNotification() { // @@protoc_insertion_point(destructor:proto.AppStateFatalExceptionNotification) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void AppStateFatalExceptionNotification::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void AppStateFatalExceptionNotification::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void AppStateFatalExceptionNotification::ArenaDtor(void* object) { @@ -19524,7 +19869,7 @@ void AppStateFatalExceptionNotification::Clear() { (void) cached_has_bits; collectionnames_.Clear(); - timestamp_ = PROTOBUF_LONGLONG(0); + timestamp_ = int64_t{0}; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -19535,7 +19880,6 @@ const char* AppStateFatalExceptionNotification::_InternalParse(const char* ptr, 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: @@ -19551,7 +19895,8 @@ const char* AppStateFatalExceptionNotification::_InternalParse(const char* ptr, CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 timestamp = 2; case 2: @@ -19559,28 +19904,30 @@ const char* AppStateFatalExceptionNotification::_InternalParse(const char* ptr, _Internal::set_has_timestamp(&has_bits); timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -19634,39 +19981,28 @@ size_t AppStateFatalExceptionNotification::ByteSizeLong() const { // 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AppStateFatalExceptionNotification::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AppStateFatalExceptionNotification::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AppStateFatalExceptionNotification::GetClassData() const { return &_class_data_; } + +void AppStateFatalExceptionNotification::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<AppStateFatalExceptionNotification *>(to)->MergeFrom( + static_cast<const AppStateFatalExceptionNotification &>(from)); } + void AppStateFatalExceptionNotification::MergeFrom(const AppStateFatalExceptionNotification& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.AppStateFatalExceptionNotification) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -19674,13 +20010,7 @@ void AppStateFatalExceptionNotification::MergeFrom(const AppStateFatalExceptionN 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void AppStateFatalExceptionNotification::CopyFrom(const AppStateFatalExceptionNotification& from) { @@ -19696,17 +20026,18 @@ bool AppStateFatalExceptionNotification::IsInitialized() const { void AppStateFatalExceptionNotification::InternalSwap(AppStateFatalExceptionNotification* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&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(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[36]); } - // =================================================================== class InitialSecurityNotificationSettingSync::_Internal { @@ -19717,10 +20048,13 @@ class InitialSecurityNotificationSettingSync::_Internal { } }; -InitialSecurityNotificationSettingSync::InitialSecurityNotificationSettingSync(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +InitialSecurityNotificationSettingSync::InitialSecurityNotificationSettingSync(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.InitialSecurityNotificationSettingSync) } InitialSecurityNotificationSettingSync::InitialSecurityNotificationSettingSync(const InitialSecurityNotificationSettingSync& from) @@ -19737,12 +20071,13 @@ securitynotificationenabled_ = false; InitialSecurityNotificationSettingSync::~InitialSecurityNotificationSettingSync() { // @@protoc_insertion_point(destructor:proto.InitialSecurityNotificationSettingSync) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void InitialSecurityNotificationSettingSync::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void InitialSecurityNotificationSettingSync::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void InitialSecurityNotificationSettingSync::ArenaDtor(void* object) { @@ -19772,7 +20107,6 @@ const char* InitialSecurityNotificationSettingSync::_InternalParse(const char* p 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: @@ -19780,28 +20114,30 @@ const char* InitialSecurityNotificationSettingSync::_InternalParse(const char* p _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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -19840,47 +20176,32 @@ size_t InitialSecurityNotificationSettingSync::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData InitialSecurityNotificationSettingSync::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + InitialSecurityNotificationSettingSync::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*InitialSecurityNotificationSettingSync::GetClassData() const { return &_class_data_; } + +void InitialSecurityNotificationSettingSync::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<InitialSecurityNotificationSettingSync *>(to)->MergeFrom( + static_cast<const InitialSecurityNotificationSettingSync &>(from)); } + void InitialSecurityNotificationSettingSync::MergeFrom(const InitialSecurityNotificationSettingSync& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.InitialSecurityNotificationSettingSync) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void InitialSecurityNotificationSettingSync::CopyFrom(const InitialSecurityNotificationSettingSync& from) { @@ -19896,16 +20217,17 @@ bool InitialSecurityNotificationSettingSync::IsInitialized() const { void InitialSecurityNotificationSettingSync::InternalSwap(InitialSecurityNotificationSettingSync* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(securitynotificationenabled_, other->securitynotificationenabled_); } ::PROTOBUF_NAMESPACE_ID::Metadata InitialSecurityNotificationSettingSync::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[37]); } - // =================================================================== class ContactsArrayMessage::_Internal { @@ -19924,11 +20246,14 @@ const ::proto::ContextInfo& ContactsArrayMessage::_Internal::contextinfo(const ContactsArrayMessage* msg) { return *msg->contextinfo_; } -ContactsArrayMessage::ContactsArrayMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +ContactsArrayMessage::ContactsArrayMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), contacts_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ContactsArrayMessage) } ContactsArrayMessage::ContactsArrayMessage(const ContactsArrayMessage& from) @@ -19939,7 +20264,7 @@ ContactsArrayMessage::ContactsArrayMessage(const ContactsArrayMessage& from) displayname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displayname()) { displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displayname(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -19956,12 +20281,13 @@ contextinfo_ = nullptr; ContactsArrayMessage::~ContactsArrayMessage() { // @@protoc_insertion_point(destructor:proto.ContactsArrayMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ContactsArrayMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ContactsArrayMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); displayname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete contextinfo_; } @@ -20003,7 +20329,6 @@ const char* ContactsArrayMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAM 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: @@ -20014,7 +20339,8 @@ const char* ContactsArrayMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAM ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ContactsArrayMessage.displayName"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .proto.ContactMessage contacts = 2; case 2: @@ -20026,35 +20352,38 @@ const char* ContactsArrayMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAM CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); - } else goto handle_unusual; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -20131,34 +20460,25 @@ size_t ContactsArrayMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ContactsArrayMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ContactsArrayMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ContactsArrayMessage::GetClassData() const { return &_class_data_; } + +void ContactsArrayMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ContactsArrayMessage *>(to)->MergeFrom( + static_cast<const ContactsArrayMessage &>(from)); } + void ContactsArrayMessage::MergeFrom(const ContactsArrayMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ContactsArrayMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -20172,13 +20492,7 @@ void ContactsArrayMessage::MergeFrom(const ContactsArrayMessage& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ContactsArrayMessage::CopyFrom(const ContactsArrayMessage& from) { @@ -20194,18 +20508,25 @@ bool ContactsArrayMessage::IsInitialized() const { void ContactsArrayMessage::InternalSwap(ContactsArrayMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); contacts_.InternalSwap(&other->contacts_); - displayname_.Swap(&other->displayname_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &displayname_, lhs_arena, + &other->displayname_, rhs_arena + ); swap(contextinfo_, other->contextinfo_); } ::PROTOBUF_NAMESPACE_ID::Metadata ContactsArrayMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[38]); } - // =================================================================== class HSMCurrency::_Internal { @@ -20219,10 +20540,13 @@ class HSMCurrency::_Internal { } }; -HSMCurrency::HSMCurrency(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HSMCurrency::HSMCurrency(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HSMCurrency) } HSMCurrency::HSMCurrency(const HSMCurrency& from) @@ -20232,7 +20556,7 @@ HSMCurrency::HSMCurrency(const HSMCurrency& from) currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_currencycode()) { currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycode(), - GetArena()); + GetArenaForAllocation()); } amount1000_ = from.amount1000_; // @@protoc_insertion_point(copy_constructor:proto.HSMCurrency) @@ -20240,17 +20564,18 @@ HSMCurrency::HSMCurrency(const HSMCurrency& from) void HSMCurrency::SharedCtor() { currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -amount1000_ = PROTOBUF_LONGLONG(0); +amount1000_ = int64_t{0}; } HSMCurrency::~HSMCurrency() { // @@protoc_insertion_point(destructor:proto.HSMCurrency) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HSMCurrency::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HSMCurrency::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); currencycode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -20274,7 +20599,7 @@ void HSMCurrency::Clear() { if (cached_has_bits & 0x00000001u) { currencycode_.ClearNonDefaultToEmpty(); } - amount1000_ = PROTOBUF_LONGLONG(0); + amount1000_ = int64_t{0}; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -20285,7 +20610,6 @@ const char* HSMCurrency::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID 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: @@ -20296,7 +20620,8 @@ const char* HSMCurrency::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HSMCurrency.currencyCode"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 amount1000 = 2; case 2: @@ -20304,28 +20629,30 @@ const char* HSMCurrency::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -20379,40 +20706,29 @@ size_t HSMCurrency::ByteSizeLong() const { // optional int64 amount1000 = 2; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_amount1000()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HSMCurrency::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HSMCurrency::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HSMCurrency::GetClassData() const { return &_class_data_; } + +void HSMCurrency::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HSMCurrency *>(to)->MergeFrom( + static_cast<const HSMCurrency &>(from)); } + void HSMCurrency::MergeFrom(const HSMCurrency& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMCurrency) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -20426,13 +20742,7 @@ void HSMCurrency::MergeFrom(const HSMCurrency& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HSMCurrency::CopyFrom(const HSMCurrency& from) { @@ -20448,17 +20758,24 @@ bool HSMCurrency::IsInitialized() const { void HSMCurrency::InternalSwap(HSMCurrency* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ¤cycode_, lhs_arena, + &other->currencycode_, rhs_arena + ); swap(amount1000_, other->amount1000_); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMCurrency::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[39]); } - // =================================================================== class HSMDateTimeComponent::_Internal { @@ -20487,10 +20804,13 @@ class HSMDateTimeComponent::_Internal { } }; -HSMDateTimeComponent::HSMDateTimeComponent(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HSMDateTimeComponent::HSMDateTimeComponent(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HSMDateTimeComponent) } HSMDateTimeComponent::HSMDateTimeComponent(const HSMDateTimeComponent& from) @@ -20514,12 +20834,13 @@ calendar_ = 1; HSMDateTimeComponent::~HSMDateTimeComponent() { // @@protoc_insertion_point(destructor:proto.HSMDateTimeComponent) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HSMDateTimeComponent::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HSMDateTimeComponent::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void HSMDateTimeComponent::ArenaDtor(void* object) { @@ -20556,7 +20877,6 @@ const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAM 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: @@ -20568,7 +20888,8 @@ const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAM } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 year = 2; case 2: @@ -20576,7 +20897,8 @@ const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAM _Internal::set_has_year(&has_bits); year_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 month = 3; case 3: @@ -20584,7 +20906,8 @@ const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAM _Internal::set_has_month(&has_bits); month_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 dayOfMonth = 4; case 4: @@ -20592,7 +20915,8 @@ const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAM _Internal::set_has_dayofmonth(&has_bits); dayofmonth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 hour = 5; case 5: @@ -20600,7 +20924,8 @@ const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAM _Internal::set_has_hour(&has_bits); hour_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 minute = 6; case 6: @@ -20608,7 +20933,8 @@ const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAM _Internal::set_has_minute(&has_bits); minute_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentCalendarType calendar = 7; case 7: @@ -20620,28 +20946,30 @@ const char* HSMDateTimeComponent::_InternalParse(const char* ptr, ::PROTOBUF_NAM } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -20716,37 +21044,27 @@ size_t HSMDateTimeComponent::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_year()); } // optional uint32 month = 3; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_month()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_month()); } // optional uint32 dayOfMonth = 4; if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_dayofmonth()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_dayofmonth()); } // optional uint32 hour = 5; if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_hour()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_hour()); } // optional uint32 minute = 6; if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_minute()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_minute()); } // optional .proto.HSMDateTimeComponent.HSMDateTimeComponentDayOfWeekType dayOfWeek = 1; @@ -20762,34 +21080,25 @@ size_t HSMDateTimeComponent::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HSMDateTimeComponent::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HSMDateTimeComponent::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HSMDateTimeComponent::GetClassData() const { return &_class_data_; } + +void HSMDateTimeComponent::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HSMDateTimeComponent *>(to)->MergeFrom( + static_cast<const HSMDateTimeComponent &>(from)); } + void HSMDateTimeComponent::MergeFrom(const HSMDateTimeComponent& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTimeComponent) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -20818,13 +21127,7 @@ void HSMDateTimeComponent::MergeFrom(const HSMDateTimeComponent& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HSMDateTimeComponent::CopyFrom(const HSMDateTimeComponent& from) { @@ -20840,7 +21143,7 @@ bool HSMDateTimeComponent::IsInitialized() const { void HSMDateTimeComponent::InternalSwap(HSMDateTimeComponent* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(HSMDateTimeComponent, minute_) @@ -20853,10 +21156,11 @@ void HSMDateTimeComponent::InternalSwap(HSMDateTimeComponent* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata HSMDateTimeComponent::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[40]); } - // =================================================================== class HSMDateTimeUnixEpoch::_Internal { @@ -20867,10 +21171,13 @@ class HSMDateTimeUnixEpoch::_Internal { } }; -HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HSMDateTimeUnixEpoch) } HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch(const HSMDateTimeUnixEpoch& from) @@ -20882,17 +21189,18 @@ HSMDateTimeUnixEpoch::HSMDateTimeUnixEpoch(const HSMDateTimeUnixEpoch& from) } void HSMDateTimeUnixEpoch::SharedCtor() { -timestamp_ = PROTOBUF_LONGLONG(0); +timestamp_ = int64_t{0}; } HSMDateTimeUnixEpoch::~HSMDateTimeUnixEpoch() { // @@protoc_insertion_point(destructor:proto.HSMDateTimeUnixEpoch) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HSMDateTimeUnixEpoch::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HSMDateTimeUnixEpoch::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void HSMDateTimeUnixEpoch::ArenaDtor(void* object) { @@ -20911,7 +21219,7 @@ void HSMDateTimeUnixEpoch::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - timestamp_ = PROTOBUF_LONGLONG(0); + timestamp_ = int64_t{0}; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -20922,7 +21230,6 @@ const char* HSMDateTimeUnixEpoch::_InternalParse(const char* ptr, ::PROTOBUF_NAM 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: @@ -20930,28 +21237,30 @@ const char* HSMDateTimeUnixEpoch::_InternalParse(const char* ptr, ::PROTOBUF_NAM _Internal::set_has_timestamp(&has_bits); timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -20987,52 +21296,35 @@ size_t HSMDateTimeUnixEpoch::ByteSizeLong() const { // 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HSMDateTimeUnixEpoch::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HSMDateTimeUnixEpoch::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HSMDateTimeUnixEpoch::GetClassData() const { return &_class_data_; } + +void HSMDateTimeUnixEpoch::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HSMDateTimeUnixEpoch *>(to)->MergeFrom( + static_cast<const HSMDateTimeUnixEpoch &>(from)); } + void HSMDateTimeUnixEpoch::MergeFrom(const HSMDateTimeUnixEpoch& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTimeUnixEpoch) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HSMDateTimeUnixEpoch::CopyFrom(const HSMDateTimeUnixEpoch& from) { @@ -21048,16 +21340,17 @@ bool HSMDateTimeUnixEpoch::IsInitialized() const { void HSMDateTimeUnixEpoch::InternalSwap(HSMDateTimeUnixEpoch* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(timestamp_, other->timestamp_); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMDateTimeUnixEpoch::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[41]); } - // =================================================================== class HSMDateTime::_Internal { @@ -21075,11 +21368,11 @@ 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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_datetimeOneof(); if (component) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(component); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HSMDateTimeComponent>::GetOwningArena(component); if (message_arena != submessage_arena) { component = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, component, submessage_arena); @@ -21090,11 +21383,11 @@ void HSMDateTime::set_allocated_component(::proto::HSMDateTimeComponent* compone // @@protoc_insertion_point(field_set_allocated:proto.HSMDateTime.component) } void HSMDateTime::set_allocated_unixepoch(::proto::HSMDateTimeUnixEpoch* unixepoch) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_datetimeOneof(); if (unixepoch) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(unixepoch); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HSMDateTimeUnixEpoch>::GetOwningArena(unixepoch); if (message_arena != submessage_arena) { unixepoch = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, unixepoch, submessage_arena); @@ -21104,10 +21397,13 @@ void HSMDateTime::set_allocated_unixepoch(::proto::HSMDateTimeUnixEpoch* unixepo } // @@protoc_insertion_point(field_set_allocated:proto.HSMDateTime.unixEpoch) } -HSMDateTime::HSMDateTime(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HSMDateTime::HSMDateTime(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HSMDateTime) } HSMDateTime::HSMDateTime(const HSMDateTime& from) @@ -21136,12 +21432,13 @@ clear_has_datetimeOneof(); HSMDateTime::~HSMDateTime() { // @@protoc_insertion_point(destructor:proto.HSMDateTime) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HSMDateTime::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HSMDateTime::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (has_datetimeOneof()) { clear_datetimeOneof(); } @@ -21161,13 +21458,13 @@ void HSMDateTime::clear_datetimeOneof() { // @@protoc_insertion_point(one_of_clear_start:proto.HSMDateTime) switch (datetimeOneof_case()) { case kComponent: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete datetimeOneof_.component_; } break; } case kUnixEpoch: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete datetimeOneof_.unixepoch_; } break; @@ -21195,41 +21492,43 @@ const char* HSMDateTime::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID 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; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -21291,34 +21590,25 @@ size_t HSMDateTime::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HSMDateTime::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HSMDateTime::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HSMDateTime::GetClassData() const { return &_class_data_; } + +void HSMDateTime::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HSMDateTime *>(to)->MergeFrom( + static_cast<const HSMDateTime &>(from)); } + void HSMDateTime::MergeFrom(const HSMDateTime& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMDateTime) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -21335,13 +21625,7 @@ void HSMDateTime::MergeFrom(const HSMDateTime& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HSMDateTime::CopyFrom(const HSMDateTime& from) { @@ -21357,16 +21641,17 @@ bool HSMDateTime::IsInitialized() const { void HSMDateTime::InternalSwap(HSMDateTime* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(datetimeOneof_, other->datetimeOneof_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMDateTime::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[42]); } - // =================================================================== class HSMLocalizableParameter::_Internal { @@ -21388,11 +21673,11 @@ 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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_paramOneof(); if (currency) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(currency); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HSMCurrency>::GetOwningArena(currency); if (message_arena != submessage_arena) { currency = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, currency, submessage_arena); @@ -21403,11 +21688,11 @@ void HSMLocalizableParameter::set_allocated_currency(::proto::HSMCurrency* curre // @@protoc_insertion_point(field_set_allocated:proto.HSMLocalizableParameter.currency) } void HSMLocalizableParameter::set_allocated_datetime(::proto::HSMDateTime* datetime) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_paramOneof(); if (datetime) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(datetime); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HSMDateTime>::GetOwningArena(datetime); if (message_arena != submessage_arena) { datetime = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, datetime, submessage_arena); @@ -21417,10 +21702,13 @@ void HSMLocalizableParameter::set_allocated_datetime(::proto::HSMDateTime* datet } // @@protoc_insertion_point(field_set_allocated:proto.HSMLocalizableParameter.dateTime) } -HSMLocalizableParameter::HSMLocalizableParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +HSMLocalizableParameter::HSMLocalizableParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HSMLocalizableParameter) } HSMLocalizableParameter::HSMLocalizableParameter(const HSMLocalizableParameter& from) @@ -21430,7 +21718,7 @@ HSMLocalizableParameter::HSMLocalizableParameter(const HSMLocalizableParameter& default__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_default_()) { default__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_default_(), - GetArena()); + GetArenaForAllocation()); } clear_has_paramOneof(); switch (from.paramOneof_case()) { @@ -21456,12 +21744,13 @@ clear_has_paramOneof(); HSMLocalizableParameter::~HSMLocalizableParameter() { // @@protoc_insertion_point(destructor:proto.HSMLocalizableParameter) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HSMLocalizableParameter::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HSMLocalizableParameter::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); default__.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (has_paramOneof()) { clear_paramOneof(); @@ -21482,13 +21771,13 @@ void HSMLocalizableParameter::clear_paramOneof() { // @@protoc_insertion_point(one_of_clear_start:proto.HSMLocalizableParameter) switch (paramOneof_case()) { case kCurrency: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete paramOneof_.currency_; } break; } case kDateTime: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete paramOneof_.datetime_; } break; @@ -21522,7 +21811,6 @@ const char* HSMLocalizableParameter::_InternalParse(const char* ptr, ::PROTOBUF_ 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: @@ -21533,42 +21821,46 @@ const char* HSMLocalizableParameter::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HSMLocalizableParameter.default"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -21649,34 +21941,25 @@ size_t HSMLocalizableParameter::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HSMLocalizableParameter::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HSMLocalizableParameter::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HSMLocalizableParameter::GetClassData() const { return &_class_data_; } + +void HSMLocalizableParameter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HSMLocalizableParameter *>(to)->MergeFrom( + static_cast<const HSMLocalizableParameter &>(from)); } + void HSMLocalizableParameter::MergeFrom(const HSMLocalizableParameter& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HSMLocalizableParameter) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -21696,13 +21979,7 @@ void HSMLocalizableParameter::MergeFrom(const HSMLocalizableParameter& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HSMLocalizableParameter::CopyFrom(const HSMLocalizableParameter& from) { @@ -21718,18 +21995,25 @@ bool HSMLocalizableParameter::IsInitialized() const { void HSMLocalizableParameter::InternalSwap(HSMLocalizableParameter* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); - default__.Swap(&other->default__, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &default__, lhs_arena, + &other->default__, rhs_arena + ); swap(paramOneof_, other->paramOneof_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HSMLocalizableParameter::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[43]); } - // =================================================================== class HighlyStructuredMessage::_Internal { @@ -21763,12 +22047,15 @@ const ::proto::TemplateMessage& HighlyStructuredMessage::_Internal::hydratedhsm(const HighlyStructuredMessage* msg) { return *msg->hydratedhsm_; } -HighlyStructuredMessage::HighlyStructuredMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +HighlyStructuredMessage::HighlyStructuredMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), params_(arena), localizableparams_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HighlyStructuredMessage) } HighlyStructuredMessage::HighlyStructuredMessage(const HighlyStructuredMessage& from) @@ -21780,32 +22067,32 @@ HighlyStructuredMessage::HighlyStructuredMessage(const HighlyStructuredMessage& namespace__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_namespace_()) { namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_namespace_(), - GetArena()); + GetArenaForAllocation()); } elementname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_elementname()) { elementname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_elementname(), - GetArena()); + GetArenaForAllocation()); } fallbacklg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fallbacklg()) { fallbacklg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fallbacklg(), - GetArena()); + GetArenaForAllocation()); } fallbacklc_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fallbacklc()) { fallbacklc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fallbacklc(), - GetArena()); + GetArenaForAllocation()); } deterministiclg_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_deterministiclg()) { deterministiclg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_deterministiclg(), - GetArena()); + GetArenaForAllocation()); } deterministiclc_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_deterministiclc()) { deterministiclc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_deterministiclc(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_hydratedhsm()) { hydratedhsm_ = new ::proto::TemplateMessage(*from.hydratedhsm_); @@ -21827,12 +22114,13 @@ hydratedhsm_ = nullptr; HighlyStructuredMessage::~HighlyStructuredMessage() { // @@protoc_insertion_point(destructor:proto.HighlyStructuredMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HighlyStructuredMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HighlyStructuredMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); namespace__.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); elementname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fallbacklg_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -21895,7 +22183,6 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ 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: @@ -21906,7 +22193,8 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.namespace"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string elementName = 2; case 2: @@ -21917,7 +22205,8 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.elementName"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated string params = 3; case 3: @@ -21933,7 +22222,8 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string fallbackLg = 4; case 4: @@ -21944,7 +22234,8 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.fallbackLg"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string fallbackLc = 5; case 5: @@ -21955,7 +22246,8 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.fallbackLc"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .proto.HSMLocalizableParameter localizableParams = 6; case 6: @@ -21967,7 +22259,8 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string deterministicLg = 7; case 7: @@ -21978,7 +22271,8 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.deterministicLg"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string deterministicLc = 8; case 8: @@ -21989,35 +22283,38 @@ const char* HighlyStructuredMessage::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HighlyStructuredMessage.deterministicLc"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -22197,34 +22494,25 @@ size_t HighlyStructuredMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HighlyStructuredMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HighlyStructuredMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HighlyStructuredMessage::GetClassData() const { return &_class_data_; } + +void HighlyStructuredMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HighlyStructuredMessage *>(to)->MergeFrom( + static_cast<const HighlyStructuredMessage &>(from)); } + void HighlyStructuredMessage::MergeFrom(const HighlyStructuredMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HighlyStructuredMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -22254,13 +22542,7 @@ void HighlyStructuredMessage::MergeFrom(const HighlyStructuredMessage& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HighlyStructuredMessage::CopyFrom(const HighlyStructuredMessage& from) { @@ -22276,24 +22558,51 @@ bool HighlyStructuredMessage::IsInitialized() const { void HighlyStructuredMessage::InternalSwap(HighlyStructuredMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); params_.InternalSwap(&other->params_); localizableparams_.InternalSwap(&other->localizableparams_); - 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()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &namespace__, lhs_arena, + &other->namespace__, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &elementname_, lhs_arena, + &other->elementname_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fallbacklg_, lhs_arena, + &other->fallbacklg_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fallbacklc_, lhs_arena, + &other->fallbacklc_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &deterministiclg_, lhs_arena, + &other->deterministiclg_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &deterministiclc_, lhs_arena, + &other->deterministiclc_, rhs_arena + ); swap(hydratedhsm_, other->hydratedhsm_); } ::PROTOBUF_NAMESPACE_ID::Metadata HighlyStructuredMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[44]); } - // =================================================================== class SendPaymentMessage::_Internal { @@ -22317,10 +22626,13 @@ const ::proto::MessageKey& SendPaymentMessage::_Internal::requestmessagekey(const SendPaymentMessage* msg) { return *msg->requestmessagekey_; } -SendPaymentMessage::SendPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SendPaymentMessage::SendPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.SendPaymentMessage) } SendPaymentMessage::SendPaymentMessage(const SendPaymentMessage& from) @@ -22349,12 +22661,13 @@ void SendPaymentMessage::SharedCtor() { SendPaymentMessage::~SendPaymentMessage() { // @@protoc_insertion_point(destructor:proto.SendPaymentMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void SendPaymentMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void SendPaymentMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete notemessage_; if (this != internal_default_instance()) delete requestmessagekey_; } @@ -22396,42 +22709,44 @@ const char* SendPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES 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; + } 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; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -22491,34 +22806,25 @@ size_t SendPaymentMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendPaymentMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SendPaymentMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendPaymentMessage::GetClassData() const { return &_class_data_; } + +void SendPaymentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<SendPaymentMessage *>(to)->MergeFrom( + static_cast<const SendPaymentMessage &>(from)); } + void SendPaymentMessage::MergeFrom(const SendPaymentMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.SendPaymentMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -22531,13 +22837,7 @@ void SendPaymentMessage::MergeFrom(const SendPaymentMessage& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SendPaymentMessage::CopyFrom(const SendPaymentMessage& from) { @@ -22553,7 +22853,7 @@ bool SendPaymentMessage::IsInitialized() const { void SendPaymentMessage::InternalSwap(SendPaymentMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(SendPaymentMessage, requestmessagekey_) @@ -22564,10 +22864,11 @@ void SendPaymentMessage::InternalSwap(SendPaymentMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata SendPaymentMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[45]); } - // =================================================================== class RequestPaymentMessage::_Internal { @@ -22603,10 +22904,13 @@ const ::proto::PaymentMoney& RequestPaymentMessage::_Internal::amount(const RequestPaymentMessage* msg) { return *msg->amount_; } -RequestPaymentMessage::RequestPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +RequestPaymentMessage::RequestPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.RequestPaymentMessage) } RequestPaymentMessage::RequestPaymentMessage(const RequestPaymentMessage& from) @@ -22616,12 +22920,12 @@ RequestPaymentMessage::RequestPaymentMessage(const RequestPaymentMessage& from) currencycodeiso4217_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_currencycodeiso4217()) { currencycodeiso4217_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycodeiso4217(), - GetArena()); + GetArenaForAllocation()); } requestfrom_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_requestfrom()) { requestfrom_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_requestfrom(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_notemessage()) { notemessage_ = new ::proto::Message(*from.notemessage_); @@ -22650,12 +22954,13 @@ requestfrom_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString RequestPaymentMessage::~RequestPaymentMessage() { // @@protoc_insertion_point(destructor:proto.RequestPaymentMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void RequestPaymentMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void RequestPaymentMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); currencycodeiso4217_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); requestfrom_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete notemessage_; @@ -22710,7 +23015,6 @@ const char* RequestPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NA 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: @@ -22721,7 +23025,8 @@ const char* RequestPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NA ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.RequestPaymentMessage.currencyCodeIso4217"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 amount1000 = 2; case 2: @@ -22729,7 +23034,8 @@ const char* RequestPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NA _Internal::set_has_amount1000(&has_bits); amount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string requestFrom = 3; case 3: @@ -22740,14 +23046,16 @@ const char* RequestPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NA ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.RequestPaymentMessage.requestFrom"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional int64 expiryTimestamp = 5; case 5: @@ -22755,35 +23063,38 @@ const char* RequestPaymentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NA _Internal::set_has_expirytimestamp(&has_bits); expirytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -22890,47 +23201,34 @@ size_t RequestPaymentMessage::ByteSizeLong() const { // optional uint64 amount1000 = 2; if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_amount1000()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_amount1000()); } // optional int64 expiryTimestamp = 5; if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_expirytimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RequestPaymentMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + RequestPaymentMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RequestPaymentMessage::GetClassData() const { return &_class_data_; } + +void RequestPaymentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<RequestPaymentMessage *>(to)->MergeFrom( + static_cast<const RequestPaymentMessage &>(from)); } + void RequestPaymentMessage::MergeFrom(const RequestPaymentMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.RequestPaymentMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -22956,13 +23254,7 @@ void RequestPaymentMessage::MergeFrom(const RequestPaymentMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void RequestPaymentMessage::CopyFrom(const RequestPaymentMessage& from) { @@ -22978,10 +23270,20 @@ bool RequestPaymentMessage::IsInitialized() const { void RequestPaymentMessage::InternalSwap(RequestPaymentMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ¤cycodeiso4217_, lhs_arena, + &other->currencycodeiso4217_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &requestfrom_, lhs_arena, + &other->requestfrom_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(RequestPaymentMessage, expirytimestamp_) + sizeof(RequestPaymentMessage::expirytimestamp_) @@ -22991,10 +23293,11 @@ void RequestPaymentMessage::InternalSwap(RequestPaymentMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata RequestPaymentMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[46]); } - // =================================================================== class DeclinePaymentRequestMessage::_Internal { @@ -23010,10 +23313,13 @@ const ::proto::MessageKey& DeclinePaymentRequestMessage::_Internal::key(const DeclinePaymentRequestMessage* msg) { return *msg->key_; } -DeclinePaymentRequestMessage::DeclinePaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +DeclinePaymentRequestMessage::DeclinePaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.DeclinePaymentRequestMessage) } DeclinePaymentRequestMessage::DeclinePaymentRequestMessage(const DeclinePaymentRequestMessage& from) @@ -23034,12 +23340,13 @@ key_ = nullptr; DeclinePaymentRequestMessage::~DeclinePaymentRequestMessage() { // @@protoc_insertion_point(destructor:proto.DeclinePaymentRequestMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void DeclinePaymentRequestMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void DeclinePaymentRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete key_; } @@ -23074,35 +23381,36 @@ const char* DeclinePaymentRequestMessage::_InternalParse(const char* ptr, ::PROT 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -23145,47 +23453,32 @@ size_t DeclinePaymentRequestMessage::ByteSizeLong() const { *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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeclinePaymentRequestMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeclinePaymentRequestMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeclinePaymentRequestMessage::GetClassData() const { return &_class_data_; } + +void DeclinePaymentRequestMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<DeclinePaymentRequestMessage *>(to)->MergeFrom( + static_cast<const DeclinePaymentRequestMessage &>(from)); } + void DeclinePaymentRequestMessage::MergeFrom(const DeclinePaymentRequestMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.DeclinePaymentRequestMessage) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeclinePaymentRequestMessage::CopyFrom(const DeclinePaymentRequestMessage& from) { @@ -23201,16 +23494,17 @@ bool DeclinePaymentRequestMessage::IsInitialized() const { void DeclinePaymentRequestMessage::InternalSwap(DeclinePaymentRequestMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(key_, other->key_); } ::PROTOBUF_NAMESPACE_ID::Metadata DeclinePaymentRequestMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[47]); } - // =================================================================== class CancelPaymentRequestMessage::_Internal { @@ -23226,10 +23520,13 @@ const ::proto::MessageKey& CancelPaymentRequestMessage::_Internal::key(const CancelPaymentRequestMessage* msg) { return *msg->key_; } -CancelPaymentRequestMessage::CancelPaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CancelPaymentRequestMessage::CancelPaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.CancelPaymentRequestMessage) } CancelPaymentRequestMessage::CancelPaymentRequestMessage(const CancelPaymentRequestMessage& from) @@ -23250,12 +23547,13 @@ key_ = nullptr; CancelPaymentRequestMessage::~CancelPaymentRequestMessage() { // @@protoc_insertion_point(destructor:proto.CancelPaymentRequestMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void CancelPaymentRequestMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void CancelPaymentRequestMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete key_; } @@ -23290,35 +23588,36 @@ const char* CancelPaymentRequestMessage::_InternalParse(const char* ptr, ::PROTO 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; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -23361,47 +23660,32 @@ size_t CancelPaymentRequestMessage::ByteSizeLong() const { *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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CancelPaymentRequestMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CancelPaymentRequestMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CancelPaymentRequestMessage::GetClassData() const { return &_class_data_; } + +void CancelPaymentRequestMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<CancelPaymentRequestMessage *>(to)->MergeFrom( + static_cast<const CancelPaymentRequestMessage &>(from)); } + void CancelPaymentRequestMessage::MergeFrom(const CancelPaymentRequestMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.CancelPaymentRequestMessage) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CancelPaymentRequestMessage::CopyFrom(const CancelPaymentRequestMessage& from) { @@ -23417,16 +23701,17 @@ bool CancelPaymentRequestMessage::IsInitialized() const { void CancelPaymentRequestMessage::InternalSwap(CancelPaymentRequestMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(key_, other->key_); } ::PROTOBUF_NAMESPACE_ID::Metadata CancelPaymentRequestMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[48]); } - // =================================================================== class LiveLocationMessage::_Internal { @@ -23469,10 +23754,13 @@ const ::proto::ContextInfo& LiveLocationMessage::_Internal::contextinfo(const LiveLocationMessage* msg) { return *msg->contextinfo_; } -LiveLocationMessage::LiveLocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +LiveLocationMessage::LiveLocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.LiveLocationMessage) } LiveLocationMessage::LiveLocationMessage(const LiveLocationMessage& from) @@ -23482,12 +23770,12 @@ LiveLocationMessage::LiveLocationMessage(const LiveLocationMessage& from) caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_caption()) { caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), - GetArena()); + GetArenaForAllocation()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -23511,12 +23799,13 @@ jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStri LiveLocationMessage::~LiveLocationMessage() { // @@protoc_insertion_point(destructor:proto.LiveLocationMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void LiveLocationMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void LiveLocationMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); caption_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); jpegthumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete contextinfo_; @@ -23571,7 +23860,6 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME 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: @@ -23579,7 +23867,8 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME _Internal::set_has_degreeslatitude(&has_bits); degreeslatitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional double degreesLongitude = 2; case 2: @@ -23587,7 +23876,8 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME _Internal::set_has_degreeslongitude(&has_bits); degreeslongitude_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); ptr += sizeof(double); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 accuracyInMeters = 3; case 3: @@ -23595,7 +23885,8 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME _Internal::set_has_accuracyinmeters(&has_bits); accuracyinmeters_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional float speedInMps = 4; case 4: @@ -23603,7 +23894,8 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME _Internal::set_has_speedinmps(&has_bits); speedinmps_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr); ptr += sizeof(float); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 degreesClockwiseFromMagneticNorth = 5; case 5: @@ -23611,7 +23903,8 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME _Internal::set_has_degreesclockwisefrommagneticnorth(&has_bits); degreesclockwisefrommagneticnorth_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string caption = 6; case 6: @@ -23622,7 +23915,8 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.LiveLocationMessage.caption"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 sequenceNumber = 7; case 7: @@ -23630,7 +23924,8 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME _Internal::set_has_sequencenumber(&has_bits); sequencenumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 timeOffset = 8; case 8: @@ -23638,7 +23933,8 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME _Internal::set_has_timeoffset(&has_bits); timeoffset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes jpegThumbnail = 16; case 16: @@ -23646,35 +23942,38 @@ const char* LiveLocationMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -23802,9 +24101,7 @@ size_t LiveLocationMessage::ByteSizeLong() const { // optional uint32 accuracyInMeters = 3; if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_accuracyinmeters()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_accuracyinmeters()); } // optional float speedInMps = 4; @@ -23814,56 +24111,41 @@ size_t LiveLocationMessage::ByteSizeLong() const { // optional uint32 degreesClockwiseFromMagneticNorth = 5; if (cached_has_bits & 0x00000080u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_degreesclockwisefrommagneticnorth()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_timeoffset()); } // optional int64 sequenceNumber = 7; if (cached_has_bits & 0x00000200u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_sequencenumber()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LiveLocationMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + LiveLocationMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LiveLocationMessage::GetClassData() const { return &_class_data_; } + +void LiveLocationMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<LiveLocationMessage *>(to)->MergeFrom( + static_cast<const LiveLocationMessage &>(from)); } + void LiveLocationMessage::MergeFrom(const LiveLocationMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.LiveLocationMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -23904,13 +24186,7 @@ void LiveLocationMessage::MergeFrom(const LiveLocationMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void LiveLocationMessage::CopyFrom(const LiveLocationMessage& from) { @@ -23926,10 +24202,20 @@ bool LiveLocationMessage::IsInitialized() const { void LiveLocationMessage::InternalSwap(LiveLocationMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &caption_, lhs_arena, + &other->caption_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &jpegthumbnail_, lhs_arena, + &other->jpegthumbnail_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(LiveLocationMessage, sequencenumber_) + sizeof(LiveLocationMessage::sequencenumber_) @@ -23939,10 +24225,11 @@ void LiveLocationMessage::InternalSwap(LiveLocationMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata LiveLocationMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[49]); } - // =================================================================== class StickerMessage::_Internal { @@ -24000,10 +24287,13 @@ const ::proto::ContextInfo& StickerMessage::_Internal::contextinfo(const StickerMessage* msg) { return *msg->contextinfo_; } -StickerMessage::StickerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +StickerMessage::StickerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.StickerMessage) } StickerMessage::StickerMessage(const StickerMessage& from) @@ -24013,42 +24303,42 @@ StickerMessage::StickerMessage(const StickerMessage& from) url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArena()); + GetArenaForAllocation()); } filesha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_filesha256()) { filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_filesha256(), - GetArena()); + GetArenaForAllocation()); } fileencsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_fileencsha256()) { fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_fileencsha256(), - GetArena()); + GetArenaForAllocation()); } mediakey_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediakey()) { mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediakey(), - GetArena()); + GetArenaForAllocation()); } mimetype_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mimetype()) { mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mimetype(), - GetArena()); + GetArenaForAllocation()); } directpath_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_directpath()) { directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_directpath(), - GetArena()); + GetArenaForAllocation()); } firstframesidecar_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_firstframesidecar()) { firstframesidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_firstframesidecar(), - GetArena()); + GetArenaForAllocation()); } pngthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_pngthumbnail()) { pngthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pngthumbnail(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -24078,12 +24368,13 @@ pngthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStrin StickerMessage::~StickerMessage() { // @@protoc_insertion_point(destructor:proto.StickerMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void StickerMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void StickerMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); filesha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); fileencsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -24157,7 +24448,6 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE 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: @@ -24168,7 +24458,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.StickerMessage.url"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileSha256 = 2; case 2: @@ -24176,7 +24467,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE auto str = _internal_mutable_filesha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes fileEncSha256 = 3; case 3: @@ -24184,7 +24476,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE auto str = _internal_mutable_fileencsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes mediaKey = 4; case 4: @@ -24192,7 +24485,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE auto str = _internal_mutable_mediakey(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string mimetype = 5; case 5: @@ -24203,7 +24497,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.StickerMessage.mimetype"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 height = 6; case 6: @@ -24211,7 +24506,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_height(&has_bits); height_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 width = 7; case 7: @@ -24219,7 +24515,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_width(&has_bits); width_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string directPath = 8; case 8: @@ -24230,7 +24527,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.StickerMessage.directPath"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 fileLength = 9; case 9: @@ -24238,7 +24536,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_filelength(&has_bits); filelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 mediaKeyTimestamp = 10; case 10: @@ -24246,7 +24545,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_mediakeytimestamp(&has_bits); mediakeytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 firstFrameLength = 11; case 11: @@ -24254,7 +24554,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_firstframelength(&has_bits); firstframelength_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes firstFrameSidecar = 12; case 12: @@ -24262,7 +24563,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE auto str = _internal_mutable_firstframesidecar(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool isAnimated = 13; case 13: @@ -24270,7 +24572,8 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_isanimated(&has_bits); isanimated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes pngThumbnail = 16; case 16: @@ -24278,35 +24581,38 @@ const char* StickerMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE auto str = _internal_mutable_pngthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -24506,37 +24812,27 @@ size_t StickerMessage::ByteSizeLong() const { // optional uint32 height = 6; if (cached_has_bits & 0x00000200u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_height()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_height()); } // optional uint32 width = 7; if (cached_has_bits & 0x00000400u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_width()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_width()); } // optional uint64 fileLength = 9; if (cached_has_bits & 0x00000800u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_filelength()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_filelength()); } // optional int64 mediaKeyTimestamp = 10; if (cached_has_bits & 0x00001000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_mediakeytimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mediakeytimestamp()); } // optional uint32 firstFrameLength = 11; if (cached_has_bits & 0x00002000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_firstframelength()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_firstframelength()); } // optional bool isAnimated = 13; @@ -24545,34 +24841,25 @@ size_t StickerMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StickerMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + StickerMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StickerMessage::GetClassData() const { return &_class_data_; } + +void StickerMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<StickerMessage *>(to)->MergeFrom( + static_cast<const StickerMessage &>(from)); } + void StickerMessage::MergeFrom(const StickerMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.StickerMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -24627,13 +24914,7 @@ void StickerMessage::MergeFrom(const StickerMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void StickerMessage::CopyFrom(const StickerMessage& from) { @@ -24649,16 +24930,50 @@ bool StickerMessage::IsInitialized() const { void StickerMessage::InternalSwap(StickerMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &filesha256_, lhs_arena, + &other->filesha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &fileencsha256_, lhs_arena, + &other->fileencsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mediakey_, lhs_arena, + &other->mediakey_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mimetype_, lhs_arena, + &other->mimetype_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &directpath_, lhs_arena, + &other->directpath_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &firstframesidecar_, lhs_arena, + &other->firstframesidecar_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &pngthumbnail_, lhs_arena, + &other->pngthumbnail_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(StickerMessage, isanimated_) + sizeof(StickerMessage::isanimated_) @@ -24668,10 +24983,11 @@ void StickerMessage::InternalSwap(StickerMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata StickerMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[50]); } - // =================================================================== class FourRowTemplate::_Internal { @@ -24721,11 +25037,11 @@ 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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(documentmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::DocumentMessage>::GetOwningArena(documentmessage); if (message_arena != submessage_arena) { documentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, documentmessage, submessage_arena); @@ -24736,11 +25052,11 @@ void FourRowTemplate::set_allocated_documentmessage(::proto::DocumentMessage* do // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.documentMessage) } void FourRowTemplate::set_allocated_highlystructuredmessage(::proto::HighlyStructuredMessage* highlystructuredmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (highlystructuredmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(highlystructuredmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HighlyStructuredMessage>::GetOwningArena(highlystructuredmessage); if (message_arena != submessage_arena) { highlystructuredmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, highlystructuredmessage, submessage_arena); @@ -24751,11 +25067,11 @@ void FourRowTemplate::set_allocated_highlystructuredmessage(::proto::HighlyStruc // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.highlyStructuredMessage) } void FourRowTemplate::set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(imagemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ImageMessage>::GetOwningArena(imagemessage); if (message_arena != submessage_arena) { imagemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, imagemessage, submessage_arena); @@ -24766,11 +25082,11 @@ void FourRowTemplate::set_allocated_imagemessage(::proto::ImageMessage* imagemes // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.imageMessage) } void FourRowTemplate::set_allocated_videomessage(::proto::VideoMessage* videomessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(videomessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::VideoMessage>::GetOwningArena(videomessage); if (message_arena != submessage_arena) { videomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, videomessage, submessage_arena); @@ -24781,11 +25097,11 @@ void FourRowTemplate::set_allocated_videomessage(::proto::VideoMessage* videomes // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.videoMessage) } void FourRowTemplate::set_allocated_locationmessage(::proto::LocationMessage* locationmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(locationmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::LocationMessage>::GetOwningArena(locationmessage); if (message_arena != submessage_arena) { locationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, locationmessage, submessage_arena); @@ -24795,11 +25111,14 @@ void FourRowTemplate::set_allocated_locationmessage(::proto::LocationMessage* lo } // @@protoc_insertion_point(field_set_allocated:proto.FourRowTemplate.locationMessage) } -FourRowTemplate::FourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +FourRowTemplate::FourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), buttons_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.FourRowTemplate) } FourRowTemplate::FourRowTemplate(const FourRowTemplate& from) @@ -24856,12 +25175,13 @@ clear_has_title(); FourRowTemplate::~FourRowTemplate() { // @@protoc_insertion_point(destructor:proto.FourRowTemplate) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void FourRowTemplate::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void FourRowTemplate::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete content_; if (this != internal_default_instance()) delete footer_; if (has_title()) { @@ -24883,31 +25203,31 @@ void FourRowTemplate::clear_title() { // @@protoc_insertion_point(one_of_clear_start:proto.FourRowTemplate) switch (title_case()) { case kDocumentMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.documentmessage_; } break; } case kHighlyStructuredMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.highlystructuredmessage_; } break; } case kImageMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.imagemessage_; } break; } case kVideoMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.videomessage_; } break; } case kLocationMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.locationmessage_; } break; @@ -24949,56 +25269,62 @@ const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } else + goto handle_unusual; continue; // repeated .proto.TemplateButton buttons = 8; case 8: @@ -25010,28 +25336,30 @@ const char* FourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -25184,34 +25512,25 @@ size_t FourRowTemplate::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FourRowTemplate::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FourRowTemplate::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FourRowTemplate::GetClassData() const { return &_class_data_; } + +void FourRowTemplate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<FourRowTemplate *>(to)->MergeFrom( + static_cast<const FourRowTemplate &>(from)); } + void FourRowTemplate::MergeFrom(const FourRowTemplate& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.FourRowTemplate) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -25250,13 +25569,7 @@ void FourRowTemplate::MergeFrom(const FourRowTemplate& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FourRowTemplate::CopyFrom(const FourRowTemplate& from) { @@ -25272,7 +25585,7 @@ bool FourRowTemplate::IsInitialized() const { void FourRowTemplate::InternalSwap(FourRowTemplate* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); buttons_.InternalSwap(&other->buttons_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< @@ -25286,10 +25599,11 @@ void FourRowTemplate::InternalSwap(FourRowTemplate* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata FourRowTemplate::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[51]); } - // =================================================================== class HydratedFourRowTemplate::_Internal { @@ -25327,11 +25641,11 @@ HydratedFourRowTemplate::_Internal::locationmessage(const HydratedFourRowTemplat return *msg->title_.locationmessage_; } void HydratedFourRowTemplate::set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(documentmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::DocumentMessage>::GetOwningArena(documentmessage); if (message_arena != submessage_arena) { documentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, documentmessage, submessage_arena); @@ -25342,11 +25656,11 @@ void HydratedFourRowTemplate::set_allocated_documentmessage(::proto::DocumentMes // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.documentMessage) } void HydratedFourRowTemplate::set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(imagemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ImageMessage>::GetOwningArena(imagemessage); if (message_arena != submessage_arena) { imagemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, imagemessage, submessage_arena); @@ -25357,11 +25671,11 @@ void HydratedFourRowTemplate::set_allocated_imagemessage(::proto::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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(videomessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::VideoMessage>::GetOwningArena(videomessage); if (message_arena != submessage_arena) { videomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, videomessage, submessage_arena); @@ -25372,11 +25686,11 @@ void HydratedFourRowTemplate::set_allocated_videomessage(::proto::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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_title(); if (locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(locationmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::LocationMessage>::GetOwningArena(locationmessage); if (message_arena != submessage_arena) { locationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, locationmessage, submessage_arena); @@ -25386,11 +25700,14 @@ void HydratedFourRowTemplate::set_allocated_locationmessage(::proto::LocationMes } // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.locationMessage) } -HydratedFourRowTemplate::HydratedFourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +HydratedFourRowTemplate::HydratedFourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), hydratedbuttons_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.HydratedFourRowTemplate) } HydratedFourRowTemplate::HydratedFourRowTemplate(const HydratedFourRowTemplate& from) @@ -25401,17 +25718,17 @@ HydratedFourRowTemplate::HydratedFourRowTemplate(const HydratedFourRowTemplate& hydratedcontenttext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_hydratedcontenttext()) { hydratedcontenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hydratedcontenttext(), - GetArena()); + GetArenaForAllocation()); } hydratedfootertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_hydratedfootertext()) { hydratedfootertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_hydratedfootertext(), - GetArena()); + GetArenaForAllocation()); } templateid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_templateid()) { templateid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_templateid(), - GetArena()); + GetArenaForAllocation()); } clear_has_title(); switch (from.title_case()) { @@ -25451,12 +25768,13 @@ clear_has_title(); HydratedFourRowTemplate::~HydratedFourRowTemplate() { // @@protoc_insertion_point(destructor:proto.HydratedFourRowTemplate) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void HydratedFourRowTemplate::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void HydratedFourRowTemplate::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); hydratedcontenttext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); hydratedfootertext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); templateid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -25479,29 +25797,29 @@ void HydratedFourRowTemplate::clear_title() { // @@protoc_insertion_point(one_of_clear_start:proto.HydratedFourRowTemplate) switch (title_case()) { case kDocumentMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.documentmessage_; } break; } case kHydratedTitleText: { - title_.hydratedtitletext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + title_.hydratedtitletext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); break; } case kImageMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.imagemessage_; } break; } case kVideoMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.videomessage_; } break; } case kLocationMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.locationmessage_; } break; @@ -25544,14 +25862,14 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ 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; + } else + goto handle_unusual; continue; // string hydratedTitleText = 2; case 2: @@ -25562,28 +25880,32 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedFourRowTemplate.hydratedTitleText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; + } 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; + } else + goto handle_unusual; continue; // optional string hydratedContentText = 6; case 6: @@ -25594,7 +25916,8 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedFourRowTemplate.hydratedContentText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string hydratedFooterText = 7; case 7: @@ -25605,7 +25928,8 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedFourRowTemplate.hydratedFooterText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .proto.HydratedTemplateButton hydratedButtons = 8; case 8: @@ -25617,7 +25941,8 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string templateId = 9; case 9: @@ -25628,28 +25953,30 @@ const char* HydratedFourRowTemplate::_InternalParse(const char* ptr, ::PROTOBUF_ ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.HydratedFourRowTemplate.templateId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -25825,34 +26152,25 @@ size_t HydratedFourRowTemplate::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData HydratedFourRowTemplate::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + HydratedFourRowTemplate::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*HydratedFourRowTemplate::GetClassData() const { return &_class_data_; } + +void HydratedFourRowTemplate::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<HydratedFourRowTemplate *>(to)->MergeFrom( + static_cast<const HydratedFourRowTemplate &>(from)); } + void HydratedFourRowTemplate::MergeFrom(const HydratedFourRowTemplate& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.HydratedFourRowTemplate) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -25894,13 +26212,7 @@ void HydratedFourRowTemplate::MergeFrom(const HydratedFourRowTemplate& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void HydratedFourRowTemplate::CopyFrom(const HydratedFourRowTemplate& from) { @@ -25916,21 +26228,36 @@ bool HydratedFourRowTemplate::IsInitialized() const { void HydratedFourRowTemplate::InternalSwap(HydratedFourRowTemplate* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); hydratedbuttons_.InternalSwap(&other->hydratedbuttons_); - 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()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &hydratedcontenttext_, lhs_arena, + &other->hydratedcontenttext_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &hydratedfootertext_, lhs_arena, + &other->hydratedfootertext_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &templateid_, lhs_arena, + &other->templateid_, rhs_arena + ); swap(title_, other->title_); swap(_oneof_case_[0], other->_oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata HydratedFourRowTemplate::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[52]); } - // =================================================================== class TemplateMessage::_Internal { @@ -25965,11 +26292,11 @@ 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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_format(); if (fourrowtemplate) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fourrowtemplate); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::FourRowTemplate>::GetOwningArena(fourrowtemplate); if (message_arena != submessage_arena) { fourrowtemplate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, fourrowtemplate, submessage_arena); @@ -25980,11 +26307,11 @@ void TemplateMessage::set_allocated_fourrowtemplate(::proto::FourRowTemplate* fo // @@protoc_insertion_point(field_set_allocated:proto.TemplateMessage.fourRowTemplate) } void TemplateMessage::set_allocated_hydratedfourrowtemplate(::proto::HydratedFourRowTemplate* hydratedfourrowtemplate) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_format(); if (hydratedfourrowtemplate) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(hydratedfourrowtemplate); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HydratedFourRowTemplate>::GetOwningArena(hydratedfourrowtemplate); if (message_arena != submessage_arena) { hydratedfourrowtemplate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, hydratedfourrowtemplate, submessage_arena); @@ -25994,10 +26321,13 @@ void TemplateMessage::set_allocated_hydratedfourrowtemplate(::proto::HydratedFou } // @@protoc_insertion_point(field_set_allocated:proto.TemplateMessage.hydratedFourRowTemplate) } -TemplateMessage::TemplateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TemplateMessage::TemplateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.TemplateMessage) } TemplateMessage::TemplateMessage(const TemplateMessage& from) @@ -26041,12 +26371,13 @@ clear_has_format(); TemplateMessage::~TemplateMessage() { // @@protoc_insertion_point(destructor:proto.TemplateMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void TemplateMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void TemplateMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete contextinfo_; if (this != internal_default_instance()) delete hydratedtemplate_; if (has_format()) { @@ -26068,13 +26399,13 @@ void TemplateMessage::clear_format() { // @@protoc_insertion_point(one_of_clear_start:proto.TemplateMessage) switch (format_case()) { case kFourRowTemplate: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete format_.fourrowtemplate_; } break; } case kHydratedFourRowTemplate: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete format_.hydratedfourrowtemplate_; } break; @@ -26115,56 +26446,60 @@ const char* TemplateMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC 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; + } 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; + } 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; + } 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; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -26260,34 +26595,25 @@ size_t TemplateMessage::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TemplateMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TemplateMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TemplateMessage::GetClassData() const { return &_class_data_; } + +void TemplateMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<TemplateMessage *>(to)->MergeFrom( + static_cast<const TemplateMessage &>(from)); } + void TemplateMessage::MergeFrom(const TemplateMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -26313,13 +26639,7 @@ void TemplateMessage::MergeFrom(const TemplateMessage& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TemplateMessage::CopyFrom(const TemplateMessage& from) { @@ -26335,7 +26655,7 @@ bool TemplateMessage::IsInitialized() const { void TemplateMessage::InternalSwap(TemplateMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(TemplateMessage, hydratedtemplate_) @@ -26348,10 +26668,11 @@ void TemplateMessage::InternalSwap(TemplateMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata TemplateMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[53]); } - // =================================================================== class TemplateButtonReplyMessage::_Internal { @@ -26376,10 +26697,13 @@ const ::proto::ContextInfo& TemplateButtonReplyMessage::_Internal::contextinfo(const TemplateButtonReplyMessage* msg) { return *msg->contextinfo_; } -TemplateButtonReplyMessage::TemplateButtonReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +TemplateButtonReplyMessage::TemplateButtonReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.TemplateButtonReplyMessage) } TemplateButtonReplyMessage::TemplateButtonReplyMessage(const TemplateButtonReplyMessage& from) @@ -26389,12 +26713,12 @@ TemplateButtonReplyMessage::TemplateButtonReplyMessage(const TemplateButtonReply selectedid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_selectedid()) { selectedid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selectedid(), - GetArena()); + GetArenaForAllocation()); } selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_selecteddisplaytext()) { selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selecteddisplaytext(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -26416,12 +26740,13 @@ selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmp TemplateButtonReplyMessage::~TemplateButtonReplyMessage() { // @@protoc_insertion_point(destructor:proto.TemplateButtonReplyMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void TemplateButtonReplyMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void TemplateButtonReplyMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); selectedid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); selecteddisplaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete contextinfo_; @@ -26467,7 +26792,6 @@ const char* TemplateButtonReplyMessage::_InternalParse(const char* ptr, ::PROTOB 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: @@ -26478,7 +26802,8 @@ const char* TemplateButtonReplyMessage::_InternalParse(const char* ptr, ::PROTOB ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.TemplateButtonReplyMessage.selectedId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string selectedDisplayText = 2; case 2: @@ -26489,14 +26814,16 @@ const char* TemplateButtonReplyMessage::_InternalParse(const char* ptr, ::PROTOB ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.TemplateButtonReplyMessage.selectedDisplayText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional uint32 selectedIndex = 4; case 4: @@ -26504,28 +26831,30 @@ const char* TemplateButtonReplyMessage::_InternalParse(const char* ptr, ::PROTOB _Internal::set_has_selectedindex(&has_bits); selectedindex_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -26611,40 +26940,29 @@ size_t TemplateButtonReplyMessage::ByteSizeLong() const { // optional uint32 selectedIndex = 4; if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_selectedindex()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TemplateButtonReplyMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + TemplateButtonReplyMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TemplateButtonReplyMessage::GetClassData() const { return &_class_data_; } + +void TemplateButtonReplyMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<TemplateButtonReplyMessage *>(to)->MergeFrom( + static_cast<const TemplateButtonReplyMessage &>(from)); } + void TemplateButtonReplyMessage::MergeFrom(const TemplateButtonReplyMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.TemplateButtonReplyMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -26664,13 +26982,7 @@ void TemplateButtonReplyMessage::MergeFrom(const TemplateButtonReplyMessage& fro } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void TemplateButtonReplyMessage::CopyFrom(const TemplateButtonReplyMessage& from) { @@ -26686,10 +26998,20 @@ bool TemplateButtonReplyMessage::IsInitialized() const { void TemplateButtonReplyMessage::InternalSwap(TemplateButtonReplyMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &selectedid_, lhs_arena, + &other->selectedid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &selecteddisplaytext_, lhs_arena, + &other->selecteddisplaytext_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(TemplateButtonReplyMessage, selectedindex_) + sizeof(TemplateButtonReplyMessage::selectedindex_) @@ -26699,10 +27021,11 @@ void TemplateButtonReplyMessage::InternalSwap(TemplateButtonReplyMessage* other) } ::PROTOBUF_NAMESPACE_ID::Metadata TemplateButtonReplyMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[54]); } - // =================================================================== class CatalogSnapshot::_Internal { @@ -26724,10 +27047,13 @@ const ::proto::ImageMessage& CatalogSnapshot::_Internal::catalogimage(const CatalogSnapshot* msg) { return *msg->catalogimage_; } -CatalogSnapshot::CatalogSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +CatalogSnapshot::CatalogSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.CatalogSnapshot) } CatalogSnapshot::CatalogSnapshot(const CatalogSnapshot& from) @@ -26737,12 +27063,12 @@ CatalogSnapshot::CatalogSnapshot(const CatalogSnapshot& from) title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArena()); + GetArenaForAllocation()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_catalogimage()) { catalogimage_ = new ::proto::ImageMessage(*from.catalogimage_); @@ -26760,12 +27086,13 @@ catalogimage_ = nullptr; CatalogSnapshot::~CatalogSnapshot() { // @@protoc_insertion_point(destructor:proto.CatalogSnapshot) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void CatalogSnapshot::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void CatalogSnapshot::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete catalogimage_; @@ -26810,14 +27137,14 @@ const char* CatalogSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC 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; + } else + goto handle_unusual; continue; // optional string title = 2; case 2: @@ -26828,7 +27155,8 @@ const char* CatalogSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.CatalogSnapshot.title"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string description = 3; case 3: @@ -26839,28 +27167,30 @@ const char* CatalogSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.CatalogSnapshot.description"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -26939,34 +27269,25 @@ size_t CatalogSnapshot::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CatalogSnapshot::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + CatalogSnapshot::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CatalogSnapshot::GetClassData() const { return &_class_data_; } + +void CatalogSnapshot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<CatalogSnapshot *>(to)->MergeFrom( + static_cast<const CatalogSnapshot &>(from)); } + void CatalogSnapshot::MergeFrom(const CatalogSnapshot& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.CatalogSnapshot) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -26982,13 +27303,7 @@ void CatalogSnapshot::MergeFrom(const CatalogSnapshot& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void CatalogSnapshot::CopyFrom(const CatalogSnapshot& from) { @@ -27004,18 +27319,29 @@ bool CatalogSnapshot::IsInitialized() const { void CatalogSnapshot::InternalSwap(CatalogSnapshot* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &title_, lhs_arena, + &other->title_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &description_, lhs_arena, + &other->description_, rhs_arena + ); swap(catalogimage_, other->catalogimage_); } ::PROTOBUF_NAMESPACE_ID::Metadata CatalogSnapshot::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[55]); } - // =================================================================== class ProductSnapshot::_Internal { @@ -27058,10 +27384,13 @@ const ::proto::ImageMessage& ProductSnapshot::_Internal::productimage(const ProductSnapshot* msg) { return *msg->productimage_; } -ProductSnapshot::ProductSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ProductSnapshot::ProductSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ProductSnapshot) } ProductSnapshot::ProductSnapshot(const ProductSnapshot& from) @@ -27071,37 +27400,37 @@ ProductSnapshot::ProductSnapshot(const ProductSnapshot& from) productid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_productid()) { productid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_productid(), - GetArena()); + GetArenaForAllocation()); } title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArena()); + GetArenaForAllocation()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArena()); + GetArenaForAllocation()); } currencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_currencycode()) { currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currencycode(), - GetArena()); + GetArenaForAllocation()); } retailerid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_retailerid()) { retailerid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_retailerid(), - GetArena()); + GetArenaForAllocation()); } url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_url()) { url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_url(), - GetArena()); + GetArenaForAllocation()); } firstimageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_firstimageid()) { firstimageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_firstimageid(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_productimage()) { productimage_ = new ::proto::ImageMessage(*from.productimage_); @@ -27130,12 +27459,13 @@ firstimageid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStrin ProductSnapshot::~ProductSnapshot() { // @@protoc_insertion_point(destructor:proto.ProductSnapshot) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ProductSnapshot::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ProductSnapshot::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); productid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -27205,14 +27535,14 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC 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; + } else + goto handle_unusual; continue; // optional string productId = 2; case 2: @@ -27223,7 +27553,8 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.productId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string title = 3; case 3: @@ -27234,7 +27565,8 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.title"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string description = 4; case 4: @@ -27245,7 +27577,8 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.description"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string currencyCode = 5; case 5: @@ -27256,7 +27589,8 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.currencyCode"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 priceAmount1000 = 6; case 6: @@ -27264,7 +27598,8 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_priceamount1000(&has_bits); priceamount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string retailerId = 7; case 7: @@ -27275,7 +27610,8 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.retailerId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string url = 8; case 8: @@ -27286,7 +27622,8 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductSnapshot.url"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 productImageCount = 9; case 9: @@ -27294,7 +27631,8 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC _Internal::set_has_productimagecount(&has_bits); productimagecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string firstImageId = 11; case 11: @@ -27305,28 +27643,30 @@ const char* ProductSnapshot::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPAC ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -27505,47 +27845,34 @@ size_t ProductSnapshot::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_priceamount1000()); } // optional uint32 productImageCount = 9; if (cached_has_bits & 0x00000200u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_productimagecount()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProductSnapshot::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ProductSnapshot::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProductSnapshot::GetClassData() const { return &_class_data_; } + +void ProductSnapshot::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ProductSnapshot *>(to)->MergeFrom( + static_cast<const ProductSnapshot &>(from)); } + void ProductSnapshot::MergeFrom(const ProductSnapshot& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ProductSnapshot) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -27585,13 +27912,7 @@ void ProductSnapshot::MergeFrom(const ProductSnapshot& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ProductSnapshot::CopyFrom(const ProductSnapshot& from) { @@ -27607,15 +27928,45 @@ bool ProductSnapshot::IsInitialized() const { void ProductSnapshot::InternalSwap(ProductSnapshot* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &productid_, lhs_arena, + &other->productid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &title_, lhs_arena, + &other->title_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ¤cycode_, lhs_arena, + &other->currencycode_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &retailerid_, lhs_arena, + &other->retailerid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &url_, lhs_arena, + &other->url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &firstimageid_, lhs_arena, + &other->firstimageid_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ProductSnapshot, productimagecount_) + sizeof(ProductSnapshot::productimagecount_) @@ -27625,10 +27976,11 @@ void ProductSnapshot::InternalSwap(ProductSnapshot* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ProductSnapshot::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[56]); } - // =================================================================== class ProductMessage::_Internal { @@ -27663,10 +28015,13 @@ const ::proto::ContextInfo& ProductMessage::_Internal::contextinfo(const ProductMessage* msg) { return *msg->contextinfo_; } -ProductMessage::ProductMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ProductMessage::ProductMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ProductMessage) } ProductMessage::ProductMessage(const ProductMessage& from) @@ -27676,7 +28031,7 @@ ProductMessage::ProductMessage(const ProductMessage& from) businessownerjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_businessownerjid()) { businessownerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_businessownerjid(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_product()) { product_ = new ::proto::ProductSnapshot(*from.product_); @@ -27706,12 +28061,13 @@ businessownerjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyS ProductMessage::~ProductMessage() { // @@protoc_insertion_point(destructor:proto.ProductMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ProductMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ProductMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); businessownerjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete product_; if (this != internal_default_instance()) delete catalog_; @@ -27762,14 +28118,14 @@ const char* ProductMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE 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; + } else + goto handle_unusual; continue; // optional string businessOwnerJid = 2; case 2: @@ -27780,42 +28136,46 @@ const char* ProductMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ProductMessage.businessOwnerJid"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -27907,34 +28267,25 @@ size_t ProductMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ProductMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ProductMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ProductMessage::GetClassData() const { return &_class_data_; } + +void ProductMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ProductMessage *>(to)->MergeFrom( + static_cast<const ProductMessage &>(from)); } + void ProductMessage::MergeFrom(const ProductMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ProductMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -27953,13 +28304,7 @@ void ProductMessage::MergeFrom(const ProductMessage& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ProductMessage::CopyFrom(const ProductMessage& from) { @@ -27975,9 +28320,15 @@ bool ProductMessage::IsInitialized() const { void ProductMessage::InternalSwap(ProductMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &businessownerjid_, lhs_arena, + &other->businessownerjid_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ProductMessage, contextinfo_) + sizeof(ProductMessage::contextinfo_) @@ -27987,10 +28338,11 @@ void ProductMessage::InternalSwap(ProductMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ProductMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[57]); } - // =================================================================== class OrderMessage::_Internal { @@ -28039,10 +28391,13 @@ const ::proto::ContextInfo& OrderMessage::_Internal::contextinfo(const OrderMessage* msg) { return *msg->contextinfo_; } -OrderMessage::OrderMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +OrderMessage::OrderMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.OrderMessage) } OrderMessage::OrderMessage(const OrderMessage& from) @@ -28052,37 +28407,37 @@ OrderMessage::OrderMessage(const OrderMessage& from) orderid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_orderid()) { orderid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_orderid(), - GetArena()); + GetArenaForAllocation()); } thumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_thumbnail()) { thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_thumbnail(), - GetArena()); + GetArenaForAllocation()); } message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_message()) { message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), - GetArena()); + GetArenaForAllocation()); } ordertitle_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_ordertitle()) { ordertitle_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ordertitle(), - GetArena()); + GetArenaForAllocation()); } sellerjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_sellerjid()) { sellerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sellerjid(), - GetArena()); + GetArenaForAllocation()); } token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_token()) { token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_token(), - GetArena()); + GetArenaForAllocation()); } totalcurrencycode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_totalcurrencycode()) { totalcurrencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_totalcurrencycode(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -28113,12 +28468,13 @@ surface_ = 1; OrderMessage::~OrderMessage() { // @@protoc_insertion_point(destructor:proto.OrderMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void OrderMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void OrderMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); orderid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); thumbnail_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -28190,7 +28546,6 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I 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: @@ -28201,7 +28556,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.orderId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes thumbnail = 2; case 2: @@ -28209,7 +28565,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I auto str = _internal_mutable_thumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int32 itemCount = 3; case 3: @@ -28217,7 +28574,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_itemcount(&has_bits); itemcount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.OrderMessage.OrderMessageOrderStatus status = 4; case 4: @@ -28229,7 +28587,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.OrderMessage.OrderMessageOrderSurface surface = 5; case 5: @@ -28241,7 +28600,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string message = 6; case 6: @@ -28252,7 +28612,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.message"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string orderTitle = 7; case 7: @@ -28263,7 +28624,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.orderTitle"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string sellerJid = 8; case 8: @@ -28274,7 +28636,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.sellerJid"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string token = 9; case 9: @@ -28285,7 +28648,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.token"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 totalAmount1000 = 10; case 10: @@ -28293,7 +28657,8 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I _Internal::set_has_totalamount1000(&has_bits); totalamount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string totalCurrencyCode = 11; case 11: @@ -28304,35 +28669,38 @@ const char* OrderMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_I ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.OrderMessage.totalCurrencyCode"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -28521,16 +28889,12 @@ size_t OrderMessage::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_totalamount1000()); } // optional int32 itemCount = 3; if (cached_has_bits & 0x00000200u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_itemcount()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_itemcount()); } // optional .proto.OrderMessage.OrderMessageOrderStatus status = 4; @@ -28546,34 +28910,25 @@ size_t OrderMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData OrderMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + OrderMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*OrderMessage::GetClassData() const { return &_class_data_; } + +void OrderMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<OrderMessage *>(to)->MergeFrom( + static_cast<const OrderMessage &>(from)); } + void OrderMessage::MergeFrom(const OrderMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.OrderMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -28619,13 +28974,7 @@ void OrderMessage::MergeFrom(const OrderMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void OrderMessage::CopyFrom(const OrderMessage& from) { @@ -28641,15 +28990,45 @@ bool OrderMessage::IsInitialized() const { void OrderMessage::InternalSwap(OrderMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &orderid_, lhs_arena, + &other->orderid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &thumbnail_, lhs_arena, + &other->thumbnail_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &message_, lhs_arena, + &other->message_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &ordertitle_, lhs_arena, + &other->ordertitle_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &sellerjid_, lhs_arena, + &other->sellerjid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &token_, lhs_arena, + &other->token_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &totalcurrencycode_, lhs_arena, + &other->totalcurrencycode_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(OrderMessage, itemcount_) + sizeof(OrderMessage::itemcount_) @@ -28661,10 +29040,11 @@ void OrderMessage::InternalSwap(OrderMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata OrderMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[58]); } - // =================================================================== class Row::_Internal { @@ -28681,10 +29061,13 @@ class Row::_Internal { } }; -Row::Row(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Row::Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.Row) } Row::Row(const Row& from) @@ -28694,17 +29077,17 @@ Row::Row(const Row& from) title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArena()); + GetArenaForAllocation()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArena()); + GetArenaForAllocation()); } rowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_rowid()) { rowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_rowid(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.Row) } @@ -28717,12 +29100,13 @@ rowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlread Row::~Row() { // @@protoc_insertion_point(destructor:proto.Row) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Row::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void Row::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); rowid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -28766,7 +29150,6 @@ const char* Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern 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: @@ -28777,7 +29160,8 @@ const char* Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Row.title"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string description = 2; case 2: @@ -28788,7 +29172,8 @@ const char* Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Row.description"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string rowId = 3; case 3: @@ -28799,28 +29184,30 @@ const char* Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::intern ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -28901,34 +29288,25 @@ size_t Row::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Row::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Row::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Row::GetClassData() const { return &_class_data_; } + +void Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<Row *>(to)->MergeFrom( + static_cast<const Row &>(from)); } + void Row::MergeFrom(const Row& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Row) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -28944,13 +29322,7 @@ void Row::MergeFrom(const Row& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Row::CopyFrom(const Row& from) { @@ -28966,18 +29338,33 @@ bool Row::IsInitialized() const { void Row::InternalSwap(Row* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &title_, lhs_arena, + &other->title_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &rowid_, lhs_arena, + &other->rowid_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata Row::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[59]); } - // =================================================================== class Section::_Internal { @@ -28988,11 +29375,14 @@ class Section::_Internal { } }; -Section::Section(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +Section::Section(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), rows_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.Section) } Section::Section(const Section& from) @@ -29003,7 +29393,7 @@ Section::Section(const Section& from) title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.Section) } @@ -29014,12 +29404,13 @@ title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlread Section::~Section() { // @@protoc_insertion_point(destructor:proto.Section) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Section::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void Section::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -29054,7 +29445,6 @@ const char* Section::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in 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: @@ -29065,7 +29455,8 @@ const char* Section::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Section.title"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .proto.Row rows = 2; case 2: @@ -29077,28 +29468,30 @@ const char* Section::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -29158,34 +29551,25 @@ size_t Section::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Section::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Section::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Section::GetClassData() const { return &_class_data_; } + +void Section::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<Section *>(to)->MergeFrom( + static_cast<const Section &>(from)); } + void Section::MergeFrom(const Section& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Section) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -29193,13 +29577,7 @@ void Section::MergeFrom(const Section& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Section::CopyFrom(const Section& from) { @@ -29215,17 +29593,24 @@ bool Section::IsInitialized() const { void Section::InternalSwap(Section* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); rows_.InternalSwap(&other->rows_); - title_.Swap(&other->title_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &title_, lhs_arena, + &other->title_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata Section::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[60]); } - // =================================================================== class ListMessage::_Internal { @@ -29245,11 +29630,14 @@ class ListMessage::_Internal { } }; -ListMessage::ListMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +ListMessage::ListMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), sections_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ListMessage) } ListMessage::ListMessage(const ListMessage& from) @@ -29260,17 +29648,17 @@ ListMessage::ListMessage(const ListMessage& from) title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArena()); + GetArenaForAllocation()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArena()); + GetArenaForAllocation()); } buttontext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_buttontext()) { buttontext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_buttontext(), - GetArena()); + GetArenaForAllocation()); } listtype_ = from.listtype_; // @@protoc_insertion_point(copy_constructor:proto.ListMessage) @@ -29285,12 +29673,13 @@ listtype_ = 0; ListMessage::~ListMessage() { // @@protoc_insertion_point(destructor:proto.ListMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ListMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ListMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); buttontext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -29336,7 +29725,6 @@ const char* ListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID 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: @@ -29347,7 +29735,8 @@ const char* ListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ListMessage.title"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string description = 2; case 2: @@ -29358,7 +29747,8 @@ const char* ListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ListMessage.description"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string buttonText = 3; case 3: @@ -29369,7 +29759,8 @@ const char* ListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ListMessage.buttonText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.ListMessage.ListMessageListType listType = 4; case 4: @@ -29381,7 +29772,8 @@ const char* ListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .proto.Section sections = 5; case 5: @@ -29393,28 +29785,30 @@ const char* ListMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -29523,34 +29917,25 @@ size_t ListMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListMessage::GetClassData() const { return &_class_data_; } + +void ListMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ListMessage *>(to)->MergeFrom( + static_cast<const ListMessage &>(from)); } + void ListMessage::MergeFrom(const ListMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ListMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -29571,13 +29956,7 @@ void ListMessage::MergeFrom(const ListMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListMessage::CopyFrom(const ListMessage& from) { @@ -29593,20 +29972,35 @@ bool ListMessage::IsInitialized() const { void ListMessage::InternalSwap(ListMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); sections_.InternalSwap(&other->sections_); - 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()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &title_, lhs_arena, + &other->title_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &description_, lhs_arena, + &other->description_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &buttontext_, lhs_arena, + &other->buttontext_, rhs_arena + ); swap(listtype_, other->listtype_); } ::PROTOBUF_NAMESPACE_ID::Metadata ListMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[61]); } - // =================================================================== class SingleSelectReply::_Internal { @@ -29617,10 +30011,13 @@ class SingleSelectReply::_Internal { } }; -SingleSelectReply::SingleSelectReply(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +SingleSelectReply::SingleSelectReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.SingleSelectReply) } SingleSelectReply::SingleSelectReply(const SingleSelectReply& from) @@ -29630,7 +30027,7 @@ SingleSelectReply::SingleSelectReply(const SingleSelectReply& from) selectedrowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_selectedrowid()) { selectedrowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selectedrowid(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.SingleSelectReply) } @@ -29641,12 +30038,13 @@ selectedrowid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStri SingleSelectReply::~SingleSelectReply() { // @@protoc_insertion_point(destructor:proto.SingleSelectReply) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void SingleSelectReply::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void SingleSelectReply::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); selectedrowid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -29680,7 +30078,6 @@ const char* SingleSelectReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP 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: @@ -29691,28 +30088,30 @@ const char* SingleSelectReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.SingleSelectReply.selectedRowId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -29757,47 +30156,32 @@ size_t SingleSelectReply::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SingleSelectReply::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SingleSelectReply::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SingleSelectReply::GetClassData() const { return &_class_data_; } + +void SingleSelectReply::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<SingleSelectReply *>(to)->MergeFrom( + static_cast<const SingleSelectReply &>(from)); } + void SingleSelectReply::MergeFrom(const SingleSelectReply& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.SingleSelectReply) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void SingleSelectReply::CopyFrom(const SingleSelectReply& from) { @@ -29813,16 +30197,23 @@ bool SingleSelectReply::IsInitialized() const { void SingleSelectReply::InternalSwap(SingleSelectReply* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); - selectedrowid_.Swap(&other->selectedrowid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &selectedrowid_, lhs_arena, + &other->selectedrowid_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata SingleSelectReply::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[62]); } - // =================================================================== class ListResponseMessage::_Internal { @@ -29855,10 +30246,13 @@ const ::proto::ContextInfo& ListResponseMessage::_Internal::contextinfo(const ListResponseMessage* msg) { return *msg->contextinfo_; } -ListResponseMessage::ListResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ListResponseMessage::ListResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ListResponseMessage) } ListResponseMessage::ListResponseMessage(const ListResponseMessage& from) @@ -29868,12 +30262,12 @@ ListResponseMessage::ListResponseMessage(const ListResponseMessage& from) title_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_title()) { title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_title(), - GetArena()); + GetArenaForAllocation()); } description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_description()) { description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_description(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_singleselectreply()) { singleselectreply_ = new ::proto::SingleSelectReply(*from.singleselectreply_); @@ -29900,12 +30294,13 @@ description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString ListResponseMessage::~ListResponseMessage() { // @@protoc_insertion_point(destructor:proto.ListResponseMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ListResponseMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ListResponseMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); title_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete singleselectreply_; @@ -29956,7 +30351,6 @@ const char* ListResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME 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: @@ -29967,7 +30361,8 @@ const char* ListResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ListResponseMessage.title"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.ListResponseMessage.ListResponseMessageListType listType = 2; case 2: @@ -29979,21 +30374,24 @@ const char* ListResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } 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; + } 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; + } else + goto handle_unusual; continue; // optional string description = 5; case 5: @@ -30004,28 +30402,30 @@ const char* ListResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAME ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -30132,34 +30532,25 @@ size_t ListResponseMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListResponseMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ListResponseMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListResponseMessage::GetClassData() const { return &_class_data_; } + +void ListResponseMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ListResponseMessage *>(to)->MergeFrom( + static_cast<const ListResponseMessage &>(from)); } + void ListResponseMessage::MergeFrom(const ListResponseMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ListResponseMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -30182,13 +30573,7 @@ void ListResponseMessage::MergeFrom(const ListResponseMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ListResponseMessage::CopyFrom(const ListResponseMessage& from) { @@ -30204,10 +30589,20 @@ bool ListResponseMessage::IsInitialized() const { void ListResponseMessage::InternalSwap(ListResponseMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &title_, lhs_arena, + &other->title_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &description_, lhs_arena, + &other->description_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ListResponseMessage, listtype_) + sizeof(ListResponseMessage::listtype_) @@ -30217,10 +30612,11 @@ void ListResponseMessage::InternalSwap(ListResponseMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ListResponseMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[63]); } - // =================================================================== class GroupInviteMessage::_Internal { @@ -30254,10 +30650,13 @@ const ::proto::ContextInfo& GroupInviteMessage::_Internal::contextinfo(const GroupInviteMessage* msg) { return *msg->contextinfo_; } -GroupInviteMessage::GroupInviteMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +GroupInviteMessage::GroupInviteMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.GroupInviteMessage) } GroupInviteMessage::GroupInviteMessage(const GroupInviteMessage& from) @@ -30267,27 +30666,27 @@ GroupInviteMessage::GroupInviteMessage(const GroupInviteMessage& from) groupjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_groupjid()) { groupjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_groupjid(), - GetArena()); + GetArenaForAllocation()); } invitecode_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_invitecode()) { invitecode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_invitecode(), - GetArena()); + GetArenaForAllocation()); } groupname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_groupname()) { groupname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_groupname(), - GetArena()); + GetArenaForAllocation()); } jpegthumbnail_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_jpegthumbnail()) { jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_jpegthumbnail(), - GetArena()); + GetArenaForAllocation()); } caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_caption()) { caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_caption(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -30312,12 +30711,13 @@ caption_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlre GroupInviteMessage::~GroupInviteMessage() { // @@protoc_insertion_point(destructor:proto.GroupInviteMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void GroupInviteMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void GroupInviteMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); groupjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); invitecode_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); groupname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -30364,7 +30764,7 @@ void GroupInviteMessage::Clear() { contextinfo_->Clear(); } } - inviteexpiration_ = PROTOBUF_LONGLONG(0); + inviteexpiration_ = int64_t{0}; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -30375,7 +30775,6 @@ const char* GroupInviteMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES 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: @@ -30386,7 +30785,8 @@ const char* GroupInviteMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.GroupInviteMessage.groupJid"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string inviteCode = 2; case 2: @@ -30397,7 +30797,8 @@ const char* GroupInviteMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.GroupInviteMessage.inviteCode"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 inviteExpiration = 3; case 3: @@ -30405,7 +30806,8 @@ const char* GroupInviteMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES _Internal::set_has_inviteexpiration(&has_bits); inviteexpiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string groupName = 4; case 4: @@ -30416,7 +30818,8 @@ const char* GroupInviteMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.GroupInviteMessage.groupName"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes jpegThumbnail = 5; case 5: @@ -30424,7 +30827,8 @@ const char* GroupInviteMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES auto str = _internal_mutable_jpegthumbnail(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string caption = 6; case 6: @@ -30435,35 +30839,38 @@ const char* GroupInviteMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.GroupInviteMessage.caption"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -30596,40 +31003,29 @@ size_t GroupInviteMessage::ByteSizeLong() const { // optional int64 inviteExpiration = 3; if (cached_has_bits & 0x00000040u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_inviteexpiration()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GroupInviteMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + GroupInviteMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GroupInviteMessage::GetClassData() const { return &_class_data_; } + +void GroupInviteMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<GroupInviteMessage *>(to)->MergeFrom( + static_cast<const GroupInviteMessage &>(from)); } + void GroupInviteMessage::MergeFrom(const GroupInviteMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.GroupInviteMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -30658,13 +31054,7 @@ void GroupInviteMessage::MergeFrom(const GroupInviteMessage& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void GroupInviteMessage::CopyFrom(const GroupInviteMessage& from) { @@ -30680,13 +31070,35 @@ bool GroupInviteMessage::IsInitialized() const { void GroupInviteMessage::InternalSwap(GroupInviteMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &groupjid_, lhs_arena, + &other->groupjid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &invitecode_, lhs_arena, + &other->invitecode_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &groupname_, lhs_arena, + &other->groupname_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &jpegthumbnail_, lhs_arena, + &other->jpegthumbnail_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &caption_, lhs_arena, + &other->caption_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(GroupInviteMessage, inviteexpiration_) + sizeof(GroupInviteMessage::inviteexpiration_) @@ -30696,10 +31108,11 @@ void GroupInviteMessage::InternalSwap(GroupInviteMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata GroupInviteMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[64]); } - // =================================================================== class EphemeralSetting::_Internal { @@ -30716,10 +31129,13 @@ class EphemeralSetting::_Internal { } }; -EphemeralSetting::EphemeralSetting(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +EphemeralSetting::EphemeralSetting(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.EphemeralSetting) } EphemeralSetting::EphemeralSetting(const EphemeralSetting& from) @@ -30729,7 +31145,7 @@ EphemeralSetting::EphemeralSetting(const EphemeralSetting& from) chatjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_chatjid()) { chatjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_chatjid(), - GetArena()); + GetArenaForAllocation()); } ::memcpy(&ephemeralsettingtimestamp_, &from.ephemeralsettingtimestamp_, static_cast<size_t>(reinterpret_cast<char*>(&ephemeralexpiration_) - @@ -30747,12 +31163,13 @@ chatjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlre EphemeralSetting::~EphemeralSetting() { // @@protoc_insertion_point(destructor:proto.EphemeralSetting) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void EphemeralSetting::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void EphemeralSetting::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); chatjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -30791,7 +31208,6 @@ const char* EphemeralSetting::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA 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: @@ -30802,7 +31218,8 @@ const char* EphemeralSetting::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.EphemeralSetting.chatJid"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 ephemeralExpiration = 2; case 2: @@ -30810,7 +31227,8 @@ const char* EphemeralSetting::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA _Internal::set_has_ephemeralexpiration(&has_bits); ephemeralexpiration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional int64 ephemeralSettingTimestamp = 3; case 3: @@ -30818,28 +31236,30 @@ const char* EphemeralSetting::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPA _Internal::set_has_ephemeralsettingtimestamp(&has_bits); ephemeralsettingtimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -30899,47 +31319,34 @@ size_t EphemeralSetting::ByteSizeLong() const { // optional int64 ephemeralSettingTimestamp = 3; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_ephemeralsettingtimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_ephemeralsettingtimestamp()); } // optional uint32 ephemeralExpiration = 2; if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_ephemeralexpiration()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData EphemeralSetting::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + EphemeralSetting::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*EphemeralSetting::GetClassData() const { return &_class_data_; } + +void EphemeralSetting::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<EphemeralSetting *>(to)->MergeFrom( + static_cast<const EphemeralSetting &>(from)); } + void EphemeralSetting::MergeFrom(const EphemeralSetting& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.EphemeralSetting) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -30956,13 +31363,7 @@ void EphemeralSetting::MergeFrom(const EphemeralSetting& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void EphemeralSetting::CopyFrom(const EphemeralSetting& from) { @@ -30978,9 +31379,15 @@ bool EphemeralSetting::IsInitialized() const { void EphemeralSetting::InternalSwap(EphemeralSetting* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &chatjid_, lhs_arena, + &other->chatjid_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(EphemeralSetting, ephemeralexpiration_) + sizeof(EphemeralSetting::ephemeralexpiration_) @@ -30990,10 +31397,11 @@ void EphemeralSetting::InternalSwap(EphemeralSetting* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata EphemeralSetting::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[65]); } - // =================================================================== class DeviceSentMessage::_Internal { @@ -31015,11 +31423,14 @@ const ::proto::Message& DeviceSentMessage::_Internal::message(const DeviceSentMessage* msg) { return *msg->message_; } -DeviceSentMessage::DeviceSentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +DeviceSentMessage::DeviceSentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), broadcastephemeralsettings_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.DeviceSentMessage) } DeviceSentMessage::DeviceSentMessage(const DeviceSentMessage& from) @@ -31030,12 +31441,12 @@ DeviceSentMessage::DeviceSentMessage(const DeviceSentMessage& from) destinationjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_destinationjid()) { destinationjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_destinationjid(), - GetArena()); + GetArenaForAllocation()); } phash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_phash()) { phash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_phash(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_message()) { message_ = new ::proto::Message(*from.message_); @@ -31053,12 +31464,13 @@ message_ = nullptr; DeviceSentMessage::~DeviceSentMessage() { // @@protoc_insertion_point(destructor:proto.DeviceSentMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void DeviceSentMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void DeviceSentMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); destinationjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); phash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete message_; @@ -31104,7 +31516,6 @@ const char* DeviceSentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP 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: @@ -31115,14 +31526,16 @@ const char* DeviceSentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DeviceSentMessage.destinationJid"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional string phash = 3; case 3: @@ -31133,7 +31546,8 @@ const char* DeviceSentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.DeviceSentMessage.phash"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .proto.EphemeralSetting broadcastEphemeralSettings = 4; case 4: @@ -31145,28 +31559,30 @@ const char* DeviceSentMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESP 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -31260,34 +31676,25 @@ size_t DeviceSentMessage::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeviceSentMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + DeviceSentMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeviceSentMessage::GetClassData() const { return &_class_data_; } + +void DeviceSentMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<DeviceSentMessage *>(to)->MergeFrom( + static_cast<const DeviceSentMessage &>(from)); } + void DeviceSentMessage::MergeFrom(const DeviceSentMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.DeviceSentMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -31304,13 +31711,7 @@ void DeviceSentMessage::MergeFrom(const DeviceSentMessage& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void DeviceSentMessage::CopyFrom(const DeviceSentMessage& from) { @@ -31326,19 +31727,30 @@ bool DeviceSentMessage::IsInitialized() const { void DeviceSentMessage::InternalSwap(DeviceSentMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); broadcastephemeralsettings_.InternalSwap(&other->broadcastephemeralsettings_); - destinationjid_.Swap(&other->destinationjid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - phash_.Swap(&other->phash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &destinationjid_, lhs_arena, + &other->destinationjid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &phash_, lhs_arena, + &other->phash_, rhs_arena + ); swap(message_, other->message_); } ::PROTOBUF_NAMESPACE_ID::Metadata DeviceSentMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[66]); } - // =================================================================== class FutureProofMessage::_Internal { @@ -31354,10 +31766,13 @@ const ::proto::Message& FutureProofMessage::_Internal::message(const FutureProofMessage* msg) { return *msg->message_; } -FutureProofMessage::FutureProofMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +FutureProofMessage::FutureProofMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.FutureProofMessage) } FutureProofMessage::FutureProofMessage(const FutureProofMessage& from) @@ -31378,12 +31793,13 @@ message_ = nullptr; FutureProofMessage::~FutureProofMessage() { // @@protoc_insertion_point(destructor:proto.FutureProofMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void FutureProofMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void FutureProofMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); if (this != internal_default_instance()) delete message_; } @@ -31418,35 +31834,36 @@ const char* FutureProofMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMES 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -31489,47 +31906,32 @@ size_t FutureProofMessage::ByteSizeLong() const { *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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FutureProofMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + FutureProofMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FutureProofMessage::GetClassData() const { return &_class_data_; } + +void FutureProofMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<FutureProofMessage *>(to)->MergeFrom( + static_cast<const FutureProofMessage &>(from)); } + void FutureProofMessage::MergeFrom(const FutureProofMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.FutureProofMessage) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void FutureProofMessage::CopyFrom(const FutureProofMessage& from) { @@ -31545,16 +31947,17 @@ bool FutureProofMessage::IsInitialized() const { void FutureProofMessage::InternalSwap(FutureProofMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(message_, other->message_); } ::PROTOBUF_NAMESPACE_ID::Metadata FutureProofMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[67]); } - // =================================================================== class ButtonText::_Internal { @@ -31565,10 +31968,13 @@ class ButtonText::_Internal { } }; -ButtonText::ButtonText(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ButtonText::ButtonText(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ButtonText) } ButtonText::ButtonText(const ButtonText& from) @@ -31578,7 +31984,7 @@ ButtonText::ButtonText(const ButtonText& from) displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_displaytext()) { displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_displaytext(), - GetArena()); + GetArenaForAllocation()); } // @@protoc_insertion_point(copy_constructor:proto.ButtonText) } @@ -31589,12 +31995,13 @@ displaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString ButtonText::~ButtonText() { // @@protoc_insertion_point(destructor:proto.ButtonText) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ButtonText::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ButtonText::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); displaytext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } @@ -31628,7 +32035,6 @@ const char* ButtonText::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: 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: @@ -31639,28 +32045,30 @@ const char* ButtonText::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -31705,47 +32113,32 @@ size_t ButtonText::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ButtonText::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ButtonText::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ButtonText::GetClassData() const { return &_class_data_; } + +void ButtonText::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ButtonText *>(to)->MergeFrom( + static_cast<const ButtonText &>(from)); } + void ButtonText::MergeFrom(const ButtonText& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonText) GOOGLE_DCHECK_NE(&from, this); - _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ButtonText::CopyFrom(const ButtonText& from) { @@ -31761,16 +32154,23 @@ bool ButtonText::IsInitialized() const { void ButtonText::InternalSwap(ButtonText* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); - displaytext_.Swap(&other->displaytext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &displaytext_, lhs_arena, + &other->displaytext_, rhs_arena + ); } ::PROTOBUF_NAMESPACE_ID::Metadata ButtonText::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[68]); } - // =================================================================== class Button::_Internal { @@ -31792,10 +32192,13 @@ const ::proto::ButtonText& Button::_Internal::buttontext(const Button* msg) { return *msg->buttontext_; } -Button::Button(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Button::Button(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.Button) } Button::Button(const Button& from) @@ -31805,7 +32208,7 @@ Button::Button(const Button& from) buttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_buttonid()) { buttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_buttonid(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_buttontext()) { buttontext_ = new ::proto::ButtonText(*from.buttontext_); @@ -31826,12 +32229,13 @@ buttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlr Button::~Button() { // @@protoc_insertion_point(destructor:proto.Button) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Button::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void Button::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); buttonid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete buttontext_; } @@ -31873,7 +32277,6 @@ const char* Button::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int 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: @@ -31884,14 +32287,16 @@ const char* Button::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Button.buttonId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional .proto.Button.ButtonType type = 3; case 3: @@ -31903,28 +32308,30 @@ const char* Button::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::int } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -31999,34 +32406,25 @@ size_t Button::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Button::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Button::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Button::GetClassData() const { return &_class_data_; } + +void Button::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<Button *>(to)->MergeFrom( + static_cast<const Button &>(from)); } + void Button::MergeFrom(const Button& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Button) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -32043,13 +32441,7 @@ void Button::MergeFrom(const Button& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Button::CopyFrom(const Button& from) { @@ -32065,9 +32457,15 @@ bool Button::IsInitialized() const { void Button::InternalSwap(Button* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &buttonid_, lhs_arena, + &other->buttonid_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Button, type_) + sizeof(Button::type_) @@ -32077,10 +32475,11 @@ void Button::InternalSwap(Button* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Button::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[69]); } - // =================================================================== class ButtonsMessage::_Internal { @@ -32126,11 +32525,11 @@ 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(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_header(); if (documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(documentmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::DocumentMessage>::GetOwningArena(documentmessage); if (message_arena != submessage_arena) { documentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, documentmessage, submessage_arena); @@ -32141,11 +32540,11 @@ void ButtonsMessage::set_allocated_documentmessage(::proto::DocumentMessage* doc // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.documentMessage) } void ButtonsMessage::set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_header(); if (imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(imagemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ImageMessage>::GetOwningArena(imagemessage); if (message_arena != submessage_arena) { imagemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, imagemessage, submessage_arena); @@ -32156,11 +32555,11 @@ void ButtonsMessage::set_allocated_imagemessage(::proto::ImageMessage* imagemess // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.imageMessage) } void ButtonsMessage::set_allocated_videomessage(::proto::VideoMessage* videomessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_header(); if (videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(videomessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::VideoMessage>::GetOwningArena(videomessage); if (message_arena != submessage_arena) { videomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, videomessage, submessage_arena); @@ -32171,11 +32570,11 @@ void ButtonsMessage::set_allocated_videomessage(::proto::VideoMessage* videomess // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.videoMessage) } void ButtonsMessage::set_allocated_locationmessage(::proto::LocationMessage* locationmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_header(); if (locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(locationmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::LocationMessage>::GetOwningArena(locationmessage); if (message_arena != submessage_arena) { locationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, locationmessage, submessage_arena); @@ -32185,11 +32584,14 @@ void ButtonsMessage::set_allocated_locationmessage(::proto::LocationMessage* loc } // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.locationMessage) } -ButtonsMessage::ButtonsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +ButtonsMessage::ButtonsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), buttons_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ButtonsMessage) } ButtonsMessage::ButtonsMessage(const ButtonsMessage& from) @@ -32200,12 +32602,12 @@ ButtonsMessage::ButtonsMessage(const ButtonsMessage& from) contenttext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_contenttext()) { contenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_contenttext(), - GetArena()); + GetArenaForAllocation()); } footertext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_footertext()) { footertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_footertext(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -32254,12 +32656,13 @@ clear_has_header(); ButtonsMessage::~ButtonsMessage() { // @@protoc_insertion_point(destructor:proto.ButtonsMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ButtonsMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ButtonsMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); contenttext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); footertext_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete contextinfo_; @@ -32282,29 +32685,29 @@ 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()); + header_.text_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); break; } case kDocumentMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete header_.documentmessage_; } break; } case kImageMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete header_.imagemessage_; } break; } case kVideoMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete header_.videomessage_; } break; } case kLocationMessage: { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete header_.locationmessage_; } break; @@ -32349,7 +32752,6 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE 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: @@ -32360,35 +32762,40 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsMessage.text"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; + } 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; + } 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; + } else + goto handle_unusual; continue; // optional string contentText = 6; case 6: @@ -32399,7 +32806,8 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsMessage.contentText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string footerText = 7; case 7: @@ -32410,14 +32818,16 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsMessage.footerText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // repeated .proto.Button buttons = 9; case 9: @@ -32429,7 +32839,8 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.ButtonsMessage.ButtonsMessageHeaderType headerType = 10; case 10: @@ -32441,28 +32852,30 @@ const char* ButtonsMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -32649,34 +33062,25 @@ size_t ButtonsMessage::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ButtonsMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ButtonsMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ButtonsMessage::GetClassData() const { return &_class_data_; } + +void ButtonsMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ButtonsMessage *>(to)->MergeFrom( + static_cast<const ButtonsMessage &>(from)); } + void ButtonsMessage::MergeFrom(const ButtonsMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonsMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -32722,13 +33126,7 @@ void ButtonsMessage::MergeFrom(const ButtonsMessage& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ButtonsMessage::CopyFrom(const ButtonsMessage& from) { @@ -32744,11 +33142,21 @@ bool ButtonsMessage::IsInitialized() const { void ButtonsMessage::InternalSwap(ButtonsMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); buttons_.InternalSwap(&other->buttons_); - contenttext_.Swap(&other->contenttext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); - footertext_.Swap(&other->footertext_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &contenttext_, lhs_arena, + &other->contenttext_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &footertext_, lhs_arena, + &other->footertext_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ButtonsMessage, headertype_) + sizeof(ButtonsMessage::headertype_) @@ -32760,10 +33168,11 @@ void ButtonsMessage::InternalSwap(ButtonsMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ButtonsMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[70]); } - // =================================================================== class ButtonsResponseMessage::_Internal { @@ -32785,10 +33194,13 @@ const ::proto::ContextInfo& ButtonsResponseMessage::_Internal::contextinfo(const ButtonsResponseMessage* msg) { return *msg->contextinfo_; } -ButtonsResponseMessage::ButtonsResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +ButtonsResponseMessage::ButtonsResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.ButtonsResponseMessage) } ButtonsResponseMessage::ButtonsResponseMessage(const ButtonsResponseMessage& from) @@ -32798,7 +33210,7 @@ ButtonsResponseMessage::ButtonsResponseMessage(const ButtonsResponseMessage& fro selectedbuttonid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_selectedbuttonid()) { selectedbuttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_selectedbuttonid(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_contextinfo()) { contextinfo_ = new ::proto::ContextInfo(*from.contextinfo_); @@ -32830,12 +33242,13 @@ clear_has_response(); ButtonsResponseMessage::~ButtonsResponseMessage() { // @@protoc_insertion_point(destructor:proto.ButtonsResponseMessage) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void ButtonsResponseMessage::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void ButtonsResponseMessage::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); selectedbuttonid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete contextinfo_; if (has_response()) { @@ -32857,7 +33270,7 @@ 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()); + response_.selecteddisplaytext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); break; } case RESPONSE_NOT_SET: { @@ -32896,7 +33309,6 @@ const char* ButtonsResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_N 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: @@ -32907,7 +33319,8 @@ const char* ButtonsResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_N ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsResponseMessage.selectedButtonId"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // string selectedDisplayText = 2; case 2: @@ -32918,14 +33331,16 @@ const char* ButtonsResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_N ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.ButtonsResponseMessage.selectedDisplayText"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional .proto.ButtonsResponseMessage.ButtonsResponseMessageType type = 4; case 4: @@ -32937,28 +33352,30 @@ const char* ButtonsResponseMessage::_InternalParse(const char* ptr, ::PROTOBUF_N } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -33055,34 +33472,25 @@ size_t ButtonsResponseMessage::ByteSizeLong() const { 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ButtonsResponseMessage::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + ButtonsResponseMessage::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ButtonsResponseMessage::GetClassData() const { return &_class_data_; } + +void ButtonsResponseMessage::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<ButtonsResponseMessage *>(to)->MergeFrom( + static_cast<const ButtonsResponseMessage &>(from)); } + void ButtonsResponseMessage::MergeFrom(const ButtonsResponseMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.ButtonsResponseMessage) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -33108,13 +33516,7 @@ void ButtonsResponseMessage::MergeFrom(const ButtonsResponseMessage& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void ButtonsResponseMessage::CopyFrom(const ButtonsResponseMessage& from) { @@ -33130,9 +33532,15 @@ bool ButtonsResponseMessage::IsInitialized() const { void ButtonsResponseMessage::InternalSwap(ButtonsResponseMessage* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &selectedbuttonid_, lhs_arena, + &other->selectedbuttonid_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ButtonsResponseMessage, type_) + sizeof(ButtonsResponseMessage::type_) @@ -33144,10 +33552,11 @@ void ButtonsResponseMessage::InternalSwap(ButtonsResponseMessage* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ButtonsResponseMessage::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[71]); } - // =================================================================== class Message::_Internal { @@ -33430,10 +33839,13 @@ const ::proto::ButtonsResponseMessage& Message::_Internal::buttonsresponsemessage(const Message* msg) { return *msg->buttonsresponsemessage_; } -Message::Message(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +Message::Message(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.Message) } Message::Message(const Message& from) @@ -33443,7 +33855,7 @@ Message::Message(const Message& from) conversation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_conversation()) { conversation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_conversation(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_senderkeydistributionmessage()) { senderkeydistributionmessage_ = new ::proto::SenderKeyDistributionMessage(*from.senderkeydistributionmessage_); @@ -33628,12 +34040,13 @@ conversation_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStrin Message::~Message() { // @@protoc_insertion_point(destructor:proto.Message) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void Message::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void Message::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); conversation_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete senderkeydistributionmessage_; if (this != internal_default_instance()) delete imagemessage_; @@ -33847,7 +34260,6 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in 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: @@ -33858,265 +34270,301 @@ const char* Message::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.Message.conversation"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -34683,34 +35131,25 @@ size_t Message::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Message::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + Message::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Message::GetClassData() const { return &_class_data_; } + +void Message::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<Message *>(to)->MergeFrom( + static_cast<const Message &>(from)); } + void Message::MergeFrom(const Message& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.Message) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -34831,13 +35270,7 @@ void Message::MergeFrom(const Message& from) { _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void Message::CopyFrom(const Message& from) { @@ -34853,10 +35286,16 @@ bool Message::IsInitialized() const { void Message::InternalSwap(Message* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(_has_bits_[1], other->_has_bits_[1]); - conversation_.Swap(&other->conversation_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &conversation_, lhs_arena, + &other->conversation_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(Message, buttonsresponsemessage_) + sizeof(Message::buttonsresponsemessage_) @@ -34866,10 +35305,11 @@ void Message::InternalSwap(Message* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata Message::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[72]); } - // =================================================================== class MessageKey::_Internal { @@ -34889,10 +35329,13 @@ class MessageKey::_Internal { } }; -MessageKey::MessageKey(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +MessageKey::MessageKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.MessageKey) } MessageKey::MessageKey(const MessageKey& from) @@ -34902,17 +35345,17 @@ MessageKey::MessageKey(const MessageKey& from) remotejid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_remotejid()) { remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_remotejid(), - GetArena()); + GetArenaForAllocation()); } id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_id()) { id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_id(), - GetArena()); + GetArenaForAllocation()); } participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_participant()) { participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), - GetArena()); + GetArenaForAllocation()); } fromme_ = from.fromme_; // @@protoc_insertion_point(copy_constructor:proto.MessageKey) @@ -34927,12 +35370,13 @@ fromme_ = false; MessageKey::~MessageKey() { // @@protoc_insertion_point(destructor:proto.MessageKey) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void MessageKey::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void MessageKey::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); remotejid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -34977,7 +35421,6 @@ const char* MessageKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: 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: @@ -34988,7 +35431,8 @@ const char* MessageKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.MessageKey.remoteJid"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool fromMe = 2; case 2: @@ -34996,7 +35440,8 @@ const char* MessageKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: _Internal::set_has_fromme(&has_bits); fromme_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string id = 3; case 3: @@ -35007,7 +35452,8 @@ const char* MessageKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.MessageKey.id"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string participant = 4; case 4: @@ -35018,28 +35464,30 @@ const char* MessageKey::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID: ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -35131,34 +35579,25 @@ size_t MessageKey::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageKey::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MessageKey::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageKey::GetClassData() const { return &_class_data_; } + +void MessageKey::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<MessageKey *>(to)->MergeFrom( + static_cast<const MessageKey &>(from)); } + void MessageKey::MergeFrom(const MessageKey& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.MessageKey) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -35178,13 +35617,7 @@ void MessageKey::MergeFrom(const MessageKey& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void MessageKey::CopyFrom(const MessageKey& from) { @@ -35200,19 +35633,34 @@ bool MessageKey::IsInitialized() const { void MessageKey::InternalSwap(MessageKey* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &remotejid_, lhs_arena, + &other->remotejid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &id_, lhs_arena, + &other->id_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &participant_, lhs_arena, + &other->participant_, rhs_arena + ); swap(fromme_, other->fromme_); } ::PROTOBUF_NAMESPACE_ID::Metadata MessageKey::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[73]); } - // =================================================================== class WebFeatures::_Internal { @@ -35340,10 +35788,13 @@ class WebFeatures::_Internal { } }; -WebFeatures::WebFeatures(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +WebFeatures::WebFeatures(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.WebFeatures) } WebFeatures::WebFeatures(const WebFeatures& from) @@ -35365,12 +35816,13 @@ void WebFeatures::SharedCtor() { WebFeatures::~WebFeatures() { // @@protoc_insertion_point(destructor:proto.WebFeatures) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void WebFeatures::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void WebFeatures::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void WebFeatures::ArenaDtor(void* object) { @@ -35425,7 +35877,6 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID 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: @@ -35437,7 +35888,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualOutgoing = 2; case 2: @@ -35449,7 +35901,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag groupsV3 = 3; case 3: @@ -35461,7 +35914,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag groupsV3Create = 4; case 4: @@ -35473,7 +35927,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag changeNumberV2 = 5; case 5: @@ -35485,7 +35940,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag queryStatusV3Thumbnail = 6; case 6: @@ -35497,7 +35953,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag liveLocations = 7; case 7: @@ -35509,7 +35966,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(7, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag queryVname = 8; case 8: @@ -35521,7 +35979,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualIncoming = 9; case 9: @@ -35533,7 +35992,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag quickRepliesQuery = 10; case 10: @@ -35545,7 +36005,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag payments = 11; case 11: @@ -35557,7 +36018,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(11, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag stickerPackQuery = 12; case 12: @@ -35569,7 +36031,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(12, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag liveLocationsFinal = 13; case 13: @@ -35581,7 +36044,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(13, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag labelsEdit = 14; case 14: @@ -35593,7 +36057,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(14, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag mediaUpload = 15; case 15: @@ -35605,7 +36070,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(15, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag mediaUploadRichQuickReplies = 18; case 18: @@ -35617,7 +36083,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(18, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag vnameV2 = 19; case 19: @@ -35629,7 +36096,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(19, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag videoPlaybackUrl = 20; case 20: @@ -35641,7 +36109,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(20, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag statusRanking = 21; case 21: @@ -35653,7 +36122,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(21, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag voipIndividualVideo = 22; case 22: @@ -35665,7 +36135,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(22, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag thirdPartyStickers = 23; case 23: @@ -35677,7 +36148,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(23, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag frequentlyForwardedSetting = 24; case 24: @@ -35689,7 +36161,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(24, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag groupsV4JoinPermission = 25; case 25: @@ -35701,7 +36174,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(25, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag recentStickers = 26; case 26: @@ -35713,7 +36187,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(26, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag catalog = 27; case 27: @@ -35725,7 +36200,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(27, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag starredStickers = 28; case 28: @@ -35737,7 +36213,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(28, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag voipGroupCall = 29; case 29: @@ -35749,7 +36226,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(29, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag templateMessage = 30; case 30: @@ -35761,7 +36239,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(30, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag templateMessageInteractivity = 31; case 31: @@ -35773,7 +36252,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(31, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag ephemeralMessages = 32; case 32: @@ -35785,7 +36265,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(32, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag e2ENotificationSync = 33; case 33: @@ -35797,7 +36278,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(33, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV2 = 34; case 34: @@ -35809,7 +36291,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(34, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease1 = 35; case 35: @@ -35821,7 +36304,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(35, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag recentStickersV3 = 36; case 36: @@ -35833,7 +36317,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(36, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag userNotice = 37; case 37: @@ -35845,7 +36330,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(37, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag syncdRelease11 = 38; case 38: @@ -35857,7 +36343,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(38, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag support = 39; case 39: @@ -35869,7 +36356,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(39, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag groupUiiCleanup = 40; case 40: @@ -35881,7 +36369,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(40, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag groupDogfoodingInternalOnly = 41; case 41: @@ -35893,7 +36382,8 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(41, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebFeatures.WebFeaturesFlag settingsSync = 42; case 42: @@ -35905,27 +36395,29 @@ const char* WebFeatures::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -36485,34 +36977,25 @@ size_t WebFeatures::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WebFeatures::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + WebFeatures::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WebFeatures::GetClassData() const { return &_class_data_; } + +void WebFeatures::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<WebFeatures *>(to)->MergeFrom( + static_cast<const WebFeatures &>(from)); } + void WebFeatures::MergeFrom(const WebFeatures& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.WebFeatures) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -36653,13 +37136,7 @@ void WebFeatures::MergeFrom(const WebFeatures& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void WebFeatures::CopyFrom(const WebFeatures& from) { @@ -36675,7 +37152,7 @@ bool WebFeatures::IsInitialized() const { void WebFeatures::InternalSwap(WebFeatures* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); swap(_has_bits_[1], other->_has_bits_[1]); ::PROTOBUF_NAMESPACE_ID::internal::memswap< @@ -36687,10 +37164,11 @@ void WebFeatures::InternalSwap(WebFeatures* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata WebFeatures::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[74]); } - // =================================================================== class NotificationMessageInfo::_Internal { @@ -36720,10 +37198,13 @@ const ::proto::Message& NotificationMessageInfo::_Internal::message(const NotificationMessageInfo* msg) { return *msg->message_; } -NotificationMessageInfo::NotificationMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +NotificationMessageInfo::NotificationMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.NotificationMessageInfo) } NotificationMessageInfo::NotificationMessageInfo(const NotificationMessageInfo& from) @@ -36733,7 +37214,7 @@ NotificationMessageInfo::NotificationMessageInfo(const NotificationMessageInfo& participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_participant()) { participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_key()) { key_ = new ::proto::MessageKey(*from.key_); @@ -36759,12 +37240,13 @@ participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString NotificationMessageInfo::~NotificationMessageInfo() { // @@protoc_insertion_point(destructor:proto.NotificationMessageInfo) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void NotificationMessageInfo::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void NotificationMessageInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete key_; if (this != internal_default_instance()) delete message_; @@ -36800,7 +37282,7 @@ void NotificationMessageInfo::Clear() { message_->Clear(); } } - messagetimestamp_ = PROTOBUF_ULONGLONG(0); + messagetimestamp_ = uint64_t{0u}; _has_bits_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -36811,21 +37293,22 @@ const char* NotificationMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_ 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; + } 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; + } else + goto handle_unusual; continue; // optional uint64 messageTimestamp = 3; case 3: @@ -36833,7 +37316,8 @@ const char* NotificationMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_ _Internal::set_has_messagetimestamp(&has_bits); messagetimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string participant = 4; case 4: @@ -36844,28 +37328,30 @@ const char* NotificationMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_ ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -36949,40 +37435,29 @@ size_t NotificationMessageInfo::ByteSizeLong() const { // optional uint64 messageTimestamp = 3; if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_messagetimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NotificationMessageInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + NotificationMessageInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NotificationMessageInfo::GetClassData() const { return &_class_data_; } + +void NotificationMessageInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<NotificationMessageInfo *>(to)->MergeFrom( + static_cast<const NotificationMessageInfo &>(from)); } + void NotificationMessageInfo::MergeFrom(const NotificationMessageInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.NotificationMessageInfo) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -37002,13 +37477,7 @@ void NotificationMessageInfo::MergeFrom(const NotificationMessageInfo& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void NotificationMessageInfo::CopyFrom(const NotificationMessageInfo& from) { @@ -37024,9 +37493,15 @@ bool NotificationMessageInfo::IsInitialized() const { void NotificationMessageInfo::InternalSwap(NotificationMessageInfo* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &participant_, lhs_arena, + &other->participant_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(NotificationMessageInfo, messagetimestamp_) + sizeof(NotificationMessageInfo::messagetimestamp_) @@ -37036,10 +37511,11 @@ void NotificationMessageInfo::InternalSwap(NotificationMessageInfo* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata NotificationMessageInfo::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[75]); } - // =================================================================== class WebNotificationsInfo::_Internal { @@ -37056,11 +37532,14 @@ class WebNotificationsInfo::_Internal { } }; -WebNotificationsInfo::WebNotificationsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +WebNotificationsInfo::WebNotificationsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), notifymessages_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.WebNotificationsInfo) } WebNotificationsInfo::WebNotificationsInfo(const WebNotificationsInfo& from) @@ -37083,12 +37562,13 @@ void WebNotificationsInfo::SharedCtor() { WebNotificationsInfo::~WebNotificationsInfo() { // @@protoc_insertion_point(destructor:proto.WebNotificationsInfo) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void WebNotificationsInfo::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void WebNotificationsInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } void WebNotificationsInfo::ArenaDtor(void* object) { @@ -37124,7 +37604,6 @@ const char* WebNotificationsInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAM 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: @@ -37132,7 +37611,8 @@ const char* WebNotificationsInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAM _Internal::set_has_timestamp(&has_bits); timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 unreadChats = 3; case 3: @@ -37140,7 +37620,8 @@ const char* WebNotificationsInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAM _Internal::set_has_unreadchats(&has_bits); unreadchats_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 notifyMessageCount = 4; case 4: @@ -37148,7 +37629,8 @@ const char* WebNotificationsInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAM _Internal::set_has_notifymessagecount(&has_bits); notifymessagecount_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated .proto.WebMessageInfo notifyMessages = 5; case 5: @@ -37160,28 +37642,30 @@ const char* WebNotificationsInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAM 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -37245,54 +37729,39 @@ size_t WebNotificationsInfo::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_timestamp()); } // optional uint32 unreadChats = 3; if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_unreadchats()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_unreadchats()); } // optional uint32 notifyMessageCount = 4; if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_notifymessagecount()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WebNotificationsInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + WebNotificationsInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WebNotificationsInfo::GetClassData() const { return &_class_data_; } + +void WebNotificationsInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<WebNotificationsInfo *>(to)->MergeFrom( + static_cast<const WebNotificationsInfo &>(from)); } + void WebNotificationsInfo::MergeFrom(const WebNotificationsInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.WebNotificationsInfo) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -37310,13 +37779,7 @@ void WebNotificationsInfo::MergeFrom(const WebNotificationsInfo& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void WebNotificationsInfo::CopyFrom(const WebNotificationsInfo& from) { @@ -37333,7 +37796,7 @@ bool WebNotificationsInfo::IsInitialized() const { void WebNotificationsInfo::InternalSwap(WebNotificationsInfo* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); notifymessages_.InternalSwap(&other->notifymessages_); ::PROTOBUF_NAMESPACE_ID::internal::memswap< @@ -37345,10 +37808,11 @@ void WebNotificationsInfo::InternalSwap(WebNotificationsInfo* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata WebNotificationsInfo::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[76]); } - // =================================================================== class PaymentInfo::_Internal { @@ -37410,10 +37874,13 @@ const ::proto::PaymentMoney& PaymentInfo::_Internal::exchangeamount(const PaymentInfo* msg) { return *msg->exchangeamount_; } -PaymentInfo::PaymentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena) { +PaymentInfo::PaymentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.PaymentInfo) } PaymentInfo::PaymentInfo(const PaymentInfo& from) @@ -37423,12 +37890,12 @@ PaymentInfo::PaymentInfo(const PaymentInfo& from) receiverjid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_receiverjid()) { receiverjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_receiverjid(), - GetArena()); + GetArenaForAllocation()); } currency_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_currency()) { currency_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_currency(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_requestmessagekey()) { requestmessagekey_ = new ::proto::MessageKey(*from.requestmessagekey_); @@ -37462,12 +37929,13 @@ currency_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlr PaymentInfo::~PaymentInfo() { // @@protoc_insertion_point(destructor:proto.PaymentInfo) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void PaymentInfo::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void PaymentInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); receiverjid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); currency_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete requestmessagekey_; @@ -37532,7 +38000,6 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID 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: @@ -37544,7 +38011,8 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 amount1000 = 2; case 2: @@ -37552,7 +38020,8 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _Internal::set_has_amount1000(&has_bits); amount1000_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string receiverJid = 3; case 3: @@ -37563,7 +38032,8 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.PaymentInfo.receiverJid"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.PaymentInfo.PaymentInfoStatus status = 4; case 4: @@ -37575,7 +38045,8 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint64 transactionTimestamp = 5; case 5: @@ -37583,14 +38054,16 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _Internal::set_has_transactiontimestamp(&has_bits); transactiontimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; + } else + goto handle_unusual; continue; // optional uint64 expiryTimestamp = 7; case 7: @@ -37598,7 +38071,8 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _Internal::set_has_expirytimestamp(&has_bits); expirytimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool futureproofed = 8; case 8: @@ -37606,7 +38080,8 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _Internal::set_has_futureproofed(&has_bits); futureproofed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string currency = 9; case 9: @@ -37617,7 +38092,8 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.PaymentInfo.currency"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.PaymentInfo.PaymentInfoTxnStatus txnStatus = 10; case 10: @@ -37629,7 +38105,8 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(10, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool useNoviFiatFormat = 11; case 11: @@ -37637,42 +38114,46 @@ const char* PaymentInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID _Internal::set_has_usenovifiatformat(&has_bits); usenovifiatformat_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } 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; + } 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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -37833,9 +38314,7 @@ size_t PaymentInfo::ByteSizeLong() const { // optional uint64 amount1000 = 2; if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_amount1000()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_amount1000()); } // optional .proto.PaymentInfo.PaymentInfoCurrency currencyDeprecated = 1; @@ -37854,16 +38333,12 @@ size_t PaymentInfo::ByteSizeLong() const { 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()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_transactiontimestamp()); } // optional uint64 expiryTimestamp = 7; if (cached_has_bits & 0x00000200u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_expirytimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_expirytimestamp()); } // optional bool futureproofed = 8; @@ -37883,34 +38358,25 @@ size_t PaymentInfo::ByteSizeLong() const { } } - 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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PaymentInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PaymentInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PaymentInfo::GetClassData() const { return &_class_data_; } + +void PaymentInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<PaymentInfo *>(to)->MergeFrom( + static_cast<const PaymentInfo &>(from)); } + void PaymentInfo::MergeFrom(const PaymentInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.PaymentInfo) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -37960,13 +38426,7 @@ void PaymentInfo::MergeFrom(const PaymentInfo& from) { } _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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void PaymentInfo::CopyFrom(const PaymentInfo& from) { @@ -37982,10 +38442,20 @@ bool PaymentInfo::IsInitialized() const { void PaymentInfo::InternalSwap(PaymentInfo* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &receiverjid_, lhs_arena, + &other->receiverjid_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + ¤cy_, lhs_arena, + &other->currency_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(PaymentInfo, txnstatus_) + sizeof(PaymentInfo::txnstatus_) @@ -37995,10 +38465,11 @@ void PaymentInfo::InternalSwap(PaymentInfo* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata PaymentInfo::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[77]); } - // =================================================================== class WebMessageInfo::_Internal { @@ -38109,12 +38580,15 @@ const ::proto::PaymentInfo& WebMessageInfo::_Internal::quotedpaymentinfo(const WebMessageInfo* msg) { return *msg->quotedpaymentinfo_; } -WebMessageInfo::WebMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : ::PROTOBUF_NAMESPACE_ID::Message(arena), +WebMessageInfo::WebMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), messagestubparameters_(arena), labels_(arena) { SharedCtor(); - RegisterArenaDtor(arena); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } // @@protoc_insertion_point(arena_constructor:proto.WebMessageInfo) } WebMessageInfo::WebMessageInfo(const WebMessageInfo& from) @@ -38126,22 +38600,22 @@ WebMessageInfo::WebMessageInfo(const WebMessageInfo& from) participant_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_participant()) { participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_participant(), - GetArena()); + GetArenaForAllocation()); } pushname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_pushname()) { pushname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_pushname(), - GetArena()); + GetArenaForAllocation()); } mediaciphertextsha256_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_mediaciphertextsha256()) { mediaciphertextsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mediaciphertextsha256(), - GetArena()); + GetArenaForAllocation()); } verifiedbizname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (from._internal_has_verifiedbizname()) { verifiedbizname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_verifiedbizname(), - GetArena()); + GetArenaForAllocation()); } if (from._internal_has_key()) { key_ = new ::proto::MessageKey(*from.key_); @@ -38187,12 +38661,13 @@ verifiedbizname_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptySt WebMessageInfo::~WebMessageInfo() { // @@protoc_insertion_point(destructor:proto.WebMessageInfo) + if (GetArenaForAllocation() != nullptr) return; SharedDtor(); _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -void WebMessageInfo::SharedDtor() { - GOOGLE_DCHECK(GetArena() == nullptr); +inline void WebMessageInfo::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); participant_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); pushname_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); mediaciphertextsha256_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); @@ -38278,21 +38753,22 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE 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; + } 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; + } else + goto handle_unusual; continue; // optional uint64 messageTimestamp = 3; case 3: @@ -38300,7 +38776,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_messagetimestamp(&has_bits); messagetimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebMessageInfo.WebMessageInfoStatus status = 4; case 4: @@ -38312,7 +38789,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string participant = 5; case 5: @@ -38323,7 +38801,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.participant"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool ignore = 16; case 16: @@ -38331,7 +38810,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_ignore(&has_bits); ignore_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool starred = 17; case 17: @@ -38339,7 +38819,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_starred(&has_bits); starred_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool broadcast = 18; case 18: @@ -38347,7 +38828,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_broadcast(&has_bits); broadcast_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string pushName = 19; case 19: @@ -38358,7 +38840,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "proto.WebMessageInfo.pushName"); #endif // !NDEBUG CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bytes mediaCiphertextSha256 = 20; case 20: @@ -38366,7 +38849,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE auto str = _internal_mutable_mediaciphertextsha256(); ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool multicast = 21; case 21: @@ -38374,7 +38858,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_multicast(&has_bits); multicast_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool urlText = 22; case 22: @@ -38382,7 +38867,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_urltext(&has_bits); urltext_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool urlNumber = 23; case 23: @@ -38390,7 +38876,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_urlnumber(&has_bits); urlnumber_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebMessageInfo.WebMessageInfoStubType messageStubType = 24; case 24: @@ -38402,7 +38889,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(24, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool clearMedia = 25; case 25: @@ -38410,7 +38898,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_clearmedia(&has_bits); clearmedia_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated string messageStubParameters = 26; case 26: @@ -38426,7 +38915,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<210>(ptr)); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 duration = 27; case 27: @@ -38434,7 +38924,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_duration(&has_bits); duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // repeated string labels = 28; case 28: @@ -38450,28 +38941,32 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<226>(ptr)); - } else goto handle_unusual; + } 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; + } 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; + } 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; + } else + goto handle_unusual; continue; // optional uint64 ephemeralStartTimestamp = 32; case 32: @@ -38479,7 +38974,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_ephemeralstarttimestamp(&has_bits); ephemeralstarttimestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional uint32 ephemeralDuration = 33; case 33: @@ -38487,7 +38983,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_ephemeralduration(&has_bits); ephemeralduration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool ephemeralOffToOn = 34; case 34: @@ -38495,7 +38992,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_ephemeralofftoon(&has_bits); ephemeralofftoon_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional bool ephemeralOutOfSync = 35; case 35: @@ -38503,7 +39001,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE _Internal::set_has_ephemeraloutofsync(&has_bits); ephemeraloutofsync_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional .proto.WebMessageInfo.WebMessageInfoBizPrivacyStatus bizPrivacyStatus = 36; case 36: @@ -38515,7 +39014,8 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE } else { ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(36, val, mutable_unknown_fields()); } - } else goto handle_unusual; + } else + goto handle_unusual; continue; // optional string verifiedBizName = 37; case 37: @@ -38526,28 +39026,30 @@ const char* WebMessageInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE ::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); + } else + goto handle_unusual; continue; - } + default: + goto handle_unusual; } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); } // while -success: +message_done: _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; - goto success; + goto message_done; #undef CHK_ } @@ -38855,9 +39357,7 @@ size_t WebMessageInfo::ByteSizeLong() const { // optional uint64 messageTimestamp = 3; if (cached_has_bits & 0x00000200u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size( - this->_internal_messagetimestamp()); + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64SizePlusOne(this->_internal_messagetimestamp()); } // optional .proto.WebMessageInfo.WebMessageInfoStatus status = 4; @@ -38947,34 +39447,25 @@ size_t WebMessageInfo::ByteSizeLong() const { ::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; + return MaybeComputeUnknownFieldsSize(total_size, &_cached_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); - } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData WebMessageInfo::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + WebMessageInfo::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*WebMessageInfo::GetClassData() const { return &_class_data_; } + +void WebMessageInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast<WebMessageInfo *>(to)->MergeFrom( + static_cast<const WebMessageInfo &>(from)); } + void WebMessageInfo::MergeFrom(const WebMessageInfo& from) { // @@protoc_insertion_point(class_specific_merge_from_start:proto.WebMessageInfo) GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; (void) cached_has_bits; @@ -39064,13 +39555,7 @@ void WebMessageInfo::MergeFrom(const WebMessageInfo& from) { 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); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } void WebMessageInfo::CopyFrom(const WebMessageInfo& from) { @@ -39087,14 +39572,32 @@ bool WebMessageInfo::IsInitialized() const { void WebMessageInfo::InternalSwap(WebMessageInfo* other) { using std::swap; - _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_has_bits_[0], other->_has_bits_[0]); messagestubparameters_.InternalSwap(&other->messagestubparameters_); labels_.InternalSwap(&other->labels_); - 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::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &participant_, lhs_arena, + &other->participant_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &pushname_, lhs_arena, + &other->pushname_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &mediaciphertextsha256_, lhs_arena, + &other->mediaciphertextsha256_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &verifiedbizname_, lhs_arena, + &other->verifiedbizname_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(WebMessageInfo, bizprivacystatus_) + sizeof(WebMessageInfo::bizprivacystatus_) @@ -39104,10 +39607,11 @@ void WebMessageInfo::InternalSwap(WebMessageInfo* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata WebMessageInfo::GetMetadata() const { - return GetMetadataStatic(); + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_pmsg_2eproto_getter, &descriptor_table_pmsg_2eproto_once, + file_level_metadata_pmsg_2eproto[78]); } - // @@protoc_insertion_point(namespace_scope) } // namespace proto PROTOBUF_NAMESPACE_OPEN diff --git a/protocols/WhatsAppWeb/src/pmsg.pb.h b/protocols/WhatsAppWeb/src/pmsg.pb.h index a61095f954..5e17139e71 100644 --- a/protocols/WhatsAppWeb/src/pmsg.pb.h +++ b/protocols/WhatsAppWeb/src/pmsg.pb.h @@ -8,12 +8,12 @@ #include <string> #include <google/protobuf/port_def.inc> -#if PROTOBUF_VERSION < 3015000 +#if PROTOBUF_VERSION < 3018000 #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 +#if 3018000 < 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. @@ -54,7 +54,6 @@ struct TableStruct_pmsg_2eproto { 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; @@ -1117,11 +1116,11 @@ inline bool WebMessageInfo_WebMessageInfoBizPrivacyStatus_Parse( } // =================================================================== -class PaymentMoney PROTOBUF_FINAL : +class PaymentMoney final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.PaymentMoney) */ { public: inline PaymentMoney() : PaymentMoney(nullptr) {} - virtual ~PaymentMoney(); + ~PaymentMoney() override; explicit constexpr PaymentMoney(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PaymentMoney(const PaymentMoney& from); @@ -1135,8 +1134,13 @@ class PaymentMoney PROTOBUF_FINAL : return *this; } inline PaymentMoney& operator=(PaymentMoney&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -1154,10 +1158,10 @@ class PaymentMoney PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const PaymentMoney& default_instance() { return *internal_default_instance(); @@ -1174,7 +1178,7 @@ class PaymentMoney PROTOBUF_FINAL : } inline void Swap(PaymentMoney* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1182,23 +1186,26 @@ class PaymentMoney PROTOBUF_FINAL : } void UnsafeArenaSwap(PaymentMoney* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline PaymentMoney* New() const final { - return CreateMaybeMessage<PaymentMoney>(nullptr); + return new PaymentMoney(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PaymentMoney& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const PaymentMoney& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1209,8 +1216,8 @@ class PaymentMoney PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PaymentMoney* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -1218,19 +1225,17 @@ class PaymentMoney PROTOBUF_FINAL : return "proto.PaymentMoney"; } protected: - explicit PaymentMoney(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PaymentMoney(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1248,16 +1253,14 @@ class PaymentMoney PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_currencycode(ArgT0&& arg0, ArgT... args); std::string* mutable_currencycode(); - std::string* release_currencycode(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_currencycode(const std::string& value); std::string* _internal_mutable_currencycode(); public: @@ -1303,11 +1306,11 @@ class PaymentMoney PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HydratedQuickReplyButton PROTOBUF_FINAL : +class HydratedQuickReplyButton final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HydratedQuickReplyButton) */ { public: inline HydratedQuickReplyButton() : HydratedQuickReplyButton(nullptr) {} - virtual ~HydratedQuickReplyButton(); + ~HydratedQuickReplyButton() override; explicit constexpr HydratedQuickReplyButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HydratedQuickReplyButton(const HydratedQuickReplyButton& from); @@ -1321,8 +1324,13 @@ class HydratedQuickReplyButton PROTOBUF_FINAL : return *this; } inline HydratedQuickReplyButton& operator=(HydratedQuickReplyButton&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -1340,10 +1348,10 @@ class HydratedQuickReplyButton PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HydratedQuickReplyButton& default_instance() { return *internal_default_instance(); @@ -1360,7 +1368,7 @@ class HydratedQuickReplyButton PROTOBUF_FINAL : } inline void Swap(HydratedQuickReplyButton* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1368,23 +1376,26 @@ class HydratedQuickReplyButton PROTOBUF_FINAL : } void UnsafeArenaSwap(HydratedQuickReplyButton* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HydratedQuickReplyButton* New() const final { - return CreateMaybeMessage<HydratedQuickReplyButton>(nullptr); + return new HydratedQuickReplyButton(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HydratedQuickReplyButton& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HydratedQuickReplyButton& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1395,8 +1406,8 @@ class HydratedQuickReplyButton PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HydratedQuickReplyButton* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -1404,19 +1415,17 @@ class HydratedQuickReplyButton PROTOBUF_FINAL : return "proto.HydratedQuickReplyButton"; } protected: - explicit HydratedQuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HydratedQuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1433,16 +1442,14 @@ class HydratedQuickReplyButton PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_displaytext(ArgT0&& arg0, ArgT... args); std::string* mutable_displaytext(); - std::string* release_displaytext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_displaytext(const std::string& value); std::string* _internal_mutable_displaytext(); public: @@ -1453,16 +1460,14 @@ class HydratedQuickReplyButton PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); - std::string* release_id(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); public: @@ -1481,11 +1486,11 @@ class HydratedQuickReplyButton PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HydratedURLButton PROTOBUF_FINAL : +class HydratedURLButton final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HydratedURLButton) */ { public: inline HydratedURLButton() : HydratedURLButton(nullptr) {} - virtual ~HydratedURLButton(); + ~HydratedURLButton() override; explicit constexpr HydratedURLButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HydratedURLButton(const HydratedURLButton& from); @@ -1499,8 +1504,13 @@ class HydratedURLButton PROTOBUF_FINAL : return *this; } inline HydratedURLButton& operator=(HydratedURLButton&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -1518,10 +1528,10 @@ class HydratedURLButton PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HydratedURLButton& default_instance() { return *internal_default_instance(); @@ -1538,7 +1548,7 @@ class HydratedURLButton PROTOBUF_FINAL : } inline void Swap(HydratedURLButton* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1546,23 +1556,26 @@ class HydratedURLButton PROTOBUF_FINAL : } void UnsafeArenaSwap(HydratedURLButton* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HydratedURLButton* New() const final { - return CreateMaybeMessage<HydratedURLButton>(nullptr); + return new HydratedURLButton(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HydratedURLButton& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HydratedURLButton& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1573,8 +1586,8 @@ class HydratedURLButton PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HydratedURLButton* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -1582,19 +1595,17 @@ class HydratedURLButton PROTOBUF_FINAL : return "proto.HydratedURLButton"; } protected: - explicit HydratedURLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HydratedURLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1611,16 +1622,14 @@ class HydratedURLButton PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_displaytext(ArgT0&& arg0, ArgT... args); std::string* mutable_displaytext(); - std::string* release_displaytext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_displaytext(const std::string& value); std::string* _internal_mutable_displaytext(); public: @@ -1631,16 +1640,14 @@ class HydratedURLButton PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_url(ArgT0&& arg0, ArgT... args); std::string* mutable_url(); - std::string* release_url(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); std::string* _internal_mutable_url(); public: @@ -1659,11 +1666,11 @@ class HydratedURLButton PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HydratedCallButton PROTOBUF_FINAL : +class HydratedCallButton final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HydratedCallButton) */ { public: inline HydratedCallButton() : HydratedCallButton(nullptr) {} - virtual ~HydratedCallButton(); + ~HydratedCallButton() override; explicit constexpr HydratedCallButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HydratedCallButton(const HydratedCallButton& from); @@ -1677,8 +1684,13 @@ class HydratedCallButton PROTOBUF_FINAL : return *this; } inline HydratedCallButton& operator=(HydratedCallButton&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -1696,10 +1708,10 @@ class HydratedCallButton PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HydratedCallButton& default_instance() { return *internal_default_instance(); @@ -1716,7 +1728,7 @@ class HydratedCallButton PROTOBUF_FINAL : } inline void Swap(HydratedCallButton* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1724,23 +1736,26 @@ class HydratedCallButton PROTOBUF_FINAL : } void UnsafeArenaSwap(HydratedCallButton* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HydratedCallButton* New() const final { - return CreateMaybeMessage<HydratedCallButton>(nullptr); + return new HydratedCallButton(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HydratedCallButton& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HydratedCallButton& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1751,8 +1766,8 @@ class HydratedCallButton PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HydratedCallButton* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -1760,19 +1775,17 @@ class HydratedCallButton PROTOBUF_FINAL : return "proto.HydratedCallButton"; } protected: - explicit HydratedCallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HydratedCallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1789,16 +1802,14 @@ class HydratedCallButton PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_displaytext(ArgT0&& arg0, ArgT... args); std::string* mutable_displaytext(); - std::string* release_displaytext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_displaytext(const std::string& value); std::string* _internal_mutable_displaytext(); public: @@ -1809,16 +1820,14 @@ class HydratedCallButton PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_phonenumber(ArgT0&& arg0, ArgT... args); std::string* mutable_phonenumber(); - std::string* release_phonenumber(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_phonenumber(const std::string& value); std::string* _internal_mutable_phonenumber(); public: @@ -1837,11 +1846,11 @@ class HydratedCallButton PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HydratedTemplateButton PROTOBUF_FINAL : +class HydratedTemplateButton final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HydratedTemplateButton) */ { public: inline HydratedTemplateButton() : HydratedTemplateButton(nullptr) {} - virtual ~HydratedTemplateButton(); + ~HydratedTemplateButton() override; explicit constexpr HydratedTemplateButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HydratedTemplateButton(const HydratedTemplateButton& from); @@ -1855,8 +1864,13 @@ class HydratedTemplateButton PROTOBUF_FINAL : return *this; } inline HydratedTemplateButton& operator=(HydratedTemplateButton&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -1874,10 +1888,10 @@ class HydratedTemplateButton PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HydratedTemplateButton& default_instance() { return *internal_default_instance(); @@ -1901,7 +1915,7 @@ class HydratedTemplateButton PROTOBUF_FINAL : } inline void Swap(HydratedTemplateButton* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -1909,23 +1923,26 @@ class HydratedTemplateButton PROTOBUF_FINAL : } void UnsafeArenaSwap(HydratedTemplateButton* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HydratedTemplateButton* New() const final { - return CreateMaybeMessage<HydratedTemplateButton>(nullptr); + return new HydratedTemplateButton(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HydratedTemplateButton& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HydratedTemplateButton& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -1936,8 +1953,8 @@ class HydratedTemplateButton PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HydratedTemplateButton* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -1945,19 +1962,17 @@ class HydratedTemplateButton PROTOBUF_FINAL : return "proto.HydratedTemplateButton"; } protected: - explicit HydratedTemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HydratedTemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -1989,7 +2004,7 @@ class HydratedTemplateButton PROTOBUF_FINAL : public: void clear_quickreplybutton(); const ::proto::HydratedQuickReplyButton& quickreplybutton() const; - ::proto::HydratedQuickReplyButton* release_quickreplybutton(); + PROTOBUF_MUST_USE_RESULT ::proto::HydratedQuickReplyButton* release_quickreplybutton(); ::proto::HydratedQuickReplyButton* mutable_quickreplybutton(); void set_allocated_quickreplybutton(::proto::HydratedQuickReplyButton* quickreplybutton); private: @@ -2007,7 +2022,7 @@ class HydratedTemplateButton PROTOBUF_FINAL : public: void clear_urlbutton(); const ::proto::HydratedURLButton& urlbutton() const; - ::proto::HydratedURLButton* release_urlbutton(); + PROTOBUF_MUST_USE_RESULT ::proto::HydratedURLButton* release_urlbutton(); ::proto::HydratedURLButton* mutable_urlbutton(); void set_allocated_urlbutton(::proto::HydratedURLButton* urlbutton); private: @@ -2025,7 +2040,7 @@ class HydratedTemplateButton PROTOBUF_FINAL : public: void clear_callbutton(); const ::proto::HydratedCallButton& callbutton() const; - ::proto::HydratedCallButton* release_callbutton(); + PROTOBUF_MUST_USE_RESULT ::proto::HydratedCallButton* release_callbutton(); ::proto::HydratedCallButton* mutable_callbutton(); void set_allocated_callbutton(::proto::HydratedCallButton* callbutton); private: @@ -2067,11 +2082,11 @@ class HydratedTemplateButton PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class QuickReplyButton PROTOBUF_FINAL : +class QuickReplyButton final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.QuickReplyButton) */ { public: inline QuickReplyButton() : QuickReplyButton(nullptr) {} - virtual ~QuickReplyButton(); + ~QuickReplyButton() override; explicit constexpr QuickReplyButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); QuickReplyButton(const QuickReplyButton& from); @@ -2085,8 +2100,13 @@ class QuickReplyButton PROTOBUF_FINAL : return *this; } inline QuickReplyButton& operator=(QuickReplyButton&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -2104,10 +2124,10 @@ class QuickReplyButton PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const QuickReplyButton& default_instance() { return *internal_default_instance(); @@ -2124,7 +2144,7 @@ class QuickReplyButton PROTOBUF_FINAL : } inline void Swap(QuickReplyButton* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2132,23 +2152,26 @@ class QuickReplyButton PROTOBUF_FINAL : } void UnsafeArenaSwap(QuickReplyButton* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline QuickReplyButton* New() const final { - return CreateMaybeMessage<QuickReplyButton>(nullptr); + return new QuickReplyButton(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const QuickReplyButton& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const QuickReplyButton& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2159,8 +2182,8 @@ class QuickReplyButton PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(QuickReplyButton* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -2168,19 +2191,17 @@ class QuickReplyButton PROTOBUF_FINAL : return "proto.QuickReplyButton"; } protected: - explicit QuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit QuickReplyButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2197,16 +2218,14 @@ class QuickReplyButton PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); - std::string* release_id(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); public: @@ -2217,7 +2236,7 @@ class QuickReplyButton PROTOBUF_FINAL : public: void clear_displaytext(); const ::proto::HighlyStructuredMessage& displaytext() const; - ::proto::HighlyStructuredMessage* release_displaytext(); + PROTOBUF_MUST_USE_RESULT ::proto::HighlyStructuredMessage* release_displaytext(); ::proto::HighlyStructuredMessage* mutable_displaytext(); void set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext); private: @@ -2243,11 +2262,11 @@ class QuickReplyButton PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class URLButton PROTOBUF_FINAL : +class URLButton final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.URLButton) */ { public: inline URLButton() : URLButton(nullptr) {} - virtual ~URLButton(); + ~URLButton() override; explicit constexpr URLButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); URLButton(const URLButton& from); @@ -2261,8 +2280,13 @@ class URLButton PROTOBUF_FINAL : return *this; } inline URLButton& operator=(URLButton&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -2280,10 +2304,10 @@ class URLButton PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const URLButton& default_instance() { return *internal_default_instance(); @@ -2300,7 +2324,7 @@ class URLButton PROTOBUF_FINAL : } inline void Swap(URLButton* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2308,23 +2332,26 @@ class URLButton PROTOBUF_FINAL : } void UnsafeArenaSwap(URLButton* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline URLButton* New() const final { - return CreateMaybeMessage<URLButton>(nullptr); + return new URLButton(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const URLButton& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const URLButton& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2335,8 +2362,8 @@ class URLButton PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(URLButton* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -2344,19 +2371,17 @@ class URLButton PROTOBUF_FINAL : return "proto.URLButton"; } protected: - explicit URLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit URLButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2373,7 +2398,7 @@ class URLButton PROTOBUF_FINAL : public: void clear_displaytext(); const ::proto::HighlyStructuredMessage& displaytext() const; - ::proto::HighlyStructuredMessage* release_displaytext(); + PROTOBUF_MUST_USE_RESULT ::proto::HighlyStructuredMessage* release_displaytext(); ::proto::HighlyStructuredMessage* mutable_displaytext(); void set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext); private: @@ -2391,7 +2416,7 @@ class URLButton PROTOBUF_FINAL : public: void clear_url(); const ::proto::HighlyStructuredMessage& url() const; - ::proto::HighlyStructuredMessage* release_url(); + PROTOBUF_MUST_USE_RESULT ::proto::HighlyStructuredMessage* release_url(); ::proto::HighlyStructuredMessage* mutable_url(); void set_allocated_url(::proto::HighlyStructuredMessage* url); private: @@ -2417,11 +2442,11 @@ class URLButton PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class CallButton PROTOBUF_FINAL : +class CallButton final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.CallButton) */ { public: inline CallButton() : CallButton(nullptr) {} - virtual ~CallButton(); + ~CallButton() override; explicit constexpr CallButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CallButton(const CallButton& from); @@ -2435,8 +2460,13 @@ class CallButton PROTOBUF_FINAL : return *this; } inline CallButton& operator=(CallButton&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -2454,10 +2484,10 @@ class CallButton PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const CallButton& default_instance() { return *internal_default_instance(); @@ -2474,7 +2504,7 @@ class CallButton PROTOBUF_FINAL : } inline void Swap(CallButton* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2482,23 +2512,26 @@ class CallButton PROTOBUF_FINAL : } void UnsafeArenaSwap(CallButton* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline CallButton* New() const final { - return CreateMaybeMessage<CallButton>(nullptr); + return new CallButton(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CallButton& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const CallButton& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2509,8 +2542,8 @@ class CallButton PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CallButton* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -2518,19 +2551,17 @@ class CallButton PROTOBUF_FINAL : return "proto.CallButton"; } protected: - explicit CallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CallButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2547,7 +2578,7 @@ class CallButton PROTOBUF_FINAL : public: void clear_displaytext(); const ::proto::HighlyStructuredMessage& displaytext() const; - ::proto::HighlyStructuredMessage* release_displaytext(); + PROTOBUF_MUST_USE_RESULT ::proto::HighlyStructuredMessage* release_displaytext(); ::proto::HighlyStructuredMessage* mutable_displaytext(); void set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext); private: @@ -2565,7 +2596,7 @@ class CallButton PROTOBUF_FINAL : public: void clear_phonenumber(); const ::proto::HighlyStructuredMessage& phonenumber() const; - ::proto::HighlyStructuredMessage* release_phonenumber(); + PROTOBUF_MUST_USE_RESULT ::proto::HighlyStructuredMessage* release_phonenumber(); ::proto::HighlyStructuredMessage* mutable_phonenumber(); void set_allocated_phonenumber(::proto::HighlyStructuredMessage* phonenumber); private: @@ -2591,11 +2622,11 @@ class CallButton PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class TemplateButton PROTOBUF_FINAL : +class TemplateButton final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.TemplateButton) */ { public: inline TemplateButton() : TemplateButton(nullptr) {} - virtual ~TemplateButton(); + ~TemplateButton() override; explicit constexpr TemplateButton(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TemplateButton(const TemplateButton& from); @@ -2609,8 +2640,13 @@ class TemplateButton PROTOBUF_FINAL : return *this; } inline TemplateButton& operator=(TemplateButton&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -2628,10 +2664,10 @@ class TemplateButton PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const TemplateButton& default_instance() { return *internal_default_instance(); @@ -2655,7 +2691,7 @@ class TemplateButton PROTOBUF_FINAL : } inline void Swap(TemplateButton* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2663,23 +2699,26 @@ class TemplateButton PROTOBUF_FINAL : } void UnsafeArenaSwap(TemplateButton* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline TemplateButton* New() const final { - return CreateMaybeMessage<TemplateButton>(nullptr); + return new TemplateButton(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TemplateButton& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const TemplateButton& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2690,8 +2729,8 @@ class TemplateButton PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TemplateButton* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -2699,19 +2738,17 @@ class TemplateButton PROTOBUF_FINAL : return "proto.TemplateButton"; } protected: - explicit TemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TemplateButton(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2743,7 +2780,7 @@ class TemplateButton PROTOBUF_FINAL : public: void clear_quickreplybutton(); const ::proto::QuickReplyButton& quickreplybutton() const; - ::proto::QuickReplyButton* release_quickreplybutton(); + PROTOBUF_MUST_USE_RESULT ::proto::QuickReplyButton* release_quickreplybutton(); ::proto::QuickReplyButton* mutable_quickreplybutton(); void set_allocated_quickreplybutton(::proto::QuickReplyButton* quickreplybutton); private: @@ -2761,7 +2798,7 @@ class TemplateButton PROTOBUF_FINAL : public: void clear_urlbutton(); const ::proto::URLButton& urlbutton() const; - ::proto::URLButton* release_urlbutton(); + PROTOBUF_MUST_USE_RESULT ::proto::URLButton* release_urlbutton(); ::proto::URLButton* mutable_urlbutton(); void set_allocated_urlbutton(::proto::URLButton* urlbutton); private: @@ -2779,7 +2816,7 @@ class TemplateButton PROTOBUF_FINAL : public: void clear_callbutton(); const ::proto::CallButton& callbutton() const; - ::proto::CallButton* release_callbutton(); + PROTOBUF_MUST_USE_RESULT ::proto::CallButton* release_callbutton(); ::proto::CallButton* mutable_callbutton(); void set_allocated_callbutton(::proto::CallButton* callbutton); private: @@ -2821,11 +2858,11 @@ class TemplateButton PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class Location PROTOBUF_FINAL : +class Location final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Location) */ { public: inline Location() : Location(nullptr) {} - virtual ~Location(); + ~Location() override; explicit constexpr Location(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Location(const Location& from); @@ -2839,8 +2876,13 @@ class Location PROTOBUF_FINAL : return *this; } inline Location& operator=(Location&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -2858,10 +2900,10 @@ class Location PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const Location& default_instance() { return *internal_default_instance(); @@ -2878,7 +2920,7 @@ class Location PROTOBUF_FINAL : } inline void Swap(Location* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -2886,23 +2928,26 @@ class Location PROTOBUF_FINAL : } void UnsafeArenaSwap(Location* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Location* New() const final { - return CreateMaybeMessage<Location>(nullptr); + return new Location(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Location& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Location& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -2913,8 +2958,8 @@ class Location PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Location* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -2922,19 +2967,17 @@ class Location PROTOBUF_FINAL : return "proto.Location"; } protected: - explicit Location(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Location(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -2952,16 +2995,14 @@ class Location PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); - std::string* release_name(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: @@ -3007,11 +3048,11 @@ class Location PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class Point PROTOBUF_FINAL : +class Point final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Point) */ { public: inline Point() : Point(nullptr) {} - virtual ~Point(); + ~Point() override; explicit constexpr Point(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Point(const Point& from); @@ -3025,8 +3066,13 @@ class Point PROTOBUF_FINAL : return *this; } inline Point& operator=(Point&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -3044,10 +3090,10 @@ class Point PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const Point& default_instance() { return *internal_default_instance(); @@ -3064,7 +3110,7 @@ class Point PROTOBUF_FINAL : } inline void Swap(Point* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -3072,23 +3118,26 @@ class Point PROTOBUF_FINAL : } void UnsafeArenaSwap(Point* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Point* New() const final { - return CreateMaybeMessage<Point>(nullptr); + return new Point(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Point& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Point& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3099,8 +3148,8 @@ class Point PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Point* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -3108,19 +3157,17 @@ class Point PROTOBUF_FINAL : return "proto.Point"; } protected: - explicit Point(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Point(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3201,11 +3248,11 @@ class Point PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class InteractiveAnnotation PROTOBUF_FINAL : +class InteractiveAnnotation final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.InteractiveAnnotation) */ { public: inline InteractiveAnnotation() : InteractiveAnnotation(nullptr) {} - virtual ~InteractiveAnnotation(); + ~InteractiveAnnotation() override; explicit constexpr InteractiveAnnotation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); InteractiveAnnotation(const InteractiveAnnotation& from); @@ -3219,8 +3266,13 @@ class InteractiveAnnotation PROTOBUF_FINAL : return *this; } inline InteractiveAnnotation& operator=(InteractiveAnnotation&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -3238,10 +3290,10 @@ class InteractiveAnnotation PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const InteractiveAnnotation& default_instance() { return *internal_default_instance(); @@ -3263,7 +3315,7 @@ class InteractiveAnnotation PROTOBUF_FINAL : } inline void Swap(InteractiveAnnotation* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -3271,23 +3323,26 @@ class InteractiveAnnotation PROTOBUF_FINAL : } void UnsafeArenaSwap(InteractiveAnnotation* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline InteractiveAnnotation* New() const final { - return CreateMaybeMessage<InteractiveAnnotation>(nullptr); + return new InteractiveAnnotation(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const InteractiveAnnotation& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const InteractiveAnnotation& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3298,8 +3353,8 @@ class InteractiveAnnotation PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(InteractiveAnnotation* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -3307,19 +3362,17 @@ class InteractiveAnnotation PROTOBUF_FINAL : return "proto.InteractiveAnnotation"; } protected: - explicit InteractiveAnnotation(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit InteractiveAnnotation(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3354,7 +3407,7 @@ class InteractiveAnnotation PROTOBUF_FINAL : public: void clear_location(); const ::proto::Location& location() const; - ::proto::Location* release_location(); + PROTOBUF_MUST_USE_RESULT ::proto::Location* release_location(); ::proto::Location* mutable_location(); void set_allocated_location(::proto::Location* location); private: @@ -3391,11 +3444,11 @@ class InteractiveAnnotation PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class DeviceListMetadata PROTOBUF_FINAL : +class DeviceListMetadata final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.DeviceListMetadata) */ { public: inline DeviceListMetadata() : DeviceListMetadata(nullptr) {} - virtual ~DeviceListMetadata(); + ~DeviceListMetadata() override; explicit constexpr DeviceListMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); DeviceListMetadata(const DeviceListMetadata& from); @@ -3409,8 +3462,13 @@ class DeviceListMetadata PROTOBUF_FINAL : return *this; } inline DeviceListMetadata& operator=(DeviceListMetadata&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -3428,10 +3486,10 @@ class DeviceListMetadata PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const DeviceListMetadata& default_instance() { return *internal_default_instance(); @@ -3448,7 +3506,7 @@ class DeviceListMetadata PROTOBUF_FINAL : } inline void Swap(DeviceListMetadata* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -3456,23 +3514,26 @@ class DeviceListMetadata PROTOBUF_FINAL : } void UnsafeArenaSwap(DeviceListMetadata* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline DeviceListMetadata* New() const final { - return CreateMaybeMessage<DeviceListMetadata>(nullptr); + return new DeviceListMetadata(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DeviceListMetadata& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const DeviceListMetadata& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3483,8 +3544,8 @@ class DeviceListMetadata PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DeviceListMetadata* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -3492,19 +3553,17 @@ class DeviceListMetadata PROTOBUF_FINAL : return "proto.DeviceListMetadata"; } protected: - explicit DeviceListMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DeviceListMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3523,16 +3582,14 @@ class DeviceListMetadata PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_senderkeyhash(ArgT0&& arg0, ArgT... args); std::string* mutable_senderkeyhash(); - std::string* release_senderkeyhash(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_senderkeyhash(const std::string& value); std::string* _internal_mutable_senderkeyhash(); public: @@ -3543,16 +3600,14 @@ class DeviceListMetadata PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_recipientkeyhash(ArgT0&& arg0, ArgT... args); std::string* mutable_recipientkeyhash(); - std::string* release_recipientkeyhash(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_recipientkeyhash(const std::string& value); std::string* _internal_mutable_recipientkeyhash(); public: @@ -3599,11 +3654,11 @@ class DeviceListMetadata PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class MessageContextInfo PROTOBUF_FINAL : +class MessageContextInfo final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.MessageContextInfo) */ { public: inline MessageContextInfo() : MessageContextInfo(nullptr) {} - virtual ~MessageContextInfo(); + ~MessageContextInfo() override; explicit constexpr MessageContextInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageContextInfo(const MessageContextInfo& from); @@ -3617,8 +3672,13 @@ class MessageContextInfo PROTOBUF_FINAL : return *this; } inline MessageContextInfo& operator=(MessageContextInfo&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -3636,10 +3696,10 @@ class MessageContextInfo PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const MessageContextInfo& default_instance() { return *internal_default_instance(); @@ -3656,7 +3716,7 @@ class MessageContextInfo PROTOBUF_FINAL : } inline void Swap(MessageContextInfo* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -3664,23 +3724,26 @@ class MessageContextInfo PROTOBUF_FINAL : } void UnsafeArenaSwap(MessageContextInfo* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline MessageContextInfo* New() const final { - return CreateMaybeMessage<MessageContextInfo>(nullptr); + return new MessageContextInfo(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageContextInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const MessageContextInfo& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3691,8 +3754,8 @@ class MessageContextInfo PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageContextInfo* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -3700,19 +3763,17 @@ class MessageContextInfo PROTOBUF_FINAL : return "proto.MessageContextInfo"; } protected: - explicit MessageContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit MessageContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3728,7 +3789,7 @@ class MessageContextInfo PROTOBUF_FINAL : public: void clear_devicelistmetadata(); const ::proto::DeviceListMetadata& devicelistmetadata() const; - ::proto::DeviceListMetadata* release_devicelistmetadata(); + PROTOBUF_MUST_USE_RESULT ::proto::DeviceListMetadata* release_devicelistmetadata(); ::proto::DeviceListMetadata* mutable_devicelistmetadata(); void set_allocated_devicelistmetadata(::proto::DeviceListMetadata* devicelistmetadata); private: @@ -3753,11 +3814,11 @@ class MessageContextInfo PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class AdReplyInfo PROTOBUF_FINAL : +class AdReplyInfo final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AdReplyInfo) */ { public: inline AdReplyInfo() : AdReplyInfo(nullptr) {} - virtual ~AdReplyInfo(); + ~AdReplyInfo() override; explicit constexpr AdReplyInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AdReplyInfo(const AdReplyInfo& from); @@ -3771,8 +3832,13 @@ class AdReplyInfo PROTOBUF_FINAL : return *this; } inline AdReplyInfo& operator=(AdReplyInfo&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -3790,10 +3856,10 @@ class AdReplyInfo PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const AdReplyInfo& default_instance() { return *internal_default_instance(); @@ -3810,7 +3876,7 @@ class AdReplyInfo PROTOBUF_FINAL : } inline void Swap(AdReplyInfo* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -3818,23 +3884,26 @@ class AdReplyInfo PROTOBUF_FINAL : } void UnsafeArenaSwap(AdReplyInfo* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline AdReplyInfo* New() const final { - return CreateMaybeMessage<AdReplyInfo>(nullptr); + return new AdReplyInfo(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AdReplyInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const AdReplyInfo& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -3845,8 +3914,8 @@ class AdReplyInfo PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AdReplyInfo* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -3854,19 +3923,17 @@ class AdReplyInfo PROTOBUF_FINAL : return "proto.AdReplyInfo"; } protected: - explicit AdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -3917,16 +3984,14 @@ class AdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_advertisername(ArgT0&& arg0, ArgT... args); std::string* mutable_advertisername(); - std::string* release_advertisername(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_advertisername(const std::string& value); std::string* _internal_mutable_advertisername(); public: @@ -3937,16 +4002,14 @@ class AdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_jpegthumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_jpegthumbnail(); - std::string* release_jpegthumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jpegthumbnail(const std::string& value); std::string* _internal_mutable_jpegthumbnail(); public: @@ -3957,16 +4020,14 @@ class AdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_caption(ArgT0&& arg0, ArgT... args); std::string* mutable_caption(); - std::string* release_caption(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_caption(const std::string& value); std::string* _internal_mutable_caption(); public: @@ -4000,11 +4061,11 @@ class AdReplyInfo PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ExternalAdReplyInfo PROTOBUF_FINAL : +class ExternalAdReplyInfo final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ExternalAdReplyInfo) */ { public: inline ExternalAdReplyInfo() : ExternalAdReplyInfo(nullptr) {} - virtual ~ExternalAdReplyInfo(); + ~ExternalAdReplyInfo() override; explicit constexpr ExternalAdReplyInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ExternalAdReplyInfo(const ExternalAdReplyInfo& from); @@ -4018,8 +4079,13 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : return *this; } inline ExternalAdReplyInfo& operator=(ExternalAdReplyInfo&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -4037,10 +4103,10 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ExternalAdReplyInfo& default_instance() { return *internal_default_instance(); @@ -4057,7 +4123,7 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : } inline void Swap(ExternalAdReplyInfo* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -4065,23 +4131,26 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : } void UnsafeArenaSwap(ExternalAdReplyInfo* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ExternalAdReplyInfo* New() const final { - return CreateMaybeMessage<ExternalAdReplyInfo>(nullptr); + return new ExternalAdReplyInfo(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ExternalAdReplyInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ExternalAdReplyInfo& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -4092,8 +4161,8 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ExternalAdReplyInfo* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -4101,19 +4170,17 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : return "proto.ExternalAdReplyInfo"; } protected: - explicit ExternalAdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ExternalAdReplyInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4169,16 +4236,14 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_title(ArgT0&& arg0, ArgT... args); std::string* mutable_title(); - std::string* release_title(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_title(const std::string& value); std::string* _internal_mutable_title(); public: @@ -4189,16 +4254,14 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_body(ArgT0&& arg0, ArgT... args); std::string* mutable_body(); - std::string* release_body(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(const std::string& value); std::string* _internal_mutable_body(); public: @@ -4209,16 +4272,14 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnailurl(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnailurl(); - std::string* release_thumbnailurl(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnailurl(const std::string& value); std::string* _internal_mutable_thumbnailurl(); public: @@ -4229,16 +4290,14 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mediaurl(ArgT0&& arg0, ArgT... args); std::string* mutable_mediaurl(); - std::string* release_mediaurl(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mediaurl(const std::string& value); std::string* _internal_mutable_mediaurl(); public: @@ -4249,16 +4308,14 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnail(); - std::string* release_thumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnail(const std::string& value); std::string* _internal_mutable_thumbnail(); public: @@ -4269,16 +4326,14 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_sourcetype(ArgT0&& arg0, ArgT... args); std::string* mutable_sourcetype(); - std::string* release_sourcetype(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sourcetype(const std::string& value); std::string* _internal_mutable_sourcetype(); public: @@ -4289,16 +4344,14 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_sourceid(ArgT0&& arg0, ArgT... args); std::string* mutable_sourceid(); - std::string* release_sourceid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sourceid(const std::string& value); std::string* _internal_mutable_sourceid(); public: @@ -4309,16 +4362,14 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_sourceurl(ArgT0&& arg0, ArgT... args); std::string* mutable_sourceurl(); - std::string* release_sourceurl(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sourceurl(const std::string& value); std::string* _internal_mutable_sourceurl(); public: @@ -4357,11 +4408,11 @@ class ExternalAdReplyInfo PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ContextInfo PROTOBUF_FINAL : +class ContextInfo final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ContextInfo) */ { public: inline ContextInfo() : ContextInfo(nullptr) {} - virtual ~ContextInfo(); + ~ContextInfo() override; explicit constexpr ContextInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ContextInfo(const ContextInfo& from); @@ -4375,8 +4426,13 @@ class ContextInfo PROTOBUF_FINAL : return *this; } inline ContextInfo& operator=(ContextInfo&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -4394,10 +4450,10 @@ class ContextInfo PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ContextInfo& default_instance() { return *internal_default_instance(); @@ -4414,7 +4470,7 @@ class ContextInfo PROTOBUF_FINAL : } inline void Swap(ContextInfo* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -4422,23 +4478,26 @@ class ContextInfo PROTOBUF_FINAL : } void UnsafeArenaSwap(ContextInfo* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ContextInfo* New() const final { - return CreateMaybeMessage<ContextInfo>(nullptr); + return new ContextInfo(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ContextInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ContextInfo& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -4449,8 +4508,8 @@ class ContextInfo PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ContextInfo* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -4458,19 +4517,17 @@ class ContextInfo PROTOBUF_FINAL : return "proto.ContextInfo"; } protected: - explicit ContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ContextInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4525,16 +4582,14 @@ class ContextInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_stanzaid(ArgT0&& arg0, ArgT... args); std::string* mutable_stanzaid(); - std::string* release_stanzaid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_stanzaid(const std::string& value); std::string* _internal_mutable_stanzaid(); public: @@ -4545,16 +4600,14 @@ class ContextInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_participant(ArgT0&& arg0, ArgT... args); std::string* mutable_participant(); - std::string* release_participant(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_participant(const std::string& value); std::string* _internal_mutable_participant(); public: @@ -4565,16 +4618,14 @@ class ContextInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_remotejid(ArgT0&& arg0, ArgT... args); std::string* mutable_remotejid(); - std::string* release_remotejid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_remotejid(const std::string& value); std::string* _internal_mutable_remotejid(); public: @@ -4585,16 +4636,14 @@ class ContextInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_conversionsource(ArgT0&& arg0, ArgT... args); std::string* mutable_conversionsource(); - std::string* release_conversionsource(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_conversionsource(const std::string& value); std::string* _internal_mutable_conversionsource(); public: @@ -4605,16 +4654,14 @@ class ContextInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_conversiondata(ArgT0&& arg0, ArgT... args); std::string* mutable_conversiondata(); - std::string* release_conversiondata(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_conversiondata(const std::string& value); std::string* _internal_mutable_conversiondata(); public: @@ -4625,16 +4672,14 @@ class ContextInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_ephemeralsharedsecret(ArgT0&& arg0, ArgT... args); std::string* mutable_ephemeralsharedsecret(); - std::string* release_ephemeralsharedsecret(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_ephemeralsharedsecret(const std::string& value); std::string* _internal_mutable_ephemeralsharedsecret(); public: @@ -4645,7 +4690,7 @@ class ContextInfo PROTOBUF_FINAL : public: void clear_quotedmessage(); const ::proto::Message& quotedmessage() const; - ::proto::Message* release_quotedmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::Message* release_quotedmessage(); ::proto::Message* mutable_quotedmessage(); void set_allocated_quotedmessage(::proto::Message* quotedmessage); private: @@ -4663,7 +4708,7 @@ class ContextInfo PROTOBUF_FINAL : public: void clear_quotedad(); const ::proto::AdReplyInfo& quotedad() const; - ::proto::AdReplyInfo* release_quotedad(); + PROTOBUF_MUST_USE_RESULT ::proto::AdReplyInfo* release_quotedad(); ::proto::AdReplyInfo* mutable_quotedad(); void set_allocated_quotedad(::proto::AdReplyInfo* quotedad); private: @@ -4681,7 +4726,7 @@ class ContextInfo PROTOBUF_FINAL : public: void clear_placeholderkey(); const ::proto::MessageKey& placeholderkey() const; - ::proto::MessageKey* release_placeholderkey(); + PROTOBUF_MUST_USE_RESULT ::proto::MessageKey* release_placeholderkey(); ::proto::MessageKey* mutable_placeholderkey(); void set_allocated_placeholderkey(::proto::MessageKey* placeholderkey); private: @@ -4699,7 +4744,7 @@ class ContextInfo PROTOBUF_FINAL : public: void clear_externaladreply(); const ::proto::ExternalAdReplyInfo& externaladreply() const; - ::proto::ExternalAdReplyInfo* release_externaladreply(); + PROTOBUF_MUST_USE_RESULT ::proto::ExternalAdReplyInfo* release_externaladreply(); ::proto::ExternalAdReplyInfo* mutable_externaladreply(); void set_allocated_externaladreply(::proto::ExternalAdReplyInfo* externaladreply); private: @@ -4804,11 +4849,11 @@ class ContextInfo PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class SenderKeyDistributionMessage PROTOBUF_FINAL : +class SenderKeyDistributionMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.SenderKeyDistributionMessage) */ { public: inline SenderKeyDistributionMessage() : SenderKeyDistributionMessage(nullptr) {} - virtual ~SenderKeyDistributionMessage(); + ~SenderKeyDistributionMessage() override; explicit constexpr SenderKeyDistributionMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SenderKeyDistributionMessage(const SenderKeyDistributionMessage& from); @@ -4822,8 +4867,13 @@ class SenderKeyDistributionMessage PROTOBUF_FINAL : return *this; } inline SenderKeyDistributionMessage& operator=(SenderKeyDistributionMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -4841,10 +4891,10 @@ class SenderKeyDistributionMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const SenderKeyDistributionMessage& default_instance() { return *internal_default_instance(); @@ -4861,7 +4911,7 @@ class SenderKeyDistributionMessage PROTOBUF_FINAL : } inline void Swap(SenderKeyDistributionMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -4869,23 +4919,26 @@ class SenderKeyDistributionMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(SenderKeyDistributionMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline SenderKeyDistributionMessage* New() const final { - return CreateMaybeMessage<SenderKeyDistributionMessage>(nullptr); + return new SenderKeyDistributionMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SenderKeyDistributionMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const SenderKeyDistributionMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -4896,8 +4949,8 @@ class SenderKeyDistributionMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SenderKeyDistributionMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -4905,19 +4958,17 @@ class SenderKeyDistributionMessage PROTOBUF_FINAL : return "proto.SenderKeyDistributionMessage"; } protected: - explicit SenderKeyDistributionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SenderKeyDistributionMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -4934,16 +4985,14 @@ class SenderKeyDistributionMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_groupid(ArgT0&& arg0, ArgT... args); std::string* mutable_groupid(); - std::string* release_groupid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_groupid(const std::string& value); std::string* _internal_mutable_groupid(); public: @@ -4954,16 +5003,14 @@ class SenderKeyDistributionMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_axolotlsenderkeydistributionmessage(ArgT0&& arg0, ArgT... args); std::string* mutable_axolotlsenderkeydistributionmessage(); - std::string* release_axolotlsenderkeydistributionmessage(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_axolotlsenderkeydistributionmessage(const std::string& value); std::string* _internal_mutable_axolotlsenderkeydistributionmessage(); public: @@ -4982,11 +5029,11 @@ class SenderKeyDistributionMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ImageMessage PROTOBUF_FINAL : +class ImageMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ImageMessage) */ { public: inline ImageMessage() : ImageMessage(nullptr) {} - virtual ~ImageMessage(); + ~ImageMessage() override; explicit constexpr ImageMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ImageMessage(const ImageMessage& from); @@ -5000,8 +5047,13 @@ class ImageMessage PROTOBUF_FINAL : return *this; } inline ImageMessage& operator=(ImageMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -5019,10 +5071,10 @@ class ImageMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ImageMessage& default_instance() { return *internal_default_instance(); @@ -5039,7 +5091,7 @@ class ImageMessage PROTOBUF_FINAL : } inline void Swap(ImageMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -5047,23 +5099,26 @@ class ImageMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(ImageMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ImageMessage* New() const final { - return CreateMaybeMessage<ImageMessage>(nullptr); + return new ImageMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ImageMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ImageMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -5074,8 +5129,8 @@ class ImageMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ImageMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -5083,19 +5138,17 @@ class ImageMessage PROTOBUF_FINAL : return "proto.ImageMessage"; } protected: - explicit ImageMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ImageMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -5175,16 +5228,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_url(ArgT0&& arg0, ArgT... args); std::string* mutable_url(); - std::string* release_url(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); std::string* _internal_mutable_url(); public: @@ -5195,16 +5246,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mimetype(ArgT0&& arg0, ArgT... args); std::string* mutable_mimetype(); - std::string* release_mimetype(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mimetype(const std::string& value); std::string* _internal_mutable_mimetype(); public: @@ -5215,16 +5264,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_caption(ArgT0&& arg0, ArgT... args); std::string* mutable_caption(); - std::string* release_caption(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_caption(const std::string& value); std::string* _internal_mutable_caption(); public: @@ -5235,16 +5282,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_filesha256(ArgT0&& arg0, ArgT... args); std::string* mutable_filesha256(); - std::string* release_filesha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filesha256(const std::string& value); std::string* _internal_mutable_filesha256(); public: @@ -5255,16 +5300,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mediakey(ArgT0&& arg0, ArgT... args); std::string* mutable_mediakey(); - std::string* release_mediakey(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mediakey(const std::string& value); std::string* _internal_mutable_mediakey(); public: @@ -5275,16 +5318,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_fileencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_fileencsha256(); - std::string* release_fileencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fileencsha256(const std::string& value); std::string* _internal_mutable_fileencsha256(); public: @@ -5295,16 +5336,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_directpath(ArgT0&& arg0, ArgT... args); std::string* mutable_directpath(); - std::string* release_directpath(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directpath(const std::string& value); std::string* _internal_mutable_directpath(); public: @@ -5315,16 +5354,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_jpegthumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_jpegthumbnail(); - std::string* release_jpegthumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jpegthumbnail(const std::string& value); std::string* _internal_mutable_jpegthumbnail(); public: @@ -5335,16 +5372,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_firstscansidecar(ArgT0&& arg0, ArgT... args); std::string* mutable_firstscansidecar(); - std::string* release_firstscansidecar(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_firstscansidecar(const std::string& value); std::string* _internal_mutable_firstscansidecar(); public: @@ -5355,16 +5390,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_scanssidecar(ArgT0&& arg0, ArgT... args); std::string* mutable_scanssidecar(); - std::string* release_scanssidecar(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_scanssidecar(const std::string& value); std::string* _internal_mutable_scanssidecar(); public: @@ -5375,16 +5408,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_midqualityfilesha256(ArgT0&& arg0, ArgT... args); std::string* mutable_midqualityfilesha256(); - std::string* release_midqualityfilesha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_midqualityfilesha256(const std::string& value); std::string* _internal_mutable_midqualityfilesha256(); public: @@ -5395,16 +5426,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_midqualityfileencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_midqualityfileencsha256(); - std::string* release_midqualityfileencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_midqualityfileencsha256(const std::string& value); std::string* _internal_mutable_midqualityfileencsha256(); public: @@ -5415,16 +5444,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnaildirectpath(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnaildirectpath(); - std::string* release_thumbnaildirectpath(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnaildirectpath(const std::string& value); std::string* _internal_mutable_thumbnaildirectpath(); public: @@ -5435,16 +5462,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnailsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnailsha256(); - std::string* release_thumbnailsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnailsha256(const std::string& value); std::string* _internal_mutable_thumbnailsha256(); public: @@ -5455,16 +5480,14 @@ class ImageMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnailencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnailencsha256(); - std::string* release_thumbnailencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnailencsha256(const std::string& value); std::string* _internal_mutable_thumbnailencsha256(); public: @@ -5475,7 +5498,7 @@ class ImageMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -5615,11 +5638,11 @@ class ImageMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class InvoiceMessage PROTOBUF_FINAL : +class InvoiceMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.InvoiceMessage) */ { public: inline InvoiceMessage() : InvoiceMessage(nullptr) {} - virtual ~InvoiceMessage(); + ~InvoiceMessage() override; explicit constexpr InvoiceMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); InvoiceMessage(const InvoiceMessage& from); @@ -5633,8 +5656,13 @@ class InvoiceMessage PROTOBUF_FINAL : return *this; } inline InvoiceMessage& operator=(InvoiceMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -5652,10 +5680,10 @@ class InvoiceMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const InvoiceMessage& default_instance() { return *internal_default_instance(); @@ -5672,7 +5700,7 @@ class InvoiceMessage PROTOBUF_FINAL : } inline void Swap(InvoiceMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -5680,23 +5708,26 @@ class InvoiceMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(InvoiceMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline InvoiceMessage* New() const final { - return CreateMaybeMessage<InvoiceMessage>(nullptr); + return new InvoiceMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const InvoiceMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const InvoiceMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -5707,8 +5738,8 @@ class InvoiceMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(InvoiceMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -5716,19 +5747,17 @@ class InvoiceMessage PROTOBUF_FINAL : return "proto.InvoiceMessage"; } protected: - explicit InvoiceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit InvoiceMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -5783,16 +5812,14 @@ class InvoiceMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_note(ArgT0&& arg0, ArgT... args); std::string* mutable_note(); - std::string* release_note(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_note(const std::string& value); std::string* _internal_mutable_note(); public: @@ -5803,16 +5830,14 @@ class InvoiceMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_token(ArgT0&& arg0, ArgT... args); std::string* mutable_token(); - std::string* release_token(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_token(const std::string& value); std::string* _internal_mutable_token(); public: @@ -5823,16 +5848,14 @@ class InvoiceMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_attachmentmimetype(ArgT0&& arg0, ArgT... args); std::string* mutable_attachmentmimetype(); - std::string* release_attachmentmimetype(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_attachmentmimetype(const std::string& value); std::string* _internal_mutable_attachmentmimetype(); public: @@ -5843,16 +5866,14 @@ class InvoiceMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_attachmentmediakey(ArgT0&& arg0, ArgT... args); std::string* mutable_attachmentmediakey(); - std::string* release_attachmentmediakey(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_attachmentmediakey(const std::string& value); std::string* _internal_mutable_attachmentmediakey(); public: @@ -5863,16 +5884,14 @@ class InvoiceMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_attachmentfilesha256(ArgT0&& arg0, ArgT... args); std::string* mutable_attachmentfilesha256(); - std::string* release_attachmentfilesha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_attachmentfilesha256(const std::string& value); std::string* _internal_mutable_attachmentfilesha256(); public: @@ -5883,16 +5902,14 @@ class InvoiceMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_attachmentfileencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_attachmentfileencsha256(); - std::string* release_attachmentfileencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_attachmentfileencsha256(const std::string& value); std::string* _internal_mutable_attachmentfileencsha256(); public: @@ -5903,16 +5920,14 @@ class InvoiceMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_attachmentdirectpath(ArgT0&& arg0, ArgT... args); std::string* mutable_attachmentdirectpath(); - std::string* release_attachmentdirectpath(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_attachmentdirectpath(const std::string& value); std::string* _internal_mutable_attachmentdirectpath(); public: @@ -5923,16 +5938,14 @@ class InvoiceMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_attachmentjpegthumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_attachmentjpegthumbnail(); - std::string* release_attachmentjpegthumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_attachmentjpegthumbnail(const std::string& value); std::string* _internal_mutable_attachmentjpegthumbnail(); public: @@ -5985,11 +5998,11 @@ class InvoiceMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ContactMessage PROTOBUF_FINAL : +class ContactMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ContactMessage) */ { public: inline ContactMessage() : ContactMessage(nullptr) {} - virtual ~ContactMessage(); + ~ContactMessage() override; explicit constexpr ContactMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ContactMessage(const ContactMessage& from); @@ -6003,8 +6016,13 @@ class ContactMessage PROTOBUF_FINAL : return *this; } inline ContactMessage& operator=(ContactMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -6022,10 +6040,10 @@ class ContactMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ContactMessage& default_instance() { return *internal_default_instance(); @@ -6042,7 +6060,7 @@ class ContactMessage PROTOBUF_FINAL : } inline void Swap(ContactMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -6050,23 +6068,26 @@ class ContactMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(ContactMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ContactMessage* New() const final { - return CreateMaybeMessage<ContactMessage>(nullptr); + return new ContactMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ContactMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ContactMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -6077,8 +6098,8 @@ class ContactMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ContactMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -6086,19 +6107,17 @@ class ContactMessage PROTOBUF_FINAL : return "proto.ContactMessage"; } protected: - explicit ContactMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ContactMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -6116,16 +6135,14 @@ class ContactMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_displayname(ArgT0&& arg0, ArgT... args); std::string* mutable_displayname(); - std::string* release_displayname(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_displayname(const std::string& value); std::string* _internal_mutable_displayname(); public: @@ -6136,16 +6153,14 @@ class ContactMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_vcard(ArgT0&& arg0, ArgT... args); std::string* mutable_vcard(); - std::string* release_vcard(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_vcard(const std::string& value); std::string* _internal_mutable_vcard(); public: @@ -6156,7 +6171,7 @@ class ContactMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -6183,11 +6198,11 @@ class ContactMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class LocationMessage PROTOBUF_FINAL : +class LocationMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.LocationMessage) */ { public: inline LocationMessage() : LocationMessage(nullptr) {} - virtual ~LocationMessage(); + ~LocationMessage() override; explicit constexpr LocationMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); LocationMessage(const LocationMessage& from); @@ -6201,8 +6216,13 @@ class LocationMessage PROTOBUF_FINAL : return *this; } inline LocationMessage& operator=(LocationMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -6220,10 +6240,10 @@ class LocationMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const LocationMessage& default_instance() { return *internal_default_instance(); @@ -6240,7 +6260,7 @@ class LocationMessage PROTOBUF_FINAL : } inline void Swap(LocationMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -6248,23 +6268,26 @@ class LocationMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(LocationMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline LocationMessage* New() const final { - return CreateMaybeMessage<LocationMessage>(nullptr); + return new LocationMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const LocationMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const LocationMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -6275,8 +6298,8 @@ class LocationMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(LocationMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -6284,19 +6307,17 @@ class LocationMessage PROTOBUF_FINAL : return "proto.LocationMessage"; } protected: - explicit LocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -6323,16 +6344,14 @@ class LocationMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_name(ArgT0&& arg0, ArgT... args); std::string* mutable_name(); - std::string* release_name(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); std::string* _internal_mutable_name(); public: @@ -6343,16 +6362,14 @@ class LocationMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_address(ArgT0&& arg0, ArgT... args); std::string* mutable_address(); - std::string* release_address(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_address(const std::string& value); std::string* _internal_mutable_address(); public: @@ -6363,16 +6380,14 @@ class LocationMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_url(ArgT0&& arg0, ArgT... args); std::string* mutable_url(); - std::string* release_url(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); std::string* _internal_mutable_url(); public: @@ -6383,16 +6398,14 @@ class LocationMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_comment(ArgT0&& arg0, ArgT... args); std::string* mutable_comment(); - std::string* release_comment(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_comment(const std::string& value); std::string* _internal_mutable_comment(); public: @@ -6403,16 +6416,14 @@ class LocationMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_jpegthumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_jpegthumbnail(); - std::string* release_jpegthumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jpegthumbnail(const std::string& value); std::string* _internal_mutable_jpegthumbnail(); public: @@ -6423,7 +6434,7 @@ class LocationMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -6537,11 +6548,11 @@ class LocationMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ExtendedTextMessage PROTOBUF_FINAL : +class ExtendedTextMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ExtendedTextMessage) */ { public: inline ExtendedTextMessage() : ExtendedTextMessage(nullptr) {} - virtual ~ExtendedTextMessage(); + ~ExtendedTextMessage() override; explicit constexpr ExtendedTextMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ExtendedTextMessage(const ExtendedTextMessage& from); @@ -6555,8 +6566,13 @@ class ExtendedTextMessage PROTOBUF_FINAL : return *this; } inline ExtendedTextMessage& operator=(ExtendedTextMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -6574,10 +6590,10 @@ class ExtendedTextMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ExtendedTextMessage& default_instance() { return *internal_default_instance(); @@ -6594,7 +6610,7 @@ class ExtendedTextMessage PROTOBUF_FINAL : } inline void Swap(ExtendedTextMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -6602,23 +6618,26 @@ class ExtendedTextMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(ExtendedTextMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ExtendedTextMessage* New() const final { - return CreateMaybeMessage<ExtendedTextMessage>(nullptr); + return new ExtendedTextMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ExtendedTextMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ExtendedTextMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -6629,8 +6648,8 @@ class ExtendedTextMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ExtendedTextMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -6638,19 +6657,17 @@ class ExtendedTextMessage PROTOBUF_FINAL : return "proto.ExtendedTextMessage"; } protected: - explicit ExtendedTextMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ExtendedTextMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -6745,16 +6762,14 @@ class ExtendedTextMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_text(ArgT0&& arg0, ArgT... args); std::string* mutable_text(); - std::string* release_text(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_text(const std::string& value); std::string* _internal_mutable_text(); public: @@ -6765,16 +6780,14 @@ class ExtendedTextMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_matchedtext(ArgT0&& arg0, ArgT... args); std::string* mutable_matchedtext(); - std::string* release_matchedtext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_matchedtext(const std::string& value); std::string* _internal_mutable_matchedtext(); public: @@ -6785,16 +6798,14 @@ class ExtendedTextMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_canonicalurl(ArgT0&& arg0, ArgT... args); std::string* mutable_canonicalurl(); - std::string* release_canonicalurl(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_canonicalurl(const std::string& value); std::string* _internal_mutable_canonicalurl(); public: @@ -6805,16 +6816,14 @@ class ExtendedTextMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_description(ArgT0&& arg0, ArgT... args); std::string* mutable_description(); - std::string* release_description(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); std::string* _internal_mutable_description(); public: @@ -6825,16 +6834,14 @@ class ExtendedTextMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_title(ArgT0&& arg0, ArgT... args); std::string* mutable_title(); - std::string* release_title(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_title(const std::string& value); std::string* _internal_mutable_title(); public: @@ -6845,16 +6852,14 @@ class ExtendedTextMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_jpegthumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_jpegthumbnail(); - std::string* release_jpegthumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jpegthumbnail(const std::string& value); std::string* _internal_mutable_jpegthumbnail(); public: @@ -6865,7 +6870,7 @@ class ExtendedTextMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -6966,11 +6971,11 @@ class ExtendedTextMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class DocumentMessage PROTOBUF_FINAL : +class DocumentMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.DocumentMessage) */ { public: inline DocumentMessage() : DocumentMessage(nullptr) {} - virtual ~DocumentMessage(); + ~DocumentMessage() override; explicit constexpr DocumentMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); DocumentMessage(const DocumentMessage& from); @@ -6984,8 +6989,13 @@ class DocumentMessage PROTOBUF_FINAL : return *this; } inline DocumentMessage& operator=(DocumentMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -7003,10 +7013,10 @@ class DocumentMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const DocumentMessage& default_instance() { return *internal_default_instance(); @@ -7023,7 +7033,7 @@ class DocumentMessage PROTOBUF_FINAL : } inline void Swap(DocumentMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -7031,23 +7041,26 @@ class DocumentMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(DocumentMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline DocumentMessage* New() const final { - return CreateMaybeMessage<DocumentMessage>(nullptr); + return new DocumentMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DocumentMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const DocumentMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -7058,8 +7071,8 @@ class DocumentMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DocumentMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -7067,19 +7080,17 @@ class DocumentMessage PROTOBUF_FINAL : return "proto.DocumentMessage"; } protected: - explicit DocumentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DocumentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -7113,16 +7124,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_url(ArgT0&& arg0, ArgT... args); std::string* mutable_url(); - std::string* release_url(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); std::string* _internal_mutable_url(); public: @@ -7133,16 +7142,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mimetype(ArgT0&& arg0, ArgT... args); std::string* mutable_mimetype(); - std::string* release_mimetype(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mimetype(const std::string& value); std::string* _internal_mutable_mimetype(); public: @@ -7153,16 +7160,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_title(ArgT0&& arg0, ArgT... args); std::string* mutable_title(); - std::string* release_title(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_title(const std::string& value); std::string* _internal_mutable_title(); public: @@ -7173,16 +7178,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_filesha256(ArgT0&& arg0, ArgT... args); std::string* mutable_filesha256(); - std::string* release_filesha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filesha256(const std::string& value); std::string* _internal_mutable_filesha256(); public: @@ -7193,16 +7196,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mediakey(ArgT0&& arg0, ArgT... args); std::string* mutable_mediakey(); - std::string* release_mediakey(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mediakey(const std::string& value); std::string* _internal_mutable_mediakey(); public: @@ -7213,16 +7214,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_filename(ArgT0&& arg0, ArgT... args); std::string* mutable_filename(); - std::string* release_filename(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename(const std::string& value); std::string* _internal_mutable_filename(); public: @@ -7233,16 +7232,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_fileencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_fileencsha256(); - std::string* release_fileencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fileencsha256(const std::string& value); std::string* _internal_mutable_fileencsha256(); public: @@ -7253,16 +7250,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_directpath(ArgT0&& arg0, ArgT... args); std::string* mutable_directpath(); - std::string* release_directpath(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directpath(const std::string& value); std::string* _internal_mutable_directpath(); public: @@ -7273,16 +7268,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnaildirectpath(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnaildirectpath(); - std::string* release_thumbnaildirectpath(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnaildirectpath(const std::string& value); std::string* _internal_mutable_thumbnaildirectpath(); public: @@ -7293,16 +7286,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnailsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnailsha256(); - std::string* release_thumbnailsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnailsha256(const std::string& value); std::string* _internal_mutable_thumbnailsha256(); public: @@ -7313,16 +7304,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnailencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnailencsha256(); - std::string* release_thumbnailencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnailencsha256(const std::string& value); std::string* _internal_mutable_thumbnailencsha256(); public: @@ -7333,16 +7322,14 @@ class DocumentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_jpegthumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_jpegthumbnail(); - std::string* release_jpegthumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jpegthumbnail(const std::string& value); std::string* _internal_mutable_jpegthumbnail(); public: @@ -7353,7 +7340,7 @@ class DocumentMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -7474,11 +7461,11 @@ class DocumentMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class AudioMessage PROTOBUF_FINAL : +class AudioMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AudioMessage) */ { public: inline AudioMessage() : AudioMessage(nullptr) {} - virtual ~AudioMessage(); + ~AudioMessage() override; explicit constexpr AudioMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AudioMessage(const AudioMessage& from); @@ -7492,8 +7479,13 @@ class AudioMessage PROTOBUF_FINAL : return *this; } inline AudioMessage& operator=(AudioMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -7511,10 +7503,10 @@ class AudioMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const AudioMessage& default_instance() { return *internal_default_instance(); @@ -7531,7 +7523,7 @@ class AudioMessage PROTOBUF_FINAL : } inline void Swap(AudioMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -7539,23 +7531,26 @@ class AudioMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(AudioMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline AudioMessage* New() const final { - return CreateMaybeMessage<AudioMessage>(nullptr); + return new AudioMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AudioMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const AudioMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -7566,8 +7561,8 @@ class AudioMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AudioMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -7575,19 +7570,17 @@ class AudioMessage PROTOBUF_FINAL : return "proto.AudioMessage"; } protected: - explicit AudioMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AudioMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -7614,16 +7607,14 @@ class AudioMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_url(ArgT0&& arg0, ArgT... args); std::string* mutable_url(); - std::string* release_url(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); std::string* _internal_mutable_url(); public: @@ -7634,16 +7625,14 @@ class AudioMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mimetype(ArgT0&& arg0, ArgT... args); std::string* mutable_mimetype(); - std::string* release_mimetype(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mimetype(const std::string& value); std::string* _internal_mutable_mimetype(); public: @@ -7654,16 +7643,14 @@ class AudioMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_filesha256(ArgT0&& arg0, ArgT... args); std::string* mutable_filesha256(); - std::string* release_filesha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filesha256(const std::string& value); std::string* _internal_mutable_filesha256(); public: @@ -7674,16 +7661,14 @@ class AudioMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mediakey(ArgT0&& arg0, ArgT... args); std::string* mutable_mediakey(); - std::string* release_mediakey(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mediakey(const std::string& value); std::string* _internal_mutable_mediakey(); public: @@ -7694,16 +7679,14 @@ class AudioMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_fileencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_fileencsha256(); - std::string* release_fileencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fileencsha256(const std::string& value); std::string* _internal_mutable_fileencsha256(); public: @@ -7714,16 +7697,14 @@ class AudioMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_directpath(ArgT0&& arg0, ArgT... args); std::string* mutable_directpath(); - std::string* release_directpath(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directpath(const std::string& value); std::string* _internal_mutable_directpath(); public: @@ -7734,16 +7715,14 @@ class AudioMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_streamingsidecar(ArgT0&& arg0, ArgT... args); std::string* mutable_streamingsidecar(); - std::string* release_streamingsidecar(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_streamingsidecar(const std::string& value); std::string* _internal_mutable_streamingsidecar(); public: @@ -7754,7 +7733,7 @@ class AudioMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -7842,11 +7821,11 @@ class AudioMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class VideoMessage PROTOBUF_FINAL : +class VideoMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.VideoMessage) */ { public: inline VideoMessage() : VideoMessage(nullptr) {} - virtual ~VideoMessage(); + ~VideoMessage() override; explicit constexpr VideoMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); VideoMessage(const VideoMessage& from); @@ -7860,8 +7839,13 @@ class VideoMessage PROTOBUF_FINAL : return *this; } inline VideoMessage& operator=(VideoMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -7879,10 +7863,10 @@ class VideoMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const VideoMessage& default_instance() { return *internal_default_instance(); @@ -7899,7 +7883,7 @@ class VideoMessage PROTOBUF_FINAL : } inline void Swap(VideoMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -7907,23 +7891,26 @@ class VideoMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(VideoMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline VideoMessage* New() const final { - return CreateMaybeMessage<VideoMessage>(nullptr); + return new VideoMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const VideoMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const VideoMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -7934,8 +7921,8 @@ class VideoMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(VideoMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -7943,19 +7930,17 @@ class VideoMessage PROTOBUF_FINAL : return "proto.VideoMessage"; } protected: - explicit VideoMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit VideoMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -8042,16 +8027,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_url(ArgT0&& arg0, ArgT... args); std::string* mutable_url(); - std::string* release_url(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); std::string* _internal_mutable_url(); public: @@ -8062,16 +8045,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mimetype(ArgT0&& arg0, ArgT... args); std::string* mutable_mimetype(); - std::string* release_mimetype(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mimetype(const std::string& value); std::string* _internal_mutable_mimetype(); public: @@ -8082,16 +8063,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_filesha256(ArgT0&& arg0, ArgT... args); std::string* mutable_filesha256(); - std::string* release_filesha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filesha256(const std::string& value); std::string* _internal_mutable_filesha256(); public: @@ -8102,16 +8081,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mediakey(ArgT0&& arg0, ArgT... args); std::string* mutable_mediakey(); - std::string* release_mediakey(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mediakey(const std::string& value); std::string* _internal_mutable_mediakey(); public: @@ -8122,16 +8099,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_caption(ArgT0&& arg0, ArgT... args); std::string* mutable_caption(); - std::string* release_caption(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_caption(const std::string& value); std::string* _internal_mutable_caption(); public: @@ -8142,16 +8117,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_fileencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_fileencsha256(); - std::string* release_fileencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fileencsha256(const std::string& value); std::string* _internal_mutable_fileencsha256(); public: @@ -8162,16 +8135,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_directpath(ArgT0&& arg0, ArgT... args); std::string* mutable_directpath(); - std::string* release_directpath(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directpath(const std::string& value); std::string* _internal_mutable_directpath(); public: @@ -8182,16 +8153,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_jpegthumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_jpegthumbnail(); - std::string* release_jpegthumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jpegthumbnail(const std::string& value); std::string* _internal_mutable_jpegthumbnail(); public: @@ -8202,16 +8171,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_streamingsidecar(ArgT0&& arg0, ArgT... args); std::string* mutable_streamingsidecar(); - std::string* release_streamingsidecar(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_streamingsidecar(const std::string& value); std::string* _internal_mutable_streamingsidecar(); public: @@ -8222,16 +8189,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnaildirectpath(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnaildirectpath(); - std::string* release_thumbnaildirectpath(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnaildirectpath(const std::string& value); std::string* _internal_mutable_thumbnaildirectpath(); public: @@ -8242,16 +8207,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnailsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnailsha256(); - std::string* release_thumbnailsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnailsha256(const std::string& value); std::string* _internal_mutable_thumbnailsha256(); public: @@ -8262,16 +8225,14 @@ class VideoMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnailencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnailencsha256(); - std::string* release_thumbnailencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnailencsha256(const std::string& value); std::string* _internal_mutable_thumbnailencsha256(); public: @@ -8282,7 +8243,7 @@ class VideoMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -8432,11 +8393,11 @@ class VideoMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class Call PROTOBUF_FINAL : +class Call final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Call) */ { public: inline Call() : Call(nullptr) {} - virtual ~Call(); + ~Call() override; explicit constexpr Call(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Call(const Call& from); @@ -8450,8 +8411,13 @@ class Call PROTOBUF_FINAL : return *this; } inline Call& operator=(Call&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -8469,10 +8435,10 @@ class Call PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const Call& default_instance() { return *internal_default_instance(); @@ -8489,7 +8455,7 @@ class Call PROTOBUF_FINAL : } inline void Swap(Call* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -8497,23 +8463,26 @@ class Call PROTOBUF_FINAL : } void UnsafeArenaSwap(Call* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Call* New() const final { - return CreateMaybeMessage<Call>(nullptr); + return new Call(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Call& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Call& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -8524,8 +8493,8 @@ class Call PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Call* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -8533,19 +8502,17 @@ class Call PROTOBUF_FINAL : return "proto.Call"; } protected: - explicit Call(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Call(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -8561,16 +8528,14 @@ class Call PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_callkey(ArgT0&& arg0, ArgT... args); std::string* mutable_callkey(); - std::string* release_callkey(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_callkey(const std::string& value); std::string* _internal_mutable_callkey(); public: @@ -8588,11 +8553,11 @@ class Call PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class Chat PROTOBUF_FINAL : +class Chat final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Chat) */ { public: inline Chat() : Chat(nullptr) {} - virtual ~Chat(); + ~Chat() override; explicit constexpr Chat(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Chat(const Chat& from); @@ -8606,8 +8571,13 @@ class Chat PROTOBUF_FINAL : return *this; } inline Chat& operator=(Chat&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -8625,10 +8595,10 @@ class Chat PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const Chat& default_instance() { return *internal_default_instance(); @@ -8645,7 +8615,7 @@ class Chat PROTOBUF_FINAL : } inline void Swap(Chat* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -8653,23 +8623,26 @@ class Chat PROTOBUF_FINAL : } void UnsafeArenaSwap(Chat* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Chat* New() const final { - return CreateMaybeMessage<Chat>(nullptr); + return new Chat(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Chat& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Chat& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -8680,8 +8653,8 @@ class Chat PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Chat* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -8689,19 +8662,17 @@ class Chat PROTOBUF_FINAL : return "proto.Chat"; } protected: - explicit Chat(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Chat(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -8718,16 +8689,14 @@ class Chat PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_displayname(ArgT0&& arg0, ArgT... args); std::string* mutable_displayname(); - std::string* release_displayname(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_displayname(const std::string& value); std::string* _internal_mutable_displayname(); public: @@ -8738,16 +8707,14 @@ class Chat PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); - std::string* release_id(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); public: @@ -8766,11 +8733,11 @@ class Chat PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ProtocolMessage PROTOBUF_FINAL : +class ProtocolMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ProtocolMessage) */ { public: inline ProtocolMessage() : ProtocolMessage(nullptr) {} - virtual ~ProtocolMessage(); + ~ProtocolMessage() override; explicit constexpr ProtocolMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ProtocolMessage(const ProtocolMessage& from); @@ -8784,8 +8751,13 @@ class ProtocolMessage PROTOBUF_FINAL : return *this; } inline ProtocolMessage& operator=(ProtocolMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -8803,10 +8775,10 @@ class ProtocolMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ProtocolMessage& default_instance() { return *internal_default_instance(); @@ -8823,7 +8795,7 @@ class ProtocolMessage PROTOBUF_FINAL : } inline void Swap(ProtocolMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -8831,23 +8803,26 @@ class ProtocolMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(ProtocolMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ProtocolMessage* New() const final { - return CreateMaybeMessage<ProtocolMessage>(nullptr); + return new ProtocolMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ProtocolMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ProtocolMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -8858,8 +8833,8 @@ class ProtocolMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ProtocolMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -8867,19 +8842,17 @@ class ProtocolMessage PROTOBUF_FINAL : return "proto.ProtocolMessage"; } protected: - explicit ProtocolMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ProtocolMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -8947,7 +8920,7 @@ class ProtocolMessage PROTOBUF_FINAL : public: void clear_key(); const ::proto::MessageKey& key() const; - ::proto::MessageKey* release_key(); + PROTOBUF_MUST_USE_RESULT ::proto::MessageKey* release_key(); ::proto::MessageKey* mutable_key(); void set_allocated_key(::proto::MessageKey* key); private: @@ -8965,7 +8938,7 @@ class ProtocolMessage PROTOBUF_FINAL : public: void clear_historysyncnotification(); const ::proto::HistorySyncNotification& historysyncnotification() const; - ::proto::HistorySyncNotification* release_historysyncnotification(); + PROTOBUF_MUST_USE_RESULT ::proto::HistorySyncNotification* release_historysyncnotification(); ::proto::HistorySyncNotification* mutable_historysyncnotification(); void set_allocated_historysyncnotification(::proto::HistorySyncNotification* historysyncnotification); private: @@ -8983,7 +8956,7 @@ class ProtocolMessage PROTOBUF_FINAL : public: void clear_appstatesynckeyshare(); const ::proto::AppStateSyncKeyShare& appstatesynckeyshare() const; - ::proto::AppStateSyncKeyShare* release_appstatesynckeyshare(); + PROTOBUF_MUST_USE_RESULT ::proto::AppStateSyncKeyShare* release_appstatesynckeyshare(); ::proto::AppStateSyncKeyShare* mutable_appstatesynckeyshare(); void set_allocated_appstatesynckeyshare(::proto::AppStateSyncKeyShare* appstatesynckeyshare); private: @@ -9001,7 +8974,7 @@ class ProtocolMessage PROTOBUF_FINAL : public: void clear_appstatesynckeyrequest(); const ::proto::AppStateSyncKeyRequest& appstatesynckeyrequest() const; - ::proto::AppStateSyncKeyRequest* release_appstatesynckeyrequest(); + PROTOBUF_MUST_USE_RESULT ::proto::AppStateSyncKeyRequest* release_appstatesynckeyrequest(); ::proto::AppStateSyncKeyRequest* mutable_appstatesynckeyrequest(); void set_allocated_appstatesynckeyrequest(::proto::AppStateSyncKeyRequest* appstatesynckeyrequest); private: @@ -9019,7 +8992,7 @@ class ProtocolMessage PROTOBUF_FINAL : public: void clear_initialsecuritynotificationsettingsync(); const ::proto::InitialSecurityNotificationSettingSync& initialsecuritynotificationsettingsync() const; - ::proto::InitialSecurityNotificationSettingSync* release_initialsecuritynotificationsettingsync(); + PROTOBUF_MUST_USE_RESULT ::proto::InitialSecurityNotificationSettingSync* release_initialsecuritynotificationsettingsync(); ::proto::InitialSecurityNotificationSettingSync* mutable_initialsecuritynotificationsettingsync(); void set_allocated_initialsecuritynotificationsettingsync(::proto::InitialSecurityNotificationSettingSync* initialsecuritynotificationsettingsync); private: @@ -9037,7 +9010,7 @@ class ProtocolMessage PROTOBUF_FINAL : public: void clear_appstatefatalexceptionnotification(); const ::proto::AppStateFatalExceptionNotification& appstatefatalexceptionnotification() const; - ::proto::AppStateFatalExceptionNotification* release_appstatefatalexceptionnotification(); + PROTOBUF_MUST_USE_RESULT ::proto::AppStateFatalExceptionNotification* release_appstatefatalexceptionnotification(); ::proto::AppStateFatalExceptionNotification* mutable_appstatefatalexceptionnotification(); void set_allocated_appstatefatalexceptionnotification(::proto::AppStateFatalExceptionNotification* appstatefatalexceptionnotification); private: @@ -9109,11 +9082,11 @@ class ProtocolMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HistorySyncNotification PROTOBUF_FINAL : +class HistorySyncNotification final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HistorySyncNotification) */ { public: inline HistorySyncNotification() : HistorySyncNotification(nullptr) {} - virtual ~HistorySyncNotification(); + ~HistorySyncNotification() override; explicit constexpr HistorySyncNotification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HistorySyncNotification(const HistorySyncNotification& from); @@ -9127,8 +9100,13 @@ class HistorySyncNotification PROTOBUF_FINAL : return *this; } inline HistorySyncNotification& operator=(HistorySyncNotification&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -9146,10 +9124,10 @@ class HistorySyncNotification PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HistorySyncNotification& default_instance() { return *internal_default_instance(); @@ -9166,7 +9144,7 @@ class HistorySyncNotification PROTOBUF_FINAL : } inline void Swap(HistorySyncNotification* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -9174,23 +9152,26 @@ class HistorySyncNotification PROTOBUF_FINAL : } void UnsafeArenaSwap(HistorySyncNotification* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HistorySyncNotification* New() const final { - return CreateMaybeMessage<HistorySyncNotification>(nullptr); + return new HistorySyncNotification(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HistorySyncNotification& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HistorySyncNotification& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -9201,8 +9182,8 @@ class HistorySyncNotification PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HistorySyncNotification* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -9210,19 +9191,17 @@ class HistorySyncNotification PROTOBUF_FINAL : return "proto.HistorySyncNotification"; } protected: - explicit HistorySyncNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HistorySyncNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -9281,16 +9260,14 @@ class HistorySyncNotification PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_filesha256(ArgT0&& arg0, ArgT... args); std::string* mutable_filesha256(); - std::string* release_filesha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filesha256(const std::string& value); std::string* _internal_mutable_filesha256(); public: @@ -9301,16 +9278,14 @@ class HistorySyncNotification PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mediakey(ArgT0&& arg0, ArgT... args); std::string* mutable_mediakey(); - std::string* release_mediakey(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mediakey(const std::string& value); std::string* _internal_mutable_mediakey(); public: @@ -9321,16 +9296,14 @@ class HistorySyncNotification PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_fileencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_fileencsha256(); - std::string* release_fileencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fileencsha256(const std::string& value); std::string* _internal_mutable_fileencsha256(); public: @@ -9341,16 +9314,14 @@ class HistorySyncNotification PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_directpath(ArgT0&& arg0, ArgT... args); std::string* mutable_directpath(); - std::string* release_directpath(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directpath(const std::string& value); std::string* _internal_mutable_directpath(); public: @@ -9361,16 +9332,14 @@ class HistorySyncNotification PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_originalmessageid(ArgT0&& arg0, ArgT... args); std::string* mutable_originalmessageid(); - std::string* release_originalmessageid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_originalmessageid(const std::string& value); std::string* _internal_mutable_originalmessageid(); public: @@ -9434,11 +9403,11 @@ class HistorySyncNotification PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class AppStateSyncKey PROTOBUF_FINAL : +class AppStateSyncKey final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKey) */ { public: inline AppStateSyncKey() : AppStateSyncKey(nullptr) {} - virtual ~AppStateSyncKey(); + ~AppStateSyncKey() override; explicit constexpr AppStateSyncKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AppStateSyncKey(const AppStateSyncKey& from); @@ -9452,8 +9421,13 @@ class AppStateSyncKey PROTOBUF_FINAL : return *this; } inline AppStateSyncKey& operator=(AppStateSyncKey&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -9471,10 +9445,10 @@ class AppStateSyncKey PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const AppStateSyncKey& default_instance() { return *internal_default_instance(); @@ -9491,7 +9465,7 @@ class AppStateSyncKey PROTOBUF_FINAL : } inline void Swap(AppStateSyncKey* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -9499,23 +9473,26 @@ class AppStateSyncKey PROTOBUF_FINAL : } void UnsafeArenaSwap(AppStateSyncKey* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline AppStateSyncKey* New() const final { - return CreateMaybeMessage<AppStateSyncKey>(nullptr); + return new AppStateSyncKey(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AppStateSyncKey& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const AppStateSyncKey& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -9526,8 +9503,8 @@ class AppStateSyncKey PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AppStateSyncKey* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -9535,19 +9512,17 @@ class AppStateSyncKey PROTOBUF_FINAL : return "proto.AppStateSyncKey"; } protected: - explicit AppStateSyncKey(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AppStateSyncKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -9564,7 +9539,7 @@ class AppStateSyncKey PROTOBUF_FINAL : public: void clear_keyid(); const ::proto::AppStateSyncKeyId& keyid() const; - ::proto::AppStateSyncKeyId* release_keyid(); + PROTOBUF_MUST_USE_RESULT ::proto::AppStateSyncKeyId* release_keyid(); ::proto::AppStateSyncKeyId* mutable_keyid(); void set_allocated_keyid(::proto::AppStateSyncKeyId* keyid); private: @@ -9582,7 +9557,7 @@ class AppStateSyncKey PROTOBUF_FINAL : public: void clear_keydata(); const ::proto::AppStateSyncKeyData& keydata() const; - ::proto::AppStateSyncKeyData* release_keydata(); + PROTOBUF_MUST_USE_RESULT ::proto::AppStateSyncKeyData* release_keydata(); ::proto::AppStateSyncKeyData* mutable_keydata(); void set_allocated_keydata(::proto::AppStateSyncKeyData* keydata); private: @@ -9608,11 +9583,11 @@ class AppStateSyncKey PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class AppStateSyncKeyId PROTOBUF_FINAL : +class AppStateSyncKeyId final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKeyId) */ { public: inline AppStateSyncKeyId() : AppStateSyncKeyId(nullptr) {} - virtual ~AppStateSyncKeyId(); + ~AppStateSyncKeyId() override; explicit constexpr AppStateSyncKeyId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AppStateSyncKeyId(const AppStateSyncKeyId& from); @@ -9626,8 +9601,13 @@ class AppStateSyncKeyId PROTOBUF_FINAL : return *this; } inline AppStateSyncKeyId& operator=(AppStateSyncKeyId&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -9645,10 +9625,10 @@ class AppStateSyncKeyId PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const AppStateSyncKeyId& default_instance() { return *internal_default_instance(); @@ -9665,7 +9645,7 @@ class AppStateSyncKeyId PROTOBUF_FINAL : } inline void Swap(AppStateSyncKeyId* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -9673,23 +9653,26 @@ class AppStateSyncKeyId PROTOBUF_FINAL : } void UnsafeArenaSwap(AppStateSyncKeyId* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline AppStateSyncKeyId* New() const final { - return CreateMaybeMessage<AppStateSyncKeyId>(nullptr); + return new AppStateSyncKeyId(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AppStateSyncKeyId& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const AppStateSyncKeyId& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -9700,8 +9683,8 @@ class AppStateSyncKeyId PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AppStateSyncKeyId* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -9709,19 +9692,17 @@ class AppStateSyncKeyId PROTOBUF_FINAL : return "proto.AppStateSyncKeyId"; } protected: - explicit AppStateSyncKeyId(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AppStateSyncKeyId(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -9737,16 +9718,14 @@ class AppStateSyncKeyId PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_keyid(ArgT0&& arg0, ArgT... args); std::string* mutable_keyid(); - std::string* release_keyid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_keyid(const std::string& value); std::string* _internal_mutable_keyid(); public: @@ -9764,11 +9743,11 @@ class AppStateSyncKeyId PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class AppStateSyncKeyFingerprint PROTOBUF_FINAL : +class AppStateSyncKeyFingerprint final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKeyFingerprint) */ { public: inline AppStateSyncKeyFingerprint() : AppStateSyncKeyFingerprint(nullptr) {} - virtual ~AppStateSyncKeyFingerprint(); + ~AppStateSyncKeyFingerprint() override; explicit constexpr AppStateSyncKeyFingerprint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AppStateSyncKeyFingerprint(const AppStateSyncKeyFingerprint& from); @@ -9782,8 +9761,13 @@ class AppStateSyncKeyFingerprint PROTOBUF_FINAL : return *this; } inline AppStateSyncKeyFingerprint& operator=(AppStateSyncKeyFingerprint&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -9801,10 +9785,10 @@ class AppStateSyncKeyFingerprint PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const AppStateSyncKeyFingerprint& default_instance() { return *internal_default_instance(); @@ -9821,7 +9805,7 @@ class AppStateSyncKeyFingerprint PROTOBUF_FINAL : } inline void Swap(AppStateSyncKeyFingerprint* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -9829,23 +9813,26 @@ class AppStateSyncKeyFingerprint PROTOBUF_FINAL : } void UnsafeArenaSwap(AppStateSyncKeyFingerprint* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline AppStateSyncKeyFingerprint* New() const final { - return CreateMaybeMessage<AppStateSyncKeyFingerprint>(nullptr); + return new AppStateSyncKeyFingerprint(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AppStateSyncKeyFingerprint& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const AppStateSyncKeyFingerprint& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -9856,8 +9843,8 @@ class AppStateSyncKeyFingerprint PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AppStateSyncKeyFingerprint* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -9865,19 +9852,17 @@ class AppStateSyncKeyFingerprint PROTOBUF_FINAL : return "proto.AppStateSyncKeyFingerprint"; } protected: - explicit AppStateSyncKeyFingerprint(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AppStateSyncKeyFingerprint(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -9953,11 +9938,11 @@ class AppStateSyncKeyFingerprint PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class AppStateSyncKeyData PROTOBUF_FINAL : +class AppStateSyncKeyData final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKeyData) */ { public: inline AppStateSyncKeyData() : AppStateSyncKeyData(nullptr) {} - virtual ~AppStateSyncKeyData(); + ~AppStateSyncKeyData() override; explicit constexpr AppStateSyncKeyData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AppStateSyncKeyData(const AppStateSyncKeyData& from); @@ -9971,8 +9956,13 @@ class AppStateSyncKeyData PROTOBUF_FINAL : return *this; } inline AppStateSyncKeyData& operator=(AppStateSyncKeyData&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -9990,10 +9980,10 @@ class AppStateSyncKeyData PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const AppStateSyncKeyData& default_instance() { return *internal_default_instance(); @@ -10010,7 +10000,7 @@ class AppStateSyncKeyData PROTOBUF_FINAL : } inline void Swap(AppStateSyncKeyData* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -10018,23 +10008,26 @@ class AppStateSyncKeyData PROTOBUF_FINAL : } void UnsafeArenaSwap(AppStateSyncKeyData* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline AppStateSyncKeyData* New() const final { - return CreateMaybeMessage<AppStateSyncKeyData>(nullptr); + return new AppStateSyncKeyData(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AppStateSyncKeyData& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const AppStateSyncKeyData& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -10045,8 +10038,8 @@ class AppStateSyncKeyData PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AppStateSyncKeyData* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -10054,19 +10047,17 @@ class AppStateSyncKeyData PROTOBUF_FINAL : return "proto.AppStateSyncKeyData"; } protected: - explicit AppStateSyncKeyData(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AppStateSyncKeyData(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -10084,16 +10075,14 @@ class AppStateSyncKeyData PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_keydata(ArgT0&& arg0, ArgT... args); std::string* mutable_keydata(); - std::string* release_keydata(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_keydata(const std::string& value); std::string* _internal_mutable_keydata(); public: @@ -10104,7 +10093,7 @@ class AppStateSyncKeyData PROTOBUF_FINAL : public: void clear_fingerprint(); const ::proto::AppStateSyncKeyFingerprint& fingerprint() const; - ::proto::AppStateSyncKeyFingerprint* release_fingerprint(); + PROTOBUF_MUST_USE_RESULT ::proto::AppStateSyncKeyFingerprint* release_fingerprint(); ::proto::AppStateSyncKeyFingerprint* mutable_fingerprint(); void set_allocated_fingerprint(::proto::AppStateSyncKeyFingerprint* fingerprint); private: @@ -10144,11 +10133,11 @@ class AppStateSyncKeyData PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class AppStateSyncKeyShare PROTOBUF_FINAL : +class AppStateSyncKeyShare final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKeyShare) */ { public: inline AppStateSyncKeyShare() : AppStateSyncKeyShare(nullptr) {} - virtual ~AppStateSyncKeyShare(); + ~AppStateSyncKeyShare() override; explicit constexpr AppStateSyncKeyShare(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AppStateSyncKeyShare(const AppStateSyncKeyShare& from); @@ -10162,8 +10151,13 @@ class AppStateSyncKeyShare PROTOBUF_FINAL : return *this; } inline AppStateSyncKeyShare& operator=(AppStateSyncKeyShare&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -10181,10 +10175,10 @@ class AppStateSyncKeyShare PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const AppStateSyncKeyShare& default_instance() { return *internal_default_instance(); @@ -10201,7 +10195,7 @@ class AppStateSyncKeyShare PROTOBUF_FINAL : } inline void Swap(AppStateSyncKeyShare* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -10209,23 +10203,26 @@ class AppStateSyncKeyShare PROTOBUF_FINAL : } void UnsafeArenaSwap(AppStateSyncKeyShare* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline AppStateSyncKeyShare* New() const final { - return CreateMaybeMessage<AppStateSyncKeyShare>(nullptr); + return new AppStateSyncKeyShare(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AppStateSyncKeyShare& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const AppStateSyncKeyShare& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -10236,8 +10233,8 @@ class AppStateSyncKeyShare PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AppStateSyncKeyShare* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -10245,19 +10242,17 @@ class AppStateSyncKeyShare PROTOBUF_FINAL : return "proto.AppStateSyncKeyShare"; } protected: - explicit AppStateSyncKeyShare(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AppStateSyncKeyShare(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -10297,11 +10292,11 @@ class AppStateSyncKeyShare PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class AppStateSyncKeyRequest PROTOBUF_FINAL : +class AppStateSyncKeyRequest final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateSyncKeyRequest) */ { public: inline AppStateSyncKeyRequest() : AppStateSyncKeyRequest(nullptr) {} - virtual ~AppStateSyncKeyRequest(); + ~AppStateSyncKeyRequest() override; explicit constexpr AppStateSyncKeyRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AppStateSyncKeyRequest(const AppStateSyncKeyRequest& from); @@ -10315,8 +10310,13 @@ class AppStateSyncKeyRequest PROTOBUF_FINAL : return *this; } inline AppStateSyncKeyRequest& operator=(AppStateSyncKeyRequest&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -10334,10 +10334,10 @@ class AppStateSyncKeyRequest PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const AppStateSyncKeyRequest& default_instance() { return *internal_default_instance(); @@ -10354,7 +10354,7 @@ class AppStateSyncKeyRequest PROTOBUF_FINAL : } inline void Swap(AppStateSyncKeyRequest* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -10362,23 +10362,26 @@ class AppStateSyncKeyRequest PROTOBUF_FINAL : } void UnsafeArenaSwap(AppStateSyncKeyRequest* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline AppStateSyncKeyRequest* New() const final { - return CreateMaybeMessage<AppStateSyncKeyRequest>(nullptr); + return new AppStateSyncKeyRequest(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AppStateSyncKeyRequest& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const AppStateSyncKeyRequest& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -10389,8 +10392,8 @@ class AppStateSyncKeyRequest PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AppStateSyncKeyRequest* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -10398,19 +10401,17 @@ class AppStateSyncKeyRequest PROTOBUF_FINAL : return "proto.AppStateSyncKeyRequest"; } protected: - explicit AppStateSyncKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AppStateSyncKeyRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -10450,11 +10451,11 @@ class AppStateSyncKeyRequest PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class AppStateFatalExceptionNotification PROTOBUF_FINAL : +class AppStateFatalExceptionNotification final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.AppStateFatalExceptionNotification) */ { public: inline AppStateFatalExceptionNotification() : AppStateFatalExceptionNotification(nullptr) {} - virtual ~AppStateFatalExceptionNotification(); + ~AppStateFatalExceptionNotification() override; explicit constexpr AppStateFatalExceptionNotification(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); AppStateFatalExceptionNotification(const AppStateFatalExceptionNotification& from); @@ -10468,8 +10469,13 @@ class AppStateFatalExceptionNotification PROTOBUF_FINAL : return *this; } inline AppStateFatalExceptionNotification& operator=(AppStateFatalExceptionNotification&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -10487,10 +10493,10 @@ class AppStateFatalExceptionNotification PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const AppStateFatalExceptionNotification& default_instance() { return *internal_default_instance(); @@ -10507,7 +10513,7 @@ class AppStateFatalExceptionNotification PROTOBUF_FINAL : } inline void Swap(AppStateFatalExceptionNotification* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -10515,23 +10521,26 @@ class AppStateFatalExceptionNotification PROTOBUF_FINAL : } void UnsafeArenaSwap(AppStateFatalExceptionNotification* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline AppStateFatalExceptionNotification* New() const final { - return CreateMaybeMessage<AppStateFatalExceptionNotification>(nullptr); + return new AppStateFatalExceptionNotification(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const AppStateFatalExceptionNotification& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const AppStateFatalExceptionNotification& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -10542,8 +10551,8 @@ class AppStateFatalExceptionNotification PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(AppStateFatalExceptionNotification* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -10551,19 +10560,17 @@ class AppStateFatalExceptionNotification PROTOBUF_FINAL : return "proto.AppStateFatalExceptionNotification"; } protected: - explicit AppStateFatalExceptionNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit AppStateFatalExceptionNotification(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -10625,11 +10632,11 @@ class AppStateFatalExceptionNotification PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class InitialSecurityNotificationSettingSync PROTOBUF_FINAL : +class InitialSecurityNotificationSettingSync final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.InitialSecurityNotificationSettingSync) */ { public: inline InitialSecurityNotificationSettingSync() : InitialSecurityNotificationSettingSync(nullptr) {} - virtual ~InitialSecurityNotificationSettingSync(); + ~InitialSecurityNotificationSettingSync() override; explicit constexpr InitialSecurityNotificationSettingSync(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); InitialSecurityNotificationSettingSync(const InitialSecurityNotificationSettingSync& from); @@ -10643,8 +10650,13 @@ class InitialSecurityNotificationSettingSync PROTOBUF_FINAL : return *this; } inline InitialSecurityNotificationSettingSync& operator=(InitialSecurityNotificationSettingSync&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -10662,10 +10674,10 @@ class InitialSecurityNotificationSettingSync PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const InitialSecurityNotificationSettingSync& default_instance() { return *internal_default_instance(); @@ -10682,7 +10694,7 @@ class InitialSecurityNotificationSettingSync PROTOBUF_FINAL : } inline void Swap(InitialSecurityNotificationSettingSync* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -10690,23 +10702,26 @@ class InitialSecurityNotificationSettingSync PROTOBUF_FINAL : } void UnsafeArenaSwap(InitialSecurityNotificationSettingSync* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline InitialSecurityNotificationSettingSync* New() const final { - return CreateMaybeMessage<InitialSecurityNotificationSettingSync>(nullptr); + return new InitialSecurityNotificationSettingSync(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const InitialSecurityNotificationSettingSync& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const InitialSecurityNotificationSettingSync& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -10717,8 +10732,8 @@ class InitialSecurityNotificationSettingSync PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(InitialSecurityNotificationSettingSync* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -10726,19 +10741,17 @@ class InitialSecurityNotificationSettingSync PROTOBUF_FINAL : return "proto.InitialSecurityNotificationSettingSync"; } protected: - explicit InitialSecurityNotificationSettingSync(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit InitialSecurityNotificationSettingSync(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -10774,11 +10787,11 @@ class InitialSecurityNotificationSettingSync PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ContactsArrayMessage PROTOBUF_FINAL : +class ContactsArrayMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ContactsArrayMessage) */ { public: inline ContactsArrayMessage() : ContactsArrayMessage(nullptr) {} - virtual ~ContactsArrayMessage(); + ~ContactsArrayMessage() override; explicit constexpr ContactsArrayMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ContactsArrayMessage(const ContactsArrayMessage& from); @@ -10792,8 +10805,13 @@ class ContactsArrayMessage PROTOBUF_FINAL : return *this; } inline ContactsArrayMessage& operator=(ContactsArrayMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -10811,10 +10829,10 @@ class ContactsArrayMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ContactsArrayMessage& default_instance() { return *internal_default_instance(); @@ -10831,7 +10849,7 @@ class ContactsArrayMessage PROTOBUF_FINAL : } inline void Swap(ContactsArrayMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -10839,23 +10857,26 @@ class ContactsArrayMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(ContactsArrayMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ContactsArrayMessage* New() const final { - return CreateMaybeMessage<ContactsArrayMessage>(nullptr); + return new ContactsArrayMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ContactsArrayMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ContactsArrayMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -10866,8 +10887,8 @@ class ContactsArrayMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ContactsArrayMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -10875,19 +10896,17 @@ class ContactsArrayMessage PROTOBUF_FINAL : return "proto.ContactsArrayMessage"; } protected: - explicit ContactsArrayMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ContactsArrayMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -10923,16 +10942,14 @@ class ContactsArrayMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_displayname(ArgT0&& arg0, ArgT... args); std::string* mutable_displayname(); - std::string* release_displayname(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_displayname(const std::string& value); std::string* _internal_mutable_displayname(); public: @@ -10943,7 +10960,7 @@ class ContactsArrayMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -10970,11 +10987,11 @@ class ContactsArrayMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HSMCurrency PROTOBUF_FINAL : +class HSMCurrency final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HSMCurrency) */ { public: inline HSMCurrency() : HSMCurrency(nullptr) {} - virtual ~HSMCurrency(); + ~HSMCurrency() override; explicit constexpr HSMCurrency(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HSMCurrency(const HSMCurrency& from); @@ -10988,8 +11005,13 @@ class HSMCurrency PROTOBUF_FINAL : return *this; } inline HSMCurrency& operator=(HSMCurrency&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -11007,10 +11029,10 @@ class HSMCurrency PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HSMCurrency& default_instance() { return *internal_default_instance(); @@ -11027,7 +11049,7 @@ class HSMCurrency PROTOBUF_FINAL : } inline void Swap(HSMCurrency* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -11035,23 +11057,26 @@ class HSMCurrency PROTOBUF_FINAL : } void UnsafeArenaSwap(HSMCurrency* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HSMCurrency* New() const final { - return CreateMaybeMessage<HSMCurrency>(nullptr); + return new HSMCurrency(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HSMCurrency& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HSMCurrency& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -11062,8 +11087,8 @@ class HSMCurrency PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HSMCurrency* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -11071,19 +11096,17 @@ class HSMCurrency PROTOBUF_FINAL : return "proto.HSMCurrency"; } protected: - explicit HSMCurrency(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HSMCurrency(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -11100,16 +11123,14 @@ class HSMCurrency PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_currencycode(ArgT0&& arg0, ArgT... args); std::string* mutable_currencycode(); - std::string* release_currencycode(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_currencycode(const std::string& value); std::string* _internal_mutable_currencycode(); public: @@ -11141,11 +11162,11 @@ class HSMCurrency PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HSMDateTimeComponent PROTOBUF_FINAL : +class HSMDateTimeComponent final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HSMDateTimeComponent) */ { public: inline HSMDateTimeComponent() : HSMDateTimeComponent(nullptr) {} - virtual ~HSMDateTimeComponent(); + ~HSMDateTimeComponent() override; explicit constexpr HSMDateTimeComponent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HSMDateTimeComponent(const HSMDateTimeComponent& from); @@ -11159,8 +11180,13 @@ class HSMDateTimeComponent PROTOBUF_FINAL : return *this; } inline HSMDateTimeComponent& operator=(HSMDateTimeComponent&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -11178,10 +11204,10 @@ class HSMDateTimeComponent PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HSMDateTimeComponent& default_instance() { return *internal_default_instance(); @@ -11198,7 +11224,7 @@ class HSMDateTimeComponent PROTOBUF_FINAL : } inline void Swap(HSMDateTimeComponent* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -11206,23 +11232,26 @@ class HSMDateTimeComponent PROTOBUF_FINAL : } void UnsafeArenaSwap(HSMDateTimeComponent* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HSMDateTimeComponent* New() const final { - return CreateMaybeMessage<HSMDateTimeComponent>(nullptr); + return new HSMDateTimeComponent(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HSMDateTimeComponent& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HSMDateTimeComponent& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -11233,8 +11262,8 @@ class HSMDateTimeComponent PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HSMDateTimeComponent* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -11242,19 +11271,17 @@ class HSMDateTimeComponent PROTOBUF_FINAL : return "proto.HSMDateTimeComponent"; } protected: - explicit HSMDateTimeComponent(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HSMDateTimeComponent(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -11450,11 +11477,11 @@ class HSMDateTimeComponent PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HSMDateTimeUnixEpoch PROTOBUF_FINAL : +class HSMDateTimeUnixEpoch final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HSMDateTimeUnixEpoch) */ { public: inline HSMDateTimeUnixEpoch() : HSMDateTimeUnixEpoch(nullptr) {} - virtual ~HSMDateTimeUnixEpoch(); + ~HSMDateTimeUnixEpoch() override; explicit constexpr HSMDateTimeUnixEpoch(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HSMDateTimeUnixEpoch(const HSMDateTimeUnixEpoch& from); @@ -11468,8 +11495,13 @@ class HSMDateTimeUnixEpoch PROTOBUF_FINAL : return *this; } inline HSMDateTimeUnixEpoch& operator=(HSMDateTimeUnixEpoch&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -11487,10 +11519,10 @@ class HSMDateTimeUnixEpoch PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HSMDateTimeUnixEpoch& default_instance() { return *internal_default_instance(); @@ -11507,7 +11539,7 @@ class HSMDateTimeUnixEpoch PROTOBUF_FINAL : } inline void Swap(HSMDateTimeUnixEpoch* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -11515,23 +11547,26 @@ class HSMDateTimeUnixEpoch PROTOBUF_FINAL : } void UnsafeArenaSwap(HSMDateTimeUnixEpoch* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HSMDateTimeUnixEpoch* New() const final { - return CreateMaybeMessage<HSMDateTimeUnixEpoch>(nullptr); + return new HSMDateTimeUnixEpoch(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HSMDateTimeUnixEpoch& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HSMDateTimeUnixEpoch& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -11542,8 +11577,8 @@ class HSMDateTimeUnixEpoch PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HSMDateTimeUnixEpoch* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -11551,19 +11586,17 @@ class HSMDateTimeUnixEpoch PROTOBUF_FINAL : return "proto.HSMDateTimeUnixEpoch"; } protected: - explicit HSMDateTimeUnixEpoch(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HSMDateTimeUnixEpoch(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -11599,11 +11632,11 @@ class HSMDateTimeUnixEpoch PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HSMDateTime PROTOBUF_FINAL : +class HSMDateTime final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HSMDateTime) */ { public: inline HSMDateTime() : HSMDateTime(nullptr) {} - virtual ~HSMDateTime(); + ~HSMDateTime() override; explicit constexpr HSMDateTime(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HSMDateTime(const HSMDateTime& from); @@ -11617,8 +11650,13 @@ class HSMDateTime PROTOBUF_FINAL : return *this; } inline HSMDateTime& operator=(HSMDateTime&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -11636,10 +11674,10 @@ class HSMDateTime PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HSMDateTime& default_instance() { return *internal_default_instance(); @@ -11662,7 +11700,7 @@ class HSMDateTime PROTOBUF_FINAL : } inline void Swap(HSMDateTime* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -11670,23 +11708,26 @@ class HSMDateTime PROTOBUF_FINAL : } void UnsafeArenaSwap(HSMDateTime* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HSMDateTime* New() const final { - return CreateMaybeMessage<HSMDateTime>(nullptr); + return new HSMDateTime(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HSMDateTime& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HSMDateTime& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -11697,8 +11738,8 @@ class HSMDateTime PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HSMDateTime* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -11706,19 +11747,17 @@ class HSMDateTime PROTOBUF_FINAL : return "proto.HSMDateTime"; } protected: - explicit HSMDateTime(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HSMDateTime(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -11735,7 +11774,7 @@ class HSMDateTime PROTOBUF_FINAL : public: void clear_component(); const ::proto::HSMDateTimeComponent& component() const; - ::proto::HSMDateTimeComponent* release_component(); + PROTOBUF_MUST_USE_RESULT ::proto::HSMDateTimeComponent* release_component(); ::proto::HSMDateTimeComponent* mutable_component(); void set_allocated_component(::proto::HSMDateTimeComponent* component); private: @@ -11753,7 +11792,7 @@ class HSMDateTime PROTOBUF_FINAL : public: void clear_unixepoch(); const ::proto::HSMDateTimeUnixEpoch& unixepoch() const; - ::proto::HSMDateTimeUnixEpoch* release_unixepoch(); + PROTOBUF_MUST_USE_RESULT ::proto::HSMDateTimeUnixEpoch* release_unixepoch(); ::proto::HSMDateTimeUnixEpoch* mutable_unixepoch(); void set_allocated_unixepoch(::proto::HSMDateTimeUnixEpoch* unixepoch); private: @@ -11791,11 +11830,11 @@ class HSMDateTime PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HSMLocalizableParameter PROTOBUF_FINAL : +class HSMLocalizableParameter final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HSMLocalizableParameter) */ { public: inline HSMLocalizableParameter() : HSMLocalizableParameter(nullptr) {} - virtual ~HSMLocalizableParameter(); + ~HSMLocalizableParameter() override; explicit constexpr HSMLocalizableParameter(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HSMLocalizableParameter(const HSMLocalizableParameter& from); @@ -11809,8 +11848,13 @@ class HSMLocalizableParameter PROTOBUF_FINAL : return *this; } inline HSMLocalizableParameter& operator=(HSMLocalizableParameter&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -11828,10 +11872,10 @@ class HSMLocalizableParameter PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HSMLocalizableParameter& default_instance() { return *internal_default_instance(); @@ -11854,7 +11898,7 @@ class HSMLocalizableParameter PROTOBUF_FINAL : } inline void Swap(HSMLocalizableParameter* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -11862,23 +11906,26 @@ class HSMLocalizableParameter PROTOBUF_FINAL : } void UnsafeArenaSwap(HSMLocalizableParameter* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HSMLocalizableParameter* New() const final { - return CreateMaybeMessage<HSMLocalizableParameter>(nullptr); + return new HSMLocalizableParameter(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HSMLocalizableParameter& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HSMLocalizableParameter& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -11889,8 +11936,8 @@ class HSMLocalizableParameter PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HSMLocalizableParameter* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -11898,19 +11945,17 @@ class HSMLocalizableParameter PROTOBUF_FINAL : return "proto.HSMLocalizableParameter"; } protected: - explicit HSMLocalizableParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HSMLocalizableParameter(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -11928,16 +11973,14 @@ class HSMLocalizableParameter PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_default_(ArgT0&& arg0, ArgT... args); std::string* mutable_default_(); - std::string* release_default_(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_(const std::string& value); std::string* _internal_mutable_default_(); public: @@ -11948,7 +11991,7 @@ class HSMLocalizableParameter PROTOBUF_FINAL : public: void clear_currency(); const ::proto::HSMCurrency& currency() const; - ::proto::HSMCurrency* release_currency(); + PROTOBUF_MUST_USE_RESULT ::proto::HSMCurrency* release_currency(); ::proto::HSMCurrency* mutable_currency(); void set_allocated_currency(::proto::HSMCurrency* currency); private: @@ -11966,7 +12009,7 @@ class HSMLocalizableParameter PROTOBUF_FINAL : public: void clear_datetime(); const ::proto::HSMDateTime& datetime() const; - ::proto::HSMDateTime* release_datetime(); + PROTOBUF_MUST_USE_RESULT ::proto::HSMDateTime* release_datetime(); ::proto::HSMDateTime* mutable_datetime(); void set_allocated_datetime(::proto::HSMDateTime* datetime); private: @@ -12006,11 +12049,11 @@ class HSMLocalizableParameter PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HighlyStructuredMessage PROTOBUF_FINAL : +class HighlyStructuredMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HighlyStructuredMessage) */ { public: inline HighlyStructuredMessage() : HighlyStructuredMessage(nullptr) {} - virtual ~HighlyStructuredMessage(); + ~HighlyStructuredMessage() override; explicit constexpr HighlyStructuredMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HighlyStructuredMessage(const HighlyStructuredMessage& from); @@ -12024,8 +12067,13 @@ class HighlyStructuredMessage PROTOBUF_FINAL : return *this; } inline HighlyStructuredMessage& operator=(HighlyStructuredMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -12043,10 +12091,10 @@ class HighlyStructuredMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HighlyStructuredMessage& default_instance() { return *internal_default_instance(); @@ -12063,7 +12111,7 @@ class HighlyStructuredMessage PROTOBUF_FINAL : } inline void Swap(HighlyStructuredMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -12071,23 +12119,26 @@ class HighlyStructuredMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(HighlyStructuredMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HighlyStructuredMessage* New() const final { - return CreateMaybeMessage<HighlyStructuredMessage>(nullptr); + return new HighlyStructuredMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HighlyStructuredMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HighlyStructuredMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -12098,8 +12149,8 @@ class HighlyStructuredMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HighlyStructuredMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -12107,19 +12158,17 @@ class HighlyStructuredMessage PROTOBUF_FINAL : return "proto.HighlyStructuredMessage"; } protected: - explicit HighlyStructuredMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HighlyStructuredMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -12185,16 +12234,14 @@ class HighlyStructuredMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_namespace_(ArgT0&& arg0, ArgT... args); std::string* mutable_namespace_(); - std::string* release_namespace_(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_namespace_(const std::string& value); std::string* _internal_mutable_namespace_(); public: @@ -12205,16 +12252,14 @@ class HighlyStructuredMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_elementname(ArgT0&& arg0, ArgT... args); std::string* mutable_elementname(); - std::string* release_elementname(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_elementname(const std::string& value); std::string* _internal_mutable_elementname(); public: @@ -12225,16 +12270,14 @@ class HighlyStructuredMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_fallbacklg(ArgT0&& arg0, ArgT... args); std::string* mutable_fallbacklg(); - std::string* release_fallbacklg(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fallbacklg(const std::string& value); std::string* _internal_mutable_fallbacklg(); public: @@ -12245,16 +12288,14 @@ class HighlyStructuredMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_fallbacklc(ArgT0&& arg0, ArgT... args); std::string* mutable_fallbacklc(); - std::string* release_fallbacklc(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fallbacklc(const std::string& value); std::string* _internal_mutable_fallbacklc(); public: @@ -12265,16 +12306,14 @@ class HighlyStructuredMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_deterministiclg(ArgT0&& arg0, ArgT... args); std::string* mutable_deterministiclg(); - std::string* release_deterministiclg(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_deterministiclg(const std::string& value); std::string* _internal_mutable_deterministiclg(); public: @@ -12285,16 +12324,14 @@ class HighlyStructuredMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_deterministiclc(ArgT0&& arg0, ArgT... args); std::string* mutable_deterministiclc(); - std::string* release_deterministiclc(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_deterministiclc(const std::string& value); std::string* _internal_mutable_deterministiclc(); public: @@ -12305,7 +12342,7 @@ class HighlyStructuredMessage PROTOBUF_FINAL : public: void clear_hydratedhsm(); const ::proto::TemplateMessage& hydratedhsm() const; - ::proto::TemplateMessage* release_hydratedhsm(); + PROTOBUF_MUST_USE_RESULT ::proto::TemplateMessage* release_hydratedhsm(); ::proto::TemplateMessage* mutable_hydratedhsm(); void set_allocated_hydratedhsm(::proto::TemplateMessage* hydratedhsm); private: @@ -12338,11 +12375,11 @@ class HighlyStructuredMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class SendPaymentMessage PROTOBUF_FINAL : +class SendPaymentMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.SendPaymentMessage) */ { public: inline SendPaymentMessage() : SendPaymentMessage(nullptr) {} - virtual ~SendPaymentMessage(); + ~SendPaymentMessage() override; explicit constexpr SendPaymentMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SendPaymentMessage(const SendPaymentMessage& from); @@ -12356,8 +12393,13 @@ class SendPaymentMessage PROTOBUF_FINAL : return *this; } inline SendPaymentMessage& operator=(SendPaymentMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -12375,10 +12417,10 @@ class SendPaymentMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const SendPaymentMessage& default_instance() { return *internal_default_instance(); @@ -12395,7 +12437,7 @@ class SendPaymentMessage PROTOBUF_FINAL : } inline void Swap(SendPaymentMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -12403,23 +12445,26 @@ class SendPaymentMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(SendPaymentMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline SendPaymentMessage* New() const final { - return CreateMaybeMessage<SendPaymentMessage>(nullptr); + return new SendPaymentMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SendPaymentMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const SendPaymentMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -12430,8 +12475,8 @@ class SendPaymentMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SendPaymentMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -12439,19 +12484,17 @@ class SendPaymentMessage PROTOBUF_FINAL : return "proto.SendPaymentMessage"; } protected: - explicit SendPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SendPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -12468,7 +12511,7 @@ class SendPaymentMessage PROTOBUF_FINAL : public: void clear_notemessage(); const ::proto::Message& notemessage() const; - ::proto::Message* release_notemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::Message* release_notemessage(); ::proto::Message* mutable_notemessage(); void set_allocated_notemessage(::proto::Message* notemessage); private: @@ -12486,7 +12529,7 @@ class SendPaymentMessage PROTOBUF_FINAL : public: void clear_requestmessagekey(); const ::proto::MessageKey& requestmessagekey() const; - ::proto::MessageKey* release_requestmessagekey(); + PROTOBUF_MUST_USE_RESULT ::proto::MessageKey* release_requestmessagekey(); ::proto::MessageKey* mutable_requestmessagekey(); void set_allocated_requestmessagekey(::proto::MessageKey* requestmessagekey); private: @@ -12512,11 +12555,11 @@ class SendPaymentMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class RequestPaymentMessage PROTOBUF_FINAL : +class RequestPaymentMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.RequestPaymentMessage) */ { public: inline RequestPaymentMessage() : RequestPaymentMessage(nullptr) {} - virtual ~RequestPaymentMessage(); + ~RequestPaymentMessage() override; explicit constexpr RequestPaymentMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); RequestPaymentMessage(const RequestPaymentMessage& from); @@ -12530,8 +12573,13 @@ class RequestPaymentMessage PROTOBUF_FINAL : return *this; } inline RequestPaymentMessage& operator=(RequestPaymentMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -12549,10 +12597,10 @@ class RequestPaymentMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const RequestPaymentMessage& default_instance() { return *internal_default_instance(); @@ -12569,7 +12617,7 @@ class RequestPaymentMessage PROTOBUF_FINAL : } inline void Swap(RequestPaymentMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -12577,23 +12625,26 @@ class RequestPaymentMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(RequestPaymentMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline RequestPaymentMessage* New() const final { - return CreateMaybeMessage<RequestPaymentMessage>(nullptr); + return new RequestPaymentMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const RequestPaymentMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const RequestPaymentMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -12604,8 +12655,8 @@ class RequestPaymentMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(RequestPaymentMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -12613,19 +12664,17 @@ class RequestPaymentMessage PROTOBUF_FINAL : return "proto.RequestPaymentMessage"; } protected: - explicit RequestPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit RequestPaymentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -12646,16 +12695,14 @@ class RequestPaymentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_currencycodeiso4217(ArgT0&& arg0, ArgT... args); std::string* mutable_currencycodeiso4217(); - std::string* release_currencycodeiso4217(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_currencycodeiso4217(const std::string& value); std::string* _internal_mutable_currencycodeiso4217(); public: @@ -12666,16 +12713,14 @@ class RequestPaymentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_requestfrom(ArgT0&& arg0, ArgT... args); std::string* mutable_requestfrom(); - std::string* release_requestfrom(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_requestfrom(const std::string& value); std::string* _internal_mutable_requestfrom(); public: @@ -12686,7 +12731,7 @@ class RequestPaymentMessage PROTOBUF_FINAL : public: void clear_notemessage(); const ::proto::Message& notemessage() const; - ::proto::Message* release_notemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::Message* release_notemessage(); ::proto::Message* mutable_notemessage(); void set_allocated_notemessage(::proto::Message* notemessage); private: @@ -12704,7 +12749,7 @@ class RequestPaymentMessage PROTOBUF_FINAL : public: void clear_amount(); const ::proto::PaymentMoney& amount() const; - ::proto::PaymentMoney* release_amount(); + PROTOBUF_MUST_USE_RESULT ::proto::PaymentMoney* release_amount(); ::proto::PaymentMoney* mutable_amount(); void set_allocated_amount(::proto::PaymentMoney* amount); private: @@ -12760,11 +12805,11 @@ class RequestPaymentMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class DeclinePaymentRequestMessage PROTOBUF_FINAL : +class DeclinePaymentRequestMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.DeclinePaymentRequestMessage) */ { public: inline DeclinePaymentRequestMessage() : DeclinePaymentRequestMessage(nullptr) {} - virtual ~DeclinePaymentRequestMessage(); + ~DeclinePaymentRequestMessage() override; explicit constexpr DeclinePaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); DeclinePaymentRequestMessage(const DeclinePaymentRequestMessage& from); @@ -12778,8 +12823,13 @@ class DeclinePaymentRequestMessage PROTOBUF_FINAL : return *this; } inline DeclinePaymentRequestMessage& operator=(DeclinePaymentRequestMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -12797,10 +12847,10 @@ class DeclinePaymentRequestMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const DeclinePaymentRequestMessage& default_instance() { return *internal_default_instance(); @@ -12817,7 +12867,7 @@ class DeclinePaymentRequestMessage PROTOBUF_FINAL : } inline void Swap(DeclinePaymentRequestMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -12825,23 +12875,26 @@ class DeclinePaymentRequestMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(DeclinePaymentRequestMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline DeclinePaymentRequestMessage* New() const final { - return CreateMaybeMessage<DeclinePaymentRequestMessage>(nullptr); + return new DeclinePaymentRequestMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DeclinePaymentRequestMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const DeclinePaymentRequestMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -12852,8 +12905,8 @@ class DeclinePaymentRequestMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DeclinePaymentRequestMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -12861,19 +12914,17 @@ class DeclinePaymentRequestMessage PROTOBUF_FINAL : return "proto.DeclinePaymentRequestMessage"; } protected: - explicit DeclinePaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DeclinePaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -12889,7 +12940,7 @@ class DeclinePaymentRequestMessage PROTOBUF_FINAL : public: void clear_key(); const ::proto::MessageKey& key() const; - ::proto::MessageKey* release_key(); + PROTOBUF_MUST_USE_RESULT ::proto::MessageKey* release_key(); ::proto::MessageKey* mutable_key(); void set_allocated_key(::proto::MessageKey* key); private: @@ -12914,11 +12965,11 @@ class DeclinePaymentRequestMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class CancelPaymentRequestMessage PROTOBUF_FINAL : +class CancelPaymentRequestMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.CancelPaymentRequestMessage) */ { public: inline CancelPaymentRequestMessage() : CancelPaymentRequestMessage(nullptr) {} - virtual ~CancelPaymentRequestMessage(); + ~CancelPaymentRequestMessage() override; explicit constexpr CancelPaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CancelPaymentRequestMessage(const CancelPaymentRequestMessage& from); @@ -12932,8 +12983,13 @@ class CancelPaymentRequestMessage PROTOBUF_FINAL : return *this; } inline CancelPaymentRequestMessage& operator=(CancelPaymentRequestMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -12951,10 +13007,10 @@ class CancelPaymentRequestMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const CancelPaymentRequestMessage& default_instance() { return *internal_default_instance(); @@ -12971,7 +13027,7 @@ class CancelPaymentRequestMessage PROTOBUF_FINAL : } inline void Swap(CancelPaymentRequestMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -12979,23 +13035,26 @@ class CancelPaymentRequestMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(CancelPaymentRequestMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline CancelPaymentRequestMessage* New() const final { - return CreateMaybeMessage<CancelPaymentRequestMessage>(nullptr); + return new CancelPaymentRequestMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CancelPaymentRequestMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const CancelPaymentRequestMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -13006,8 +13065,8 @@ class CancelPaymentRequestMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CancelPaymentRequestMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -13015,19 +13074,17 @@ class CancelPaymentRequestMessage PROTOBUF_FINAL : return "proto.CancelPaymentRequestMessage"; } protected: - explicit CancelPaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CancelPaymentRequestMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -13043,7 +13100,7 @@ class CancelPaymentRequestMessage PROTOBUF_FINAL : public: void clear_key(); const ::proto::MessageKey& key() const; - ::proto::MessageKey* release_key(); + PROTOBUF_MUST_USE_RESULT ::proto::MessageKey* release_key(); ::proto::MessageKey* mutable_key(); void set_allocated_key(::proto::MessageKey* key); private: @@ -13068,11 +13125,11 @@ class CancelPaymentRequestMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class LiveLocationMessage PROTOBUF_FINAL : +class LiveLocationMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.LiveLocationMessage) */ { public: inline LiveLocationMessage() : LiveLocationMessage(nullptr) {} - virtual ~LiveLocationMessage(); + ~LiveLocationMessage() override; explicit constexpr LiveLocationMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); LiveLocationMessage(const LiveLocationMessage& from); @@ -13086,8 +13143,13 @@ class LiveLocationMessage PROTOBUF_FINAL : return *this; } inline LiveLocationMessage& operator=(LiveLocationMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -13105,10 +13167,10 @@ class LiveLocationMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const LiveLocationMessage& default_instance() { return *internal_default_instance(); @@ -13125,7 +13187,7 @@ class LiveLocationMessage PROTOBUF_FINAL : } inline void Swap(LiveLocationMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -13133,23 +13195,26 @@ class LiveLocationMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(LiveLocationMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline LiveLocationMessage* New() const final { - return CreateMaybeMessage<LiveLocationMessage>(nullptr); + return new LiveLocationMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const LiveLocationMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const LiveLocationMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -13160,8 +13225,8 @@ class LiveLocationMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(LiveLocationMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -13169,19 +13234,17 @@ class LiveLocationMessage PROTOBUF_FINAL : return "proto.LiveLocationMessage"; } protected: - explicit LiveLocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit LiveLocationMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -13206,16 +13269,14 @@ class LiveLocationMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_caption(ArgT0&& arg0, ArgT... args); std::string* mutable_caption(); - std::string* release_caption(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_caption(const std::string& value); std::string* _internal_mutable_caption(); public: @@ -13226,16 +13287,14 @@ class LiveLocationMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_jpegthumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_jpegthumbnail(); - std::string* release_jpegthumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jpegthumbnail(const std::string& value); std::string* _internal_mutable_jpegthumbnail(); public: @@ -13246,7 +13305,7 @@ class LiveLocationMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -13371,11 +13430,11 @@ class LiveLocationMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class StickerMessage PROTOBUF_FINAL : +class StickerMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.StickerMessage) */ { public: inline StickerMessage() : StickerMessage(nullptr) {} - virtual ~StickerMessage(); + ~StickerMessage() override; explicit constexpr StickerMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); StickerMessage(const StickerMessage& from); @@ -13389,8 +13448,13 @@ class StickerMessage PROTOBUF_FINAL : return *this; } inline StickerMessage& operator=(StickerMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -13408,10 +13472,10 @@ class StickerMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const StickerMessage& default_instance() { return *internal_default_instance(); @@ -13428,7 +13492,7 @@ class StickerMessage PROTOBUF_FINAL : } inline void Swap(StickerMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -13436,23 +13500,26 @@ class StickerMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(StickerMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline StickerMessage* New() const final { - return CreateMaybeMessage<StickerMessage>(nullptr); + return new StickerMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const StickerMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const StickerMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -13463,8 +13530,8 @@ class StickerMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(StickerMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -13472,19 +13539,17 @@ class StickerMessage PROTOBUF_FINAL : return "proto.StickerMessage"; } protected: - explicit StickerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit StickerMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -13514,16 +13579,14 @@ class StickerMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_url(ArgT0&& arg0, ArgT... args); std::string* mutable_url(); - std::string* release_url(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); std::string* _internal_mutable_url(); public: @@ -13534,16 +13597,14 @@ class StickerMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_filesha256(ArgT0&& arg0, ArgT... args); std::string* mutable_filesha256(); - std::string* release_filesha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_filesha256(const std::string& value); std::string* _internal_mutable_filesha256(); public: @@ -13554,16 +13615,14 @@ class StickerMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_fileencsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_fileencsha256(); - std::string* release_fileencsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_fileencsha256(const std::string& value); std::string* _internal_mutable_fileencsha256(); public: @@ -13574,16 +13633,14 @@ class StickerMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mediakey(ArgT0&& arg0, ArgT... args); std::string* mutable_mediakey(); - std::string* release_mediakey(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mediakey(const std::string& value); std::string* _internal_mutable_mediakey(); public: @@ -13594,16 +13651,14 @@ class StickerMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mimetype(ArgT0&& arg0, ArgT... args); std::string* mutable_mimetype(); - std::string* release_mimetype(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mimetype(const std::string& value); std::string* _internal_mutable_mimetype(); public: @@ -13614,16 +13669,14 @@ class StickerMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_directpath(ArgT0&& arg0, ArgT... args); std::string* mutable_directpath(); - std::string* release_directpath(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_directpath(const std::string& value); std::string* _internal_mutable_directpath(); public: @@ -13634,16 +13687,14 @@ class StickerMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_firstframesidecar(ArgT0&& arg0, ArgT... args); std::string* mutable_firstframesidecar(); - std::string* release_firstframesidecar(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_firstframesidecar(const std::string& value); std::string* _internal_mutable_firstframesidecar(); public: @@ -13654,16 +13705,14 @@ class StickerMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_pngthumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_pngthumbnail(); - std::string* release_pngthumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pngthumbnail(const std::string& value); std::string* _internal_mutable_pngthumbnail(); public: @@ -13674,7 +13723,7 @@ class StickerMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -13791,11 +13840,11 @@ class StickerMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class FourRowTemplate PROTOBUF_FINAL : +class FourRowTemplate final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.FourRowTemplate) */ { public: inline FourRowTemplate() : FourRowTemplate(nullptr) {} - virtual ~FourRowTemplate(); + ~FourRowTemplate() override; explicit constexpr FourRowTemplate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); FourRowTemplate(const FourRowTemplate& from); @@ -13809,8 +13858,13 @@ class FourRowTemplate PROTOBUF_FINAL : return *this; } inline FourRowTemplate& operator=(FourRowTemplate&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -13828,10 +13882,10 @@ class FourRowTemplate PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const FourRowTemplate& default_instance() { return *internal_default_instance(); @@ -13857,7 +13911,7 @@ class FourRowTemplate PROTOBUF_FINAL : } inline void Swap(FourRowTemplate* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -13865,23 +13919,26 @@ class FourRowTemplate PROTOBUF_FINAL : } void UnsafeArenaSwap(FourRowTemplate* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline FourRowTemplate* New() const final { - return CreateMaybeMessage<FourRowTemplate>(nullptr); + return new FourRowTemplate(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const FourRowTemplate& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const FourRowTemplate& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -13892,8 +13949,8 @@ class FourRowTemplate PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(FourRowTemplate* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -13901,19 +13958,17 @@ class FourRowTemplate PROTOBUF_FINAL : return "proto.FourRowTemplate"; } protected: - explicit FourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit FourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -13954,7 +14009,7 @@ class FourRowTemplate PROTOBUF_FINAL : public: void clear_content(); const ::proto::HighlyStructuredMessage& content() const; - ::proto::HighlyStructuredMessage* release_content(); + PROTOBUF_MUST_USE_RESULT ::proto::HighlyStructuredMessage* release_content(); ::proto::HighlyStructuredMessage* mutable_content(); void set_allocated_content(::proto::HighlyStructuredMessage* content); private: @@ -13972,7 +14027,7 @@ class FourRowTemplate PROTOBUF_FINAL : public: void clear_footer(); const ::proto::HighlyStructuredMessage& footer() const; - ::proto::HighlyStructuredMessage* release_footer(); + PROTOBUF_MUST_USE_RESULT ::proto::HighlyStructuredMessage* release_footer(); ::proto::HighlyStructuredMessage* mutable_footer(); void set_allocated_footer(::proto::HighlyStructuredMessage* footer); private: @@ -13990,7 +14045,7 @@ class FourRowTemplate PROTOBUF_FINAL : public: void clear_documentmessage(); const ::proto::DocumentMessage& documentmessage() const; - ::proto::DocumentMessage* release_documentmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::DocumentMessage* release_documentmessage(); ::proto::DocumentMessage* mutable_documentmessage(); void set_allocated_documentmessage(::proto::DocumentMessage* documentmessage); private: @@ -14008,7 +14063,7 @@ class FourRowTemplate PROTOBUF_FINAL : public: void clear_highlystructuredmessage(); const ::proto::HighlyStructuredMessage& highlystructuredmessage() const; - ::proto::HighlyStructuredMessage* release_highlystructuredmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::HighlyStructuredMessage* release_highlystructuredmessage(); ::proto::HighlyStructuredMessage* mutable_highlystructuredmessage(); void set_allocated_highlystructuredmessage(::proto::HighlyStructuredMessage* highlystructuredmessage); private: @@ -14026,7 +14081,7 @@ class FourRowTemplate PROTOBUF_FINAL : public: void clear_imagemessage(); const ::proto::ImageMessage& imagemessage() const; - ::proto::ImageMessage* release_imagemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ImageMessage* release_imagemessage(); ::proto::ImageMessage* mutable_imagemessage(); void set_allocated_imagemessage(::proto::ImageMessage* imagemessage); private: @@ -14044,7 +14099,7 @@ class FourRowTemplate PROTOBUF_FINAL : public: void clear_videomessage(); const ::proto::VideoMessage& videomessage() const; - ::proto::VideoMessage* release_videomessage(); + PROTOBUF_MUST_USE_RESULT ::proto::VideoMessage* release_videomessage(); ::proto::VideoMessage* mutable_videomessage(); void set_allocated_videomessage(::proto::VideoMessage* videomessage); private: @@ -14062,7 +14117,7 @@ class FourRowTemplate PROTOBUF_FINAL : public: void clear_locationmessage(); const ::proto::LocationMessage& locationmessage() const; - ::proto::LocationMessage* release_locationmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::LocationMessage* release_locationmessage(); ::proto::LocationMessage* mutable_locationmessage(); void set_allocated_locationmessage(::proto::LocationMessage* locationmessage); private: @@ -14110,11 +14165,11 @@ class FourRowTemplate PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class HydratedFourRowTemplate PROTOBUF_FINAL : +class HydratedFourRowTemplate final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.HydratedFourRowTemplate) */ { public: inline HydratedFourRowTemplate() : HydratedFourRowTemplate(nullptr) {} - virtual ~HydratedFourRowTemplate(); + ~HydratedFourRowTemplate() override; explicit constexpr HydratedFourRowTemplate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); HydratedFourRowTemplate(const HydratedFourRowTemplate& from); @@ -14128,8 +14183,13 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : return *this; } inline HydratedFourRowTemplate& operator=(HydratedFourRowTemplate&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -14147,10 +14207,10 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const HydratedFourRowTemplate& default_instance() { return *internal_default_instance(); @@ -14176,7 +14236,7 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : } inline void Swap(HydratedFourRowTemplate* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -14184,23 +14244,26 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : } void UnsafeArenaSwap(HydratedFourRowTemplate* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline HydratedFourRowTemplate* New() const final { - return CreateMaybeMessage<HydratedFourRowTemplate>(nullptr); + return new HydratedFourRowTemplate(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const HydratedFourRowTemplate& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const HydratedFourRowTemplate& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -14211,8 +14274,8 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(HydratedFourRowTemplate* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -14220,19 +14283,17 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : return "proto.HydratedFourRowTemplate"; } protected: - explicit HydratedFourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit HydratedFourRowTemplate(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -14274,16 +14335,14 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_hydratedcontenttext(ArgT0&& arg0, ArgT... args); std::string* mutable_hydratedcontenttext(); - std::string* release_hydratedcontenttext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_hydratedcontenttext(const std::string& value); std::string* _internal_mutable_hydratedcontenttext(); public: @@ -14294,16 +14353,14 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_hydratedfootertext(ArgT0&& arg0, ArgT... args); std::string* mutable_hydratedfootertext(); - std::string* release_hydratedfootertext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_hydratedfootertext(const std::string& value); std::string* _internal_mutable_hydratedfootertext(); public: @@ -14314,16 +14371,14 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_templateid(ArgT0&& arg0, ArgT... args); std::string* mutable_templateid(); - std::string* release_templateid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_templateid(const std::string& value); std::string* _internal_mutable_templateid(); public: @@ -14334,7 +14389,7 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : public: void clear_documentmessage(); const ::proto::DocumentMessage& documentmessage() const; - ::proto::DocumentMessage* release_documentmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::DocumentMessage* release_documentmessage(); ::proto::DocumentMessage* mutable_documentmessage(); void set_allocated_documentmessage(::proto::DocumentMessage* documentmessage); private: @@ -14352,16 +14407,14 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_hydratedtitletext(ArgT0&& arg0, ArgT... args); std::string* mutable_hydratedtitletext(); - std::string* release_hydratedtitletext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_hydratedtitletext(const std::string& value); std::string* _internal_mutable_hydratedtitletext(); public: @@ -14372,7 +14425,7 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : public: void clear_imagemessage(); const ::proto::ImageMessage& imagemessage() const; - ::proto::ImageMessage* release_imagemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ImageMessage* release_imagemessage(); ::proto::ImageMessage* mutable_imagemessage(); void set_allocated_imagemessage(::proto::ImageMessage* imagemessage); private: @@ -14390,7 +14443,7 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : public: void clear_videomessage(); const ::proto::VideoMessage& videomessage() const; - ::proto::VideoMessage* release_videomessage(); + PROTOBUF_MUST_USE_RESULT ::proto::VideoMessage* release_videomessage(); ::proto::VideoMessage* mutable_videomessage(); void set_allocated_videomessage(::proto::VideoMessage* videomessage); private: @@ -14408,7 +14461,7 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : public: void clear_locationmessage(); const ::proto::LocationMessage& locationmessage() const; - ::proto::LocationMessage* release_locationmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::LocationMessage* release_locationmessage(); ::proto::LocationMessage* mutable_locationmessage(); void set_allocated_locationmessage(::proto::LocationMessage* locationmessage); private: @@ -14457,11 +14510,11 @@ class HydratedFourRowTemplate PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class TemplateMessage PROTOBUF_FINAL : +class TemplateMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.TemplateMessage) */ { public: inline TemplateMessage() : TemplateMessage(nullptr) {} - virtual ~TemplateMessage(); + ~TemplateMessage() override; explicit constexpr TemplateMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TemplateMessage(const TemplateMessage& from); @@ -14475,8 +14528,13 @@ class TemplateMessage PROTOBUF_FINAL : return *this; } inline TemplateMessage& operator=(TemplateMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -14494,10 +14552,10 @@ class TemplateMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const TemplateMessage& default_instance() { return *internal_default_instance(); @@ -14520,7 +14578,7 @@ class TemplateMessage PROTOBUF_FINAL : } inline void Swap(TemplateMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -14528,23 +14586,26 @@ class TemplateMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(TemplateMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline TemplateMessage* New() const final { - return CreateMaybeMessage<TemplateMessage>(nullptr); + return new TemplateMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TemplateMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const TemplateMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -14555,8 +14616,8 @@ class TemplateMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TemplateMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -14564,19 +14625,17 @@ class TemplateMessage PROTOBUF_FINAL : return "proto.TemplateMessage"; } protected: - explicit TemplateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TemplateMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -14595,7 +14654,7 @@ class TemplateMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -14613,7 +14672,7 @@ class TemplateMessage PROTOBUF_FINAL : public: void clear_hydratedtemplate(); const ::proto::HydratedFourRowTemplate& hydratedtemplate() const; - ::proto::HydratedFourRowTemplate* release_hydratedtemplate(); + PROTOBUF_MUST_USE_RESULT ::proto::HydratedFourRowTemplate* release_hydratedtemplate(); ::proto::HydratedFourRowTemplate* mutable_hydratedtemplate(); void set_allocated_hydratedtemplate(::proto::HydratedFourRowTemplate* hydratedtemplate); private: @@ -14631,7 +14690,7 @@ class TemplateMessage PROTOBUF_FINAL : public: void clear_fourrowtemplate(); const ::proto::FourRowTemplate& fourrowtemplate() const; - ::proto::FourRowTemplate* release_fourrowtemplate(); + PROTOBUF_MUST_USE_RESULT ::proto::FourRowTemplate* release_fourrowtemplate(); ::proto::FourRowTemplate* mutable_fourrowtemplate(); void set_allocated_fourrowtemplate(::proto::FourRowTemplate* fourrowtemplate); private: @@ -14649,7 +14708,7 @@ class TemplateMessage PROTOBUF_FINAL : public: void clear_hydratedfourrowtemplate(); const ::proto::HydratedFourRowTemplate& hydratedfourrowtemplate() const; - ::proto::HydratedFourRowTemplate* release_hydratedfourrowtemplate(); + PROTOBUF_MUST_USE_RESULT ::proto::HydratedFourRowTemplate* release_hydratedfourrowtemplate(); ::proto::HydratedFourRowTemplate* mutable_hydratedfourrowtemplate(); void set_allocated_hydratedfourrowtemplate(::proto::HydratedFourRowTemplate* hydratedfourrowtemplate); private: @@ -14690,11 +14749,11 @@ class TemplateMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class TemplateButtonReplyMessage PROTOBUF_FINAL : +class TemplateButtonReplyMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.TemplateButtonReplyMessage) */ { public: inline TemplateButtonReplyMessage() : TemplateButtonReplyMessage(nullptr) {} - virtual ~TemplateButtonReplyMessage(); + ~TemplateButtonReplyMessage() override; explicit constexpr TemplateButtonReplyMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); TemplateButtonReplyMessage(const TemplateButtonReplyMessage& from); @@ -14708,8 +14767,13 @@ class TemplateButtonReplyMessage PROTOBUF_FINAL : return *this; } inline TemplateButtonReplyMessage& operator=(TemplateButtonReplyMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -14727,10 +14791,10 @@ class TemplateButtonReplyMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const TemplateButtonReplyMessage& default_instance() { return *internal_default_instance(); @@ -14747,7 +14811,7 @@ class TemplateButtonReplyMessage PROTOBUF_FINAL : } inline void Swap(TemplateButtonReplyMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -14755,23 +14819,26 @@ class TemplateButtonReplyMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(TemplateButtonReplyMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline TemplateButtonReplyMessage* New() const final { - return CreateMaybeMessage<TemplateButtonReplyMessage>(nullptr); + return new TemplateButtonReplyMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const TemplateButtonReplyMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const TemplateButtonReplyMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -14782,8 +14849,8 @@ class TemplateButtonReplyMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(TemplateButtonReplyMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -14791,19 +14858,17 @@ class TemplateButtonReplyMessage PROTOBUF_FINAL : return "proto.TemplateButtonReplyMessage"; } protected: - explicit TemplateButtonReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit TemplateButtonReplyMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -14822,16 +14887,14 @@ class TemplateButtonReplyMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_selectedid(ArgT0&& arg0, ArgT... args); std::string* mutable_selectedid(); - std::string* release_selectedid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selectedid(const std::string& value); std::string* _internal_mutable_selectedid(); public: @@ -14842,16 +14905,14 @@ class TemplateButtonReplyMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_selecteddisplaytext(ArgT0&& arg0, ArgT... args); std::string* mutable_selecteddisplaytext(); - std::string* release_selecteddisplaytext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selecteddisplaytext(const std::string& value); std::string* _internal_mutable_selecteddisplaytext(); public: @@ -14862,7 +14923,7 @@ class TemplateButtonReplyMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -14903,11 +14964,11 @@ class TemplateButtonReplyMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class CatalogSnapshot PROTOBUF_FINAL : +class CatalogSnapshot final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.CatalogSnapshot) */ { public: inline CatalogSnapshot() : CatalogSnapshot(nullptr) {} - virtual ~CatalogSnapshot(); + ~CatalogSnapshot() override; explicit constexpr CatalogSnapshot(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); CatalogSnapshot(const CatalogSnapshot& from); @@ -14921,8 +14982,13 @@ class CatalogSnapshot PROTOBUF_FINAL : return *this; } inline CatalogSnapshot& operator=(CatalogSnapshot&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -14940,10 +15006,10 @@ class CatalogSnapshot PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const CatalogSnapshot& default_instance() { return *internal_default_instance(); @@ -14960,7 +15026,7 @@ class CatalogSnapshot PROTOBUF_FINAL : } inline void Swap(CatalogSnapshot* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -14968,23 +15034,26 @@ class CatalogSnapshot PROTOBUF_FINAL : } void UnsafeArenaSwap(CatalogSnapshot* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline CatalogSnapshot* New() const final { - return CreateMaybeMessage<CatalogSnapshot>(nullptr); + return new CatalogSnapshot(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const CatalogSnapshot& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const CatalogSnapshot& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -14995,8 +15064,8 @@ class CatalogSnapshot PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CatalogSnapshot* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -15004,19 +15073,17 @@ class CatalogSnapshot PROTOBUF_FINAL : return "proto.CatalogSnapshot"; } protected: - explicit CatalogSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit CatalogSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -15034,16 +15101,14 @@ class CatalogSnapshot PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_title(ArgT0&& arg0, ArgT... args); std::string* mutable_title(); - std::string* release_title(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_title(const std::string& value); std::string* _internal_mutable_title(); public: @@ -15054,16 +15119,14 @@ class CatalogSnapshot PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_description(ArgT0&& arg0, ArgT... args); std::string* mutable_description(); - std::string* release_description(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); std::string* _internal_mutable_description(); public: @@ -15074,7 +15137,7 @@ class CatalogSnapshot PROTOBUF_FINAL : public: void clear_catalogimage(); const ::proto::ImageMessage& catalogimage() const; - ::proto::ImageMessage* release_catalogimage(); + PROTOBUF_MUST_USE_RESULT ::proto::ImageMessage* release_catalogimage(); ::proto::ImageMessage* mutable_catalogimage(); void set_allocated_catalogimage(::proto::ImageMessage* catalogimage); private: @@ -15101,11 +15164,11 @@ class CatalogSnapshot PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ProductSnapshot PROTOBUF_FINAL : +class ProductSnapshot final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ProductSnapshot) */ { public: inline ProductSnapshot() : ProductSnapshot(nullptr) {} - virtual ~ProductSnapshot(); + ~ProductSnapshot() override; explicit constexpr ProductSnapshot(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ProductSnapshot(const ProductSnapshot& from); @@ -15119,8 +15182,13 @@ class ProductSnapshot PROTOBUF_FINAL : return *this; } inline ProductSnapshot& operator=(ProductSnapshot&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -15138,10 +15206,10 @@ class ProductSnapshot PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ProductSnapshot& default_instance() { return *internal_default_instance(); @@ -15158,7 +15226,7 @@ class ProductSnapshot PROTOBUF_FINAL : } inline void Swap(ProductSnapshot* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -15166,23 +15234,26 @@ class ProductSnapshot PROTOBUF_FINAL : } void UnsafeArenaSwap(ProductSnapshot* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ProductSnapshot* New() const final { - return CreateMaybeMessage<ProductSnapshot>(nullptr); + return new ProductSnapshot(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ProductSnapshot& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ProductSnapshot& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -15193,8 +15264,8 @@ class ProductSnapshot PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ProductSnapshot* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -15202,19 +15273,17 @@ class ProductSnapshot PROTOBUF_FINAL : return "proto.ProductSnapshot"; } protected: - explicit ProductSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ProductSnapshot(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -15239,16 +15308,14 @@ class ProductSnapshot PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_productid(ArgT0&& arg0, ArgT... args); std::string* mutable_productid(); - std::string* release_productid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_productid(const std::string& value); std::string* _internal_mutable_productid(); public: @@ -15259,16 +15326,14 @@ class ProductSnapshot PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_title(ArgT0&& arg0, ArgT... args); std::string* mutable_title(); - std::string* release_title(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_title(const std::string& value); std::string* _internal_mutable_title(); public: @@ -15279,16 +15344,14 @@ class ProductSnapshot PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_description(ArgT0&& arg0, ArgT... args); std::string* mutable_description(); - std::string* release_description(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); std::string* _internal_mutable_description(); public: @@ -15299,16 +15362,14 @@ class ProductSnapshot PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_currencycode(ArgT0&& arg0, ArgT... args); std::string* mutable_currencycode(); - std::string* release_currencycode(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_currencycode(const std::string& value); std::string* _internal_mutable_currencycode(); public: @@ -15319,16 +15380,14 @@ class ProductSnapshot PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_retailerid(ArgT0&& arg0, ArgT... args); std::string* mutable_retailerid(); - std::string* release_retailerid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_retailerid(const std::string& value); std::string* _internal_mutable_retailerid(); public: @@ -15339,16 +15398,14 @@ class ProductSnapshot PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_url(ArgT0&& arg0, ArgT... args); std::string* mutable_url(); - std::string* release_url(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_url(const std::string& value); std::string* _internal_mutable_url(); public: @@ -15359,16 +15416,14 @@ class ProductSnapshot PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_firstimageid(ArgT0&& arg0, ArgT... args); std::string* mutable_firstimageid(); - std::string* release_firstimageid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_firstimageid(const std::string& value); std::string* _internal_mutable_firstimageid(); public: @@ -15379,7 +15434,7 @@ class ProductSnapshot PROTOBUF_FINAL : public: void clear_productimage(); const ::proto::ImageMessage& productimage() const; - ::proto::ImageMessage* release_productimage(); + PROTOBUF_MUST_USE_RESULT ::proto::ImageMessage* release_productimage(); ::proto::ImageMessage* mutable_productimage(); void set_allocated_productimage(::proto::ImageMessage* productimage); private: @@ -15439,11 +15494,11 @@ class ProductSnapshot PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ProductMessage PROTOBUF_FINAL : +class ProductMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ProductMessage) */ { public: inline ProductMessage() : ProductMessage(nullptr) {} - virtual ~ProductMessage(); + ~ProductMessage() override; explicit constexpr ProductMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ProductMessage(const ProductMessage& from); @@ -15457,8 +15512,13 @@ class ProductMessage PROTOBUF_FINAL : return *this; } inline ProductMessage& operator=(ProductMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -15476,10 +15536,10 @@ class ProductMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ProductMessage& default_instance() { return *internal_default_instance(); @@ -15496,7 +15556,7 @@ class ProductMessage PROTOBUF_FINAL : } inline void Swap(ProductMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -15504,23 +15564,26 @@ class ProductMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(ProductMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ProductMessage* New() const final { - return CreateMaybeMessage<ProductMessage>(nullptr); + return new ProductMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ProductMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ProductMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -15531,8 +15594,8 @@ class ProductMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ProductMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -15540,19 +15603,17 @@ class ProductMessage PROTOBUF_FINAL : return "proto.ProductMessage"; } protected: - explicit ProductMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ProductMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -15571,16 +15632,14 @@ class ProductMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_businessownerjid(ArgT0&& arg0, ArgT... args); std::string* mutable_businessownerjid(); - std::string* release_businessownerjid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_businessownerjid(const std::string& value); std::string* _internal_mutable_businessownerjid(); public: @@ -15591,7 +15650,7 @@ class ProductMessage PROTOBUF_FINAL : public: void clear_product(); const ::proto::ProductSnapshot& product() const; - ::proto::ProductSnapshot* release_product(); + PROTOBUF_MUST_USE_RESULT ::proto::ProductSnapshot* release_product(); ::proto::ProductSnapshot* mutable_product(); void set_allocated_product(::proto::ProductSnapshot* product); private: @@ -15609,7 +15668,7 @@ class ProductMessage PROTOBUF_FINAL : public: void clear_catalog(); const ::proto::CatalogSnapshot& catalog() const; - ::proto::CatalogSnapshot* release_catalog(); + PROTOBUF_MUST_USE_RESULT ::proto::CatalogSnapshot* release_catalog(); ::proto::CatalogSnapshot* mutable_catalog(); void set_allocated_catalog(::proto::CatalogSnapshot* catalog); private: @@ -15627,7 +15686,7 @@ class ProductMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -15655,11 +15714,11 @@ class ProductMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class OrderMessage PROTOBUF_FINAL : +class OrderMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.OrderMessage) */ { public: inline OrderMessage() : OrderMessage(nullptr) {} - virtual ~OrderMessage(); + ~OrderMessage() override; explicit constexpr OrderMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); OrderMessage(const OrderMessage& from); @@ -15673,8 +15732,13 @@ class OrderMessage PROTOBUF_FINAL : return *this; } inline OrderMessage& operator=(OrderMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -15692,10 +15756,10 @@ class OrderMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const OrderMessage& default_instance() { return *internal_default_instance(); @@ -15712,7 +15776,7 @@ class OrderMessage PROTOBUF_FINAL : } inline void Swap(OrderMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -15720,23 +15784,26 @@ class OrderMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(OrderMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline OrderMessage* New() const final { - return CreateMaybeMessage<OrderMessage>(nullptr); + return new OrderMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const OrderMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const OrderMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -15747,8 +15814,8 @@ class OrderMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(OrderMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -15756,19 +15823,17 @@ class OrderMessage PROTOBUF_FINAL : return "proto.OrderMessage"; } protected: - explicit OrderMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit OrderMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -15851,16 +15916,14 @@ class OrderMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_orderid(ArgT0&& arg0, ArgT... args); std::string* mutable_orderid(); - std::string* release_orderid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_orderid(const std::string& value); std::string* _internal_mutable_orderid(); public: @@ -15871,16 +15934,14 @@ class OrderMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_thumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_thumbnail(); - std::string* release_thumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_thumbnail(const std::string& value); std::string* _internal_mutable_thumbnail(); public: @@ -15891,16 +15952,14 @@ class OrderMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_message(ArgT0&& arg0, ArgT... args); std::string* mutable_message(); - std::string* release_message(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); std::string* _internal_mutable_message(); public: @@ -15911,16 +15970,14 @@ class OrderMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_ordertitle(ArgT0&& arg0, ArgT... args); std::string* mutable_ordertitle(); - std::string* release_ordertitle(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_ordertitle(const std::string& value); std::string* _internal_mutable_ordertitle(); public: @@ -15931,16 +15988,14 @@ class OrderMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_sellerjid(ArgT0&& arg0, ArgT... args); std::string* mutable_sellerjid(); - std::string* release_sellerjid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_sellerjid(const std::string& value); std::string* _internal_mutable_sellerjid(); public: @@ -15951,16 +16006,14 @@ class OrderMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_token(ArgT0&& arg0, ArgT... args); std::string* mutable_token(); - std::string* release_token(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_token(const std::string& value); std::string* _internal_mutable_token(); public: @@ -15971,16 +16024,14 @@ class OrderMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_totalcurrencycode(ArgT0&& arg0, ArgT... args); std::string* mutable_totalcurrencycode(); - std::string* release_totalcurrencycode(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_totalcurrencycode(const std::string& value); std::string* _internal_mutable_totalcurrencycode(); public: @@ -15991,7 +16042,7 @@ class OrderMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -16079,11 +16130,11 @@ class OrderMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class Row PROTOBUF_FINAL : +class Row final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Row) */ { public: inline Row() : Row(nullptr) {} - virtual ~Row(); + ~Row() override; explicit constexpr Row(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Row(const Row& from); @@ -16097,8 +16148,13 @@ class Row PROTOBUF_FINAL : return *this; } inline Row& operator=(Row&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -16116,10 +16172,10 @@ class Row PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const Row& default_instance() { return *internal_default_instance(); @@ -16136,7 +16192,7 @@ class Row PROTOBUF_FINAL : } inline void Swap(Row* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -16144,23 +16200,26 @@ class Row PROTOBUF_FINAL : } void UnsafeArenaSwap(Row* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Row* New() const final { - return CreateMaybeMessage<Row>(nullptr); + return new Row(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Row& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Row& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -16171,8 +16230,8 @@ class Row PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Row* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -16180,19 +16239,17 @@ class Row PROTOBUF_FINAL : return "proto.Row"; } protected: - explicit Row(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -16210,16 +16267,14 @@ class Row PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_title(ArgT0&& arg0, ArgT... args); std::string* mutable_title(); - std::string* release_title(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_title(const std::string& value); std::string* _internal_mutable_title(); public: @@ -16230,16 +16285,14 @@ class Row PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_description(ArgT0&& arg0, ArgT... args); std::string* mutable_description(); - std::string* release_description(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); std::string* _internal_mutable_description(); public: @@ -16250,16 +16303,14 @@ class Row PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_rowid(ArgT0&& arg0, ArgT... args); std::string* mutable_rowid(); - std::string* release_rowid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_rowid(const std::string& value); std::string* _internal_mutable_rowid(); public: @@ -16279,11 +16330,11 @@ class Row PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class Section PROTOBUF_FINAL : +class Section final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Section) */ { public: inline Section() : Section(nullptr) {} - virtual ~Section(); + ~Section() override; explicit constexpr Section(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Section(const Section& from); @@ -16297,8 +16348,13 @@ class Section PROTOBUF_FINAL : return *this; } inline Section& operator=(Section&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -16316,10 +16372,10 @@ class Section PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const Section& default_instance() { return *internal_default_instance(); @@ -16336,7 +16392,7 @@ class Section PROTOBUF_FINAL : } inline void Swap(Section* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -16344,23 +16400,26 @@ class Section PROTOBUF_FINAL : } void UnsafeArenaSwap(Section* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Section* New() const final { - return CreateMaybeMessage<Section>(nullptr); + return new Section(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Section& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Section& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -16371,8 +16430,8 @@ class Section PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Section* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -16380,19 +16439,17 @@ class Section PROTOBUF_FINAL : return "proto.Section"; } protected: - explicit Section(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Section(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -16427,16 +16484,14 @@ class Section PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_title(ArgT0&& arg0, ArgT... args); std::string* mutable_title(); - std::string* release_title(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_title(const std::string& value); std::string* _internal_mutable_title(); public: @@ -16455,11 +16510,11 @@ class Section PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ListMessage PROTOBUF_FINAL : +class ListMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ListMessage) */ { public: inline ListMessage() : ListMessage(nullptr) {} - virtual ~ListMessage(); + ~ListMessage() override; explicit constexpr ListMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ListMessage(const ListMessage& from); @@ -16473,8 +16528,13 @@ class ListMessage PROTOBUF_FINAL : return *this; } inline ListMessage& operator=(ListMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -16492,10 +16552,10 @@ class ListMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ListMessage& default_instance() { return *internal_default_instance(); @@ -16512,7 +16572,7 @@ class ListMessage PROTOBUF_FINAL : } inline void Swap(ListMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -16520,23 +16580,26 @@ class ListMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(ListMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ListMessage* New() const final { - return CreateMaybeMessage<ListMessage>(nullptr); + return new ListMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ListMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ListMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -16547,8 +16610,8 @@ class ListMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ListMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -16556,19 +16619,17 @@ class ListMessage PROTOBUF_FINAL : return "proto.ListMessage"; } protected: - explicit ListMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ListMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -16636,16 +16697,14 @@ class ListMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_title(ArgT0&& arg0, ArgT... args); std::string* mutable_title(); - std::string* release_title(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_title(const std::string& value); std::string* _internal_mutable_title(); public: @@ -16656,16 +16715,14 @@ class ListMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_description(ArgT0&& arg0, ArgT... args); std::string* mutable_description(); - std::string* release_description(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); std::string* _internal_mutable_description(); public: @@ -16676,16 +16733,14 @@ class ListMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_buttontext(ArgT0&& arg0, ArgT... args); std::string* mutable_buttontext(); - std::string* release_buttontext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_buttontext(const std::string& value); std::string* _internal_mutable_buttontext(); public: @@ -16720,11 +16775,11 @@ class ListMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class SingleSelectReply PROTOBUF_FINAL : +class SingleSelectReply final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.SingleSelectReply) */ { public: inline SingleSelectReply() : SingleSelectReply(nullptr) {} - virtual ~SingleSelectReply(); + ~SingleSelectReply() override; explicit constexpr SingleSelectReply(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); SingleSelectReply(const SingleSelectReply& from); @@ -16738,8 +16793,13 @@ class SingleSelectReply PROTOBUF_FINAL : return *this; } inline SingleSelectReply& operator=(SingleSelectReply&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -16757,10 +16817,10 @@ class SingleSelectReply PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const SingleSelectReply& default_instance() { return *internal_default_instance(); @@ -16777,7 +16837,7 @@ class SingleSelectReply PROTOBUF_FINAL : } inline void Swap(SingleSelectReply* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -16785,23 +16845,26 @@ class SingleSelectReply PROTOBUF_FINAL : } void UnsafeArenaSwap(SingleSelectReply* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline SingleSelectReply* New() const final { - return CreateMaybeMessage<SingleSelectReply>(nullptr); + return new SingleSelectReply(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const SingleSelectReply& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const SingleSelectReply& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -16812,8 +16875,8 @@ class SingleSelectReply PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SingleSelectReply* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -16821,19 +16884,17 @@ class SingleSelectReply PROTOBUF_FINAL : return "proto.SingleSelectReply"; } protected: - explicit SingleSelectReply(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit SingleSelectReply(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -16849,16 +16910,14 @@ class SingleSelectReply PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_selectedrowid(ArgT0&& arg0, ArgT... args); std::string* mutable_selectedrowid(); - std::string* release_selectedrowid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selectedrowid(const std::string& value); std::string* _internal_mutable_selectedrowid(); public: @@ -16876,11 +16935,11 @@ class SingleSelectReply PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ListResponseMessage PROTOBUF_FINAL : +class ListResponseMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ListResponseMessage) */ { public: inline ListResponseMessage() : ListResponseMessage(nullptr) {} - virtual ~ListResponseMessage(); + ~ListResponseMessage() override; explicit constexpr ListResponseMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ListResponseMessage(const ListResponseMessage& from); @@ -16894,8 +16953,13 @@ class ListResponseMessage PROTOBUF_FINAL : return *this; } inline ListResponseMessage& operator=(ListResponseMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -16913,10 +16977,10 @@ class ListResponseMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ListResponseMessage& default_instance() { return *internal_default_instance(); @@ -16933,7 +16997,7 @@ class ListResponseMessage PROTOBUF_FINAL : } inline void Swap(ListResponseMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -16941,23 +17005,26 @@ class ListResponseMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(ListResponseMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ListResponseMessage* New() const final { - return CreateMaybeMessage<ListResponseMessage>(nullptr); + return new ListResponseMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ListResponseMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ListResponseMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -16968,8 +17035,8 @@ class ListResponseMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ListResponseMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -16977,19 +17044,17 @@ class ListResponseMessage PROTOBUF_FINAL : return "proto.ListResponseMessage"; } protected: - explicit ListResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ListResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -17039,16 +17104,14 @@ class ListResponseMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_title(ArgT0&& arg0, ArgT... args); std::string* mutable_title(); - std::string* release_title(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_title(const std::string& value); std::string* _internal_mutable_title(); public: @@ -17059,16 +17122,14 @@ class ListResponseMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_description(ArgT0&& arg0, ArgT... args); std::string* mutable_description(); - std::string* release_description(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_description(const std::string& value); std::string* _internal_mutable_description(); public: @@ -17079,7 +17140,7 @@ class ListResponseMessage PROTOBUF_FINAL : public: void clear_singleselectreply(); const ::proto::SingleSelectReply& singleselectreply() const; - ::proto::SingleSelectReply* release_singleselectreply(); + PROTOBUF_MUST_USE_RESULT ::proto::SingleSelectReply* release_singleselectreply(); ::proto::SingleSelectReply* mutable_singleselectreply(); void set_allocated_singleselectreply(::proto::SingleSelectReply* singleselectreply); private: @@ -17097,7 +17158,7 @@ class ListResponseMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -17139,11 +17200,11 @@ class ListResponseMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class GroupInviteMessage PROTOBUF_FINAL : +class GroupInviteMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.GroupInviteMessage) */ { public: inline GroupInviteMessage() : GroupInviteMessage(nullptr) {} - virtual ~GroupInviteMessage(); + ~GroupInviteMessage() override; explicit constexpr GroupInviteMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); GroupInviteMessage(const GroupInviteMessage& from); @@ -17157,8 +17218,13 @@ class GroupInviteMessage PROTOBUF_FINAL : return *this; } inline GroupInviteMessage& operator=(GroupInviteMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -17176,10 +17242,10 @@ class GroupInviteMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const GroupInviteMessage& default_instance() { return *internal_default_instance(); @@ -17196,7 +17262,7 @@ class GroupInviteMessage PROTOBUF_FINAL : } inline void Swap(GroupInviteMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -17204,23 +17270,26 @@ class GroupInviteMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(GroupInviteMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline GroupInviteMessage* New() const final { - return CreateMaybeMessage<GroupInviteMessage>(nullptr); + return new GroupInviteMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const GroupInviteMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const GroupInviteMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -17231,8 +17300,8 @@ class GroupInviteMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(GroupInviteMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -17240,19 +17309,17 @@ class GroupInviteMessage PROTOBUF_FINAL : return "proto.GroupInviteMessage"; } protected: - explicit GroupInviteMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit GroupInviteMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -17274,16 +17341,14 @@ class GroupInviteMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_groupjid(ArgT0&& arg0, ArgT... args); std::string* mutable_groupjid(); - std::string* release_groupjid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_groupjid(const std::string& value); std::string* _internal_mutable_groupjid(); public: @@ -17294,16 +17359,14 @@ class GroupInviteMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_invitecode(ArgT0&& arg0, ArgT... args); std::string* mutable_invitecode(); - std::string* release_invitecode(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_invitecode(const std::string& value); std::string* _internal_mutable_invitecode(); public: @@ -17314,16 +17377,14 @@ class GroupInviteMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_groupname(ArgT0&& arg0, ArgT... args); std::string* mutable_groupname(); - std::string* release_groupname(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_groupname(const std::string& value); std::string* _internal_mutable_groupname(); public: @@ -17334,16 +17395,14 @@ class GroupInviteMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_jpegthumbnail(ArgT0&& arg0, ArgT... args); std::string* mutable_jpegthumbnail(); - std::string* release_jpegthumbnail(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_jpegthumbnail(const std::string& value); std::string* _internal_mutable_jpegthumbnail(); public: @@ -17354,16 +17413,14 @@ class GroupInviteMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_caption(ArgT0&& arg0, ArgT... args); std::string* mutable_caption(); - std::string* release_caption(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_caption(const std::string& value); std::string* _internal_mutable_caption(); public: @@ -17374,7 +17431,7 @@ class GroupInviteMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -17418,11 +17475,11 @@ class GroupInviteMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class EphemeralSetting PROTOBUF_FINAL : +class EphemeralSetting final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.EphemeralSetting) */ { public: inline EphemeralSetting() : EphemeralSetting(nullptr) {} - virtual ~EphemeralSetting(); + ~EphemeralSetting() override; explicit constexpr EphemeralSetting(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); EphemeralSetting(const EphemeralSetting& from); @@ -17436,8 +17493,13 @@ class EphemeralSetting PROTOBUF_FINAL : return *this; } inline EphemeralSetting& operator=(EphemeralSetting&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -17455,10 +17517,10 @@ class EphemeralSetting PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const EphemeralSetting& default_instance() { return *internal_default_instance(); @@ -17475,7 +17537,7 @@ class EphemeralSetting PROTOBUF_FINAL : } inline void Swap(EphemeralSetting* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -17483,23 +17545,26 @@ class EphemeralSetting PROTOBUF_FINAL : } void UnsafeArenaSwap(EphemeralSetting* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline EphemeralSetting* New() const final { - return CreateMaybeMessage<EphemeralSetting>(nullptr); + return new EphemeralSetting(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const EphemeralSetting& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const EphemeralSetting& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -17510,8 +17575,8 @@ class EphemeralSetting PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(EphemeralSetting* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -17519,19 +17584,17 @@ class EphemeralSetting PROTOBUF_FINAL : return "proto.EphemeralSetting"; } protected: - explicit EphemeralSetting(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit EphemeralSetting(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -17549,16 +17612,14 @@ class EphemeralSetting PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_chatjid(ArgT0&& arg0, ArgT... args); std::string* mutable_chatjid(); - std::string* release_chatjid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_chatjid(const std::string& value); std::string* _internal_mutable_chatjid(); public: @@ -17604,11 +17665,11 @@ class EphemeralSetting PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class DeviceSentMessage PROTOBUF_FINAL : +class DeviceSentMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.DeviceSentMessage) */ { public: inline DeviceSentMessage() : DeviceSentMessage(nullptr) {} - virtual ~DeviceSentMessage(); + ~DeviceSentMessage() override; explicit constexpr DeviceSentMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); DeviceSentMessage(const DeviceSentMessage& from); @@ -17622,8 +17683,13 @@ class DeviceSentMessage PROTOBUF_FINAL : return *this; } inline DeviceSentMessage& operator=(DeviceSentMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -17641,10 +17707,10 @@ class DeviceSentMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const DeviceSentMessage& default_instance() { return *internal_default_instance(); @@ -17661,7 +17727,7 @@ class DeviceSentMessage PROTOBUF_FINAL : } inline void Swap(DeviceSentMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -17669,23 +17735,26 @@ class DeviceSentMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(DeviceSentMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline DeviceSentMessage* New() const final { - return CreateMaybeMessage<DeviceSentMessage>(nullptr); + return new DeviceSentMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const DeviceSentMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const DeviceSentMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -17696,8 +17765,8 @@ class DeviceSentMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(DeviceSentMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -17705,19 +17774,17 @@ class DeviceSentMessage PROTOBUF_FINAL : return "proto.DeviceSentMessage"; } protected: - explicit DeviceSentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit DeviceSentMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -17754,16 +17821,14 @@ class DeviceSentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_destinationjid(ArgT0&& arg0, ArgT... args); std::string* mutable_destinationjid(); - std::string* release_destinationjid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_destinationjid(const std::string& value); std::string* _internal_mutable_destinationjid(); public: @@ -17774,16 +17839,14 @@ class DeviceSentMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_phash(ArgT0&& arg0, ArgT... args); std::string* mutable_phash(); - std::string* release_phash(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_phash(const std::string& value); std::string* _internal_mutable_phash(); public: @@ -17794,7 +17857,7 @@ class DeviceSentMessage PROTOBUF_FINAL : public: void clear_message(); const ::proto::Message& message() const; - ::proto::Message* release_message(); + PROTOBUF_MUST_USE_RESULT ::proto::Message* release_message(); ::proto::Message* mutable_message(); void set_allocated_message(::proto::Message* message); private: @@ -17822,11 +17885,11 @@ class DeviceSentMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class FutureProofMessage PROTOBUF_FINAL : +class FutureProofMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.FutureProofMessage) */ { public: inline FutureProofMessage() : FutureProofMessage(nullptr) {} - virtual ~FutureProofMessage(); + ~FutureProofMessage() override; explicit constexpr FutureProofMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); FutureProofMessage(const FutureProofMessage& from); @@ -17840,8 +17903,13 @@ class FutureProofMessage PROTOBUF_FINAL : return *this; } inline FutureProofMessage& operator=(FutureProofMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -17859,10 +17927,10 @@ class FutureProofMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const FutureProofMessage& default_instance() { return *internal_default_instance(); @@ -17879,7 +17947,7 @@ class FutureProofMessage PROTOBUF_FINAL : } inline void Swap(FutureProofMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -17887,23 +17955,26 @@ class FutureProofMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(FutureProofMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline FutureProofMessage* New() const final { - return CreateMaybeMessage<FutureProofMessage>(nullptr); + return new FutureProofMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const FutureProofMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const FutureProofMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -17914,8 +17985,8 @@ class FutureProofMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(FutureProofMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -17923,19 +17994,17 @@ class FutureProofMessage PROTOBUF_FINAL : return "proto.FutureProofMessage"; } protected: - explicit FutureProofMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit FutureProofMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -17951,7 +18020,7 @@ class FutureProofMessage PROTOBUF_FINAL : public: void clear_message(); const ::proto::Message& message() const; - ::proto::Message* release_message(); + PROTOBUF_MUST_USE_RESULT ::proto::Message* release_message(); ::proto::Message* mutable_message(); void set_allocated_message(::proto::Message* message); private: @@ -17976,11 +18045,11 @@ class FutureProofMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ButtonText PROTOBUF_FINAL : +class ButtonText final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ButtonText) */ { public: inline ButtonText() : ButtonText(nullptr) {} - virtual ~ButtonText(); + ~ButtonText() override; explicit constexpr ButtonText(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ButtonText(const ButtonText& from); @@ -17994,8 +18063,13 @@ class ButtonText PROTOBUF_FINAL : return *this; } inline ButtonText& operator=(ButtonText&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -18013,10 +18087,10 @@ class ButtonText PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ButtonText& default_instance() { return *internal_default_instance(); @@ -18033,7 +18107,7 @@ class ButtonText PROTOBUF_FINAL : } inline void Swap(ButtonText* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -18041,23 +18115,26 @@ class ButtonText PROTOBUF_FINAL : } void UnsafeArenaSwap(ButtonText* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ButtonText* New() const final { - return CreateMaybeMessage<ButtonText>(nullptr); + return new ButtonText(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ButtonText& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ButtonText& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -18068,8 +18145,8 @@ class ButtonText PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ButtonText* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -18077,19 +18154,17 @@ class ButtonText PROTOBUF_FINAL : return "proto.ButtonText"; } protected: - explicit ButtonText(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ButtonText(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -18105,16 +18180,14 @@ class ButtonText PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_displaytext(ArgT0&& arg0, ArgT... args); std::string* mutable_displaytext(); - std::string* release_displaytext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_displaytext(const std::string& value); std::string* _internal_mutable_displaytext(); public: @@ -18132,11 +18205,11 @@ class ButtonText PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class Button PROTOBUF_FINAL : +class Button final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Button) */ { public: inline Button() : Button(nullptr) {} - virtual ~Button(); + ~Button() override; explicit constexpr Button(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Button(const Button& from); @@ -18150,8 +18223,13 @@ class Button PROTOBUF_FINAL : return *this; } inline Button& operator=(Button&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -18169,10 +18247,10 @@ class Button PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const Button& default_instance() { return *internal_default_instance(); @@ -18189,7 +18267,7 @@ class Button PROTOBUF_FINAL : } inline void Swap(Button* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -18197,23 +18275,26 @@ class Button PROTOBUF_FINAL : } void UnsafeArenaSwap(Button* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Button* New() const final { - return CreateMaybeMessage<Button>(nullptr); + return new Button(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Button& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Button& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -18224,8 +18305,8 @@ class Button PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Button* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -18233,19 +18314,17 @@ class Button PROTOBUF_FINAL : return "proto.Button"; } protected: - explicit Button(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Button(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -18293,16 +18372,14 @@ class Button PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_buttonid(ArgT0&& arg0, ArgT... args); std::string* mutable_buttonid(); - std::string* release_buttonid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_buttonid(const std::string& value); std::string* _internal_mutable_buttonid(); public: @@ -18313,7 +18390,7 @@ class Button PROTOBUF_FINAL : public: void clear_buttontext(); const ::proto::ButtonText& buttontext() const; - ::proto::ButtonText* release_buttontext(); + PROTOBUF_MUST_USE_RESULT ::proto::ButtonText* release_buttontext(); ::proto::ButtonText* mutable_buttontext(); void set_allocated_buttontext(::proto::ButtonText* buttontext); private: @@ -18353,11 +18430,11 @@ class Button PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ButtonsMessage PROTOBUF_FINAL : +class ButtonsMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ButtonsMessage) */ { public: inline ButtonsMessage() : ButtonsMessage(nullptr) {} - virtual ~ButtonsMessage(); + ~ButtonsMessage() override; explicit constexpr ButtonsMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ButtonsMessage(const ButtonsMessage& from); @@ -18371,8 +18448,13 @@ class ButtonsMessage PROTOBUF_FINAL : return *this; } inline ButtonsMessage& operator=(ButtonsMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -18390,10 +18472,10 @@ class ButtonsMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ButtonsMessage& default_instance() { return *internal_default_instance(); @@ -18419,7 +18501,7 @@ class ButtonsMessage PROTOBUF_FINAL : } inline void Swap(ButtonsMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -18427,23 +18509,26 @@ class ButtonsMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(ButtonsMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ButtonsMessage* New() const final { - return CreateMaybeMessage<ButtonsMessage>(nullptr); + return new ButtonsMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ButtonsMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ButtonsMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -18454,8 +18539,8 @@ class ButtonsMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ButtonsMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -18463,19 +18548,17 @@ class ButtonsMessage PROTOBUF_FINAL : return "proto.ButtonsMessage"; } protected: - explicit ButtonsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ButtonsMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -18558,16 +18641,14 @@ class ButtonsMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_contenttext(ArgT0&& arg0, ArgT... args); std::string* mutable_contenttext(); - std::string* release_contenttext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_contenttext(const std::string& value); std::string* _internal_mutable_contenttext(); public: @@ -18578,16 +18659,14 @@ class ButtonsMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_footertext(ArgT0&& arg0, ArgT... args); std::string* mutable_footertext(); - std::string* release_footertext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_footertext(const std::string& value); std::string* _internal_mutable_footertext(); public: @@ -18598,7 +18677,7 @@ class ButtonsMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -18629,16 +18708,14 @@ class ButtonsMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_text(ArgT0&& arg0, ArgT... args); std::string* mutable_text(); - std::string* release_text(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_text(const std::string& value); std::string* _internal_mutable_text(); public: @@ -18649,7 +18726,7 @@ class ButtonsMessage PROTOBUF_FINAL : public: void clear_documentmessage(); const ::proto::DocumentMessage& documentmessage() const; - ::proto::DocumentMessage* release_documentmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::DocumentMessage* release_documentmessage(); ::proto::DocumentMessage* mutable_documentmessage(); void set_allocated_documentmessage(::proto::DocumentMessage* documentmessage); private: @@ -18667,7 +18744,7 @@ class ButtonsMessage PROTOBUF_FINAL : public: void clear_imagemessage(); const ::proto::ImageMessage& imagemessage() const; - ::proto::ImageMessage* release_imagemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ImageMessage* release_imagemessage(); ::proto::ImageMessage* mutable_imagemessage(); void set_allocated_imagemessage(::proto::ImageMessage* imagemessage); private: @@ -18685,7 +18762,7 @@ class ButtonsMessage PROTOBUF_FINAL : public: void clear_videomessage(); const ::proto::VideoMessage& videomessage() const; - ::proto::VideoMessage* release_videomessage(); + PROTOBUF_MUST_USE_RESULT ::proto::VideoMessage* release_videomessage(); ::proto::VideoMessage* mutable_videomessage(); void set_allocated_videomessage(::proto::VideoMessage* videomessage); private: @@ -18703,7 +18780,7 @@ class ButtonsMessage PROTOBUF_FINAL : public: void clear_locationmessage(); const ::proto::LocationMessage& locationmessage() const; - ::proto::LocationMessage* release_locationmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::LocationMessage* release_locationmessage(); ::proto::LocationMessage* mutable_locationmessage(); void set_allocated_locationmessage(::proto::LocationMessage* locationmessage); private: @@ -18753,11 +18830,11 @@ class ButtonsMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class ButtonsResponseMessage PROTOBUF_FINAL : +class ButtonsResponseMessage final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.ButtonsResponseMessage) */ { public: inline ButtonsResponseMessage() : ButtonsResponseMessage(nullptr) {} - virtual ~ButtonsResponseMessage(); + ~ButtonsResponseMessage() override; explicit constexpr ButtonsResponseMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); ButtonsResponseMessage(const ButtonsResponseMessage& from); @@ -18771,8 +18848,13 @@ class ButtonsResponseMessage PROTOBUF_FINAL : return *this; } inline ButtonsResponseMessage& operator=(ButtonsResponseMessage&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -18790,10 +18872,10 @@ class ButtonsResponseMessage PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const ButtonsResponseMessage& default_instance() { return *internal_default_instance(); @@ -18815,7 +18897,7 @@ class ButtonsResponseMessage PROTOBUF_FINAL : } inline void Swap(ButtonsResponseMessage* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -18823,23 +18905,26 @@ class ButtonsResponseMessage PROTOBUF_FINAL : } void UnsafeArenaSwap(ButtonsResponseMessage* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline ButtonsResponseMessage* New() const final { - return CreateMaybeMessage<ButtonsResponseMessage>(nullptr); + return new ButtonsResponseMessage(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const ButtonsResponseMessage& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const ButtonsResponseMessage& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -18850,8 +18935,8 @@ class ButtonsResponseMessage PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ButtonsResponseMessage* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -18859,19 +18944,17 @@ class ButtonsResponseMessage PROTOBUF_FINAL : return "proto.ButtonsResponseMessage"; } protected: - explicit ButtonsResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit ButtonsResponseMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -18920,16 +19003,14 @@ class ButtonsResponseMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_selectedbuttonid(ArgT0&& arg0, ArgT... args); std::string* mutable_selectedbuttonid(); - std::string* release_selectedbuttonid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selectedbuttonid(const std::string& value); std::string* _internal_mutable_selectedbuttonid(); public: @@ -18940,7 +19021,7 @@ class ButtonsResponseMessage PROTOBUF_FINAL : public: void clear_contextinfo(); const ::proto::ContextInfo& contextinfo() const; - ::proto::ContextInfo* release_contextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::ContextInfo* release_contextinfo(); ::proto::ContextInfo* mutable_contextinfo(); void set_allocated_contextinfo(::proto::ContextInfo* contextinfo); private: @@ -18971,16 +19052,14 @@ class ButtonsResponseMessage PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_selecteddisplaytext(ArgT0&& arg0, ArgT... args); std::string* mutable_selecteddisplaytext(); - std::string* release_selecteddisplaytext(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_selecteddisplaytext(const std::string& value); std::string* _internal_mutable_selecteddisplaytext(); public: @@ -19013,11 +19092,11 @@ class ButtonsResponseMessage PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class Message PROTOBUF_FINAL : +class Message final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Message) */ { public: inline Message() : Message(nullptr) {} - virtual ~Message(); + ~Message() override; explicit constexpr Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); Message(const Message& from); @@ -19031,8 +19110,13 @@ class Message PROTOBUF_FINAL : return *this; } inline Message& operator=(Message&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -19050,10 +19134,10 @@ class Message PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const Message& default_instance() { return *internal_default_instance(); @@ -19070,7 +19154,7 @@ class Message PROTOBUF_FINAL : } inline void Swap(Message* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -19078,23 +19162,26 @@ class Message PROTOBUF_FINAL : } void UnsafeArenaSwap(Message* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline Message* New() const final { - return CreateMaybeMessage<Message>(nullptr); + return new Message(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const Message& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const Message& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -19105,8 +19192,8 @@ class Message PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Message* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -19114,19 +19201,17 @@ class Message PROTOBUF_FINAL : return "proto.Message"; } protected: - explicit Message(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit Message(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -19176,16 +19261,14 @@ class Message PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_conversation(ArgT0&& arg0, ArgT... args); std::string* mutable_conversation(); - std::string* release_conversation(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_conversation(const std::string& value); std::string* _internal_mutable_conversation(); public: @@ -19196,7 +19279,7 @@ class Message PROTOBUF_FINAL : public: void clear_senderkeydistributionmessage(); const ::proto::SenderKeyDistributionMessage& senderkeydistributionmessage() const; - ::proto::SenderKeyDistributionMessage* release_senderkeydistributionmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::SenderKeyDistributionMessage* release_senderkeydistributionmessage(); ::proto::SenderKeyDistributionMessage* mutable_senderkeydistributionmessage(); void set_allocated_senderkeydistributionmessage(::proto::SenderKeyDistributionMessage* senderkeydistributionmessage); private: @@ -19214,7 +19297,7 @@ class Message PROTOBUF_FINAL : public: void clear_imagemessage(); const ::proto::ImageMessage& imagemessage() const; - ::proto::ImageMessage* release_imagemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ImageMessage* release_imagemessage(); ::proto::ImageMessage* mutable_imagemessage(); void set_allocated_imagemessage(::proto::ImageMessage* imagemessage); private: @@ -19232,7 +19315,7 @@ class Message PROTOBUF_FINAL : public: void clear_contactmessage(); const ::proto::ContactMessage& contactmessage() const; - ::proto::ContactMessage* release_contactmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ContactMessage* release_contactmessage(); ::proto::ContactMessage* mutable_contactmessage(); void set_allocated_contactmessage(::proto::ContactMessage* contactmessage); private: @@ -19250,7 +19333,7 @@ class Message PROTOBUF_FINAL : public: void clear_locationmessage(); const ::proto::LocationMessage& locationmessage() const; - ::proto::LocationMessage* release_locationmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::LocationMessage* release_locationmessage(); ::proto::LocationMessage* mutable_locationmessage(); void set_allocated_locationmessage(::proto::LocationMessage* locationmessage); private: @@ -19268,7 +19351,7 @@ class Message PROTOBUF_FINAL : public: void clear_extendedtextmessage(); const ::proto::ExtendedTextMessage& extendedtextmessage() const; - ::proto::ExtendedTextMessage* release_extendedtextmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ExtendedTextMessage* release_extendedtextmessage(); ::proto::ExtendedTextMessage* mutable_extendedtextmessage(); void set_allocated_extendedtextmessage(::proto::ExtendedTextMessage* extendedtextmessage); private: @@ -19286,7 +19369,7 @@ class Message PROTOBUF_FINAL : public: void clear_documentmessage(); const ::proto::DocumentMessage& documentmessage() const; - ::proto::DocumentMessage* release_documentmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::DocumentMessage* release_documentmessage(); ::proto::DocumentMessage* mutable_documentmessage(); void set_allocated_documentmessage(::proto::DocumentMessage* documentmessage); private: @@ -19304,7 +19387,7 @@ class Message PROTOBUF_FINAL : public: void clear_audiomessage(); const ::proto::AudioMessage& audiomessage() const; - ::proto::AudioMessage* release_audiomessage(); + PROTOBUF_MUST_USE_RESULT ::proto::AudioMessage* release_audiomessage(); ::proto::AudioMessage* mutable_audiomessage(); void set_allocated_audiomessage(::proto::AudioMessage* audiomessage); private: @@ -19322,7 +19405,7 @@ class Message PROTOBUF_FINAL : public: void clear_videomessage(); const ::proto::VideoMessage& videomessage() const; - ::proto::VideoMessage* release_videomessage(); + PROTOBUF_MUST_USE_RESULT ::proto::VideoMessage* release_videomessage(); ::proto::VideoMessage* mutable_videomessage(); void set_allocated_videomessage(::proto::VideoMessage* videomessage); private: @@ -19340,7 +19423,7 @@ class Message PROTOBUF_FINAL : public: void clear_call(); const ::proto::Call& call() const; - ::proto::Call* release_call(); + PROTOBUF_MUST_USE_RESULT ::proto::Call* release_call(); ::proto::Call* mutable_call(); void set_allocated_call(::proto::Call* call); private: @@ -19358,7 +19441,7 @@ class Message PROTOBUF_FINAL : public: void clear_chat(); const ::proto::Chat& chat() const; - ::proto::Chat* release_chat(); + PROTOBUF_MUST_USE_RESULT ::proto::Chat* release_chat(); ::proto::Chat* mutable_chat(); void set_allocated_chat(::proto::Chat* chat); private: @@ -19376,7 +19459,7 @@ class Message PROTOBUF_FINAL : public: void clear_protocolmessage(); const ::proto::ProtocolMessage& protocolmessage() const; - ::proto::ProtocolMessage* release_protocolmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ProtocolMessage* release_protocolmessage(); ::proto::ProtocolMessage* mutable_protocolmessage(); void set_allocated_protocolmessage(::proto::ProtocolMessage* protocolmessage); private: @@ -19394,7 +19477,7 @@ class Message PROTOBUF_FINAL : public: void clear_contactsarraymessage(); const ::proto::ContactsArrayMessage& contactsarraymessage() const; - ::proto::ContactsArrayMessage* release_contactsarraymessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ContactsArrayMessage* release_contactsarraymessage(); ::proto::ContactsArrayMessage* mutable_contactsarraymessage(); void set_allocated_contactsarraymessage(::proto::ContactsArrayMessage* contactsarraymessage); private: @@ -19412,7 +19495,7 @@ class Message PROTOBUF_FINAL : public: void clear_highlystructuredmessage(); const ::proto::HighlyStructuredMessage& highlystructuredmessage() const; - ::proto::HighlyStructuredMessage* release_highlystructuredmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::HighlyStructuredMessage* release_highlystructuredmessage(); ::proto::HighlyStructuredMessage* mutable_highlystructuredmessage(); void set_allocated_highlystructuredmessage(::proto::HighlyStructuredMessage* highlystructuredmessage); private: @@ -19430,7 +19513,7 @@ class Message PROTOBUF_FINAL : public: void clear_fastratchetkeysenderkeydistributionmessage(); const ::proto::SenderKeyDistributionMessage& fastratchetkeysenderkeydistributionmessage() const; - ::proto::SenderKeyDistributionMessage* release_fastratchetkeysenderkeydistributionmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::SenderKeyDistributionMessage* release_fastratchetkeysenderkeydistributionmessage(); ::proto::SenderKeyDistributionMessage* mutable_fastratchetkeysenderkeydistributionmessage(); void set_allocated_fastratchetkeysenderkeydistributionmessage(::proto::SenderKeyDistributionMessage* fastratchetkeysenderkeydistributionmessage); private: @@ -19448,7 +19531,7 @@ class Message PROTOBUF_FINAL : public: void clear_sendpaymentmessage(); const ::proto::SendPaymentMessage& sendpaymentmessage() const; - ::proto::SendPaymentMessage* release_sendpaymentmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::SendPaymentMessage* release_sendpaymentmessage(); ::proto::SendPaymentMessage* mutable_sendpaymentmessage(); void set_allocated_sendpaymentmessage(::proto::SendPaymentMessage* sendpaymentmessage); private: @@ -19466,7 +19549,7 @@ class Message PROTOBUF_FINAL : public: void clear_livelocationmessage(); const ::proto::LiveLocationMessage& livelocationmessage() const; - ::proto::LiveLocationMessage* release_livelocationmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::LiveLocationMessage* release_livelocationmessage(); ::proto::LiveLocationMessage* mutable_livelocationmessage(); void set_allocated_livelocationmessage(::proto::LiveLocationMessage* livelocationmessage); private: @@ -19484,7 +19567,7 @@ class Message PROTOBUF_FINAL : public: void clear_requestpaymentmessage(); const ::proto::RequestPaymentMessage& requestpaymentmessage() const; - ::proto::RequestPaymentMessage* release_requestpaymentmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::RequestPaymentMessage* release_requestpaymentmessage(); ::proto::RequestPaymentMessage* mutable_requestpaymentmessage(); void set_allocated_requestpaymentmessage(::proto::RequestPaymentMessage* requestpaymentmessage); private: @@ -19502,7 +19585,7 @@ class Message PROTOBUF_FINAL : public: void clear_declinepaymentrequestmessage(); const ::proto::DeclinePaymentRequestMessage& declinepaymentrequestmessage() const; - ::proto::DeclinePaymentRequestMessage* release_declinepaymentrequestmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::DeclinePaymentRequestMessage* release_declinepaymentrequestmessage(); ::proto::DeclinePaymentRequestMessage* mutable_declinepaymentrequestmessage(); void set_allocated_declinepaymentrequestmessage(::proto::DeclinePaymentRequestMessage* declinepaymentrequestmessage); private: @@ -19520,7 +19603,7 @@ class Message PROTOBUF_FINAL : public: void clear_cancelpaymentrequestmessage(); const ::proto::CancelPaymentRequestMessage& cancelpaymentrequestmessage() const; - ::proto::CancelPaymentRequestMessage* release_cancelpaymentrequestmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::CancelPaymentRequestMessage* release_cancelpaymentrequestmessage(); ::proto::CancelPaymentRequestMessage* mutable_cancelpaymentrequestmessage(); void set_allocated_cancelpaymentrequestmessage(::proto::CancelPaymentRequestMessage* cancelpaymentrequestmessage); private: @@ -19538,7 +19621,7 @@ class Message PROTOBUF_FINAL : public: void clear_templatemessage(); const ::proto::TemplateMessage& templatemessage() const; - ::proto::TemplateMessage* release_templatemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::TemplateMessage* release_templatemessage(); ::proto::TemplateMessage* mutable_templatemessage(); void set_allocated_templatemessage(::proto::TemplateMessage* templatemessage); private: @@ -19556,7 +19639,7 @@ class Message PROTOBUF_FINAL : public: void clear_stickermessage(); const ::proto::StickerMessage& stickermessage() const; - ::proto::StickerMessage* release_stickermessage(); + PROTOBUF_MUST_USE_RESULT ::proto::StickerMessage* release_stickermessage(); ::proto::StickerMessage* mutable_stickermessage(); void set_allocated_stickermessage(::proto::StickerMessage* stickermessage); private: @@ -19574,7 +19657,7 @@ class Message PROTOBUF_FINAL : public: void clear_groupinvitemessage(); const ::proto::GroupInviteMessage& groupinvitemessage() const; - ::proto::GroupInviteMessage* release_groupinvitemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::GroupInviteMessage* release_groupinvitemessage(); ::proto::GroupInviteMessage* mutable_groupinvitemessage(); void set_allocated_groupinvitemessage(::proto::GroupInviteMessage* groupinvitemessage); private: @@ -19592,7 +19675,7 @@ class Message PROTOBUF_FINAL : public: void clear_templatebuttonreplymessage(); const ::proto::TemplateButtonReplyMessage& templatebuttonreplymessage() const; - ::proto::TemplateButtonReplyMessage* release_templatebuttonreplymessage(); + PROTOBUF_MUST_USE_RESULT ::proto::TemplateButtonReplyMessage* release_templatebuttonreplymessage(); ::proto::TemplateButtonReplyMessage* mutable_templatebuttonreplymessage(); void set_allocated_templatebuttonreplymessage(::proto::TemplateButtonReplyMessage* templatebuttonreplymessage); private: @@ -19610,7 +19693,7 @@ class Message PROTOBUF_FINAL : public: void clear_productmessage(); const ::proto::ProductMessage& productmessage() const; - ::proto::ProductMessage* release_productmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ProductMessage* release_productmessage(); ::proto::ProductMessage* mutable_productmessage(); void set_allocated_productmessage(::proto::ProductMessage* productmessage); private: @@ -19628,7 +19711,7 @@ class Message PROTOBUF_FINAL : public: void clear_devicesentmessage(); const ::proto::DeviceSentMessage& devicesentmessage() const; - ::proto::DeviceSentMessage* release_devicesentmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::DeviceSentMessage* release_devicesentmessage(); ::proto::DeviceSentMessage* mutable_devicesentmessage(); void set_allocated_devicesentmessage(::proto::DeviceSentMessage* devicesentmessage); private: @@ -19646,7 +19729,7 @@ class Message PROTOBUF_FINAL : public: void clear_messagecontextinfo(); const ::proto::MessageContextInfo& messagecontextinfo() const; - ::proto::MessageContextInfo* release_messagecontextinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::MessageContextInfo* release_messagecontextinfo(); ::proto::MessageContextInfo* mutable_messagecontextinfo(); void set_allocated_messagecontextinfo(::proto::MessageContextInfo* messagecontextinfo); private: @@ -19664,7 +19747,7 @@ class Message PROTOBUF_FINAL : public: void clear_listmessage(); const ::proto::ListMessage& listmessage() const; - ::proto::ListMessage* release_listmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ListMessage* release_listmessage(); ::proto::ListMessage* mutable_listmessage(); void set_allocated_listmessage(::proto::ListMessage* listmessage); private: @@ -19682,7 +19765,7 @@ class Message PROTOBUF_FINAL : public: void clear_viewoncemessage(); const ::proto::FutureProofMessage& viewoncemessage() const; - ::proto::FutureProofMessage* release_viewoncemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::FutureProofMessage* release_viewoncemessage(); ::proto::FutureProofMessage* mutable_viewoncemessage(); void set_allocated_viewoncemessage(::proto::FutureProofMessage* viewoncemessage); private: @@ -19700,7 +19783,7 @@ class Message PROTOBUF_FINAL : public: void clear_ordermessage(); const ::proto::OrderMessage& ordermessage() const; - ::proto::OrderMessage* release_ordermessage(); + PROTOBUF_MUST_USE_RESULT ::proto::OrderMessage* release_ordermessage(); ::proto::OrderMessage* mutable_ordermessage(); void set_allocated_ordermessage(::proto::OrderMessage* ordermessage); private: @@ -19718,7 +19801,7 @@ class Message PROTOBUF_FINAL : public: void clear_listresponsemessage(); const ::proto::ListResponseMessage& listresponsemessage() const; - ::proto::ListResponseMessage* release_listresponsemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ListResponseMessage* release_listresponsemessage(); ::proto::ListResponseMessage* mutable_listresponsemessage(); void set_allocated_listresponsemessage(::proto::ListResponseMessage* listresponsemessage); private: @@ -19736,7 +19819,7 @@ class Message PROTOBUF_FINAL : public: void clear_ephemeralmessage(); const ::proto::FutureProofMessage& ephemeralmessage() const; - ::proto::FutureProofMessage* release_ephemeralmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::FutureProofMessage* release_ephemeralmessage(); ::proto::FutureProofMessage* mutable_ephemeralmessage(); void set_allocated_ephemeralmessage(::proto::FutureProofMessage* ephemeralmessage); private: @@ -19754,7 +19837,7 @@ class Message PROTOBUF_FINAL : public: void clear_invoicemessage(); const ::proto::InvoiceMessage& invoicemessage() const; - ::proto::InvoiceMessage* release_invoicemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::InvoiceMessage* release_invoicemessage(); ::proto::InvoiceMessage* mutable_invoicemessage(); void set_allocated_invoicemessage(::proto::InvoiceMessage* invoicemessage); private: @@ -19772,7 +19855,7 @@ class Message PROTOBUF_FINAL : public: void clear_buttonsmessage(); const ::proto::ButtonsMessage& buttonsmessage() const; - ::proto::ButtonsMessage* release_buttonsmessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ButtonsMessage* release_buttonsmessage(); ::proto::ButtonsMessage* mutable_buttonsmessage(); void set_allocated_buttonsmessage(::proto::ButtonsMessage* buttonsmessage); private: @@ -19790,7 +19873,7 @@ class Message PROTOBUF_FINAL : public: void clear_buttonsresponsemessage(); const ::proto::ButtonsResponseMessage& buttonsresponsemessage() const; - ::proto::ButtonsResponseMessage* release_buttonsresponsemessage(); + PROTOBUF_MUST_USE_RESULT ::proto::ButtonsResponseMessage* release_buttonsresponsemessage(); ::proto::ButtonsResponseMessage* mutable_buttonsresponsemessage(); void set_allocated_buttonsresponsemessage(::proto::ButtonsResponseMessage* buttonsresponsemessage); private: @@ -19849,11 +19932,11 @@ class Message PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class MessageKey PROTOBUF_FINAL : +class MessageKey final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.MessageKey) */ { public: inline MessageKey() : MessageKey(nullptr) {} - virtual ~MessageKey(); + ~MessageKey() override; explicit constexpr MessageKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); MessageKey(const MessageKey& from); @@ -19867,8 +19950,13 @@ class MessageKey PROTOBUF_FINAL : return *this; } inline MessageKey& operator=(MessageKey&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -19886,10 +19974,10 @@ class MessageKey PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const MessageKey& default_instance() { return *internal_default_instance(); @@ -19906,7 +19994,7 @@ class MessageKey PROTOBUF_FINAL : } inline void Swap(MessageKey* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -19914,23 +20002,26 @@ class MessageKey PROTOBUF_FINAL : } void UnsafeArenaSwap(MessageKey* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline MessageKey* New() const final { - return CreateMaybeMessage<MessageKey>(nullptr); + return new MessageKey(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const MessageKey& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const MessageKey& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -19941,8 +20032,8 @@ class MessageKey PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageKey* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -19950,19 +20041,17 @@ class MessageKey PROTOBUF_FINAL : return "proto.MessageKey"; } protected: - explicit MessageKey(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit MessageKey(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -19981,16 +20070,14 @@ class MessageKey PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_remotejid(ArgT0&& arg0, ArgT... args); std::string* mutable_remotejid(); - std::string* release_remotejid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_remotejid(const std::string& value); std::string* _internal_mutable_remotejid(); public: @@ -20001,16 +20088,14 @@ class MessageKey PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_id(ArgT0&& arg0, ArgT... args); std::string* mutable_id(); - std::string* release_id(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(const std::string& value); std::string* _internal_mutable_id(); public: @@ -20021,16 +20106,14 @@ class MessageKey PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_participant(ArgT0&& arg0, ArgT... args); std::string* mutable_participant(); - std::string* release_participant(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_participant(const std::string& value); std::string* _internal_mutable_participant(); public: @@ -20064,11 +20147,11 @@ class MessageKey PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class WebFeatures PROTOBUF_FINAL : +class WebFeatures final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.WebFeatures) */ { public: inline WebFeatures() : WebFeatures(nullptr) {} - virtual ~WebFeatures(); + ~WebFeatures() override; explicit constexpr WebFeatures(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); WebFeatures(const WebFeatures& from); @@ -20082,8 +20165,13 @@ class WebFeatures PROTOBUF_FINAL : return *this; } inline WebFeatures& operator=(WebFeatures&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -20101,10 +20189,10 @@ class WebFeatures PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const WebFeatures& default_instance() { return *internal_default_instance(); @@ -20121,7 +20209,7 @@ class WebFeatures PROTOBUF_FINAL : } inline void Swap(WebFeatures* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -20129,23 +20217,26 @@ class WebFeatures PROTOBUF_FINAL : } void UnsafeArenaSwap(WebFeatures* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline WebFeatures* New() const final { - return CreateMaybeMessage<WebFeatures>(nullptr); + return new WebFeatures(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const WebFeatures& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const WebFeatures& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -20156,8 +20247,8 @@ class WebFeatures PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(WebFeatures* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -20165,19 +20256,17 @@ class WebFeatures PROTOBUF_FINAL : return "proto.WebFeatures"; } protected: - explicit WebFeatures(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit WebFeatures(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -20832,11 +20921,11 @@ class WebFeatures PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class NotificationMessageInfo PROTOBUF_FINAL : +class NotificationMessageInfo final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.NotificationMessageInfo) */ { public: inline NotificationMessageInfo() : NotificationMessageInfo(nullptr) {} - virtual ~NotificationMessageInfo(); + ~NotificationMessageInfo() override; explicit constexpr NotificationMessageInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); NotificationMessageInfo(const NotificationMessageInfo& from); @@ -20850,8 +20939,13 @@ class NotificationMessageInfo PROTOBUF_FINAL : return *this; } inline NotificationMessageInfo& operator=(NotificationMessageInfo&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -20869,10 +20963,10 @@ class NotificationMessageInfo PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const NotificationMessageInfo& default_instance() { return *internal_default_instance(); @@ -20889,7 +20983,7 @@ class NotificationMessageInfo PROTOBUF_FINAL : } inline void Swap(NotificationMessageInfo* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -20897,23 +20991,26 @@ class NotificationMessageInfo PROTOBUF_FINAL : } void UnsafeArenaSwap(NotificationMessageInfo* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline NotificationMessageInfo* New() const final { - return CreateMaybeMessage<NotificationMessageInfo>(nullptr); + return new NotificationMessageInfo(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const NotificationMessageInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const NotificationMessageInfo& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -20924,8 +21021,8 @@ class NotificationMessageInfo PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(NotificationMessageInfo* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -20933,19 +21030,17 @@ class NotificationMessageInfo PROTOBUF_FINAL : return "proto.NotificationMessageInfo"; } protected: - explicit NotificationMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit NotificationMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -20964,16 +21059,14 @@ class NotificationMessageInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_participant(ArgT0&& arg0, ArgT... args); std::string* mutable_participant(); - std::string* release_participant(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_participant(const std::string& value); std::string* _internal_mutable_participant(); public: @@ -20984,7 +21077,7 @@ class NotificationMessageInfo PROTOBUF_FINAL : public: void clear_key(); const ::proto::MessageKey& key() const; - ::proto::MessageKey* release_key(); + PROTOBUF_MUST_USE_RESULT ::proto::MessageKey* release_key(); ::proto::MessageKey* mutable_key(); void set_allocated_key(::proto::MessageKey* key); private: @@ -21002,7 +21095,7 @@ class NotificationMessageInfo PROTOBUF_FINAL : public: void clear_message(); const ::proto::Message& message() const; - ::proto::Message* release_message(); + PROTOBUF_MUST_USE_RESULT ::proto::Message* release_message(); ::proto::Message* mutable_message(); void set_allocated_message(::proto::Message* message); private: @@ -21043,11 +21136,11 @@ class NotificationMessageInfo PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class WebNotificationsInfo PROTOBUF_FINAL : +class WebNotificationsInfo final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.WebNotificationsInfo) */ { public: inline WebNotificationsInfo() : WebNotificationsInfo(nullptr) {} - virtual ~WebNotificationsInfo(); + ~WebNotificationsInfo() override; explicit constexpr WebNotificationsInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); WebNotificationsInfo(const WebNotificationsInfo& from); @@ -21061,8 +21154,13 @@ class WebNotificationsInfo PROTOBUF_FINAL : return *this; } inline WebNotificationsInfo& operator=(WebNotificationsInfo&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -21080,10 +21178,10 @@ class WebNotificationsInfo PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const WebNotificationsInfo& default_instance() { return *internal_default_instance(); @@ -21100,7 +21198,7 @@ class WebNotificationsInfo PROTOBUF_FINAL : } inline void Swap(WebNotificationsInfo* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -21108,23 +21206,26 @@ class WebNotificationsInfo PROTOBUF_FINAL : } void UnsafeArenaSwap(WebNotificationsInfo* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline WebNotificationsInfo* New() const final { - return CreateMaybeMessage<WebNotificationsInfo>(nullptr); + return new WebNotificationsInfo(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const WebNotificationsInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const WebNotificationsInfo& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -21135,8 +21236,8 @@ class WebNotificationsInfo PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(WebNotificationsInfo* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -21144,19 +21245,17 @@ class WebNotificationsInfo PROTOBUF_FINAL : return "proto.WebNotificationsInfo"; } protected: - explicit WebNotificationsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit WebNotificationsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -21242,11 +21341,11 @@ class WebNotificationsInfo PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class PaymentInfo PROTOBUF_FINAL : +class PaymentInfo final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.PaymentInfo) */ { public: inline PaymentInfo() : PaymentInfo(nullptr) {} - virtual ~PaymentInfo(); + ~PaymentInfo() override; explicit constexpr PaymentInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); PaymentInfo(const PaymentInfo& from); @@ -21260,8 +21359,13 @@ class PaymentInfo PROTOBUF_FINAL : return *this; } inline PaymentInfo& operator=(PaymentInfo&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -21279,10 +21383,10 @@ class PaymentInfo PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const PaymentInfo& default_instance() { return *internal_default_instance(); @@ -21299,7 +21403,7 @@ class PaymentInfo PROTOBUF_FINAL : } inline void Swap(PaymentInfo* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -21307,23 +21411,26 @@ class PaymentInfo PROTOBUF_FINAL : } void UnsafeArenaSwap(PaymentInfo* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline PaymentInfo* New() const final { - return CreateMaybeMessage<PaymentInfo>(nullptr); + return new PaymentInfo(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const PaymentInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const PaymentInfo& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -21334,8 +21441,8 @@ class PaymentInfo PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(PaymentInfo* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -21343,19 +21450,17 @@ class PaymentInfo PROTOBUF_FINAL : return "proto.PaymentInfo"; } protected: - explicit PaymentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit PaymentInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -21545,16 +21650,14 @@ class PaymentInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_receiverjid(ArgT0&& arg0, ArgT... args); std::string* mutable_receiverjid(); - std::string* release_receiverjid(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_receiverjid(const std::string& value); std::string* _internal_mutable_receiverjid(); public: @@ -21565,16 +21668,14 @@ class PaymentInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_currency(ArgT0&& arg0, ArgT... args); std::string* mutable_currency(); - std::string* release_currency(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_currency(const std::string& value); std::string* _internal_mutable_currency(); public: @@ -21585,7 +21686,7 @@ class PaymentInfo PROTOBUF_FINAL : public: void clear_requestmessagekey(); const ::proto::MessageKey& requestmessagekey() const; - ::proto::MessageKey* release_requestmessagekey(); + PROTOBUF_MUST_USE_RESULT ::proto::MessageKey* release_requestmessagekey(); ::proto::MessageKey* mutable_requestmessagekey(); void set_allocated_requestmessagekey(::proto::MessageKey* requestmessagekey); private: @@ -21603,7 +21704,7 @@ class PaymentInfo PROTOBUF_FINAL : public: void clear_primaryamount(); const ::proto::PaymentMoney& primaryamount() const; - ::proto::PaymentMoney* release_primaryamount(); + PROTOBUF_MUST_USE_RESULT ::proto::PaymentMoney* release_primaryamount(); ::proto::PaymentMoney* mutable_primaryamount(); void set_allocated_primaryamount(::proto::PaymentMoney* primaryamount); private: @@ -21621,7 +21722,7 @@ class PaymentInfo PROTOBUF_FINAL : public: void clear_exchangeamount(); const ::proto::PaymentMoney& exchangeamount() const; - ::proto::PaymentMoney* release_exchangeamount(); + PROTOBUF_MUST_USE_RESULT ::proto::PaymentMoney* release_exchangeamount(); ::proto::PaymentMoney* mutable_exchangeamount(); void set_allocated_exchangeamount(::proto::PaymentMoney* exchangeamount); private: @@ -21762,11 +21863,11 @@ class PaymentInfo PROTOBUF_FINAL : }; // ------------------------------------------------------------------- -class WebMessageInfo PROTOBUF_FINAL : +class WebMessageInfo final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.WebMessageInfo) */ { public: inline WebMessageInfo() : WebMessageInfo(nullptr) {} - virtual ~WebMessageInfo(); + ~WebMessageInfo() override; explicit constexpr WebMessageInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); WebMessageInfo(const WebMessageInfo& from); @@ -21780,8 +21881,13 @@ class WebMessageInfo PROTOBUF_FINAL : return *this; } inline WebMessageInfo& operator=(WebMessageInfo&& from) noexcept { - if (GetArena() == from.GetArena()) { - if (this != &from) InternalSwap(&from); + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); } else { CopyFrom(from); } @@ -21799,10 +21905,10 @@ class WebMessageInfo PROTOBUF_FINAL : return GetDescriptor(); } static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return GetMetadataStatic().descriptor; + return default_instance().GetMetadata().descriptor; } static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return GetMetadataStatic().reflection; + return default_instance().GetMetadata().reflection; } static const WebMessageInfo& default_instance() { return *internal_default_instance(); @@ -21819,7 +21925,7 @@ class WebMessageInfo PROTOBUF_FINAL : } inline void Swap(WebMessageInfo* other) { if (other == this) return; - if (GetArena() == other->GetArena()) { + if (GetOwningArena() == other->GetOwningArena()) { InternalSwap(other); } else { ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); @@ -21827,23 +21933,26 @@ class WebMessageInfo PROTOBUF_FINAL : } void UnsafeArenaSwap(WebMessageInfo* other) { if (other == this) return; - GOOGLE_DCHECK(GetArena() == other->GetArena()); + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); } // implements Message ---------------------------------------------- inline WebMessageInfo* New() const final { - return CreateMaybeMessage<WebMessageInfo>(nullptr); + return new WebMessageInfo(); } 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; + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; void CopyFrom(const WebMessageInfo& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; void MergeFrom(const WebMessageInfo& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; bool IsInitialized() const final; @@ -21854,8 +21963,8 @@ class WebMessageInfo PROTOBUF_FINAL : int GetCachedSize() const final { return _cached_size_.Get(); } private: - inline void SharedCtor(); - inline void SharedDtor(); + void SharedCtor(); + void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(WebMessageInfo* other); friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; @@ -21863,19 +21972,17 @@ class WebMessageInfo PROTOBUF_FINAL : return "proto.WebMessageInfo"; } protected: - explicit WebMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena); + explicit WebMessageInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); 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); - } + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - public: + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- @@ -22301,16 +22408,14 @@ class WebMessageInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_participant(ArgT0&& arg0, ArgT... args); std::string* mutable_participant(); - std::string* release_participant(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_participant(const std::string& value); std::string* _internal_mutable_participant(); public: @@ -22321,16 +22426,14 @@ class WebMessageInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_pushname(ArgT0&& arg0, ArgT... args); std::string* mutable_pushname(); - std::string* release_pushname(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_pushname(const std::string& value); std::string* _internal_mutable_pushname(); public: @@ -22341,16 +22444,14 @@ class WebMessageInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_mediaciphertextsha256(ArgT0&& arg0, ArgT... args); std::string* mutable_mediaciphertextsha256(); - std::string* release_mediaciphertextsha256(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_mediaciphertextsha256(const std::string& value); std::string* _internal_mutable_mediaciphertextsha256(); public: @@ -22361,16 +22462,14 @@ class WebMessageInfo PROTOBUF_FINAL : 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); + template <typename ArgT0 = const std::string&, typename... ArgT> + void set_verifiedbizname(ArgT0&& arg0, ArgT... args); std::string* mutable_verifiedbizname(); - std::string* release_verifiedbizname(); + PROTOBUF_MUST_USE_RESULT 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); + inline PROTOBUF_ALWAYS_INLINE void _internal_set_verifiedbizname(const std::string& value); std::string* _internal_mutable_verifiedbizname(); public: @@ -22381,7 +22480,7 @@ class WebMessageInfo PROTOBUF_FINAL : public: void clear_key(); const ::proto::MessageKey& key() const; - ::proto::MessageKey* release_key(); + PROTOBUF_MUST_USE_RESULT ::proto::MessageKey* release_key(); ::proto::MessageKey* mutable_key(); void set_allocated_key(::proto::MessageKey* key); private: @@ -22399,7 +22498,7 @@ class WebMessageInfo PROTOBUF_FINAL : public: void clear_message(); const ::proto::Message& message() const; - ::proto::Message* release_message(); + PROTOBUF_MUST_USE_RESULT ::proto::Message* release_message(); ::proto::Message* mutable_message(); void set_allocated_message(::proto::Message* message); private: @@ -22417,7 +22516,7 @@ class WebMessageInfo PROTOBUF_FINAL : public: void clear_paymentinfo(); const ::proto::PaymentInfo& paymentinfo() const; - ::proto::PaymentInfo* release_paymentinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::PaymentInfo* release_paymentinfo(); ::proto::PaymentInfo* mutable_paymentinfo(); void set_allocated_paymentinfo(::proto::PaymentInfo* paymentinfo); private: @@ -22435,7 +22534,7 @@ class WebMessageInfo PROTOBUF_FINAL : public: void clear_finallivelocation(); const ::proto::LiveLocationMessage& finallivelocation() const; - ::proto::LiveLocationMessage* release_finallivelocation(); + PROTOBUF_MUST_USE_RESULT ::proto::LiveLocationMessage* release_finallivelocation(); ::proto::LiveLocationMessage* mutable_finallivelocation(); void set_allocated_finallivelocation(::proto::LiveLocationMessage* finallivelocation); private: @@ -22453,7 +22552,7 @@ class WebMessageInfo PROTOBUF_FINAL : public: void clear_quotedpaymentinfo(); const ::proto::PaymentInfo& quotedpaymentinfo() const; - ::proto::PaymentInfo* release_quotedpaymentinfo(); + PROTOBUF_MUST_USE_RESULT ::proto::PaymentInfo* release_quotedpaymentinfo(); ::proto::PaymentInfo* mutable_quotedpaymentinfo(); void set_allocated_quotedpaymentinfo(::proto::PaymentInfo* quotedpaymentinfo); private: @@ -22730,7 +22829,7 @@ inline bool PaymentMoney::has_value() const { return _internal_has_value(); } inline void PaymentMoney::clear_value() { - value_ = PROTOBUF_LONGLONG(0); + value_ = int64_t{0}; _has_bits_[0] &= ~0x00000002u; } inline ::PROTOBUF_NAMESPACE_ID::int64 PaymentMoney::_internal_value() const { @@ -22793,43 +22892,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void PaymentMoney::set_currencycode(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.PaymentMoney.currencyCode) } inline std::string* PaymentMoney::mutable_currencycode() { + std::string* _s = _internal_mutable_currencycode(); // @@protoc_insertion_point(field_mutable:proto.PaymentMoney.currencyCode) - return _internal_mutable_currencycode(); + return _s; } 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) + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* PaymentMoney::_internal_mutable_currencycode() { _has_bits_[0] |= 0x00000001u; - return currencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return currencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* PaymentMoney::release_currencycode() { // @@protoc_insertion_point(field_release:proto.PaymentMoney.currencyCode) @@ -22837,7 +22921,7 @@ inline std::string* PaymentMoney::release_currencycode() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return currencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return currencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void PaymentMoney::set_allocated_currencycode(std::string* currencycode) { if (currencycode != nullptr) { @@ -22846,7 +22930,7 @@ inline void PaymentMoney::set_allocated_currencycode(std::string* currencycode) _has_bits_[0] &= ~0x00000001u; } currencycode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), currencycode, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.PaymentMoney.currencyCode) } @@ -22870,43 +22954,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HydratedQuickReplyButton::set_displaytext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HydratedQuickReplyButton.displayText) } inline std::string* HydratedQuickReplyButton::mutable_displaytext() { + std::string* _s = _internal_mutable_displaytext(); // @@protoc_insertion_point(field_mutable:proto.HydratedQuickReplyButton.displayText) - return _internal_mutable_displaytext(); + return _s; } 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) + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HydratedQuickReplyButton::_internal_mutable_displaytext() { _has_bits_[0] |= 0x00000001u; - return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HydratedQuickReplyButton::release_displaytext() { // @@protoc_insertion_point(field_release:proto.HydratedQuickReplyButton.displayText) @@ -22914,7 +22983,7 @@ inline std::string* HydratedQuickReplyButton::release_displaytext() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HydratedQuickReplyButton::set_allocated_displaytext(std::string* displaytext) { if (displaytext != nullptr) { @@ -22923,7 +22992,7 @@ inline void HydratedQuickReplyButton::set_allocated_displaytext(std::string* dis _has_bits_[0] &= ~0x00000001u; } displaytext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displaytext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HydratedQuickReplyButton.displayText) } @@ -22943,43 +23012,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HydratedQuickReplyButton::set_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HydratedQuickReplyButton.id) } inline std::string* HydratedQuickReplyButton::mutable_id() { + std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:proto.HydratedQuickReplyButton.id) - return _internal_mutable_id(); + return _s; } 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) + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HydratedQuickReplyButton::_internal_mutable_id() { _has_bits_[0] |= 0x00000002u; - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HydratedQuickReplyButton::release_id() { // @@protoc_insertion_point(field_release:proto.HydratedQuickReplyButton.id) @@ -22987,7 +23041,7 @@ inline std::string* HydratedQuickReplyButton::release_id() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HydratedQuickReplyButton::set_allocated_id(std::string* id) { if (id != nullptr) { @@ -22996,7 +23050,7 @@ inline void HydratedQuickReplyButton::set_allocated_id(std::string* id) { _has_bits_[0] &= ~0x00000002u; } id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HydratedQuickReplyButton.id) } @@ -23020,43 +23074,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HydratedURLButton::set_displaytext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HydratedURLButton.displayText) } inline std::string* HydratedURLButton::mutable_displaytext() { + std::string* _s = _internal_mutable_displaytext(); // @@protoc_insertion_point(field_mutable:proto.HydratedURLButton.displayText) - return _internal_mutable_displaytext(); + return _s; } 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) + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HydratedURLButton::_internal_mutable_displaytext() { _has_bits_[0] |= 0x00000001u; - return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HydratedURLButton::release_displaytext() { // @@protoc_insertion_point(field_release:proto.HydratedURLButton.displayText) @@ -23064,7 +23103,7 @@ inline std::string* HydratedURLButton::release_displaytext() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HydratedURLButton::set_allocated_displaytext(std::string* displaytext) { if (displaytext != nullptr) { @@ -23073,7 +23112,7 @@ inline void HydratedURLButton::set_allocated_displaytext(std::string* displaytex _has_bits_[0] &= ~0x00000001u; } displaytext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displaytext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HydratedURLButton.displayText) } @@ -23093,43 +23132,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HydratedURLButton::set_url(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HydratedURLButton.url) } inline std::string* HydratedURLButton::mutable_url() { + std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:proto.HydratedURLButton.url) - return _internal_mutable_url(); + return _s; } 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) + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HydratedURLButton::_internal_mutable_url() { _has_bits_[0] |= 0x00000002u; - return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HydratedURLButton::release_url() { // @@protoc_insertion_point(field_release:proto.HydratedURLButton.url) @@ -23137,7 +23161,7 @@ inline std::string* HydratedURLButton::release_url() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HydratedURLButton::set_allocated_url(std::string* url) { if (url != nullptr) { @@ -23146,7 +23170,7 @@ inline void HydratedURLButton::set_allocated_url(std::string* url) { _has_bits_[0] &= ~0x00000002u; } url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HydratedURLButton.url) } @@ -23170,43 +23194,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HydratedCallButton::set_displaytext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HydratedCallButton.displayText) } inline std::string* HydratedCallButton::mutable_displaytext() { + std::string* _s = _internal_mutable_displaytext(); // @@protoc_insertion_point(field_mutable:proto.HydratedCallButton.displayText) - return _internal_mutable_displaytext(); + return _s; } 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) + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HydratedCallButton::_internal_mutable_displaytext() { _has_bits_[0] |= 0x00000001u; - return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HydratedCallButton::release_displaytext() { // @@protoc_insertion_point(field_release:proto.HydratedCallButton.displayText) @@ -23214,7 +23223,7 @@ inline std::string* HydratedCallButton::release_displaytext() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HydratedCallButton::set_allocated_displaytext(std::string* displaytext) { if (displaytext != nullptr) { @@ -23223,7 +23232,7 @@ inline void HydratedCallButton::set_allocated_displaytext(std::string* displayte _has_bits_[0] &= ~0x00000001u; } displaytext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displaytext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HydratedCallButton.displayText) } @@ -23243,43 +23252,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HydratedCallButton::set_phonenumber(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + phonenumber_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HydratedCallButton.phoneNumber) } inline std::string* HydratedCallButton::mutable_phonenumber() { + std::string* _s = _internal_mutable_phonenumber(); // @@protoc_insertion_point(field_mutable:proto.HydratedCallButton.phoneNumber) - return _internal_mutable_phonenumber(); + return _s; } 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) + phonenumber_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HydratedCallButton::_internal_mutable_phonenumber() { _has_bits_[0] |= 0x00000002u; - return phonenumber_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return phonenumber_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HydratedCallButton::release_phonenumber() { // @@protoc_insertion_point(field_release:proto.HydratedCallButton.phoneNumber) @@ -23287,7 +23281,7 @@ inline std::string* HydratedCallButton::release_phonenumber() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return phonenumber_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return phonenumber_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HydratedCallButton::set_allocated_phonenumber(std::string* phonenumber) { if (phonenumber != nullptr) { @@ -23296,7 +23290,7 @@ inline void HydratedCallButton::set_allocated_phonenumber(std::string* phonenumb _has_bits_[0] &= ~0x00000002u; } phonenumber_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), phonenumber, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HydratedCallButton.phoneNumber) } @@ -23344,7 +23338,7 @@ inline void HydratedTemplateButton::set_has_quickreplybutton() { } inline void HydratedTemplateButton::clear_quickreplybutton() { if (_internal_has_quickreplybutton()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete hydratedButton_.quickreplybutton_; } clear_has_hydratedButton(); @@ -23355,7 +23349,7 @@ inline ::proto::HydratedQuickReplyButton* HydratedTemplateButton::release_quickr if (_internal_has_quickreplybutton()) { clear_has_hydratedButton(); ::proto::HydratedQuickReplyButton* temp = hydratedButton_.quickreplybutton_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } hydratedButton_.quickreplybutton_ = nullptr; @@ -23396,13 +23390,14 @@ inline ::proto::HydratedQuickReplyButton* HydratedTemplateButton::_internal_muta if (!_internal_has_quickreplybutton()) { clear_hydratedButton(); set_has_quickreplybutton(); - hydratedButton_.quickreplybutton_ = CreateMaybeMessage< ::proto::HydratedQuickReplyButton >(GetArena()); + hydratedButton_.quickreplybutton_ = CreateMaybeMessage< ::proto::HydratedQuickReplyButton >(GetArenaForAllocation()); } return hydratedButton_.quickreplybutton_; } inline ::proto::HydratedQuickReplyButton* HydratedTemplateButton::mutable_quickreplybutton() { + ::proto::HydratedQuickReplyButton* _msg = _internal_mutable_quickreplybutton(); // @@protoc_insertion_point(field_mutable:proto.HydratedTemplateButton.quickReplyButton) - return _internal_mutable_quickreplybutton(); + return _msg; } // .proto.HydratedURLButton urlButton = 2; @@ -23417,7 +23412,7 @@ inline void HydratedTemplateButton::set_has_urlbutton() { } inline void HydratedTemplateButton::clear_urlbutton() { if (_internal_has_urlbutton()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete hydratedButton_.urlbutton_; } clear_has_hydratedButton(); @@ -23428,7 +23423,7 @@ inline ::proto::HydratedURLButton* HydratedTemplateButton::release_urlbutton() { if (_internal_has_urlbutton()) { clear_has_hydratedButton(); ::proto::HydratedURLButton* temp = hydratedButton_.urlbutton_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } hydratedButton_.urlbutton_ = nullptr; @@ -23469,13 +23464,14 @@ inline ::proto::HydratedURLButton* HydratedTemplateButton::_internal_mutable_url if (!_internal_has_urlbutton()) { clear_hydratedButton(); set_has_urlbutton(); - hydratedButton_.urlbutton_ = CreateMaybeMessage< ::proto::HydratedURLButton >(GetArena()); + hydratedButton_.urlbutton_ = CreateMaybeMessage< ::proto::HydratedURLButton >(GetArenaForAllocation()); } return hydratedButton_.urlbutton_; } inline ::proto::HydratedURLButton* HydratedTemplateButton::mutable_urlbutton() { + ::proto::HydratedURLButton* _msg = _internal_mutable_urlbutton(); // @@protoc_insertion_point(field_mutable:proto.HydratedTemplateButton.urlButton) - return _internal_mutable_urlbutton(); + return _msg; } // .proto.HydratedCallButton callButton = 3; @@ -23490,7 +23486,7 @@ inline void HydratedTemplateButton::set_has_callbutton() { } inline void HydratedTemplateButton::clear_callbutton() { if (_internal_has_callbutton()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete hydratedButton_.callbutton_; } clear_has_hydratedButton(); @@ -23501,7 +23497,7 @@ inline ::proto::HydratedCallButton* HydratedTemplateButton::release_callbutton() if (_internal_has_callbutton()) { clear_has_hydratedButton(); ::proto::HydratedCallButton* temp = hydratedButton_.callbutton_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } hydratedButton_.callbutton_ = nullptr; @@ -23542,13 +23538,14 @@ inline ::proto::HydratedCallButton* HydratedTemplateButton::_internal_mutable_ca if (!_internal_has_callbutton()) { clear_hydratedButton(); set_has_callbutton(); - hydratedButton_.callbutton_ = CreateMaybeMessage< ::proto::HydratedCallButton >(GetArena()); + hydratedButton_.callbutton_ = CreateMaybeMessage< ::proto::HydratedCallButton >(GetArenaForAllocation()); } return hydratedButton_.callbutton_; } inline ::proto::HydratedCallButton* HydratedTemplateButton::mutable_callbutton() { + ::proto::HydratedCallButton* _msg = _internal_mutable_callbutton(); // @@protoc_insertion_point(field_mutable:proto.HydratedTemplateButton.callButton) - return _internal_mutable_callbutton(); + return _msg; } inline bool HydratedTemplateButton::has_hydratedButton() const { @@ -23588,7 +23585,7 @@ inline const ::proto::HighlyStructuredMessage& QuickReplyButton::displaytext() c } inline void QuickReplyButton::unsafe_arena_set_allocated_displaytext( ::proto::HighlyStructuredMessage* displaytext) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(displaytext_); } displaytext_ = displaytext; @@ -23603,9 +23600,15 @@ inline ::proto::HighlyStructuredMessage* QuickReplyButton::release_displaytext() _has_bits_[0] &= ~0x00000002u; ::proto::HighlyStructuredMessage* temp = displaytext_; displaytext_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::HighlyStructuredMessage* QuickReplyButton::unsafe_arena_release_displaytext() { @@ -23618,23 +23621,24 @@ inline ::proto::HighlyStructuredMessage* QuickReplyButton::unsafe_arena_release_ inline ::proto::HighlyStructuredMessage* QuickReplyButton::_internal_mutable_displaytext() { _has_bits_[0] |= 0x00000002u; if (displaytext_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArenaForAllocation()); displaytext_ = p; } return displaytext_; } inline ::proto::HighlyStructuredMessage* QuickReplyButton::mutable_displaytext() { + ::proto::HighlyStructuredMessage* _msg = _internal_mutable_displaytext(); // @@protoc_insertion_point(field_mutable:proto.QuickReplyButton.displayText) - return _internal_mutable_displaytext(); + return _msg; } inline void QuickReplyButton::set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete displaytext_; } if (displaytext) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(displaytext); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HighlyStructuredMessage>::GetOwningArena(displaytext); if (message_arena != submessage_arena) { displaytext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, displaytext, submessage_arena); @@ -23663,43 +23667,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void QuickReplyButton::set_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.QuickReplyButton.id) } inline std::string* QuickReplyButton::mutable_id() { + std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:proto.QuickReplyButton.id) - return _internal_mutable_id(); + return _s; } 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) + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* QuickReplyButton::_internal_mutable_id() { _has_bits_[0] |= 0x00000001u; - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* QuickReplyButton::release_id() { // @@protoc_insertion_point(field_release:proto.QuickReplyButton.id) @@ -23707,7 +23696,7 @@ inline std::string* QuickReplyButton::release_id() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void QuickReplyButton::set_allocated_id(std::string* id) { if (id != nullptr) { @@ -23716,7 +23705,7 @@ inline void QuickReplyButton::set_allocated_id(std::string* id) { _has_bits_[0] &= ~0x00000001u; } id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.QuickReplyButton.id) } @@ -23748,7 +23737,7 @@ inline const ::proto::HighlyStructuredMessage& URLButton::displaytext() const { } inline void URLButton::unsafe_arena_set_allocated_displaytext( ::proto::HighlyStructuredMessage* displaytext) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(displaytext_); } displaytext_ = displaytext; @@ -23763,9 +23752,15 @@ inline ::proto::HighlyStructuredMessage* URLButton::release_displaytext() { _has_bits_[0] &= ~0x00000001u; ::proto::HighlyStructuredMessage* temp = displaytext_; displaytext_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::HighlyStructuredMessage* URLButton::unsafe_arena_release_displaytext() { @@ -23778,23 +23773,24 @@ inline ::proto::HighlyStructuredMessage* URLButton::unsafe_arena_release_display inline ::proto::HighlyStructuredMessage* URLButton::_internal_mutable_displaytext() { _has_bits_[0] |= 0x00000001u; if (displaytext_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArenaForAllocation()); displaytext_ = p; } return displaytext_; } inline ::proto::HighlyStructuredMessage* URLButton::mutable_displaytext() { + ::proto::HighlyStructuredMessage* _msg = _internal_mutable_displaytext(); // @@protoc_insertion_point(field_mutable:proto.URLButton.displayText) - return _internal_mutable_displaytext(); + return _msg; } inline void URLButton::set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete displaytext_; } if (displaytext) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(displaytext); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HighlyStructuredMessage>::GetOwningArena(displaytext); if (message_arena != submessage_arena) { displaytext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, displaytext, submessage_arena); @@ -23831,7 +23827,7 @@ inline const ::proto::HighlyStructuredMessage& URLButton::url() const { } inline void URLButton::unsafe_arena_set_allocated_url( ::proto::HighlyStructuredMessage* url) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(url_); } url_ = url; @@ -23846,9 +23842,15 @@ inline ::proto::HighlyStructuredMessage* URLButton::release_url() { _has_bits_[0] &= ~0x00000002u; ::proto::HighlyStructuredMessage* temp = url_; url_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::HighlyStructuredMessage* URLButton::unsafe_arena_release_url() { @@ -23861,23 +23863,24 @@ inline ::proto::HighlyStructuredMessage* URLButton::unsafe_arena_release_url() { inline ::proto::HighlyStructuredMessage* URLButton::_internal_mutable_url() { _has_bits_[0] |= 0x00000002u; if (url_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArenaForAllocation()); url_ = p; } return url_; } inline ::proto::HighlyStructuredMessage* URLButton::mutable_url() { + ::proto::HighlyStructuredMessage* _msg = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:proto.URLButton.url) - return _internal_mutable_url(); + return _msg; } inline void URLButton::set_allocated_url(::proto::HighlyStructuredMessage* url) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete url_; } if (url) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(url); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HighlyStructuredMessage>::GetOwningArena(url); if (message_arena != submessage_arena) { url = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, url, submessage_arena); @@ -23918,7 +23921,7 @@ inline const ::proto::HighlyStructuredMessage& CallButton::displaytext() const { } inline void CallButton::unsafe_arena_set_allocated_displaytext( ::proto::HighlyStructuredMessage* displaytext) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(displaytext_); } displaytext_ = displaytext; @@ -23933,9 +23936,15 @@ inline ::proto::HighlyStructuredMessage* CallButton::release_displaytext() { _has_bits_[0] &= ~0x00000001u; ::proto::HighlyStructuredMessage* temp = displaytext_; displaytext_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::HighlyStructuredMessage* CallButton::unsafe_arena_release_displaytext() { @@ -23948,23 +23957,24 @@ inline ::proto::HighlyStructuredMessage* CallButton::unsafe_arena_release_displa inline ::proto::HighlyStructuredMessage* CallButton::_internal_mutable_displaytext() { _has_bits_[0] |= 0x00000001u; if (displaytext_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArenaForAllocation()); displaytext_ = p; } return displaytext_; } inline ::proto::HighlyStructuredMessage* CallButton::mutable_displaytext() { + ::proto::HighlyStructuredMessage* _msg = _internal_mutable_displaytext(); // @@protoc_insertion_point(field_mutable:proto.CallButton.displayText) - return _internal_mutable_displaytext(); + return _msg; } inline void CallButton::set_allocated_displaytext(::proto::HighlyStructuredMessage* displaytext) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete displaytext_; } if (displaytext) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(displaytext); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HighlyStructuredMessage>::GetOwningArena(displaytext); if (message_arena != submessage_arena) { displaytext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, displaytext, submessage_arena); @@ -24001,7 +24011,7 @@ inline const ::proto::HighlyStructuredMessage& CallButton::phonenumber() const { } inline void CallButton::unsafe_arena_set_allocated_phonenumber( ::proto::HighlyStructuredMessage* phonenumber) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(phonenumber_); } phonenumber_ = phonenumber; @@ -24016,9 +24026,15 @@ inline ::proto::HighlyStructuredMessage* CallButton::release_phonenumber() { _has_bits_[0] &= ~0x00000002u; ::proto::HighlyStructuredMessage* temp = phonenumber_; phonenumber_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::HighlyStructuredMessage* CallButton::unsafe_arena_release_phonenumber() { @@ -24031,23 +24047,24 @@ inline ::proto::HighlyStructuredMessage* CallButton::unsafe_arena_release_phonen inline ::proto::HighlyStructuredMessage* CallButton::_internal_mutable_phonenumber() { _has_bits_[0] |= 0x00000002u; if (phonenumber_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArenaForAllocation()); phonenumber_ = p; } return phonenumber_; } inline ::proto::HighlyStructuredMessage* CallButton::mutable_phonenumber() { + ::proto::HighlyStructuredMessage* _msg = _internal_mutable_phonenumber(); // @@protoc_insertion_point(field_mutable:proto.CallButton.phoneNumber) - return _internal_mutable_phonenumber(); + return _msg; } inline void CallButton::set_allocated_phonenumber(::proto::HighlyStructuredMessage* phonenumber) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete phonenumber_; } if (phonenumber) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(phonenumber); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HighlyStructuredMessage>::GetOwningArena(phonenumber); if (message_arena != submessage_arena) { phonenumber = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, phonenumber, submessage_arena); @@ -24104,7 +24121,7 @@ inline void TemplateButton::set_has_quickreplybutton() { } inline void TemplateButton::clear_quickreplybutton() { if (_internal_has_quickreplybutton()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete button_.quickreplybutton_; } clear_has_button(); @@ -24115,7 +24132,7 @@ inline ::proto::QuickReplyButton* TemplateButton::release_quickreplybutton() { if (_internal_has_quickreplybutton()) { clear_has_button(); ::proto::QuickReplyButton* temp = button_.quickreplybutton_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } button_.quickreplybutton_ = nullptr; @@ -24156,13 +24173,14 @@ inline ::proto::QuickReplyButton* TemplateButton::_internal_mutable_quickreplybu if (!_internal_has_quickreplybutton()) { clear_button(); set_has_quickreplybutton(); - button_.quickreplybutton_ = CreateMaybeMessage< ::proto::QuickReplyButton >(GetArena()); + button_.quickreplybutton_ = CreateMaybeMessage< ::proto::QuickReplyButton >(GetArenaForAllocation()); } return button_.quickreplybutton_; } inline ::proto::QuickReplyButton* TemplateButton::mutable_quickreplybutton() { + ::proto::QuickReplyButton* _msg = _internal_mutable_quickreplybutton(); // @@protoc_insertion_point(field_mutable:proto.TemplateButton.quickReplyButton) - return _internal_mutable_quickreplybutton(); + return _msg; } // .proto.URLButton urlButton = 2; @@ -24177,7 +24195,7 @@ inline void TemplateButton::set_has_urlbutton() { } inline void TemplateButton::clear_urlbutton() { if (_internal_has_urlbutton()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete button_.urlbutton_; } clear_has_button(); @@ -24188,7 +24206,7 @@ inline ::proto::URLButton* TemplateButton::release_urlbutton() { if (_internal_has_urlbutton()) { clear_has_button(); ::proto::URLButton* temp = button_.urlbutton_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } button_.urlbutton_ = nullptr; @@ -24229,13 +24247,14 @@ inline ::proto::URLButton* TemplateButton::_internal_mutable_urlbutton() { if (!_internal_has_urlbutton()) { clear_button(); set_has_urlbutton(); - button_.urlbutton_ = CreateMaybeMessage< ::proto::URLButton >(GetArena()); + button_.urlbutton_ = CreateMaybeMessage< ::proto::URLButton >(GetArenaForAllocation()); } return button_.urlbutton_; } inline ::proto::URLButton* TemplateButton::mutable_urlbutton() { + ::proto::URLButton* _msg = _internal_mutable_urlbutton(); // @@protoc_insertion_point(field_mutable:proto.TemplateButton.urlButton) - return _internal_mutable_urlbutton(); + return _msg; } // .proto.CallButton callButton = 3; @@ -24250,7 +24269,7 @@ inline void TemplateButton::set_has_callbutton() { } inline void TemplateButton::clear_callbutton() { if (_internal_has_callbutton()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete button_.callbutton_; } clear_has_button(); @@ -24261,7 +24280,7 @@ inline ::proto::CallButton* TemplateButton::release_callbutton() { if (_internal_has_callbutton()) { clear_has_button(); ::proto::CallButton* temp = button_.callbutton_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } button_.callbutton_ = nullptr; @@ -24302,13 +24321,14 @@ inline ::proto::CallButton* TemplateButton::_internal_mutable_callbutton() { if (!_internal_has_callbutton()) { clear_button(); set_has_callbutton(); - button_.callbutton_ = CreateMaybeMessage< ::proto::CallButton >(GetArena()); + button_.callbutton_ = CreateMaybeMessage< ::proto::CallButton >(GetArenaForAllocation()); } return button_.callbutton_; } inline ::proto::CallButton* TemplateButton::mutable_callbutton() { + ::proto::CallButton* _msg = _internal_mutable_callbutton(); // @@protoc_insertion_point(field_mutable:proto.TemplateButton.callButton) - return _internal_mutable_callbutton(); + return _msg; } inline bool TemplateButton::has_button() const { @@ -24396,43 +24416,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void Location::set_name(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.Location.name) } inline std::string* Location::mutable_name() { + std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:proto.Location.name) - return _internal_mutable_name(); + return _s; } 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) + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Location::_internal_mutable_name() { _has_bits_[0] |= 0x00000001u; - return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Location::release_name() { // @@protoc_insertion_point(field_release:proto.Location.name) @@ -24440,7 +24445,7 @@ inline std::string* Location::release_name() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Location::set_allocated_name(std::string* name) { if (name != nullptr) { @@ -24449,7 +24454,7 @@ inline void Location::set_allocated_name(std::string* name) { _has_bits_[0] &= ~0x00000001u; } name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.Location.name) } @@ -24603,8 +24608,9 @@ inline ::proto::Point* InteractiveAnnotation::_internal_add_polygonvertices() { return polygonvertices_.Add(); } inline ::proto::Point* InteractiveAnnotation::add_polygonvertices() { + ::proto::Point* _add = _internal_add_polygonvertices(); // @@protoc_insertion_point(field_add:proto.InteractiveAnnotation.polygonVertices) - return _internal_add_polygonvertices(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Point >& InteractiveAnnotation::polygonvertices() const { @@ -24624,7 +24630,7 @@ inline void InteractiveAnnotation::set_has_location() { } inline void InteractiveAnnotation::clear_location() { if (_internal_has_location()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete action_.location_; } clear_has_action(); @@ -24635,7 +24641,7 @@ inline ::proto::Location* InteractiveAnnotation::release_location() { if (_internal_has_location()) { clear_has_action(); ::proto::Location* temp = action_.location_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } action_.location_ = nullptr; @@ -24676,13 +24682,14 @@ inline ::proto::Location* InteractiveAnnotation::_internal_mutable_location() { if (!_internal_has_location()) { clear_action(); set_has_location(); - action_.location_ = CreateMaybeMessage< ::proto::Location >(GetArena()); + action_.location_ = CreateMaybeMessage< ::proto::Location >(GetArenaForAllocation()); } return action_.location_; } inline ::proto::Location* InteractiveAnnotation::mutable_location() { + ::proto::Location* _msg = _internal_mutable_location(); // @@protoc_insertion_point(field_mutable:proto.InteractiveAnnotation.location) - return _internal_mutable_location(); + return _msg; } inline bool InteractiveAnnotation::has_action() const { @@ -24714,43 +24721,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DeviceListMetadata::set_senderkeyhash(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + senderkeyhash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DeviceListMetadata.senderKeyHash) } inline std::string* DeviceListMetadata::mutable_senderkeyhash() { + std::string* _s = _internal_mutable_senderkeyhash(); // @@protoc_insertion_point(field_mutable:proto.DeviceListMetadata.senderKeyHash) - return _internal_mutable_senderkeyhash(); + return _s; } 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) + senderkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DeviceListMetadata::_internal_mutable_senderkeyhash() { _has_bits_[0] |= 0x00000001u; - return senderkeyhash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return senderkeyhash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DeviceListMetadata::release_senderkeyhash() { // @@protoc_insertion_point(field_release:proto.DeviceListMetadata.senderKeyHash) @@ -24758,7 +24750,7 @@ inline std::string* DeviceListMetadata::release_senderkeyhash() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return senderkeyhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return senderkeyhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DeviceListMetadata::set_allocated_senderkeyhash(std::string* senderkeyhash) { if (senderkeyhash != nullptr) { @@ -24767,7 +24759,7 @@ inline void DeviceListMetadata::set_allocated_senderkeyhash(std::string* senderk _has_bits_[0] &= ~0x00000001u; } senderkeyhash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), senderkeyhash, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DeviceListMetadata.senderKeyHash) } @@ -24780,7 +24772,7 @@ inline bool DeviceListMetadata::has_sendertimestamp() const { return _internal_has_sendertimestamp(); } inline void DeviceListMetadata::clear_sendertimestamp() { - sendertimestamp_ = PROTOBUF_ULONGLONG(0); + sendertimestamp_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000004u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 DeviceListMetadata::_internal_sendertimestamp() const { @@ -24815,43 +24807,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DeviceListMetadata::set_recipientkeyhash(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + recipientkeyhash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DeviceListMetadata.recipientKeyHash) } inline std::string* DeviceListMetadata::mutable_recipientkeyhash() { + std::string* _s = _internal_mutable_recipientkeyhash(); // @@protoc_insertion_point(field_mutable:proto.DeviceListMetadata.recipientKeyHash) - return _internal_mutable_recipientkeyhash(); + return _s; } 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) + recipientkeyhash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DeviceListMetadata::_internal_mutable_recipientkeyhash() { _has_bits_[0] |= 0x00000002u; - return recipientkeyhash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return recipientkeyhash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DeviceListMetadata::release_recipientkeyhash() { // @@protoc_insertion_point(field_release:proto.DeviceListMetadata.recipientKeyHash) @@ -24859,7 +24836,7 @@ inline std::string* DeviceListMetadata::release_recipientkeyhash() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return recipientkeyhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return recipientkeyhash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DeviceListMetadata::set_allocated_recipientkeyhash(std::string* recipientkeyhash) { if (recipientkeyhash != nullptr) { @@ -24868,7 +24845,7 @@ inline void DeviceListMetadata::set_allocated_recipientkeyhash(std::string* reci _has_bits_[0] &= ~0x00000002u; } recipientkeyhash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), recipientkeyhash, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DeviceListMetadata.recipientKeyHash) } @@ -24881,7 +24858,7 @@ inline bool DeviceListMetadata::has_recipienttimestamp() const { return _internal_has_recipienttimestamp(); } inline void DeviceListMetadata::clear_recipienttimestamp() { - recipienttimestamp_ = PROTOBUF_ULONGLONG(0); + recipienttimestamp_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000008u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 DeviceListMetadata::_internal_recipienttimestamp() const { @@ -24928,7 +24905,7 @@ inline const ::proto::DeviceListMetadata& MessageContextInfo::devicelistmetadata } inline void MessageContextInfo::unsafe_arena_set_allocated_devicelistmetadata( ::proto::DeviceListMetadata* devicelistmetadata) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(devicelistmetadata_); } devicelistmetadata_ = devicelistmetadata; @@ -24943,9 +24920,15 @@ inline ::proto::DeviceListMetadata* MessageContextInfo::release_devicelistmetada _has_bits_[0] &= ~0x00000001u; ::proto::DeviceListMetadata* temp = devicelistmetadata_; devicelistmetadata_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::DeviceListMetadata* MessageContextInfo::unsafe_arena_release_devicelistmetadata() { @@ -24958,23 +24941,24 @@ inline ::proto::DeviceListMetadata* MessageContextInfo::unsafe_arena_release_dev inline ::proto::DeviceListMetadata* MessageContextInfo::_internal_mutable_devicelistmetadata() { _has_bits_[0] |= 0x00000001u; if (devicelistmetadata_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::DeviceListMetadata>(GetArena()); + auto* p = CreateMaybeMessage<::proto::DeviceListMetadata>(GetArenaForAllocation()); devicelistmetadata_ = p; } return devicelistmetadata_; } inline ::proto::DeviceListMetadata* MessageContextInfo::mutable_devicelistmetadata() { + ::proto::DeviceListMetadata* _msg = _internal_mutable_devicelistmetadata(); // @@protoc_insertion_point(field_mutable:proto.MessageContextInfo.deviceListMetadata) - return _internal_mutable_devicelistmetadata(); + return _msg; } inline void MessageContextInfo::set_allocated_devicelistmetadata(::proto::DeviceListMetadata* devicelistmetadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete devicelistmetadata_; } if (devicelistmetadata) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(devicelistmetadata); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::DeviceListMetadata>::GetOwningArena(devicelistmetadata); if (message_arena != submessage_arena) { devicelistmetadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, devicelistmetadata, submessage_arena); @@ -25007,43 +24991,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AdReplyInfo::set_advertisername(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + advertisername_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AdReplyInfo.advertiserName) } inline std::string* AdReplyInfo::mutable_advertisername() { + std::string* _s = _internal_mutable_advertisername(); // @@protoc_insertion_point(field_mutable:proto.AdReplyInfo.advertiserName) - return _internal_mutable_advertisername(); + return _s; } 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) + advertisername_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AdReplyInfo::_internal_mutable_advertisername() { _has_bits_[0] |= 0x00000001u; - return advertisername_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return advertisername_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AdReplyInfo::release_advertisername() { // @@protoc_insertion_point(field_release:proto.AdReplyInfo.advertiserName) @@ -25051,7 +25020,7 @@ inline std::string* AdReplyInfo::release_advertisername() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return advertisername_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return advertisername_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AdReplyInfo::set_allocated_advertisername(std::string* advertisername) { if (advertisername != nullptr) { @@ -25060,7 +25029,7 @@ inline void AdReplyInfo::set_allocated_advertisername(std::string* advertisernam _has_bits_[0] &= ~0x00000001u; } advertisername_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), advertisername, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AdReplyInfo.advertiserName) } @@ -25109,43 +25078,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AdReplyInfo::set_jpegthumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + jpegthumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AdReplyInfo.jpegThumbnail) } inline std::string* AdReplyInfo::mutable_jpegthumbnail() { + std::string* _s = _internal_mutable_jpegthumbnail(); // @@protoc_insertion_point(field_mutable:proto.AdReplyInfo.jpegThumbnail) - return _internal_mutable_jpegthumbnail(); + return _s; } 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) + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AdReplyInfo::_internal_mutable_jpegthumbnail() { _has_bits_[0] |= 0x00000002u; - return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AdReplyInfo::release_jpegthumbnail() { // @@protoc_insertion_point(field_release:proto.AdReplyInfo.jpegThumbnail) @@ -25153,7 +25107,7 @@ inline std::string* AdReplyInfo::release_jpegthumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AdReplyInfo::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { if (jpegthumbnail != nullptr) { @@ -25162,7 +25116,7 @@ inline void AdReplyInfo::set_allocated_jpegthumbnail(std::string* jpegthumbnail) _has_bits_[0] &= ~0x00000002u; } jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AdReplyInfo.jpegThumbnail) } @@ -25182,43 +25136,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AdReplyInfo::set_caption(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AdReplyInfo.caption) } inline std::string* AdReplyInfo::mutable_caption() { + std::string* _s = _internal_mutable_caption(); // @@protoc_insertion_point(field_mutable:proto.AdReplyInfo.caption) - return _internal_mutable_caption(); + return _s; } 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) + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AdReplyInfo::_internal_mutable_caption() { _has_bits_[0] |= 0x00000004u; - return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AdReplyInfo::release_caption() { // @@protoc_insertion_point(field_release:proto.AdReplyInfo.caption) @@ -25226,7 +25165,7 @@ inline std::string* AdReplyInfo::release_caption() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AdReplyInfo::set_allocated_caption(std::string* caption) { if (caption != nullptr) { @@ -25235,7 +25174,7 @@ inline void AdReplyInfo::set_allocated_caption(std::string* caption) { _has_bits_[0] &= ~0x00000004u; } caption_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), caption, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AdReplyInfo.caption) } @@ -25259,43 +25198,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExternalAdReplyInfo::set_title(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.title) } inline std::string* ExternalAdReplyInfo::mutable_title() { + std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.title) - return _internal_mutable_title(); + return _s; } 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) + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::_internal_mutable_title() { _has_bits_[0] |= 0x00000001u; - return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::release_title() { // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.title) @@ -25303,7 +25227,7 @@ inline std::string* ExternalAdReplyInfo::release_title() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExternalAdReplyInfo::set_allocated_title(std::string* title) { if (title != nullptr) { @@ -25312,7 +25236,7 @@ inline void ExternalAdReplyInfo::set_allocated_title(std::string* title) { _has_bits_[0] &= ~0x00000001u; } title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.title) } @@ -25332,43 +25256,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExternalAdReplyInfo::set_body(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.body) } inline std::string* ExternalAdReplyInfo::mutable_body() { + std::string* _s = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.body) - return _internal_mutable_body(); + return _s; } 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) + body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::_internal_mutable_body() { _has_bits_[0] |= 0x00000002u; - return body_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return body_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::release_body() { // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.body) @@ -25376,7 +25285,7 @@ inline std::string* ExternalAdReplyInfo::release_body() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return body_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return body_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExternalAdReplyInfo::set_allocated_body(std::string* body) { if (body != nullptr) { @@ -25385,7 +25294,7 @@ inline void ExternalAdReplyInfo::set_allocated_body(std::string* body) { _has_bits_[0] &= ~0x00000002u; } body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.body) } @@ -25434,43 +25343,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExternalAdReplyInfo::set_thumbnailurl(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + thumbnailurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.thumbnailUrl) } inline std::string* ExternalAdReplyInfo::mutable_thumbnailurl() { + std::string* _s = _internal_mutable_thumbnailurl(); // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.thumbnailUrl) - return _internal_mutable_thumbnailurl(); + return _s; } 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) + thumbnailurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::_internal_mutable_thumbnailurl() { _has_bits_[0] |= 0x00000004u; - return thumbnailurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnailurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::release_thumbnailurl() { // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.thumbnailUrl) @@ -25478,7 +25372,7 @@ inline std::string* ExternalAdReplyInfo::release_thumbnailurl() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return thumbnailurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnailurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExternalAdReplyInfo::set_allocated_thumbnailurl(std::string* thumbnailurl) { if (thumbnailurl != nullptr) { @@ -25487,7 +25381,7 @@ inline void ExternalAdReplyInfo::set_allocated_thumbnailurl(std::string* thumbna _has_bits_[0] &= ~0x00000004u; } thumbnailurl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailurl, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.thumbnailUrl) } @@ -25507,43 +25401,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExternalAdReplyInfo::set_mediaurl(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + mediaurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.mediaUrl) } inline std::string* ExternalAdReplyInfo::mutable_mediaurl() { + std::string* _s = _internal_mutable_mediaurl(); // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.mediaUrl) - return _internal_mutable_mediaurl(); + return _s; } 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) + mediaurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::_internal_mutable_mediaurl() { _has_bits_[0] |= 0x00000008u; - return mediaurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mediaurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::release_mediaurl() { // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.mediaUrl) @@ -25551,7 +25430,7 @@ inline std::string* ExternalAdReplyInfo::release_mediaurl() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return mediaurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mediaurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExternalAdReplyInfo::set_allocated_mediaurl(std::string* mediaurl) { if (mediaurl != nullptr) { @@ -25560,7 +25439,7 @@ inline void ExternalAdReplyInfo::set_allocated_mediaurl(std::string* mediaurl) { _has_bits_[0] &= ~0x00000008u; } mediaurl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediaurl, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.mediaUrl) } @@ -25580,43 +25459,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExternalAdReplyInfo::set_thumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + thumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.thumbnail) } inline std::string* ExternalAdReplyInfo::mutable_thumbnail() { + std::string* _s = _internal_mutable_thumbnail(); // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.thumbnail) - return _internal_mutable_thumbnail(); + return _s; } 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) + thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::_internal_mutable_thumbnail() { _has_bits_[0] |= 0x00000010u; - return thumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::release_thumbnail() { // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.thumbnail) @@ -25624,7 +25488,7 @@ inline std::string* ExternalAdReplyInfo::release_thumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return thumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExternalAdReplyInfo::set_allocated_thumbnail(std::string* thumbnail) { if (thumbnail != nullptr) { @@ -25633,7 +25497,7 @@ inline void ExternalAdReplyInfo::set_allocated_thumbnail(std::string* thumbnail) _has_bits_[0] &= ~0x00000010u; } thumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.thumbnail) } @@ -25653,43 +25517,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExternalAdReplyInfo::set_sourcetype(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + sourcetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.sourceType) } inline std::string* ExternalAdReplyInfo::mutable_sourcetype() { + std::string* _s = _internal_mutable_sourcetype(); // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.sourceType) - return _internal_mutable_sourcetype(); + return _s; } 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) + sourcetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::_internal_mutable_sourcetype() { _has_bits_[0] |= 0x00000020u; - return sourcetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return sourcetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::release_sourcetype() { // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.sourceType) @@ -25697,7 +25546,7 @@ inline std::string* ExternalAdReplyInfo::release_sourcetype() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return sourcetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return sourcetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExternalAdReplyInfo::set_allocated_sourcetype(std::string* sourcetype) { if (sourcetype != nullptr) { @@ -25706,7 +25555,7 @@ inline void ExternalAdReplyInfo::set_allocated_sourcetype(std::string* sourcetyp _has_bits_[0] &= ~0x00000020u; } sourcetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sourcetype, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.sourceType) } @@ -25726,43 +25575,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExternalAdReplyInfo::set_sourceid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000040u; + sourceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.sourceId) } inline std::string* ExternalAdReplyInfo::mutable_sourceid() { + std::string* _s = _internal_mutable_sourceid(); // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.sourceId) - return _internal_mutable_sourceid(); + return _s; } 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) + sourceid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::_internal_mutable_sourceid() { _has_bits_[0] |= 0x00000040u; - return sourceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return sourceid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::release_sourceid() { // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.sourceId) @@ -25770,7 +25604,7 @@ inline std::string* ExternalAdReplyInfo::release_sourceid() { return nullptr; } _has_bits_[0] &= ~0x00000040u; - return sourceid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return sourceid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExternalAdReplyInfo::set_allocated_sourceid(std::string* sourceid) { if (sourceid != nullptr) { @@ -25779,7 +25613,7 @@ inline void ExternalAdReplyInfo::set_allocated_sourceid(std::string* sourceid) { _has_bits_[0] &= ~0x00000040u; } sourceid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sourceid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.sourceId) } @@ -25799,43 +25633,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExternalAdReplyInfo::set_sourceurl(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000080u; + sourceurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExternalAdReplyInfo.sourceUrl) } inline std::string* ExternalAdReplyInfo::mutable_sourceurl() { + std::string* _s = _internal_mutable_sourceurl(); // @@protoc_insertion_point(field_mutable:proto.ExternalAdReplyInfo.sourceUrl) - return _internal_mutable_sourceurl(); + return _s; } 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) + sourceurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::_internal_mutable_sourceurl() { _has_bits_[0] |= 0x00000080u; - return sourceurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return sourceurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExternalAdReplyInfo::release_sourceurl() { // @@protoc_insertion_point(field_release:proto.ExternalAdReplyInfo.sourceUrl) @@ -25843,7 +25662,7 @@ inline std::string* ExternalAdReplyInfo::release_sourceurl() { return nullptr; } _has_bits_[0] &= ~0x00000080u; - return sourceurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return sourceurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExternalAdReplyInfo::set_allocated_sourceurl(std::string* sourceurl) { if (sourceurl != nullptr) { @@ -25852,7 +25671,7 @@ inline void ExternalAdReplyInfo::set_allocated_sourceurl(std::string* sourceurl) _has_bits_[0] &= ~0x00000080u; } sourceurl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sourceurl, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExternalAdReplyInfo.sourceUrl) } @@ -25876,43 +25695,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ContextInfo::set_stanzaid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + stanzaid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ContextInfo.stanzaId) } inline std::string* ContextInfo::mutable_stanzaid() { + std::string* _s = _internal_mutable_stanzaid(); // @@protoc_insertion_point(field_mutable:proto.ContextInfo.stanzaId) - return _internal_mutable_stanzaid(); + return _s; } 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) + stanzaid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ContextInfo::_internal_mutable_stanzaid() { _has_bits_[0] |= 0x00000001u; - return stanzaid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return stanzaid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ContextInfo::release_stanzaid() { // @@protoc_insertion_point(field_release:proto.ContextInfo.stanzaId) @@ -25920,7 +25724,7 @@ inline std::string* ContextInfo::release_stanzaid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return stanzaid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return stanzaid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ContextInfo::set_allocated_stanzaid(std::string* stanzaid) { if (stanzaid != nullptr) { @@ -25929,7 +25733,7 @@ inline void ContextInfo::set_allocated_stanzaid(std::string* stanzaid) { _has_bits_[0] &= ~0x00000001u; } stanzaid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), stanzaid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.stanzaId) } @@ -25949,43 +25753,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ContextInfo::set_participant(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ContextInfo.participant) } inline std::string* ContextInfo::mutable_participant() { + std::string* _s = _internal_mutable_participant(); // @@protoc_insertion_point(field_mutable:proto.ContextInfo.participant) - return _internal_mutable_participant(); + return _s; } 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) + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ContextInfo::_internal_mutable_participant() { _has_bits_[0] |= 0x00000002u; - return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ContextInfo::release_participant() { // @@protoc_insertion_point(field_release:proto.ContextInfo.participant) @@ -25993,7 +25782,7 @@ inline std::string* ContextInfo::release_participant() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ContextInfo::set_allocated_participant(std::string* participant) { if (participant != nullptr) { @@ -26002,7 +25791,7 @@ inline void ContextInfo::set_allocated_participant(std::string* participant) { _has_bits_[0] &= ~0x00000002u; } participant_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), participant, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.participant) } @@ -26030,7 +25819,7 @@ inline const ::proto::Message& ContextInfo::quotedmessage() const { } inline void ContextInfo::unsafe_arena_set_allocated_quotedmessage( ::proto::Message* quotedmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(quotedmessage_); } quotedmessage_ = quotedmessage; @@ -26045,9 +25834,15 @@ inline ::proto::Message* ContextInfo::release_quotedmessage() { _has_bits_[0] &= ~0x00000040u; ::proto::Message* temp = quotedmessage_; quotedmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::Message* ContextInfo::unsafe_arena_release_quotedmessage() { @@ -26060,23 +25855,24 @@ inline ::proto::Message* ContextInfo::unsafe_arena_release_quotedmessage() { inline ::proto::Message* ContextInfo::_internal_mutable_quotedmessage() { _has_bits_[0] |= 0x00000040u; if (quotedmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + auto* p = CreateMaybeMessage<::proto::Message>(GetArenaForAllocation()); quotedmessage_ = p; } return quotedmessage_; } inline ::proto::Message* ContextInfo::mutable_quotedmessage() { + ::proto::Message* _msg = _internal_mutable_quotedmessage(); // @@protoc_insertion_point(field_mutable:proto.ContextInfo.quotedMessage) - return _internal_mutable_quotedmessage(); + return _msg; } inline void ContextInfo::set_allocated_quotedmessage(::proto::Message* quotedmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete quotedmessage_; } if (quotedmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(quotedmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Message>::GetOwningArena(quotedmessage); if (message_arena != submessage_arena) { quotedmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, quotedmessage, submessage_arena); @@ -26105,43 +25901,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ContextInfo::set_remotejid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ContextInfo.remoteJid) } inline std::string* ContextInfo::mutable_remotejid() { + std::string* _s = _internal_mutable_remotejid(); // @@protoc_insertion_point(field_mutable:proto.ContextInfo.remoteJid) - return _internal_mutable_remotejid(); + return _s; } 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) + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ContextInfo::_internal_mutable_remotejid() { _has_bits_[0] |= 0x00000004u; - return remotejid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return remotejid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ContextInfo::release_remotejid() { // @@protoc_insertion_point(field_release:proto.ContextInfo.remoteJid) @@ -26149,7 +25930,7 @@ inline std::string* ContextInfo::release_remotejid() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return remotejid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return remotejid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ContextInfo::set_allocated_remotejid(std::string* remotejid) { if (remotejid != nullptr) { @@ -26158,7 +25939,7 @@ inline void ContextInfo::set_allocated_remotejid(std::string* remotejid) { _has_bits_[0] &= ~0x00000004u; } remotejid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), remotejid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.remoteJid) } @@ -26173,8 +25954,9 @@ inline void ContextInfo::clear_mentionedjid() { mentionedjid_.Clear(); } inline std::string* ContextInfo::add_mentionedjid() { + std::string* _s = _internal_add_mentionedjid(); // @@protoc_insertion_point(field_add_mutable:proto.ContextInfo.mentionedJid) - return _internal_add_mentionedjid(); + return _s; } inline const std::string& ContextInfo::_internal_mentionedjid(int index) const { return mentionedjid_.Get(index); @@ -26188,12 +25970,12 @@ inline std::string* ContextInfo::mutable_mentionedjid(int index) { 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); + // @@protoc_insertion_point(field_set:proto.ContextInfo.mentionedJid) } 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)); + // @@protoc_insertion_point(field_set:proto.ContextInfo.mentionedJid) } inline void ContextInfo::set_mentionedjid(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); @@ -26252,43 +26034,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ContextInfo::set_conversionsource(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + conversionsource_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ContextInfo.conversionSource) } inline std::string* ContextInfo::mutable_conversionsource() { + std::string* _s = _internal_mutable_conversionsource(); // @@protoc_insertion_point(field_mutable:proto.ContextInfo.conversionSource) - return _internal_mutable_conversionsource(); + return _s; } 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) + conversionsource_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ContextInfo::_internal_mutable_conversionsource() { _has_bits_[0] |= 0x00000008u; - return conversionsource_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return conversionsource_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ContextInfo::release_conversionsource() { // @@protoc_insertion_point(field_release:proto.ContextInfo.conversionSource) @@ -26296,7 +26063,7 @@ inline std::string* ContextInfo::release_conversionsource() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return conversionsource_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return conversionsource_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ContextInfo::set_allocated_conversionsource(std::string* conversionsource) { if (conversionsource != nullptr) { @@ -26305,7 +26072,7 @@ inline void ContextInfo::set_allocated_conversionsource(std::string* conversions _has_bits_[0] &= ~0x00000008u; } conversionsource_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), conversionsource, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.conversionSource) } @@ -26325,43 +26092,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ContextInfo::set_conversiondata(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + conversiondata_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ContextInfo.conversionData) } inline std::string* ContextInfo::mutable_conversiondata() { + std::string* _s = _internal_mutable_conversiondata(); // @@protoc_insertion_point(field_mutable:proto.ContextInfo.conversionData) - return _internal_mutable_conversiondata(); + return _s; } 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) + conversiondata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ContextInfo::_internal_mutable_conversiondata() { _has_bits_[0] |= 0x00000010u; - return conversiondata_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return conversiondata_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ContextInfo::release_conversiondata() { // @@protoc_insertion_point(field_release:proto.ContextInfo.conversionData) @@ -26369,7 +26121,7 @@ inline std::string* ContextInfo::release_conversiondata() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return conversiondata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return conversiondata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ContextInfo::set_allocated_conversiondata(std::string* conversiondata) { if (conversiondata != nullptr) { @@ -26378,7 +26130,7 @@ inline void ContextInfo::set_allocated_conversiondata(std::string* conversiondat _has_bits_[0] &= ~0x00000010u; } conversiondata_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), conversiondata, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.conversionData) } @@ -26490,7 +26242,7 @@ inline const ::proto::AdReplyInfo& ContextInfo::quotedad() const { } inline void ContextInfo::unsafe_arena_set_allocated_quotedad( ::proto::AdReplyInfo* quotedad) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(quotedad_); } quotedad_ = quotedad; @@ -26505,9 +26257,15 @@ inline ::proto::AdReplyInfo* ContextInfo::release_quotedad() { _has_bits_[0] &= ~0x00000080u; ::proto::AdReplyInfo* temp = quotedad_; quotedad_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::AdReplyInfo* ContextInfo::unsafe_arena_release_quotedad() { @@ -26520,23 +26278,24 @@ inline ::proto::AdReplyInfo* ContextInfo::unsafe_arena_release_quotedad() { inline ::proto::AdReplyInfo* ContextInfo::_internal_mutable_quotedad() { _has_bits_[0] |= 0x00000080u; if (quotedad_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::AdReplyInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::AdReplyInfo>(GetArenaForAllocation()); quotedad_ = p; } return quotedad_; } inline ::proto::AdReplyInfo* ContextInfo::mutable_quotedad() { + ::proto::AdReplyInfo* _msg = _internal_mutable_quotedad(); // @@protoc_insertion_point(field_mutable:proto.ContextInfo.quotedAd) - return _internal_mutable_quotedad(); + return _msg; } inline void ContextInfo::set_allocated_quotedad(::proto::AdReplyInfo* quotedad) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete quotedad_; } if (quotedad) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(quotedad); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::AdReplyInfo>::GetOwningArena(quotedad); if (message_arena != submessage_arena) { quotedad = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, quotedad, submessage_arena); @@ -26573,7 +26332,7 @@ inline const ::proto::MessageKey& ContextInfo::placeholderkey() const { } inline void ContextInfo::unsafe_arena_set_allocated_placeholderkey( ::proto::MessageKey* placeholderkey) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(placeholderkey_); } placeholderkey_ = placeholderkey; @@ -26588,9 +26347,15 @@ inline ::proto::MessageKey* ContextInfo::release_placeholderkey() { _has_bits_[0] &= ~0x00000100u; ::proto::MessageKey* temp = placeholderkey_; placeholderkey_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::MessageKey* ContextInfo::unsafe_arena_release_placeholderkey() { @@ -26603,23 +26368,24 @@ inline ::proto::MessageKey* ContextInfo::unsafe_arena_release_placeholderkey() { inline ::proto::MessageKey* ContextInfo::_internal_mutable_placeholderkey() { _has_bits_[0] |= 0x00000100u; if (placeholderkey_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArenaForAllocation()); placeholderkey_ = p; } return placeholderkey_; } inline ::proto::MessageKey* ContextInfo::mutable_placeholderkey() { + ::proto::MessageKey* _msg = _internal_mutable_placeholderkey(); // @@protoc_insertion_point(field_mutable:proto.ContextInfo.placeholderKey) - return _internal_mutable_placeholderkey(); + return _msg; } inline void ContextInfo::set_allocated_placeholderkey(::proto::MessageKey* placeholderkey) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete placeholderkey_; } if (placeholderkey) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(placeholderkey); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::MessageKey>::GetOwningArena(placeholderkey); if (message_arena != submessage_arena) { placeholderkey = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, placeholderkey, submessage_arena); @@ -26669,7 +26435,7 @@ inline bool ContextInfo::has_ephemeralsettingtimestamp() const { return _internal_has_ephemeralsettingtimestamp(); } inline void ContextInfo::clear_ephemeralsettingtimestamp() { - ephemeralsettingtimestamp_ = PROTOBUF_LONGLONG(0); + ephemeralsettingtimestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00004000u; } inline ::PROTOBUF_NAMESPACE_ID::int64 ContextInfo::_internal_ephemeralsettingtimestamp() const { @@ -26704,43 +26470,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ContextInfo::set_ephemeralsharedsecret(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + ephemeralsharedsecret_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ContextInfo.ephemeralSharedSecret) } inline std::string* ContextInfo::mutable_ephemeralsharedsecret() { + std::string* _s = _internal_mutable_ephemeralsharedsecret(); // @@protoc_insertion_point(field_mutable:proto.ContextInfo.ephemeralSharedSecret) - return _internal_mutable_ephemeralsharedsecret(); + return _s; } 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) + ephemeralsharedsecret_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ContextInfo::_internal_mutable_ephemeralsharedsecret() { _has_bits_[0] |= 0x00000020u; - return ephemeralsharedsecret_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return ephemeralsharedsecret_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ContextInfo::release_ephemeralsharedsecret() { // @@protoc_insertion_point(field_release:proto.ContextInfo.ephemeralSharedSecret) @@ -26748,7 +26499,7 @@ inline std::string* ContextInfo::release_ephemeralsharedsecret() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return ephemeralsharedsecret_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return ephemeralsharedsecret_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ContextInfo::set_allocated_ephemeralsharedsecret(std::string* ephemeralsharedsecret) { if (ephemeralsharedsecret != nullptr) { @@ -26757,7 +26508,7 @@ inline void ContextInfo::set_allocated_ephemeralsharedsecret(std::string* epheme _has_bits_[0] &= ~0x00000020u; } ephemeralsharedsecret_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ephemeralsharedsecret, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ContextInfo.ephemeralSharedSecret) } @@ -26785,7 +26536,7 @@ inline const ::proto::ExternalAdReplyInfo& ContextInfo::externaladreply() const } inline void ContextInfo::unsafe_arena_set_allocated_externaladreply( ::proto::ExternalAdReplyInfo* externaladreply) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(externaladreply_); } externaladreply_ = externaladreply; @@ -26800,9 +26551,15 @@ inline ::proto::ExternalAdReplyInfo* ContextInfo::release_externaladreply() { _has_bits_[0] &= ~0x00000200u; ::proto::ExternalAdReplyInfo* temp = externaladreply_; externaladreply_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ExternalAdReplyInfo* ContextInfo::unsafe_arena_release_externaladreply() { @@ -26815,23 +26572,24 @@ inline ::proto::ExternalAdReplyInfo* ContextInfo::unsafe_arena_release_externala inline ::proto::ExternalAdReplyInfo* ContextInfo::_internal_mutable_externaladreply() { _has_bits_[0] |= 0x00000200u; if (externaladreply_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ExternalAdReplyInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ExternalAdReplyInfo>(GetArenaForAllocation()); externaladreply_ = p; } return externaladreply_; } inline ::proto::ExternalAdReplyInfo* ContextInfo::mutable_externaladreply() { + ::proto::ExternalAdReplyInfo* _msg = _internal_mutable_externaladreply(); // @@protoc_insertion_point(field_mutable:proto.ContextInfo.externalAdReply) - return _internal_mutable_externaladreply(); + return _msg; } inline void ContextInfo::set_allocated_externaladreply(::proto::ExternalAdReplyInfo* externaladreply) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete externaladreply_; } if (externaladreply) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(externaladreply); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ExternalAdReplyInfo>::GetOwningArena(externaladreply); if (message_arena != submessage_arena) { externaladreply = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, externaladreply, submessage_arena); @@ -26864,43 +26622,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void SenderKeyDistributionMessage::set_groupid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + groupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.SenderKeyDistributionMessage.groupId) } inline std::string* SenderKeyDistributionMessage::mutable_groupid() { + std::string* _s = _internal_mutable_groupid(); // @@protoc_insertion_point(field_mutable:proto.SenderKeyDistributionMessage.groupId) - return _internal_mutable_groupid(); + return _s; } 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) + groupid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* SenderKeyDistributionMessage::_internal_mutable_groupid() { _has_bits_[0] |= 0x00000001u; - return groupid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return groupid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* SenderKeyDistributionMessage::release_groupid() { // @@protoc_insertion_point(field_release:proto.SenderKeyDistributionMessage.groupId) @@ -26908,7 +26651,7 @@ inline std::string* SenderKeyDistributionMessage::release_groupid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return groupid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return groupid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void SenderKeyDistributionMessage::set_allocated_groupid(std::string* groupid) { if (groupid != nullptr) { @@ -26917,7 +26660,7 @@ inline void SenderKeyDistributionMessage::set_allocated_groupid(std::string* gro _has_bits_[0] &= ~0x00000001u; } groupid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), groupid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.SenderKeyDistributionMessage.groupId) } @@ -26937,43 +26680,28 @@ inline const std::string& SenderKeyDistributionMessage::axolotlsenderkeydistribu // @@protoc_insertion_point(field_get:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) return _internal_axolotlsenderkeydistributionmessage(); } -inline void SenderKeyDistributionMessage::set_axolotlsenderkeydistributionmessage(const std::string& value) { - _internal_set_axolotlsenderkeydistributionmessage(value); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void SenderKeyDistributionMessage::set_axolotlsenderkeydistributionmessage(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + axolotlsenderkeydistributionmessage_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) } inline std::string* SenderKeyDistributionMessage::mutable_axolotlsenderkeydistributionmessage() { + std::string* _s = _internal_mutable_axolotlsenderkeydistributionmessage(); // @@protoc_insertion_point(field_mutable:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) - return _internal_mutable_axolotlsenderkeydistributionmessage(); + return _s; } 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) + axolotlsenderkeydistributionmessage_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* SenderKeyDistributionMessage::_internal_mutable_axolotlsenderkeydistributionmessage() { _has_bits_[0] |= 0x00000002u; - return axolotlsenderkeydistributionmessage_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return axolotlsenderkeydistributionmessage_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* SenderKeyDistributionMessage::release_axolotlsenderkeydistributionmessage() { // @@protoc_insertion_point(field_release:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) @@ -26981,7 +26709,7 @@ inline std::string* SenderKeyDistributionMessage::release_axolotlsenderkeydistri return nullptr; } _has_bits_[0] &= ~0x00000002u; - return axolotlsenderkeydistributionmessage_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return axolotlsenderkeydistributionmessage_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void SenderKeyDistributionMessage::set_allocated_axolotlsenderkeydistributionmessage(std::string* axolotlsenderkeydistributionmessage) { if (axolotlsenderkeydistributionmessage != nullptr) { @@ -26990,7 +26718,7 @@ inline void SenderKeyDistributionMessage::set_allocated_axolotlsenderkeydistribu _has_bits_[0] &= ~0x00000002u; } axolotlsenderkeydistributionmessage_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), axolotlsenderkeydistributionmessage, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.SenderKeyDistributionMessage.axolotlSenderKeyDistributionMessage) } @@ -27014,43 +26742,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_url(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.url) } inline std::string* ImageMessage::mutable_url() { + std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.url) - return _internal_mutable_url(); + return _s; } 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) + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_url() { _has_bits_[0] |= 0x00000001u; - return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_url() { // @@protoc_insertion_point(field_release:proto.ImageMessage.url) @@ -27058,7 +26771,7 @@ inline std::string* ImageMessage::release_url() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_url(std::string* url) { if (url != nullptr) { @@ -27067,7 +26780,7 @@ inline void ImageMessage::set_allocated_url(std::string* url) { _has_bits_[0] &= ~0x00000001u; } url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.url) } @@ -27087,43 +26800,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_mimetype(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.mimetype) } inline std::string* ImageMessage::mutable_mimetype() { + std::string* _s = _internal_mutable_mimetype(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.mimetype) - return _internal_mutable_mimetype(); + return _s; } 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) + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_mimetype() { _has_bits_[0] |= 0x00000002u; - return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_mimetype() { // @@protoc_insertion_point(field_release:proto.ImageMessage.mimetype) @@ -27131,7 +26829,7 @@ inline std::string* ImageMessage::release_mimetype() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_mimetype(std::string* mimetype) { if (mimetype != nullptr) { @@ -27140,7 +26838,7 @@ inline void ImageMessage::set_allocated_mimetype(std::string* mimetype) { _has_bits_[0] &= ~0x00000002u; } mimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mimetype, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.mimetype) } @@ -27160,43 +26858,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_caption(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.caption) } inline std::string* ImageMessage::mutable_caption() { + std::string* _s = _internal_mutable_caption(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.caption) - return _internal_mutable_caption(); + return _s; } 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) + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_caption() { _has_bits_[0] |= 0x00000004u; - return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_caption() { // @@protoc_insertion_point(field_release:proto.ImageMessage.caption) @@ -27204,7 +26887,7 @@ inline std::string* ImageMessage::release_caption() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_caption(std::string* caption) { if (caption != nullptr) { @@ -27213,7 +26896,7 @@ inline void ImageMessage::set_allocated_caption(std::string* caption) { _has_bits_[0] &= ~0x00000004u; } caption_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), caption, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.caption) } @@ -27233,43 +26916,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_filesha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + filesha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.fileSha256) } inline std::string* ImageMessage::mutable_filesha256() { + std::string* _s = _internal_mutable_filesha256(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.fileSha256) - return _internal_mutable_filesha256(); + return _s; } 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) + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_filesha256() { _has_bits_[0] |= 0x00000008u; - return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_filesha256() { // @@protoc_insertion_point(field_release:proto.ImageMessage.fileSha256) @@ -27277,7 +26945,7 @@ inline std::string* ImageMessage::release_filesha256() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_filesha256(std::string* filesha256) { if (filesha256 != nullptr) { @@ -27286,7 +26954,7 @@ inline void ImageMessage::set_allocated_filesha256(std::string* filesha256) { _has_bits_[0] &= ~0x00000008u; } filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.fileSha256) } @@ -27299,7 +26967,7 @@ inline bool ImageMessage::has_filelength() const { return _internal_has_filelength(); } inline void ImageMessage::clear_filelength() { - filelength_ = PROTOBUF_ULONGLONG(0); + filelength_ = uint64_t{0u}; _has_bits_[0] &= ~0x00010000u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 ImageMessage::_internal_filelength() const { @@ -27390,43 +27058,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_mediakey(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + mediakey_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.mediaKey) } inline std::string* ImageMessage::mutable_mediakey() { + std::string* _s = _internal_mutable_mediakey(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.mediaKey) - return _internal_mutable_mediakey(); + return _s; } 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) + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_mediakey() { _has_bits_[0] |= 0x00000010u; - return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_mediakey() { // @@protoc_insertion_point(field_release:proto.ImageMessage.mediaKey) @@ -27434,7 +27087,7 @@ inline std::string* ImageMessage::release_mediakey() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_mediakey(std::string* mediakey) { if (mediakey != nullptr) { @@ -27443,7 +27096,7 @@ inline void ImageMessage::set_allocated_mediakey(std::string* mediakey) { _has_bits_[0] &= ~0x00000010u; } mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.mediaKey) } @@ -27463,43 +27116,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_fileencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + fileencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.fileEncSha256) } inline std::string* ImageMessage::mutable_fileencsha256() { + std::string* _s = _internal_mutable_fileencsha256(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.fileEncSha256) - return _internal_mutable_fileencsha256(); + return _s; } 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) + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_fileencsha256() { _has_bits_[0] |= 0x00000020u; - return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_fileencsha256() { // @@protoc_insertion_point(field_release:proto.ImageMessage.fileEncSha256) @@ -27507,7 +27145,7 @@ inline std::string* ImageMessage::release_fileencsha256() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_fileencsha256(std::string* fileencsha256) { if (fileencsha256 != nullptr) { @@ -27516,7 +27154,7 @@ inline void ImageMessage::set_allocated_fileencsha256(std::string* fileencsha256 _has_bits_[0] &= ~0x00000020u; } fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.fileEncSha256) } @@ -27550,8 +27188,9 @@ inline ::proto::InteractiveAnnotation* ImageMessage::_internal_add_interactivean return interactiveannotations_.Add(); } inline ::proto::InteractiveAnnotation* ImageMessage::add_interactiveannotations() { + ::proto::InteractiveAnnotation* _add = _internal_add_interactiveannotations(); // @@protoc_insertion_point(field_add:proto.ImageMessage.interactiveAnnotations) - return _internal_add_interactiveannotations(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation >& ImageMessage::interactiveannotations() const { @@ -27575,43 +27214,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_directpath(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000040u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.directPath) } inline std::string* ImageMessage::mutable_directpath() { + std::string* _s = _internal_mutable_directpath(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.directPath) - return _internal_mutable_directpath(); + return _s; } 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) + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_directpath() { _has_bits_[0] |= 0x00000040u; - return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_directpath() { // @@protoc_insertion_point(field_release:proto.ImageMessage.directPath) @@ -27619,7 +27243,7 @@ inline std::string* ImageMessage::release_directpath() { return nullptr; } _has_bits_[0] &= ~0x00000040u; - return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_directpath(std::string* directpath) { if (directpath != nullptr) { @@ -27628,7 +27252,7 @@ inline void ImageMessage::set_allocated_directpath(std::string* directpath) { _has_bits_[0] &= ~0x00000040u; } directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.directPath) } @@ -27641,7 +27265,7 @@ inline bool ImageMessage::has_mediakeytimestamp() const { return _internal_has_mediakeytimestamp(); } inline void ImageMessage::clear_mediakeytimestamp() { - mediakeytimestamp_ = PROTOBUF_LONGLONG(0); + mediakeytimestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00080000u; } inline ::PROTOBUF_NAMESPACE_ID::int64 ImageMessage::_internal_mediakeytimestamp() const { @@ -27676,43 +27300,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_jpegthumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000080u; + jpegthumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.jpegThumbnail) } inline std::string* ImageMessage::mutable_jpegthumbnail() { + std::string* _s = _internal_mutable_jpegthumbnail(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.jpegThumbnail) - return _internal_mutable_jpegthumbnail(); + return _s; } 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) + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_jpegthumbnail() { _has_bits_[0] |= 0x00000080u; - return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_jpegthumbnail() { // @@protoc_insertion_point(field_release:proto.ImageMessage.jpegThumbnail) @@ -27720,7 +27329,7 @@ inline std::string* ImageMessage::release_jpegthumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000080u; - return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { if (jpegthumbnail != nullptr) { @@ -27729,7 +27338,7 @@ inline void ImageMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail _has_bits_[0] &= ~0x00000080u; } jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.jpegThumbnail) } @@ -27757,7 +27366,7 @@ inline const ::proto::ContextInfo& ImageMessage::contextinfo() const { } inline void ImageMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -27772,9 +27381,15 @@ inline ::proto::ContextInfo* ImageMessage::release_contextinfo() { _has_bits_[0] &= ~0x00008000u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* ImageMessage::unsafe_arena_release_contextinfo() { @@ -27787,23 +27402,24 @@ inline ::proto::ContextInfo* ImageMessage::unsafe_arena_release_contextinfo() { inline ::proto::ContextInfo* ImageMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00008000u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* ImageMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void ImageMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -27832,43 +27448,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_firstscansidecar(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000100u; + firstscansidecar_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.firstScanSidecar) } inline std::string* ImageMessage::mutable_firstscansidecar() { + std::string* _s = _internal_mutable_firstscansidecar(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.firstScanSidecar) - return _internal_mutable_firstscansidecar(); + return _s; } 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) + firstscansidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_firstscansidecar() { _has_bits_[0] |= 0x00000100u; - return firstscansidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return firstscansidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_firstscansidecar() { // @@protoc_insertion_point(field_release:proto.ImageMessage.firstScanSidecar) @@ -27876,7 +27477,7 @@ inline std::string* ImageMessage::release_firstscansidecar() { return nullptr; } _has_bits_[0] &= ~0x00000100u; - return firstscansidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return firstscansidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_firstscansidecar(std::string* firstscansidecar) { if (firstscansidecar != nullptr) { @@ -27885,7 +27486,7 @@ inline void ImageMessage::set_allocated_firstscansidecar(std::string* firstscans _has_bits_[0] &= ~0x00000100u; } firstscansidecar_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), firstscansidecar, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.firstScanSidecar) } @@ -27961,43 +27562,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_scanssidecar(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000200u; + scanssidecar_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.scansSidecar) } inline std::string* ImageMessage::mutable_scanssidecar() { + std::string* _s = _internal_mutable_scanssidecar(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.scansSidecar) - return _internal_mutable_scanssidecar(); + return _s; } 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) + scanssidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_scanssidecar() { _has_bits_[0] |= 0x00000200u; - return scanssidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return scanssidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_scanssidecar() { // @@protoc_insertion_point(field_release:proto.ImageMessage.scansSidecar) @@ -28005,7 +27591,7 @@ inline std::string* ImageMessage::release_scanssidecar() { return nullptr; } _has_bits_[0] &= ~0x00000200u; - return scanssidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return scanssidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_scanssidecar(std::string* scanssidecar) { if (scanssidecar != nullptr) { @@ -28014,7 +27600,7 @@ inline void ImageMessage::set_allocated_scanssidecar(std::string* scanssidecar) _has_bits_[0] &= ~0x00000200u; } scanssidecar_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), scanssidecar, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.scansSidecar) } @@ -28081,43 +27667,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_midqualityfilesha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000400u; + midqualityfilesha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.midQualityFileSha256) } inline std::string* ImageMessage::mutable_midqualityfilesha256() { + std::string* _s = _internal_mutable_midqualityfilesha256(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.midQualityFileSha256) - return _internal_mutable_midqualityfilesha256(); + return _s; } 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) + midqualityfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_midqualityfilesha256() { _has_bits_[0] |= 0x00000400u; - return midqualityfilesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return midqualityfilesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_midqualityfilesha256() { // @@protoc_insertion_point(field_release:proto.ImageMessage.midQualityFileSha256) @@ -28125,7 +27696,7 @@ inline std::string* ImageMessage::release_midqualityfilesha256() { return nullptr; } _has_bits_[0] &= ~0x00000400u; - return midqualityfilesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return midqualityfilesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_midqualityfilesha256(std::string* midqualityfilesha256) { if (midqualityfilesha256 != nullptr) { @@ -28134,7 +27705,7 @@ inline void ImageMessage::set_allocated_midqualityfilesha256(std::string* midqua _has_bits_[0] &= ~0x00000400u; } midqualityfilesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), midqualityfilesha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.midQualityFileSha256) } @@ -28154,43 +27725,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_midqualityfileencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000800u; + midqualityfileencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.midQualityFileEncSha256) } inline std::string* ImageMessage::mutable_midqualityfileencsha256() { + std::string* _s = _internal_mutable_midqualityfileencsha256(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.midQualityFileEncSha256) - return _internal_mutable_midqualityfileencsha256(); + return _s; } 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) + midqualityfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_midqualityfileencsha256() { _has_bits_[0] |= 0x00000800u; - return midqualityfileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return midqualityfileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_midqualityfileencsha256() { // @@protoc_insertion_point(field_release:proto.ImageMessage.midQualityFileEncSha256) @@ -28198,7 +27754,7 @@ inline std::string* ImageMessage::release_midqualityfileencsha256() { return nullptr; } _has_bits_[0] &= ~0x00000800u; - return midqualityfileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return midqualityfileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_midqualityfileencsha256(std::string* midqualityfileencsha256) { if (midqualityfileencsha256 != nullptr) { @@ -28207,7 +27763,7 @@ inline void ImageMessage::set_allocated_midqualityfileencsha256(std::string* mid _has_bits_[0] &= ~0x00000800u; } midqualityfileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), midqualityfileencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.midQualityFileEncSha256) } @@ -28255,43 +27811,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_thumbnaildirectpath(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00001000u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.thumbnailDirectPath) } inline std::string* ImageMessage::mutable_thumbnaildirectpath() { + std::string* _s = _internal_mutable_thumbnaildirectpath(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.thumbnailDirectPath) - return _internal_mutable_thumbnaildirectpath(); + return _s; } 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) + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_thumbnaildirectpath() { _has_bits_[0] |= 0x00001000u; - return thumbnaildirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnaildirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_thumbnaildirectpath() { // @@protoc_insertion_point(field_release:proto.ImageMessage.thumbnailDirectPath) @@ -28299,7 +27840,7 @@ inline std::string* ImageMessage::release_thumbnaildirectpath() { return nullptr; } _has_bits_[0] &= ~0x00001000u; - return thumbnaildirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnaildirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_thumbnaildirectpath(std::string* thumbnaildirectpath) { if (thumbnaildirectpath != nullptr) { @@ -28308,7 +27849,7 @@ inline void ImageMessage::set_allocated_thumbnaildirectpath(std::string* thumbna _has_bits_[0] &= ~0x00001000u; } thumbnaildirectpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnaildirectpath, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.thumbnailDirectPath) } @@ -28328,43 +27869,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_thumbnailsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00002000u; + thumbnailsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.thumbnailSha256) } inline std::string* ImageMessage::mutable_thumbnailsha256() { + std::string* _s = _internal_mutable_thumbnailsha256(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.thumbnailSha256) - return _internal_mutable_thumbnailsha256(); + return _s; } 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) + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_thumbnailsha256() { _has_bits_[0] |= 0x00002000u; - return thumbnailsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnailsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_thumbnailsha256() { // @@protoc_insertion_point(field_release:proto.ImageMessage.thumbnailSha256) @@ -28372,7 +27898,7 @@ inline std::string* ImageMessage::release_thumbnailsha256() { return nullptr; } _has_bits_[0] &= ~0x00002000u; - return thumbnailsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnailsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_thumbnailsha256(std::string* thumbnailsha256) { if (thumbnailsha256 != nullptr) { @@ -28381,7 +27907,7 @@ inline void ImageMessage::set_allocated_thumbnailsha256(std::string* thumbnailsh _has_bits_[0] &= ~0x00002000u; } thumbnailsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.thumbnailSha256) } @@ -28401,43 +27927,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ImageMessage::set_thumbnailencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00004000u; + thumbnailencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ImageMessage.thumbnailEncSha256) } inline std::string* ImageMessage::mutable_thumbnailencsha256() { + std::string* _s = _internal_mutable_thumbnailencsha256(); // @@protoc_insertion_point(field_mutable:proto.ImageMessage.thumbnailEncSha256) - return _internal_mutable_thumbnailencsha256(); + return _s; } 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) + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ImageMessage::_internal_mutable_thumbnailencsha256() { _has_bits_[0] |= 0x00004000u; - return thumbnailencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnailencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ImageMessage::release_thumbnailencsha256() { // @@protoc_insertion_point(field_release:proto.ImageMessage.thumbnailEncSha256) @@ -28445,7 +27956,7 @@ inline std::string* ImageMessage::release_thumbnailencsha256() { return nullptr; } _has_bits_[0] &= ~0x00004000u; - return thumbnailencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnailencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ImageMessage::set_allocated_thumbnailencsha256(std::string* thumbnailencsha256) { if (thumbnailencsha256 != nullptr) { @@ -28454,7 +27965,7 @@ inline void ImageMessage::set_allocated_thumbnailencsha256(std::string* thumbnai _has_bits_[0] &= ~0x00004000u; } thumbnailencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ImageMessage.thumbnailEncSha256) } @@ -28478,43 +27989,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void InvoiceMessage::set_note(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + note_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.InvoiceMessage.note) } inline std::string* InvoiceMessage::mutable_note() { + std::string* _s = _internal_mutable_note(); // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.note) - return _internal_mutable_note(); + return _s; } 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) + note_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* InvoiceMessage::_internal_mutable_note() { _has_bits_[0] |= 0x00000001u; - return note_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return note_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* InvoiceMessage::release_note() { // @@protoc_insertion_point(field_release:proto.InvoiceMessage.note) @@ -28522,7 +28018,7 @@ inline std::string* InvoiceMessage::release_note() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return note_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return note_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void InvoiceMessage::set_allocated_note(std::string* note) { if (note != nullptr) { @@ -28531,7 +28027,7 @@ inline void InvoiceMessage::set_allocated_note(std::string* note) { _has_bits_[0] &= ~0x00000001u; } note_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), note, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.note) } @@ -28551,43 +28047,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void InvoiceMessage::set_token(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.InvoiceMessage.token) } inline std::string* InvoiceMessage::mutable_token() { + std::string* _s = _internal_mutable_token(); // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.token) - return _internal_mutable_token(); + return _s; } 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) + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* InvoiceMessage::_internal_mutable_token() { _has_bits_[0] |= 0x00000002u; - return token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* InvoiceMessage::release_token() { // @@protoc_insertion_point(field_release:proto.InvoiceMessage.token) @@ -28595,7 +28076,7 @@ inline std::string* InvoiceMessage::release_token() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void InvoiceMessage::set_allocated_token(std::string* token) { if (token != nullptr) { @@ -28604,7 +28085,7 @@ inline void InvoiceMessage::set_allocated_token(std::string* token) { _has_bits_[0] &= ~0x00000002u; } token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), token, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.token) } @@ -28653,43 +28134,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void InvoiceMessage::set_attachmentmimetype(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + attachmentmimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentMimetype) } inline std::string* InvoiceMessage::mutable_attachmentmimetype() { + std::string* _s = _internal_mutable_attachmentmimetype(); // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentMimetype) - return _internal_mutable_attachmentmimetype(); + return _s; } 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) + attachmentmimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* InvoiceMessage::_internal_mutable_attachmentmimetype() { _has_bits_[0] |= 0x00000004u; - return attachmentmimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return attachmentmimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* InvoiceMessage::release_attachmentmimetype() { // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentMimetype) @@ -28697,7 +28163,7 @@ inline std::string* InvoiceMessage::release_attachmentmimetype() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return attachmentmimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return attachmentmimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void InvoiceMessage::set_allocated_attachmentmimetype(std::string* attachmentmimetype) { if (attachmentmimetype != nullptr) { @@ -28706,7 +28172,7 @@ inline void InvoiceMessage::set_allocated_attachmentmimetype(std::string* attach _has_bits_[0] &= ~0x00000004u; } attachmentmimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentmimetype, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentMimetype) } @@ -28726,43 +28192,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void InvoiceMessage::set_attachmentmediakey(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + attachmentmediakey_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentMediaKey) } inline std::string* InvoiceMessage::mutable_attachmentmediakey() { + std::string* _s = _internal_mutable_attachmentmediakey(); // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentMediaKey) - return _internal_mutable_attachmentmediakey(); + return _s; } 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) + attachmentmediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* InvoiceMessage::_internal_mutable_attachmentmediakey() { _has_bits_[0] |= 0x00000008u; - return attachmentmediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return attachmentmediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* InvoiceMessage::release_attachmentmediakey() { // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentMediaKey) @@ -28770,7 +28221,7 @@ inline std::string* InvoiceMessage::release_attachmentmediakey() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return attachmentmediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return attachmentmediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void InvoiceMessage::set_allocated_attachmentmediakey(std::string* attachmentmediakey) { if (attachmentmediakey != nullptr) { @@ -28779,7 +28230,7 @@ inline void InvoiceMessage::set_allocated_attachmentmediakey(std::string* attach _has_bits_[0] &= ~0x00000008u; } attachmentmediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentmediakey, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentMediaKey) } @@ -28792,7 +28243,7 @@ inline bool InvoiceMessage::has_attachmentmediakeytimestamp() const { return _internal_has_attachmentmediakeytimestamp(); } inline void InvoiceMessage::clear_attachmentmediakeytimestamp() { - attachmentmediakeytimestamp_ = PROTOBUF_LONGLONG(0); + attachmentmediakeytimestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00000100u; } inline ::PROTOBUF_NAMESPACE_ID::int64 InvoiceMessage::_internal_attachmentmediakeytimestamp() const { @@ -28827,43 +28278,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void InvoiceMessage::set_attachmentfilesha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + attachmentfilesha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentFileSha256) } inline std::string* InvoiceMessage::mutable_attachmentfilesha256() { + std::string* _s = _internal_mutable_attachmentfilesha256(); // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentFileSha256) - return _internal_mutable_attachmentfilesha256(); + return _s; } 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) + attachmentfilesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* InvoiceMessage::_internal_mutable_attachmentfilesha256() { _has_bits_[0] |= 0x00000010u; - return attachmentfilesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return attachmentfilesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* InvoiceMessage::release_attachmentfilesha256() { // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentFileSha256) @@ -28871,7 +28307,7 @@ inline std::string* InvoiceMessage::release_attachmentfilesha256() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return attachmentfilesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return attachmentfilesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void InvoiceMessage::set_allocated_attachmentfilesha256(std::string* attachmentfilesha256) { if (attachmentfilesha256 != nullptr) { @@ -28880,7 +28316,7 @@ inline void InvoiceMessage::set_allocated_attachmentfilesha256(std::string* atta _has_bits_[0] &= ~0x00000010u; } attachmentfilesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentfilesha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentFileSha256) } @@ -28900,43 +28336,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void InvoiceMessage::set_attachmentfileencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + attachmentfileencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentFileEncSha256) } inline std::string* InvoiceMessage::mutable_attachmentfileencsha256() { + std::string* _s = _internal_mutable_attachmentfileencsha256(); // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentFileEncSha256) - return _internal_mutable_attachmentfileencsha256(); + return _s; } 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) + attachmentfileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* InvoiceMessage::_internal_mutable_attachmentfileencsha256() { _has_bits_[0] |= 0x00000020u; - return attachmentfileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return attachmentfileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* InvoiceMessage::release_attachmentfileencsha256() { // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentFileEncSha256) @@ -28944,7 +28365,7 @@ inline std::string* InvoiceMessage::release_attachmentfileencsha256() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return attachmentfileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return attachmentfileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void InvoiceMessage::set_allocated_attachmentfileencsha256(std::string* attachmentfileencsha256) { if (attachmentfileencsha256 != nullptr) { @@ -28953,7 +28374,7 @@ inline void InvoiceMessage::set_allocated_attachmentfileencsha256(std::string* a _has_bits_[0] &= ~0x00000020u; } attachmentfileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentfileencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentFileEncSha256) } @@ -28973,43 +28394,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void InvoiceMessage::set_attachmentdirectpath(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000040u; + attachmentdirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentDirectPath) } inline std::string* InvoiceMessage::mutable_attachmentdirectpath() { + std::string* _s = _internal_mutable_attachmentdirectpath(); // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentDirectPath) - return _internal_mutable_attachmentdirectpath(); + return _s; } 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) + attachmentdirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* InvoiceMessage::_internal_mutable_attachmentdirectpath() { _has_bits_[0] |= 0x00000040u; - return attachmentdirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return attachmentdirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* InvoiceMessage::release_attachmentdirectpath() { // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentDirectPath) @@ -29017,7 +28423,7 @@ inline std::string* InvoiceMessage::release_attachmentdirectpath() { return nullptr; } _has_bits_[0] &= ~0x00000040u; - return attachmentdirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return attachmentdirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void InvoiceMessage::set_allocated_attachmentdirectpath(std::string* attachmentdirectpath) { if (attachmentdirectpath != nullptr) { @@ -29026,7 +28432,7 @@ inline void InvoiceMessage::set_allocated_attachmentdirectpath(std::string* atta _has_bits_[0] &= ~0x00000040u; } attachmentdirectpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentdirectpath, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentDirectPath) } @@ -29046,43 +28452,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void InvoiceMessage::set_attachmentjpegthumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000080u; + attachmentjpegthumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.InvoiceMessage.attachmentJpegThumbnail) } inline std::string* InvoiceMessage::mutable_attachmentjpegthumbnail() { + std::string* _s = _internal_mutable_attachmentjpegthumbnail(); // @@protoc_insertion_point(field_mutable:proto.InvoiceMessage.attachmentJpegThumbnail) - return _internal_mutable_attachmentjpegthumbnail(); + return _s; } 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) + attachmentjpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* InvoiceMessage::_internal_mutable_attachmentjpegthumbnail() { _has_bits_[0] |= 0x00000080u; - return attachmentjpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return attachmentjpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* InvoiceMessage::release_attachmentjpegthumbnail() { // @@protoc_insertion_point(field_release:proto.InvoiceMessage.attachmentJpegThumbnail) @@ -29090,7 +28481,7 @@ inline std::string* InvoiceMessage::release_attachmentjpegthumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000080u; - return attachmentjpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return attachmentjpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void InvoiceMessage::set_allocated_attachmentjpegthumbnail(std::string* attachmentjpegthumbnail) { if (attachmentjpegthumbnail != nullptr) { @@ -29099,7 +28490,7 @@ inline void InvoiceMessage::set_allocated_attachmentjpegthumbnail(std::string* a _has_bits_[0] &= ~0x00000080u; } attachmentjpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), attachmentjpegthumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.InvoiceMessage.attachmentJpegThumbnail) } @@ -29123,43 +28514,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ContactMessage::set_displayname(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ContactMessage.displayName) } inline std::string* ContactMessage::mutable_displayname() { + std::string* _s = _internal_mutable_displayname(); // @@protoc_insertion_point(field_mutable:proto.ContactMessage.displayName) - return _internal_mutable_displayname(); + return _s; } 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) + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ContactMessage::_internal_mutable_displayname() { _has_bits_[0] |= 0x00000001u; - return displayname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return displayname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ContactMessage::release_displayname() { // @@protoc_insertion_point(field_release:proto.ContactMessage.displayName) @@ -29167,7 +28543,7 @@ inline std::string* ContactMessage::release_displayname() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return displayname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return displayname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ContactMessage::set_allocated_displayname(std::string* displayname) { if (displayname != nullptr) { @@ -29176,7 +28552,7 @@ inline void ContactMessage::set_allocated_displayname(std::string* displayname) _has_bits_[0] &= ~0x00000001u; } displayname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displayname, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ContactMessage.displayName) } @@ -29196,43 +28572,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ContactMessage::set_vcard(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + vcard_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ContactMessage.vcard) } inline std::string* ContactMessage::mutable_vcard() { + std::string* _s = _internal_mutable_vcard(); // @@protoc_insertion_point(field_mutable:proto.ContactMessage.vcard) - return _internal_mutable_vcard(); + return _s; } 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) + vcard_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ContactMessage::_internal_mutable_vcard() { _has_bits_[0] |= 0x00000002u; - return vcard_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return vcard_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ContactMessage::release_vcard() { // @@protoc_insertion_point(field_release:proto.ContactMessage.vcard) @@ -29240,7 +28601,7 @@ inline std::string* ContactMessage::release_vcard() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return vcard_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return vcard_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ContactMessage::set_allocated_vcard(std::string* vcard) { if (vcard != nullptr) { @@ -29249,7 +28610,7 @@ inline void ContactMessage::set_allocated_vcard(std::string* vcard) { _has_bits_[0] &= ~0x00000002u; } vcard_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vcard, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ContactMessage.vcard) } @@ -29277,7 +28638,7 @@ inline const ::proto::ContextInfo& ContactMessage::contextinfo() const { } inline void ContactMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -29292,9 +28653,15 @@ inline ::proto::ContextInfo* ContactMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000004u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* ContactMessage::unsafe_arena_release_contextinfo() { @@ -29307,23 +28674,24 @@ inline ::proto::ContextInfo* ContactMessage::unsafe_arena_release_contextinfo() inline ::proto::ContextInfo* ContactMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000004u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* ContactMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.ContactMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void ContactMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -29412,43 +28780,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void LocationMessage::set_name(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.LocationMessage.name) } inline std::string* LocationMessage::mutable_name() { + std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:proto.LocationMessage.name) - return _internal_mutable_name(); + return _s; } 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) + name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* LocationMessage::_internal_mutable_name() { _has_bits_[0] |= 0x00000001u; - return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* LocationMessage::release_name() { // @@protoc_insertion_point(field_release:proto.LocationMessage.name) @@ -29456,7 +28809,7 @@ inline std::string* LocationMessage::release_name() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void LocationMessage::set_allocated_name(std::string* name) { if (name != nullptr) { @@ -29465,7 +28818,7 @@ inline void LocationMessage::set_allocated_name(std::string* name) { _has_bits_[0] &= ~0x00000001u; } name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.name) } @@ -29485,43 +28838,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void LocationMessage::set_address(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.LocationMessage.address) } inline std::string* LocationMessage::mutable_address() { + std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:proto.LocationMessage.address) - return _internal_mutable_address(); + return _s; } 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) + address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* LocationMessage::_internal_mutable_address() { _has_bits_[0] |= 0x00000002u; - return address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* LocationMessage::release_address() { // @@protoc_insertion_point(field_release:proto.LocationMessage.address) @@ -29529,7 +28867,7 @@ inline std::string* LocationMessage::release_address() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void LocationMessage::set_allocated_address(std::string* address) { if (address != nullptr) { @@ -29538,7 +28876,7 @@ inline void LocationMessage::set_allocated_address(std::string* address) { _has_bits_[0] &= ~0x00000002u; } address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), address, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.address) } @@ -29558,43 +28896,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void LocationMessage::set_url(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.LocationMessage.url) } inline std::string* LocationMessage::mutable_url() { + std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:proto.LocationMessage.url) - return _internal_mutable_url(); + return _s; } 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) + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* LocationMessage::_internal_mutable_url() { _has_bits_[0] |= 0x00000004u; - return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* LocationMessage::release_url() { // @@protoc_insertion_point(field_release:proto.LocationMessage.url) @@ -29602,7 +28925,7 @@ inline std::string* LocationMessage::release_url() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void LocationMessage::set_allocated_url(std::string* url) { if (url != nullptr) { @@ -29611,7 +28934,7 @@ inline void LocationMessage::set_allocated_url(std::string* url) { _has_bits_[0] &= ~0x00000004u; } url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.url) } @@ -29743,43 +29066,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void LocationMessage::set_comment(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.LocationMessage.comment) } inline std::string* LocationMessage::mutable_comment() { + std::string* _s = _internal_mutable_comment(); // @@protoc_insertion_point(field_mutable:proto.LocationMessage.comment) - return _internal_mutable_comment(); + return _s; } 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) + comment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* LocationMessage::_internal_mutable_comment() { _has_bits_[0] |= 0x00000008u; - return comment_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return comment_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* LocationMessage::release_comment() { // @@protoc_insertion_point(field_release:proto.LocationMessage.comment) @@ -29787,7 +29095,7 @@ inline std::string* LocationMessage::release_comment() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return comment_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return comment_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void LocationMessage::set_allocated_comment(std::string* comment) { if (comment != nullptr) { @@ -29796,7 +29104,7 @@ inline void LocationMessage::set_allocated_comment(std::string* comment) { _has_bits_[0] &= ~0x00000008u; } comment_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), comment, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.comment) } @@ -29816,43 +29124,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void LocationMessage::set_jpegthumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + jpegthumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.LocationMessage.jpegThumbnail) } inline std::string* LocationMessage::mutable_jpegthumbnail() { + std::string* _s = _internal_mutable_jpegthumbnail(); // @@protoc_insertion_point(field_mutable:proto.LocationMessage.jpegThumbnail) - return _internal_mutable_jpegthumbnail(); + return _s; } 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) + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* LocationMessage::_internal_mutable_jpegthumbnail() { _has_bits_[0] |= 0x00000010u; - return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* LocationMessage::release_jpegthumbnail() { // @@protoc_insertion_point(field_release:proto.LocationMessage.jpegThumbnail) @@ -29860,7 +29153,7 @@ inline std::string* LocationMessage::release_jpegthumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void LocationMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { if (jpegthumbnail != nullptr) { @@ -29869,7 +29162,7 @@ inline void LocationMessage::set_allocated_jpegthumbnail(std::string* jpegthumbn _has_bits_[0] &= ~0x00000010u; } jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.LocationMessage.jpegThumbnail) } @@ -29897,7 +29190,7 @@ inline const ::proto::ContextInfo& LocationMessage::contextinfo() const { } inline void LocationMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -29912,9 +29205,15 @@ inline ::proto::ContextInfo* LocationMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000020u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* LocationMessage::unsafe_arena_release_contextinfo() { @@ -29927,23 +29226,24 @@ inline ::proto::ContextInfo* LocationMessage::unsafe_arena_release_contextinfo() inline ::proto::ContextInfo* LocationMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000020u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* LocationMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.LocationMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void LocationMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -29976,43 +29276,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExtendedTextMessage::set_text(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.text) } inline std::string* ExtendedTextMessage::mutable_text() { + std::string* _s = _internal_mutable_text(); // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.text) - return _internal_mutable_text(); + return _s; } 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) + text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::_internal_mutable_text() { _has_bits_[0] |= 0x00000001u; - return text_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return text_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::release_text() { // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.text) @@ -30020,7 +29305,7 @@ inline std::string* ExtendedTextMessage::release_text() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return text_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return text_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExtendedTextMessage::set_allocated_text(std::string* text) { if (text != nullptr) { @@ -30029,7 +29314,7 @@ inline void ExtendedTextMessage::set_allocated_text(std::string* text) { _has_bits_[0] &= ~0x00000001u; } text_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), text, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.text) } @@ -30049,43 +29334,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExtendedTextMessage::set_matchedtext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + matchedtext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.matchedText) } inline std::string* ExtendedTextMessage::mutable_matchedtext() { + std::string* _s = _internal_mutable_matchedtext(); // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.matchedText) - return _internal_mutable_matchedtext(); + return _s; } 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) + matchedtext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::_internal_mutable_matchedtext() { _has_bits_[0] |= 0x00000002u; - return matchedtext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return matchedtext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::release_matchedtext() { // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.matchedText) @@ -30093,7 +29363,7 @@ inline std::string* ExtendedTextMessage::release_matchedtext() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return matchedtext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return matchedtext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExtendedTextMessage::set_allocated_matchedtext(std::string* matchedtext) { if (matchedtext != nullptr) { @@ -30102,7 +29372,7 @@ inline void ExtendedTextMessage::set_allocated_matchedtext(std::string* matchedt _has_bits_[0] &= ~0x00000002u; } matchedtext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), matchedtext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.matchedText) } @@ -30122,43 +29392,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExtendedTextMessage::set_canonicalurl(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + canonicalurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.canonicalUrl) } inline std::string* ExtendedTextMessage::mutable_canonicalurl() { + std::string* _s = _internal_mutable_canonicalurl(); // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.canonicalUrl) - return _internal_mutable_canonicalurl(); + return _s; } 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) + canonicalurl_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::_internal_mutable_canonicalurl() { _has_bits_[0] |= 0x00000004u; - return canonicalurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return canonicalurl_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::release_canonicalurl() { // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.canonicalUrl) @@ -30166,7 +29421,7 @@ inline std::string* ExtendedTextMessage::release_canonicalurl() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return canonicalurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return canonicalurl_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExtendedTextMessage::set_allocated_canonicalurl(std::string* canonicalurl) { if (canonicalurl != nullptr) { @@ -30175,7 +29430,7 @@ inline void ExtendedTextMessage::set_allocated_canonicalurl(std::string* canonic _has_bits_[0] &= ~0x00000004u; } canonicalurl_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), canonicalurl, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.canonicalUrl) } @@ -30195,43 +29450,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExtendedTextMessage::set_description(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.description) } inline std::string* ExtendedTextMessage::mutable_description() { + std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.description) - return _internal_mutable_description(); + return _s; } 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) + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::_internal_mutable_description() { _has_bits_[0] |= 0x00000008u; - return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::release_description() { // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.description) @@ -30239,7 +29479,7 @@ inline std::string* ExtendedTextMessage::release_description() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExtendedTextMessage::set_allocated_description(std::string* description) { if (description != nullptr) { @@ -30248,7 +29488,7 @@ inline void ExtendedTextMessage::set_allocated_description(std::string* descript _has_bits_[0] &= ~0x00000008u; } description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.description) } @@ -30268,43 +29508,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExtendedTextMessage::set_title(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.title) } inline std::string* ExtendedTextMessage::mutable_title() { + std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.title) - return _internal_mutable_title(); + return _s; } 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) + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::_internal_mutable_title() { _has_bits_[0] |= 0x00000010u; - return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::release_title() { // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.title) @@ -30312,7 +29537,7 @@ inline std::string* ExtendedTextMessage::release_title() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExtendedTextMessage::set_allocated_title(std::string* title) { if (title != nullptr) { @@ -30321,7 +29546,7 @@ inline void ExtendedTextMessage::set_allocated_title(std::string* title) { _has_bits_[0] &= ~0x00000010u; } title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.title) } @@ -30455,43 +29680,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ExtendedTextMessage::set_jpegthumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + jpegthumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ExtendedTextMessage.jpegThumbnail) } inline std::string* ExtendedTextMessage::mutable_jpegthumbnail() { + std::string* _s = _internal_mutable_jpegthumbnail(); // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.jpegThumbnail) - return _internal_mutable_jpegthumbnail(); + return _s; } 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) + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::_internal_mutable_jpegthumbnail() { _has_bits_[0] |= 0x00000020u; - return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ExtendedTextMessage::release_jpegthumbnail() { // @@protoc_insertion_point(field_release:proto.ExtendedTextMessage.jpegThumbnail) @@ -30499,7 +29709,7 @@ inline std::string* ExtendedTextMessage::release_jpegthumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ExtendedTextMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { if (jpegthumbnail != nullptr) { @@ -30508,7 +29718,7 @@ inline void ExtendedTextMessage::set_allocated_jpegthumbnail(std::string* jpegth _has_bits_[0] &= ~0x00000020u; } jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ExtendedTextMessage.jpegThumbnail) } @@ -30536,7 +29746,7 @@ inline const ::proto::ContextInfo& ExtendedTextMessage::contextinfo() const { } inline void ExtendedTextMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -30551,9 +29761,15 @@ inline ::proto::ContextInfo* ExtendedTextMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000040u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* ExtendedTextMessage::unsafe_arena_release_contextinfo() { @@ -30566,23 +29782,24 @@ inline ::proto::ContextInfo* ExtendedTextMessage::unsafe_arena_release_contextin inline ::proto::ContextInfo* ExtendedTextMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000040u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* ExtendedTextMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.ExtendedTextMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void ExtendedTextMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -30643,43 +29860,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_url(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.url) } inline std::string* DocumentMessage::mutable_url() { + std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.url) - return _internal_mutable_url(); + return _s; } 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) + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_url() { _has_bits_[0] |= 0x00000001u; - return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_url() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.url) @@ -30687,7 +29889,7 @@ inline std::string* DocumentMessage::release_url() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_url(std::string* url) { if (url != nullptr) { @@ -30696,7 +29898,7 @@ inline void DocumentMessage::set_allocated_url(std::string* url) { _has_bits_[0] &= ~0x00000001u; } url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.url) } @@ -30716,43 +29918,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_mimetype(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.mimetype) } inline std::string* DocumentMessage::mutable_mimetype() { + std::string* _s = _internal_mutable_mimetype(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.mimetype) - return _internal_mutable_mimetype(); + return _s; } 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) + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_mimetype() { _has_bits_[0] |= 0x00000002u; - return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_mimetype() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.mimetype) @@ -30760,7 +29947,7 @@ inline std::string* DocumentMessage::release_mimetype() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_mimetype(std::string* mimetype) { if (mimetype != nullptr) { @@ -30769,7 +29956,7 @@ inline void DocumentMessage::set_allocated_mimetype(std::string* mimetype) { _has_bits_[0] &= ~0x00000002u; } mimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mimetype, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.mimetype) } @@ -30789,43 +29976,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_title(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.title) } inline std::string* DocumentMessage::mutable_title() { + std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.title) - return _internal_mutable_title(); + return _s; } 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) + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_title() { _has_bits_[0] |= 0x00000004u; - return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_title() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.title) @@ -30833,7 +30005,7 @@ inline std::string* DocumentMessage::release_title() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_title(std::string* title) { if (title != nullptr) { @@ -30842,7 +30014,7 @@ inline void DocumentMessage::set_allocated_title(std::string* title) { _has_bits_[0] &= ~0x00000004u; } title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.title) } @@ -30862,43 +30034,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_filesha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + filesha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.fileSha256) } inline std::string* DocumentMessage::mutable_filesha256() { + std::string* _s = _internal_mutable_filesha256(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.fileSha256) - return _internal_mutable_filesha256(); + return _s; } 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) + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_filesha256() { _has_bits_[0] |= 0x00000008u; - return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_filesha256() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.fileSha256) @@ -30906,7 +30063,7 @@ inline std::string* DocumentMessage::release_filesha256() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_filesha256(std::string* filesha256) { if (filesha256 != nullptr) { @@ -30915,7 +30072,7 @@ inline void DocumentMessage::set_allocated_filesha256(std::string* filesha256) { _has_bits_[0] &= ~0x00000008u; } filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.fileSha256) } @@ -30928,7 +30085,7 @@ inline bool DocumentMessage::has_filelength() const { return _internal_has_filelength(); } inline void DocumentMessage::clear_filelength() { - filelength_ = PROTOBUF_ULONGLONG(0); + filelength_ = uint64_t{0u}; _has_bits_[0] &= ~0x00002000u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 DocumentMessage::_internal_filelength() const { @@ -30991,43 +30148,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_mediakey(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + mediakey_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.mediaKey) } inline std::string* DocumentMessage::mutable_mediakey() { + std::string* _s = _internal_mutable_mediakey(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.mediaKey) - return _internal_mutable_mediakey(); + return _s; } 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) + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_mediakey() { _has_bits_[0] |= 0x00000010u; - return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_mediakey() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.mediaKey) @@ -31035,7 +30177,7 @@ inline std::string* DocumentMessage::release_mediakey() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_mediakey(std::string* mediakey) { if (mediakey != nullptr) { @@ -31044,7 +30186,7 @@ inline void DocumentMessage::set_allocated_mediakey(std::string* mediakey) { _has_bits_[0] &= ~0x00000010u; } mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.mediaKey) } @@ -31064,43 +30206,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_filename(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.fileName) } inline std::string* DocumentMessage::mutable_filename() { + std::string* _s = _internal_mutable_filename(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.fileName) - return _internal_mutable_filename(); + return _s; } 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) + filename_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_filename() { _has_bits_[0] |= 0x00000020u; - return filename_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return filename_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_filename() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.fileName) @@ -31108,7 +30235,7 @@ inline std::string* DocumentMessage::release_filename() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return filename_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return filename_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_filename(std::string* filename) { if (filename != nullptr) { @@ -31117,7 +30244,7 @@ inline void DocumentMessage::set_allocated_filename(std::string* filename) { _has_bits_[0] &= ~0x00000020u; } filename_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filename, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.fileName) } @@ -31137,43 +30264,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_fileencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000040u; + fileencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.fileEncSha256) } inline std::string* DocumentMessage::mutable_fileencsha256() { + std::string* _s = _internal_mutable_fileencsha256(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.fileEncSha256) - return _internal_mutable_fileencsha256(); + return _s; } 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) + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_fileencsha256() { _has_bits_[0] |= 0x00000040u; - return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_fileencsha256() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.fileEncSha256) @@ -31181,7 +30293,7 @@ inline std::string* DocumentMessage::release_fileencsha256() { return nullptr; } _has_bits_[0] &= ~0x00000040u; - return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_fileencsha256(std::string* fileencsha256) { if (fileencsha256 != nullptr) { @@ -31190,7 +30302,7 @@ inline void DocumentMessage::set_allocated_fileencsha256(std::string* fileencsha _has_bits_[0] &= ~0x00000040u; } fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.fileEncSha256) } @@ -31210,43 +30322,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_directpath(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000080u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.directPath) } inline std::string* DocumentMessage::mutable_directpath() { + std::string* _s = _internal_mutable_directpath(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.directPath) - return _internal_mutable_directpath(); + return _s; } 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) + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_directpath() { _has_bits_[0] |= 0x00000080u; - return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_directpath() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.directPath) @@ -31254,7 +30351,7 @@ inline std::string* DocumentMessage::release_directpath() { return nullptr; } _has_bits_[0] &= ~0x00000080u; - return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_directpath(std::string* directpath) { if (directpath != nullptr) { @@ -31263,7 +30360,7 @@ inline void DocumentMessage::set_allocated_directpath(std::string* directpath) { _has_bits_[0] &= ~0x00000080u; } directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.directPath) } @@ -31276,7 +30373,7 @@ inline bool DocumentMessage::has_mediakeytimestamp() const { return _internal_has_mediakeytimestamp(); } inline void DocumentMessage::clear_mediakeytimestamp() { - mediakeytimestamp_ = PROTOBUF_LONGLONG(0); + mediakeytimestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00010000u; } inline ::PROTOBUF_NAMESPACE_ID::int64 DocumentMessage::_internal_mediakeytimestamp() const { @@ -31339,43 +30436,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_thumbnaildirectpath(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000100u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.thumbnailDirectPath) } inline std::string* DocumentMessage::mutable_thumbnaildirectpath() { + std::string* _s = _internal_mutable_thumbnaildirectpath(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.thumbnailDirectPath) - return _internal_mutable_thumbnaildirectpath(); + return _s; } 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) + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_thumbnaildirectpath() { _has_bits_[0] |= 0x00000100u; - return thumbnaildirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnaildirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_thumbnaildirectpath() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.thumbnailDirectPath) @@ -31383,7 +30465,7 @@ inline std::string* DocumentMessage::release_thumbnaildirectpath() { return nullptr; } _has_bits_[0] &= ~0x00000100u; - return thumbnaildirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnaildirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_thumbnaildirectpath(std::string* thumbnaildirectpath) { if (thumbnaildirectpath != nullptr) { @@ -31392,7 +30474,7 @@ inline void DocumentMessage::set_allocated_thumbnaildirectpath(std::string* thum _has_bits_[0] &= ~0x00000100u; } thumbnaildirectpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnaildirectpath, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.thumbnailDirectPath) } @@ -31412,43 +30494,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_thumbnailsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000200u; + thumbnailsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.thumbnailSha256) } inline std::string* DocumentMessage::mutable_thumbnailsha256() { + std::string* _s = _internal_mutable_thumbnailsha256(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.thumbnailSha256) - return _internal_mutable_thumbnailsha256(); + return _s; } 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) + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_thumbnailsha256() { _has_bits_[0] |= 0x00000200u; - return thumbnailsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnailsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_thumbnailsha256() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.thumbnailSha256) @@ -31456,7 +30523,7 @@ inline std::string* DocumentMessage::release_thumbnailsha256() { return nullptr; } _has_bits_[0] &= ~0x00000200u; - return thumbnailsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnailsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_thumbnailsha256(std::string* thumbnailsha256) { if (thumbnailsha256 != nullptr) { @@ -31465,7 +30532,7 @@ inline void DocumentMessage::set_allocated_thumbnailsha256(std::string* thumbnai _has_bits_[0] &= ~0x00000200u; } thumbnailsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.thumbnailSha256) } @@ -31485,43 +30552,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_thumbnailencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000400u; + thumbnailencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.thumbnailEncSha256) } inline std::string* DocumentMessage::mutable_thumbnailencsha256() { + std::string* _s = _internal_mutable_thumbnailencsha256(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.thumbnailEncSha256) - return _internal_mutable_thumbnailencsha256(); + return _s; } 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) + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_thumbnailencsha256() { _has_bits_[0] |= 0x00000400u; - return thumbnailencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnailencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_thumbnailencsha256() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.thumbnailEncSha256) @@ -31529,7 +30581,7 @@ inline std::string* DocumentMessage::release_thumbnailencsha256() { return nullptr; } _has_bits_[0] &= ~0x00000400u; - return thumbnailencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnailencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_thumbnailencsha256(std::string* thumbnailencsha256) { if (thumbnailencsha256 != nullptr) { @@ -31538,7 +30590,7 @@ inline void DocumentMessage::set_allocated_thumbnailencsha256(std::string* thumb _has_bits_[0] &= ~0x00000400u; } thumbnailencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.thumbnailEncSha256) } @@ -31558,43 +30610,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DocumentMessage::set_jpegthumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000800u; + jpegthumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DocumentMessage.jpegThumbnail) } inline std::string* DocumentMessage::mutable_jpegthumbnail() { + std::string* _s = _internal_mutable_jpegthumbnail(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.jpegThumbnail) - return _internal_mutable_jpegthumbnail(); + return _s; } 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) + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DocumentMessage::_internal_mutable_jpegthumbnail() { _has_bits_[0] |= 0x00000800u; - return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DocumentMessage::release_jpegthumbnail() { // @@protoc_insertion_point(field_release:proto.DocumentMessage.jpegThumbnail) @@ -31602,7 +30639,7 @@ inline std::string* DocumentMessage::release_jpegthumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000800u; - return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DocumentMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { if (jpegthumbnail != nullptr) { @@ -31611,7 +30648,7 @@ inline void DocumentMessage::set_allocated_jpegthumbnail(std::string* jpegthumbn _has_bits_[0] &= ~0x00000800u; } jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DocumentMessage.jpegThumbnail) } @@ -31639,7 +30676,7 @@ inline const ::proto::ContextInfo& DocumentMessage::contextinfo() const { } inline void DocumentMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -31654,9 +30691,15 @@ inline ::proto::ContextInfo* DocumentMessage::release_contextinfo() { _has_bits_[0] &= ~0x00001000u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* DocumentMessage::unsafe_arena_release_contextinfo() { @@ -31669,23 +30712,24 @@ inline ::proto::ContextInfo* DocumentMessage::unsafe_arena_release_contextinfo() inline ::proto::ContextInfo* DocumentMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00001000u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* DocumentMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.DocumentMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void DocumentMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -31774,43 +30818,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AudioMessage::set_url(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AudioMessage.url) } inline std::string* AudioMessage::mutable_url() { + std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:proto.AudioMessage.url) - return _internal_mutable_url(); + return _s; } 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) + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AudioMessage::_internal_mutable_url() { _has_bits_[0] |= 0x00000001u; - return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AudioMessage::release_url() { // @@protoc_insertion_point(field_release:proto.AudioMessage.url) @@ -31818,7 +30847,7 @@ inline std::string* AudioMessage::release_url() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AudioMessage::set_allocated_url(std::string* url) { if (url != nullptr) { @@ -31827,7 +30856,7 @@ inline void AudioMessage::set_allocated_url(std::string* url) { _has_bits_[0] &= ~0x00000001u; } url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.url) } @@ -31847,43 +30876,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AudioMessage::set_mimetype(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AudioMessage.mimetype) } inline std::string* AudioMessage::mutable_mimetype() { + std::string* _s = _internal_mutable_mimetype(); // @@protoc_insertion_point(field_mutable:proto.AudioMessage.mimetype) - return _internal_mutable_mimetype(); + return _s; } 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) + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AudioMessage::_internal_mutable_mimetype() { _has_bits_[0] |= 0x00000002u; - return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AudioMessage::release_mimetype() { // @@protoc_insertion_point(field_release:proto.AudioMessage.mimetype) @@ -31891,7 +30905,7 @@ inline std::string* AudioMessage::release_mimetype() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AudioMessage::set_allocated_mimetype(std::string* mimetype) { if (mimetype != nullptr) { @@ -31900,7 +30914,7 @@ inline void AudioMessage::set_allocated_mimetype(std::string* mimetype) { _has_bits_[0] &= ~0x00000002u; } mimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mimetype, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.mimetype) } @@ -31920,43 +30934,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AudioMessage::set_filesha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + filesha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AudioMessage.fileSha256) } inline std::string* AudioMessage::mutable_filesha256() { + std::string* _s = _internal_mutable_filesha256(); // @@protoc_insertion_point(field_mutable:proto.AudioMessage.fileSha256) - return _internal_mutable_filesha256(); + return _s; } 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) + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AudioMessage::_internal_mutable_filesha256() { _has_bits_[0] |= 0x00000004u; - return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AudioMessage::release_filesha256() { // @@protoc_insertion_point(field_release:proto.AudioMessage.fileSha256) @@ -31964,7 +30963,7 @@ inline std::string* AudioMessage::release_filesha256() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AudioMessage::set_allocated_filesha256(std::string* filesha256) { if (filesha256 != nullptr) { @@ -31973,7 +30972,7 @@ inline void AudioMessage::set_allocated_filesha256(std::string* filesha256) { _has_bits_[0] &= ~0x00000004u; } filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.fileSha256) } @@ -31986,7 +30985,7 @@ inline bool AudioMessage::has_filelength() const { return _internal_has_filelength(); } inline void AudioMessage::clear_filelength() { - filelength_ = PROTOBUF_ULONGLONG(0); + filelength_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000100u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 AudioMessage::_internal_filelength() const { @@ -32077,43 +31076,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AudioMessage::set_mediakey(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + mediakey_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AudioMessage.mediaKey) } inline std::string* AudioMessage::mutable_mediakey() { + std::string* _s = _internal_mutable_mediakey(); // @@protoc_insertion_point(field_mutable:proto.AudioMessage.mediaKey) - return _internal_mutable_mediakey(); + return _s; } 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) + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AudioMessage::_internal_mutable_mediakey() { _has_bits_[0] |= 0x00000008u; - return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AudioMessage::release_mediakey() { // @@protoc_insertion_point(field_release:proto.AudioMessage.mediaKey) @@ -32121,7 +31105,7 @@ inline std::string* AudioMessage::release_mediakey() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AudioMessage::set_allocated_mediakey(std::string* mediakey) { if (mediakey != nullptr) { @@ -32130,7 +31114,7 @@ inline void AudioMessage::set_allocated_mediakey(std::string* mediakey) { _has_bits_[0] &= ~0x00000008u; } mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.mediaKey) } @@ -32150,43 +31134,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AudioMessage::set_fileencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + fileencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AudioMessage.fileEncSha256) } inline std::string* AudioMessage::mutable_fileencsha256() { + std::string* _s = _internal_mutable_fileencsha256(); // @@protoc_insertion_point(field_mutable:proto.AudioMessage.fileEncSha256) - return _internal_mutable_fileencsha256(); + return _s; } 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) + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AudioMessage::_internal_mutable_fileencsha256() { _has_bits_[0] |= 0x00000010u; - return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AudioMessage::release_fileencsha256() { // @@protoc_insertion_point(field_release:proto.AudioMessage.fileEncSha256) @@ -32194,7 +31163,7 @@ inline std::string* AudioMessage::release_fileencsha256() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AudioMessage::set_allocated_fileencsha256(std::string* fileencsha256) { if (fileencsha256 != nullptr) { @@ -32203,7 +31172,7 @@ inline void AudioMessage::set_allocated_fileencsha256(std::string* fileencsha256 _has_bits_[0] &= ~0x00000010u; } fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.fileEncSha256) } @@ -32223,43 +31192,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AudioMessage::set_directpath(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AudioMessage.directPath) } inline std::string* AudioMessage::mutable_directpath() { + std::string* _s = _internal_mutable_directpath(); // @@protoc_insertion_point(field_mutable:proto.AudioMessage.directPath) - return _internal_mutable_directpath(); + return _s; } 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) + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AudioMessage::_internal_mutable_directpath() { _has_bits_[0] |= 0x00000020u; - return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AudioMessage::release_directpath() { // @@protoc_insertion_point(field_release:proto.AudioMessage.directPath) @@ -32267,7 +31221,7 @@ inline std::string* AudioMessage::release_directpath() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AudioMessage::set_allocated_directpath(std::string* directpath) { if (directpath != nullptr) { @@ -32276,7 +31230,7 @@ inline void AudioMessage::set_allocated_directpath(std::string* directpath) { _has_bits_[0] &= ~0x00000020u; } directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.directPath) } @@ -32289,7 +31243,7 @@ inline bool AudioMessage::has_mediakeytimestamp() const { return _internal_has_mediakeytimestamp(); } inline void AudioMessage::clear_mediakeytimestamp() { - mediakeytimestamp_ = PROTOBUF_LONGLONG(0); + mediakeytimestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00000800u; } inline ::PROTOBUF_NAMESPACE_ID::int64 AudioMessage::_internal_mediakeytimestamp() const { @@ -32332,7 +31286,7 @@ inline const ::proto::ContextInfo& AudioMessage::contextinfo() const { } inline void AudioMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -32347,9 +31301,15 @@ inline ::proto::ContextInfo* AudioMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000080u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* AudioMessage::unsafe_arena_release_contextinfo() { @@ -32362,23 +31322,24 @@ inline ::proto::ContextInfo* AudioMessage::unsafe_arena_release_contextinfo() { inline ::proto::ContextInfo* AudioMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000080u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* AudioMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.AudioMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void AudioMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -32407,43 +31368,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AudioMessage::set_streamingsidecar(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000040u; + streamingsidecar_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AudioMessage.streamingSidecar) } inline std::string* AudioMessage::mutable_streamingsidecar() { + std::string* _s = _internal_mutable_streamingsidecar(); // @@protoc_insertion_point(field_mutable:proto.AudioMessage.streamingSidecar) - return _internal_mutable_streamingsidecar(); + return _s; } 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) + streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AudioMessage::_internal_mutable_streamingsidecar() { _has_bits_[0] |= 0x00000040u; - return streamingsidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return streamingsidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AudioMessage::release_streamingsidecar() { // @@protoc_insertion_point(field_release:proto.AudioMessage.streamingSidecar) @@ -32451,7 +31397,7 @@ inline std::string* AudioMessage::release_streamingsidecar() { return nullptr; } _has_bits_[0] &= ~0x00000040u; - return streamingsidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return streamingsidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AudioMessage::set_allocated_streamingsidecar(std::string* streamingsidecar) { if (streamingsidecar != nullptr) { @@ -32460,7 +31406,7 @@ inline void AudioMessage::set_allocated_streamingsidecar(std::string* streamings _has_bits_[0] &= ~0x00000040u; } streamingsidecar_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), streamingsidecar, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AudioMessage.streamingSidecar) } @@ -32484,43 +31430,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_url(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.url) } inline std::string* VideoMessage::mutable_url() { + std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.url) - return _internal_mutable_url(); + return _s; } 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) + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_url() { _has_bits_[0] |= 0x00000001u; - return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_url() { // @@protoc_insertion_point(field_release:proto.VideoMessage.url) @@ -32528,7 +31459,7 @@ inline std::string* VideoMessage::release_url() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_url(std::string* url) { if (url != nullptr) { @@ -32537,7 +31468,7 @@ inline void VideoMessage::set_allocated_url(std::string* url) { _has_bits_[0] &= ~0x00000001u; } url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.url) } @@ -32557,43 +31488,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_mimetype(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.mimetype) } inline std::string* VideoMessage::mutable_mimetype() { + std::string* _s = _internal_mutable_mimetype(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.mimetype) - return _internal_mutable_mimetype(); + return _s; } 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) + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_mimetype() { _has_bits_[0] |= 0x00000002u; - return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_mimetype() { // @@protoc_insertion_point(field_release:proto.VideoMessage.mimetype) @@ -32601,7 +31517,7 @@ inline std::string* VideoMessage::release_mimetype() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_mimetype(std::string* mimetype) { if (mimetype != nullptr) { @@ -32610,7 +31526,7 @@ inline void VideoMessage::set_allocated_mimetype(std::string* mimetype) { _has_bits_[0] &= ~0x00000002u; } mimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mimetype, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.mimetype) } @@ -32630,43 +31546,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_filesha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + filesha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.fileSha256) } inline std::string* VideoMessage::mutable_filesha256() { + std::string* _s = _internal_mutable_filesha256(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.fileSha256) - return _internal_mutable_filesha256(); + return _s; } 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) + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_filesha256() { _has_bits_[0] |= 0x00000004u; - return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_filesha256() { // @@protoc_insertion_point(field_release:proto.VideoMessage.fileSha256) @@ -32674,7 +31575,7 @@ inline std::string* VideoMessage::release_filesha256() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_filesha256(std::string* filesha256) { if (filesha256 != nullptr) { @@ -32683,7 +31584,7 @@ inline void VideoMessage::set_allocated_filesha256(std::string* filesha256) { _has_bits_[0] &= ~0x00000004u; } filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.fileSha256) } @@ -32696,7 +31597,7 @@ inline bool VideoMessage::has_filelength() const { return _internal_has_filelength(); } inline void VideoMessage::clear_filelength() { - filelength_ = PROTOBUF_ULONGLONG(0); + filelength_ = uint64_t{0u}; _has_bits_[0] &= ~0x00002000u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 VideoMessage::_internal_filelength() const { @@ -32759,43 +31660,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_mediakey(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + mediakey_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.mediaKey) } inline std::string* VideoMessage::mutable_mediakey() { + std::string* _s = _internal_mutable_mediakey(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.mediaKey) - return _internal_mutable_mediakey(); + return _s; } 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) + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_mediakey() { _has_bits_[0] |= 0x00000008u; - return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_mediakey() { // @@protoc_insertion_point(field_release:proto.VideoMessage.mediaKey) @@ -32803,7 +31689,7 @@ inline std::string* VideoMessage::release_mediakey() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_mediakey(std::string* mediakey) { if (mediakey != nullptr) { @@ -32812,7 +31698,7 @@ inline void VideoMessage::set_allocated_mediakey(std::string* mediakey) { _has_bits_[0] &= ~0x00000008u; } mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.mediaKey) } @@ -32832,43 +31718,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_caption(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.caption) } inline std::string* VideoMessage::mutable_caption() { + std::string* _s = _internal_mutable_caption(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.caption) - return _internal_mutable_caption(); + return _s; } 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) + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_caption() { _has_bits_[0] |= 0x00000010u; - return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_caption() { // @@protoc_insertion_point(field_release:proto.VideoMessage.caption) @@ -32876,7 +31747,7 @@ inline std::string* VideoMessage::release_caption() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_caption(std::string* caption) { if (caption != nullptr) { @@ -32885,7 +31756,7 @@ inline void VideoMessage::set_allocated_caption(std::string* caption) { _has_bits_[0] &= ~0x00000010u; } caption_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), caption, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.caption) } @@ -32989,43 +31860,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_fileencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + fileencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.fileEncSha256) } inline std::string* VideoMessage::mutable_fileencsha256() { + std::string* _s = _internal_mutable_fileencsha256(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.fileEncSha256) - return _internal_mutable_fileencsha256(); + return _s; } 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) + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_fileencsha256() { _has_bits_[0] |= 0x00000020u; - return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_fileencsha256() { // @@protoc_insertion_point(field_release:proto.VideoMessage.fileEncSha256) @@ -33033,7 +31889,7 @@ inline std::string* VideoMessage::release_fileencsha256() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_fileencsha256(std::string* fileencsha256) { if (fileencsha256 != nullptr) { @@ -33042,7 +31898,7 @@ inline void VideoMessage::set_allocated_fileencsha256(std::string* fileencsha256 _has_bits_[0] &= ~0x00000020u; } fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.fileEncSha256) } @@ -33076,8 +31932,9 @@ inline ::proto::InteractiveAnnotation* VideoMessage::_internal_add_interactivean return interactiveannotations_.Add(); } inline ::proto::InteractiveAnnotation* VideoMessage::add_interactiveannotations() { + ::proto::InteractiveAnnotation* _add = _internal_add_interactiveannotations(); // @@protoc_insertion_point(field_add:proto.VideoMessage.interactiveAnnotations) - return _internal_add_interactiveannotations(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::InteractiveAnnotation >& VideoMessage::interactiveannotations() const { @@ -33101,43 +31958,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_directpath(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000040u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.directPath) } inline std::string* VideoMessage::mutable_directpath() { + std::string* _s = _internal_mutable_directpath(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.directPath) - return _internal_mutable_directpath(); + return _s; } 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) + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_directpath() { _has_bits_[0] |= 0x00000040u; - return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_directpath() { // @@protoc_insertion_point(field_release:proto.VideoMessage.directPath) @@ -33145,7 +31987,7 @@ inline std::string* VideoMessage::release_directpath() { return nullptr; } _has_bits_[0] &= ~0x00000040u; - return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_directpath(std::string* directpath) { if (directpath != nullptr) { @@ -33154,7 +31996,7 @@ inline void VideoMessage::set_allocated_directpath(std::string* directpath) { _has_bits_[0] &= ~0x00000040u; } directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.directPath) } @@ -33167,7 +32009,7 @@ inline bool VideoMessage::has_mediakeytimestamp() const { return _internal_has_mediakeytimestamp(); } inline void VideoMessage::clear_mediakeytimestamp() { - mediakeytimestamp_ = PROTOBUF_LONGLONG(0); + mediakeytimestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00080000u; } inline ::PROTOBUF_NAMESPACE_ID::int64 VideoMessage::_internal_mediakeytimestamp() const { @@ -33202,43 +32044,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_jpegthumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000080u; + jpegthumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.jpegThumbnail) } inline std::string* VideoMessage::mutable_jpegthumbnail() { + std::string* _s = _internal_mutable_jpegthumbnail(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.jpegThumbnail) - return _internal_mutable_jpegthumbnail(); + return _s; } 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) + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_jpegthumbnail() { _has_bits_[0] |= 0x00000080u; - return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_jpegthumbnail() { // @@protoc_insertion_point(field_release:proto.VideoMessage.jpegThumbnail) @@ -33246,7 +32073,7 @@ inline std::string* VideoMessage::release_jpegthumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000080u; - return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { if (jpegthumbnail != nullptr) { @@ -33255,7 +32082,7 @@ inline void VideoMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail _has_bits_[0] &= ~0x00000080u; } jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.jpegThumbnail) } @@ -33283,7 +32110,7 @@ inline const ::proto::ContextInfo& VideoMessage::contextinfo() const { } inline void VideoMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -33298,9 +32125,15 @@ inline ::proto::ContextInfo* VideoMessage::release_contextinfo() { _has_bits_[0] &= ~0x00001000u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* VideoMessage::unsafe_arena_release_contextinfo() { @@ -33313,23 +32146,24 @@ inline ::proto::ContextInfo* VideoMessage::unsafe_arena_release_contextinfo() { inline ::proto::ContextInfo* VideoMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00001000u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* VideoMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void VideoMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -33358,43 +32192,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_streamingsidecar(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000100u; + streamingsidecar_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.streamingSidecar) } inline std::string* VideoMessage::mutable_streamingsidecar() { + std::string* _s = _internal_mutable_streamingsidecar(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.streamingSidecar) - return _internal_mutable_streamingsidecar(); + return _s; } 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) + streamingsidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_streamingsidecar() { _has_bits_[0] |= 0x00000100u; - return streamingsidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return streamingsidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_streamingsidecar() { // @@protoc_insertion_point(field_release:proto.VideoMessage.streamingSidecar) @@ -33402,7 +32221,7 @@ inline std::string* VideoMessage::release_streamingsidecar() { return nullptr; } _has_bits_[0] &= ~0x00000100u; - return streamingsidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return streamingsidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_streamingsidecar(std::string* streamingsidecar) { if (streamingsidecar != nullptr) { @@ -33411,7 +32230,7 @@ inline void VideoMessage::set_allocated_streamingsidecar(std::string* streamings _has_bits_[0] &= ~0x00000100u; } streamingsidecar_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), streamingsidecar, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.streamingSidecar) } @@ -33488,43 +32307,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_thumbnaildirectpath(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000200u; + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.thumbnailDirectPath) } inline std::string* VideoMessage::mutable_thumbnaildirectpath() { + std::string* _s = _internal_mutable_thumbnaildirectpath(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.thumbnailDirectPath) - return _internal_mutable_thumbnaildirectpath(); + return _s; } 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) + thumbnaildirectpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_thumbnaildirectpath() { _has_bits_[0] |= 0x00000200u; - return thumbnaildirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnaildirectpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_thumbnaildirectpath() { // @@protoc_insertion_point(field_release:proto.VideoMessage.thumbnailDirectPath) @@ -33532,7 +32336,7 @@ inline std::string* VideoMessage::release_thumbnaildirectpath() { return nullptr; } _has_bits_[0] &= ~0x00000200u; - return thumbnaildirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnaildirectpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_thumbnaildirectpath(std::string* thumbnaildirectpath) { if (thumbnaildirectpath != nullptr) { @@ -33541,7 +32345,7 @@ inline void VideoMessage::set_allocated_thumbnaildirectpath(std::string* thumbna _has_bits_[0] &= ~0x00000200u; } thumbnaildirectpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnaildirectpath, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.thumbnailDirectPath) } @@ -33561,43 +32365,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_thumbnailsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000400u; + thumbnailsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.thumbnailSha256) } inline std::string* VideoMessage::mutable_thumbnailsha256() { + std::string* _s = _internal_mutable_thumbnailsha256(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.thumbnailSha256) - return _internal_mutable_thumbnailsha256(); + return _s; } 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) + thumbnailsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_thumbnailsha256() { _has_bits_[0] |= 0x00000400u; - return thumbnailsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnailsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_thumbnailsha256() { // @@protoc_insertion_point(field_release:proto.VideoMessage.thumbnailSha256) @@ -33605,7 +32394,7 @@ inline std::string* VideoMessage::release_thumbnailsha256() { return nullptr; } _has_bits_[0] &= ~0x00000400u; - return thumbnailsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnailsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_thumbnailsha256(std::string* thumbnailsha256) { if (thumbnailsha256 != nullptr) { @@ -33614,7 +32403,7 @@ inline void VideoMessage::set_allocated_thumbnailsha256(std::string* thumbnailsh _has_bits_[0] &= ~0x00000400u; } thumbnailsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.thumbnailSha256) } @@ -33634,43 +32423,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void VideoMessage::set_thumbnailencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000800u; + thumbnailencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.VideoMessage.thumbnailEncSha256) } inline std::string* VideoMessage::mutable_thumbnailencsha256() { + std::string* _s = _internal_mutable_thumbnailencsha256(); // @@protoc_insertion_point(field_mutable:proto.VideoMessage.thumbnailEncSha256) - return _internal_mutable_thumbnailencsha256(); + return _s; } 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) + thumbnailencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* VideoMessage::_internal_mutable_thumbnailencsha256() { _has_bits_[0] |= 0x00000800u; - return thumbnailencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnailencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* VideoMessage::release_thumbnailencsha256() { // @@protoc_insertion_point(field_release:proto.VideoMessage.thumbnailEncSha256) @@ -33678,7 +32452,7 @@ inline std::string* VideoMessage::release_thumbnailencsha256() { return nullptr; } _has_bits_[0] &= ~0x00000800u; - return thumbnailencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnailencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void VideoMessage::set_allocated_thumbnailencsha256(std::string* thumbnailencsha256) { if (thumbnailencsha256 != nullptr) { @@ -33687,7 +32461,7 @@ inline void VideoMessage::set_allocated_thumbnailencsha256(std::string* thumbnai _has_bits_[0] &= ~0x00000800u; } thumbnailencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnailencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.VideoMessage.thumbnailEncSha256) } @@ -33711,43 +32485,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void Call::set_callkey(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + callkey_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.Call.callKey) } inline std::string* Call::mutable_callkey() { + std::string* _s = _internal_mutable_callkey(); // @@protoc_insertion_point(field_mutable:proto.Call.callKey) - return _internal_mutable_callkey(); + return _s; } 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) + callkey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Call::_internal_mutable_callkey() { _has_bits_[0] |= 0x00000001u; - return callkey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return callkey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Call::release_callkey() { // @@protoc_insertion_point(field_release:proto.Call.callKey) @@ -33755,7 +32514,7 @@ inline std::string* Call::release_callkey() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return callkey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return callkey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Call::set_allocated_callkey(std::string* callkey) { if (callkey != nullptr) { @@ -33764,7 +32523,7 @@ inline void Call::set_allocated_callkey(std::string* callkey) { _has_bits_[0] &= ~0x00000001u; } callkey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), callkey, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.Call.callKey) } @@ -33788,43 +32547,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void Chat::set_displayname(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.Chat.displayName) } inline std::string* Chat::mutable_displayname() { + std::string* _s = _internal_mutable_displayname(); // @@protoc_insertion_point(field_mutable:proto.Chat.displayName) - return _internal_mutable_displayname(); + return _s; } 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) + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Chat::_internal_mutable_displayname() { _has_bits_[0] |= 0x00000001u; - return displayname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return displayname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Chat::release_displayname() { // @@protoc_insertion_point(field_release:proto.Chat.displayName) @@ -33832,7 +32576,7 @@ inline std::string* Chat::release_displayname() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return displayname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return displayname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Chat::set_allocated_displayname(std::string* displayname) { if (displayname != nullptr) { @@ -33841,7 +32585,7 @@ inline void Chat::set_allocated_displayname(std::string* displayname) { _has_bits_[0] &= ~0x00000001u; } displayname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displayname, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.Chat.displayName) } @@ -33861,43 +32605,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void Chat::set_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.Chat.id) } inline std::string* Chat::mutable_id() { + std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:proto.Chat.id) - return _internal_mutable_id(); + return _s; } 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) + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Chat::_internal_mutable_id() { _has_bits_[0] |= 0x00000002u; - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Chat::release_id() { // @@protoc_insertion_point(field_release:proto.Chat.id) @@ -33905,7 +32634,7 @@ inline std::string* Chat::release_id() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Chat::set_allocated_id(std::string* id) { if (id != nullptr) { @@ -33914,7 +32643,7 @@ inline void Chat::set_allocated_id(std::string* id) { _has_bits_[0] &= ~0x00000002u; } id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.Chat.id) } @@ -33946,7 +32675,7 @@ inline const ::proto::MessageKey& ProtocolMessage::key() const { } inline void ProtocolMessage::unsafe_arena_set_allocated_key( ::proto::MessageKey* key) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); } key_ = key; @@ -33961,9 +32690,15 @@ inline ::proto::MessageKey* ProtocolMessage::release_key() { _has_bits_[0] &= ~0x00000001u; ::proto::MessageKey* temp = key_; key_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::MessageKey* ProtocolMessage::unsafe_arena_release_key() { @@ -33976,23 +32711,24 @@ inline ::proto::MessageKey* ProtocolMessage::unsafe_arena_release_key() { inline ::proto::MessageKey* ProtocolMessage::_internal_mutable_key() { _has_bits_[0] |= 0x00000001u; if (key_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArenaForAllocation()); key_ = p; } return key_; } inline ::proto::MessageKey* ProtocolMessage::mutable_key() { + ::proto::MessageKey* _msg = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.key) - return _internal_mutable_key(); + return _msg; } inline void ProtocolMessage::set_allocated_key(::proto::MessageKey* key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete key_; } if (key) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(key); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::MessageKey>::GetOwningArena(key); if (message_arena != submessage_arena) { key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, key, submessage_arena); @@ -34071,7 +32807,7 @@ inline bool ProtocolMessage::has_ephemeralsettingtimestamp() const { return _internal_has_ephemeralsettingtimestamp(); } inline void ProtocolMessage::clear_ephemeralsettingtimestamp() { - ephemeralsettingtimestamp_ = PROTOBUF_LONGLONG(0); + ephemeralsettingtimestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00000100u; } inline ::PROTOBUF_NAMESPACE_ID::int64 ProtocolMessage::_internal_ephemeralsettingtimestamp() const { @@ -34114,7 +32850,7 @@ inline const ::proto::HistorySyncNotification& ProtocolMessage::historysyncnotif } inline void ProtocolMessage::unsafe_arena_set_allocated_historysyncnotification( ::proto::HistorySyncNotification* historysyncnotification) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(historysyncnotification_); } historysyncnotification_ = historysyncnotification; @@ -34129,9 +32865,15 @@ inline ::proto::HistorySyncNotification* ProtocolMessage::release_historysyncnot _has_bits_[0] &= ~0x00000002u; ::proto::HistorySyncNotification* temp = historysyncnotification_; historysyncnotification_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::HistorySyncNotification* ProtocolMessage::unsafe_arena_release_historysyncnotification() { @@ -34144,23 +32886,24 @@ inline ::proto::HistorySyncNotification* ProtocolMessage::unsafe_arena_release_h inline ::proto::HistorySyncNotification* ProtocolMessage::_internal_mutable_historysyncnotification() { _has_bits_[0] |= 0x00000002u; if (historysyncnotification_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::HistorySyncNotification>(GetArena()); + auto* p = CreateMaybeMessage<::proto::HistorySyncNotification>(GetArenaForAllocation()); historysyncnotification_ = p; } return historysyncnotification_; } inline ::proto::HistorySyncNotification* ProtocolMessage::mutable_historysyncnotification() { + ::proto::HistorySyncNotification* _msg = _internal_mutable_historysyncnotification(); // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.historySyncNotification) - return _internal_mutable_historysyncnotification(); + return _msg; } inline void ProtocolMessage::set_allocated_historysyncnotification(::proto::HistorySyncNotification* historysyncnotification) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete historysyncnotification_; } if (historysyncnotification) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(historysyncnotification); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HistorySyncNotification>::GetOwningArena(historysyncnotification); if (message_arena != submessage_arena) { historysyncnotification = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, historysyncnotification, submessage_arena); @@ -34197,7 +32940,7 @@ inline const ::proto::AppStateSyncKeyShare& ProtocolMessage::appstatesynckeyshar } inline void ProtocolMessage::unsafe_arena_set_allocated_appstatesynckeyshare( ::proto::AppStateSyncKeyShare* appstatesynckeyshare) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(appstatesynckeyshare_); } appstatesynckeyshare_ = appstatesynckeyshare; @@ -34212,9 +32955,15 @@ inline ::proto::AppStateSyncKeyShare* ProtocolMessage::release_appstatesynckeysh _has_bits_[0] &= ~0x00000004u; ::proto::AppStateSyncKeyShare* temp = appstatesynckeyshare_; appstatesynckeyshare_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::AppStateSyncKeyShare* ProtocolMessage::unsafe_arena_release_appstatesynckeyshare() { @@ -34227,23 +32976,24 @@ inline ::proto::AppStateSyncKeyShare* ProtocolMessage::unsafe_arena_release_apps inline ::proto::AppStateSyncKeyShare* ProtocolMessage::_internal_mutable_appstatesynckeyshare() { _has_bits_[0] |= 0x00000004u; if (appstatesynckeyshare_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyShare>(GetArena()); + auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyShare>(GetArenaForAllocation()); appstatesynckeyshare_ = p; } return appstatesynckeyshare_; } inline ::proto::AppStateSyncKeyShare* ProtocolMessage::mutable_appstatesynckeyshare() { + ::proto::AppStateSyncKeyShare* _msg = _internal_mutable_appstatesynckeyshare(); // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.appStateSyncKeyShare) - return _internal_mutable_appstatesynckeyshare(); + return _msg; } inline void ProtocolMessage::set_allocated_appstatesynckeyshare(::proto::AppStateSyncKeyShare* appstatesynckeyshare) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete appstatesynckeyshare_; } if (appstatesynckeyshare) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(appstatesynckeyshare); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::AppStateSyncKeyShare>::GetOwningArena(appstatesynckeyshare); if (message_arena != submessage_arena) { appstatesynckeyshare = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, appstatesynckeyshare, submessage_arena); @@ -34280,7 +33030,7 @@ inline const ::proto::AppStateSyncKeyRequest& ProtocolMessage::appstatesynckeyre } inline void ProtocolMessage::unsafe_arena_set_allocated_appstatesynckeyrequest( ::proto::AppStateSyncKeyRequest* appstatesynckeyrequest) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(appstatesynckeyrequest_); } appstatesynckeyrequest_ = appstatesynckeyrequest; @@ -34295,9 +33045,15 @@ inline ::proto::AppStateSyncKeyRequest* ProtocolMessage::release_appstatesynckey _has_bits_[0] &= ~0x00000008u; ::proto::AppStateSyncKeyRequest* temp = appstatesynckeyrequest_; appstatesynckeyrequest_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::AppStateSyncKeyRequest* ProtocolMessage::unsafe_arena_release_appstatesynckeyrequest() { @@ -34310,23 +33066,24 @@ inline ::proto::AppStateSyncKeyRequest* ProtocolMessage::unsafe_arena_release_ap inline ::proto::AppStateSyncKeyRequest* ProtocolMessage::_internal_mutable_appstatesynckeyrequest() { _has_bits_[0] |= 0x00000008u; if (appstatesynckeyrequest_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyRequest>(GetArena()); + auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyRequest>(GetArenaForAllocation()); appstatesynckeyrequest_ = p; } return appstatesynckeyrequest_; } inline ::proto::AppStateSyncKeyRequest* ProtocolMessage::mutable_appstatesynckeyrequest() { + ::proto::AppStateSyncKeyRequest* _msg = _internal_mutable_appstatesynckeyrequest(); // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.appStateSyncKeyRequest) - return _internal_mutable_appstatesynckeyrequest(); + return _msg; } inline void ProtocolMessage::set_allocated_appstatesynckeyrequest(::proto::AppStateSyncKeyRequest* appstatesynckeyrequest) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete appstatesynckeyrequest_; } if (appstatesynckeyrequest) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(appstatesynckeyrequest); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::AppStateSyncKeyRequest>::GetOwningArena(appstatesynckeyrequest); if (message_arena != submessage_arena) { appstatesynckeyrequest = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, appstatesynckeyrequest, submessage_arena); @@ -34363,7 +33120,7 @@ inline const ::proto::InitialSecurityNotificationSettingSync& ProtocolMessage::i } inline void ProtocolMessage::unsafe_arena_set_allocated_initialsecuritynotificationsettingsync( ::proto::InitialSecurityNotificationSettingSync* initialsecuritynotificationsettingsync) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(initialsecuritynotificationsettingsync_); } initialsecuritynotificationsettingsync_ = initialsecuritynotificationsettingsync; @@ -34378,9 +33135,15 @@ inline ::proto::InitialSecurityNotificationSettingSync* ProtocolMessage::release _has_bits_[0] &= ~0x00000010u; ::proto::InitialSecurityNotificationSettingSync* temp = initialsecuritynotificationsettingsync_; initialsecuritynotificationsettingsync_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::InitialSecurityNotificationSettingSync* ProtocolMessage::unsafe_arena_release_initialsecuritynotificationsettingsync() { @@ -34393,23 +33156,24 @@ inline ::proto::InitialSecurityNotificationSettingSync* ProtocolMessage::unsafe_ inline ::proto::InitialSecurityNotificationSettingSync* ProtocolMessage::_internal_mutable_initialsecuritynotificationsettingsync() { _has_bits_[0] |= 0x00000010u; if (initialsecuritynotificationsettingsync_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::InitialSecurityNotificationSettingSync>(GetArena()); + auto* p = CreateMaybeMessage<::proto::InitialSecurityNotificationSettingSync>(GetArenaForAllocation()); initialsecuritynotificationsettingsync_ = p; } return initialsecuritynotificationsettingsync_; } inline ::proto::InitialSecurityNotificationSettingSync* ProtocolMessage::mutable_initialsecuritynotificationsettingsync() { + ::proto::InitialSecurityNotificationSettingSync* _msg = _internal_mutable_initialsecuritynotificationsettingsync(); // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.initialSecurityNotificationSettingSync) - return _internal_mutable_initialsecuritynotificationsettingsync(); + return _msg; } inline void ProtocolMessage::set_allocated_initialsecuritynotificationsettingsync(::proto::InitialSecurityNotificationSettingSync* initialsecuritynotificationsettingsync) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete initialsecuritynotificationsettingsync_; } if (initialsecuritynotificationsettingsync) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(initialsecuritynotificationsettingsync); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::InitialSecurityNotificationSettingSync>::GetOwningArena(initialsecuritynotificationsettingsync); if (message_arena != submessage_arena) { initialsecuritynotificationsettingsync = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, initialsecuritynotificationsettingsync, submessage_arena); @@ -34446,7 +33210,7 @@ inline const ::proto::AppStateFatalExceptionNotification& ProtocolMessage::appst } inline void ProtocolMessage::unsafe_arena_set_allocated_appstatefatalexceptionnotification( ::proto::AppStateFatalExceptionNotification* appstatefatalexceptionnotification) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(appstatefatalexceptionnotification_); } appstatefatalexceptionnotification_ = appstatefatalexceptionnotification; @@ -34461,9 +33225,15 @@ inline ::proto::AppStateFatalExceptionNotification* ProtocolMessage::release_app _has_bits_[0] &= ~0x00000020u; ::proto::AppStateFatalExceptionNotification* temp = appstatefatalexceptionnotification_; appstatefatalexceptionnotification_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::AppStateFatalExceptionNotification* ProtocolMessage::unsafe_arena_release_appstatefatalexceptionnotification() { @@ -34476,23 +33246,24 @@ inline ::proto::AppStateFatalExceptionNotification* ProtocolMessage::unsafe_aren inline ::proto::AppStateFatalExceptionNotification* ProtocolMessage::_internal_mutable_appstatefatalexceptionnotification() { _has_bits_[0] |= 0x00000020u; if (appstatefatalexceptionnotification_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::AppStateFatalExceptionNotification>(GetArena()); + auto* p = CreateMaybeMessage<::proto::AppStateFatalExceptionNotification>(GetArenaForAllocation()); appstatefatalexceptionnotification_ = p; } return appstatefatalexceptionnotification_; } inline ::proto::AppStateFatalExceptionNotification* ProtocolMessage::mutable_appstatefatalexceptionnotification() { + ::proto::AppStateFatalExceptionNotification* _msg = _internal_mutable_appstatefatalexceptionnotification(); // @@protoc_insertion_point(field_mutable:proto.ProtocolMessage.appStateFatalExceptionNotification) - return _internal_mutable_appstatefatalexceptionnotification(); + return _msg; } inline void ProtocolMessage::set_allocated_appstatefatalexceptionnotification(::proto::AppStateFatalExceptionNotification* appstatefatalexceptionnotification) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete appstatefatalexceptionnotification_; } if (appstatefatalexceptionnotification) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(appstatefatalexceptionnotification); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::AppStateFatalExceptionNotification>::GetOwningArena(appstatefatalexceptionnotification); if (message_arena != submessage_arena) { appstatefatalexceptionnotification = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, appstatefatalexceptionnotification, submessage_arena); @@ -34525,43 +33296,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HistorySyncNotification::set_filesha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + filesha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.fileSha256) } inline std::string* HistorySyncNotification::mutable_filesha256() { + std::string* _s = _internal_mutable_filesha256(); // @@protoc_insertion_point(field_mutable:proto.HistorySyncNotification.fileSha256) - return _internal_mutable_filesha256(); + return _s; } 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) + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HistorySyncNotification::_internal_mutable_filesha256() { _has_bits_[0] |= 0x00000001u; - return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HistorySyncNotification::release_filesha256() { // @@protoc_insertion_point(field_release:proto.HistorySyncNotification.fileSha256) @@ -34569,7 +33325,7 @@ inline std::string* HistorySyncNotification::release_filesha256() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HistorySyncNotification::set_allocated_filesha256(std::string* filesha256) { if (filesha256 != nullptr) { @@ -34578,7 +33334,7 @@ inline void HistorySyncNotification::set_allocated_filesha256(std::string* files _has_bits_[0] &= ~0x00000001u; } filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HistorySyncNotification.fileSha256) } @@ -34591,7 +33347,7 @@ inline bool HistorySyncNotification::has_filelength() const { return _internal_has_filelength(); } inline void HistorySyncNotification::clear_filelength() { - filelength_ = PROTOBUF_ULONGLONG(0); + filelength_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000020u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 HistorySyncNotification::_internal_filelength() const { @@ -34626,43 +33382,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HistorySyncNotification::set_mediakey(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + mediakey_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.mediaKey) } inline std::string* HistorySyncNotification::mutable_mediakey() { + std::string* _s = _internal_mutable_mediakey(); // @@protoc_insertion_point(field_mutable:proto.HistorySyncNotification.mediaKey) - return _internal_mutable_mediakey(); + return _s; } 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) + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HistorySyncNotification::_internal_mutable_mediakey() { _has_bits_[0] |= 0x00000002u; - return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HistorySyncNotification::release_mediakey() { // @@protoc_insertion_point(field_release:proto.HistorySyncNotification.mediaKey) @@ -34670,7 +33411,7 @@ inline std::string* HistorySyncNotification::release_mediakey() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HistorySyncNotification::set_allocated_mediakey(std::string* mediakey) { if (mediakey != nullptr) { @@ -34679,7 +33420,7 @@ inline void HistorySyncNotification::set_allocated_mediakey(std::string* mediake _has_bits_[0] &= ~0x00000002u; } mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HistorySyncNotification.mediaKey) } @@ -34699,43 +33440,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HistorySyncNotification::set_fileencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + fileencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.fileEncSha256) } inline std::string* HistorySyncNotification::mutable_fileencsha256() { + std::string* _s = _internal_mutable_fileencsha256(); // @@protoc_insertion_point(field_mutable:proto.HistorySyncNotification.fileEncSha256) - return _internal_mutable_fileencsha256(); + return _s; } 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) + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HistorySyncNotification::_internal_mutable_fileencsha256() { _has_bits_[0] |= 0x00000004u; - return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HistorySyncNotification::release_fileencsha256() { // @@protoc_insertion_point(field_release:proto.HistorySyncNotification.fileEncSha256) @@ -34743,7 +33469,7 @@ inline std::string* HistorySyncNotification::release_fileencsha256() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HistorySyncNotification::set_allocated_fileencsha256(std::string* fileencsha256) { if (fileencsha256 != nullptr) { @@ -34752,7 +33478,7 @@ inline void HistorySyncNotification::set_allocated_fileencsha256(std::string* fi _has_bits_[0] &= ~0x00000004u; } fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HistorySyncNotification.fileEncSha256) } @@ -34772,43 +33498,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HistorySyncNotification::set_directpath(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.directPath) } inline std::string* HistorySyncNotification::mutable_directpath() { + std::string* _s = _internal_mutable_directpath(); // @@protoc_insertion_point(field_mutable:proto.HistorySyncNotification.directPath) - return _internal_mutable_directpath(); + return _s; } 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) + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HistorySyncNotification::_internal_mutable_directpath() { _has_bits_[0] |= 0x00000008u; - return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HistorySyncNotification::release_directpath() { // @@protoc_insertion_point(field_release:proto.HistorySyncNotification.directPath) @@ -34816,7 +33527,7 @@ inline std::string* HistorySyncNotification::release_directpath() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HistorySyncNotification::set_allocated_directpath(std::string* directpath) { if (directpath != nullptr) { @@ -34825,7 +33536,7 @@ inline void HistorySyncNotification::set_allocated_directpath(std::string* direc _has_bits_[0] &= ~0x00000008u; } directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HistorySyncNotification.directPath) } @@ -34902,43 +33613,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HistorySyncNotification::set_originalmessageid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + originalmessageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HistorySyncNotification.originalMessageId) } inline std::string* HistorySyncNotification::mutable_originalmessageid() { + std::string* _s = _internal_mutable_originalmessageid(); // @@protoc_insertion_point(field_mutable:proto.HistorySyncNotification.originalMessageId) - return _internal_mutable_originalmessageid(); + return _s; } 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) + originalmessageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HistorySyncNotification::_internal_mutable_originalmessageid() { _has_bits_[0] |= 0x00000010u; - return originalmessageid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return originalmessageid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HistorySyncNotification::release_originalmessageid() { // @@protoc_insertion_point(field_release:proto.HistorySyncNotification.originalMessageId) @@ -34946,7 +33642,7 @@ inline std::string* HistorySyncNotification::release_originalmessageid() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return originalmessageid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return originalmessageid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HistorySyncNotification::set_allocated_originalmessageid(std::string* originalmessageid) { if (originalmessageid != nullptr) { @@ -34955,7 +33651,7 @@ inline void HistorySyncNotification::set_allocated_originalmessageid(std::string _has_bits_[0] &= ~0x00000010u; } originalmessageid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), originalmessageid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HistorySyncNotification.originalMessageId) } @@ -34987,7 +33683,7 @@ inline const ::proto::AppStateSyncKeyId& AppStateSyncKey::keyid() const { } inline void AppStateSyncKey::unsafe_arena_set_allocated_keyid( ::proto::AppStateSyncKeyId* keyid) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(keyid_); } keyid_ = keyid; @@ -35002,9 +33698,15 @@ inline ::proto::AppStateSyncKeyId* AppStateSyncKey::release_keyid() { _has_bits_[0] &= ~0x00000001u; ::proto::AppStateSyncKeyId* temp = keyid_; keyid_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::AppStateSyncKeyId* AppStateSyncKey::unsafe_arena_release_keyid() { @@ -35017,23 +33719,24 @@ inline ::proto::AppStateSyncKeyId* AppStateSyncKey::unsafe_arena_release_keyid() inline ::proto::AppStateSyncKeyId* AppStateSyncKey::_internal_mutable_keyid() { _has_bits_[0] |= 0x00000001u; if (keyid_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyId>(GetArena()); + auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyId>(GetArenaForAllocation()); keyid_ = p; } return keyid_; } inline ::proto::AppStateSyncKeyId* AppStateSyncKey::mutable_keyid() { + ::proto::AppStateSyncKeyId* _msg = _internal_mutable_keyid(); // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKey.keyId) - return _internal_mutable_keyid(); + return _msg; } inline void AppStateSyncKey::set_allocated_keyid(::proto::AppStateSyncKeyId* keyid) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete keyid_; } if (keyid) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(keyid); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::AppStateSyncKeyId>::GetOwningArena(keyid); if (message_arena != submessage_arena) { keyid = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, keyid, submessage_arena); @@ -35070,7 +33773,7 @@ inline const ::proto::AppStateSyncKeyData& AppStateSyncKey::keydata() const { } inline void AppStateSyncKey::unsafe_arena_set_allocated_keydata( ::proto::AppStateSyncKeyData* keydata) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(keydata_); } keydata_ = keydata; @@ -35085,9 +33788,15 @@ inline ::proto::AppStateSyncKeyData* AppStateSyncKey::release_keydata() { _has_bits_[0] &= ~0x00000002u; ::proto::AppStateSyncKeyData* temp = keydata_; keydata_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::AppStateSyncKeyData* AppStateSyncKey::unsafe_arena_release_keydata() { @@ -35100,23 +33809,24 @@ inline ::proto::AppStateSyncKeyData* AppStateSyncKey::unsafe_arena_release_keyda inline ::proto::AppStateSyncKeyData* AppStateSyncKey::_internal_mutable_keydata() { _has_bits_[0] |= 0x00000002u; if (keydata_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyData>(GetArena()); + auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyData>(GetArenaForAllocation()); keydata_ = p; } return keydata_; } inline ::proto::AppStateSyncKeyData* AppStateSyncKey::mutable_keydata() { + ::proto::AppStateSyncKeyData* _msg = _internal_mutable_keydata(); // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKey.keyData) - return _internal_mutable_keydata(); + return _msg; } inline void AppStateSyncKey::set_allocated_keydata(::proto::AppStateSyncKeyData* keydata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete keydata_; } if (keydata) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(keydata); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::AppStateSyncKeyData>::GetOwningArena(keydata); if (message_arena != submessage_arena) { keydata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, keydata, submessage_arena); @@ -35149,43 +33859,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AppStateSyncKeyId::set_keyid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + keyid_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AppStateSyncKeyId.keyId) } inline std::string* AppStateSyncKeyId::mutable_keyid() { + std::string* _s = _internal_mutable_keyid(); // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKeyId.keyId) - return _internal_mutable_keyid(); + return _s; } 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) + keyid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AppStateSyncKeyId::_internal_mutable_keyid() { _has_bits_[0] |= 0x00000001u; - return keyid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return keyid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AppStateSyncKeyId::release_keyid() { // @@protoc_insertion_point(field_release:proto.AppStateSyncKeyId.keyId) @@ -35193,7 +33888,7 @@ inline std::string* AppStateSyncKeyId::release_keyid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return keyid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return keyid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AppStateSyncKeyId::set_allocated_keyid(std::string* keyid) { if (keyid != nullptr) { @@ -35202,7 +33897,7 @@ inline void AppStateSyncKeyId::set_allocated_keyid(std::string* keyid) { _has_bits_[0] &= ~0x00000001u; } keyid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), keyid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AppStateSyncKeyId.keyId) } @@ -35333,43 +34028,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void AppStateSyncKeyData::set_keydata(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + keydata_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.AppStateSyncKeyData.keyData) } inline std::string* AppStateSyncKeyData::mutable_keydata() { + std::string* _s = _internal_mutable_keydata(); // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKeyData.keyData) - return _internal_mutable_keydata(); + return _s; } 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) + keydata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* AppStateSyncKeyData::_internal_mutable_keydata() { _has_bits_[0] |= 0x00000001u; - return keydata_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return keydata_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* AppStateSyncKeyData::release_keydata() { // @@protoc_insertion_point(field_release:proto.AppStateSyncKeyData.keyData) @@ -35377,7 +34057,7 @@ inline std::string* AppStateSyncKeyData::release_keydata() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return keydata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return keydata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void AppStateSyncKeyData::set_allocated_keydata(std::string* keydata) { if (keydata != nullptr) { @@ -35386,7 +34066,7 @@ inline void AppStateSyncKeyData::set_allocated_keydata(std::string* keydata) { _has_bits_[0] &= ~0x00000001u; } keydata_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), keydata, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.AppStateSyncKeyData.keyData) } @@ -35414,7 +34094,7 @@ inline const ::proto::AppStateSyncKeyFingerprint& AppStateSyncKeyData::fingerpri } inline void AppStateSyncKeyData::unsafe_arena_set_allocated_fingerprint( ::proto::AppStateSyncKeyFingerprint* fingerprint) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fingerprint_); } fingerprint_ = fingerprint; @@ -35429,9 +34109,15 @@ inline ::proto::AppStateSyncKeyFingerprint* AppStateSyncKeyData::release_fingerp _has_bits_[0] &= ~0x00000002u; ::proto::AppStateSyncKeyFingerprint* temp = fingerprint_; fingerprint_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::AppStateSyncKeyFingerprint* AppStateSyncKeyData::unsafe_arena_release_fingerprint() { @@ -35444,23 +34130,24 @@ inline ::proto::AppStateSyncKeyFingerprint* AppStateSyncKeyData::unsafe_arena_re inline ::proto::AppStateSyncKeyFingerprint* AppStateSyncKeyData::_internal_mutable_fingerprint() { _has_bits_[0] |= 0x00000002u; if (fingerprint_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyFingerprint>(GetArena()); + auto* p = CreateMaybeMessage<::proto::AppStateSyncKeyFingerprint>(GetArenaForAllocation()); fingerprint_ = p; } return fingerprint_; } inline ::proto::AppStateSyncKeyFingerprint* AppStateSyncKeyData::mutable_fingerprint() { + ::proto::AppStateSyncKeyFingerprint* _msg = _internal_mutable_fingerprint(); // @@protoc_insertion_point(field_mutable:proto.AppStateSyncKeyData.fingerprint) - return _internal_mutable_fingerprint(); + return _msg; } inline void AppStateSyncKeyData::set_allocated_fingerprint(::proto::AppStateSyncKeyFingerprint* fingerprint) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete fingerprint_; } if (fingerprint) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fingerprint); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::AppStateSyncKeyFingerprint>::GetOwningArena(fingerprint); if (message_arena != submessage_arena) { fingerprint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, fingerprint, submessage_arena); @@ -35482,7 +34169,7 @@ inline bool AppStateSyncKeyData::has_timestamp() const { return _internal_has_timestamp(); } inline void AppStateSyncKeyData::clear_timestamp() { - timestamp_ = PROTOBUF_LONGLONG(0); + timestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00000004u; } inline ::PROTOBUF_NAMESPACE_ID::int64 AppStateSyncKeyData::_internal_timestamp() const { @@ -35535,8 +34222,9 @@ inline ::proto::AppStateSyncKey* AppStateSyncKeyShare::_internal_add_keys() { return keys_.Add(); } inline ::proto::AppStateSyncKey* AppStateSyncKeyShare::add_keys() { + ::proto::AppStateSyncKey* _add = _internal_add_keys(); // @@protoc_insertion_point(field_add:proto.AppStateSyncKeyShare.keys) - return _internal_add_keys(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKey >& AppStateSyncKeyShare::keys() const { @@ -35578,8 +34266,9 @@ inline ::proto::AppStateSyncKeyId* AppStateSyncKeyRequest::_internal_add_keyids( return keyids_.Add(); } inline ::proto::AppStateSyncKeyId* AppStateSyncKeyRequest::add_keyids() { + ::proto::AppStateSyncKeyId* _add = _internal_add_keyids(); // @@protoc_insertion_point(field_add:proto.AppStateSyncKeyRequest.keyIds) - return _internal_add_keyids(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::AppStateSyncKeyId >& AppStateSyncKeyRequest::keyids() const { @@ -35602,8 +34291,9 @@ inline void AppStateFatalExceptionNotification::clear_collectionnames() { collectionnames_.Clear(); } inline std::string* AppStateFatalExceptionNotification::add_collectionnames() { + std::string* _s = _internal_add_collectionnames(); // @@protoc_insertion_point(field_add_mutable:proto.AppStateFatalExceptionNotification.collectionNames) - return _internal_add_collectionnames(); + return _s; } inline const std::string& AppStateFatalExceptionNotification::_internal_collectionnames(int index) const { return collectionnames_.Get(index); @@ -35617,12 +34307,12 @@ inline std::string* AppStateFatalExceptionNotification::mutable_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); + // @@protoc_insertion_point(field_set:proto.AppStateFatalExceptionNotification.collectionNames) } 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)); + // @@protoc_insertion_point(field_set:proto.AppStateFatalExceptionNotification.collectionNames) } inline void AppStateFatalExceptionNotification::set_collectionnames(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); @@ -35674,7 +34364,7 @@ inline bool AppStateFatalExceptionNotification::has_timestamp() const { return _internal_has_timestamp(); } inline void AppStateFatalExceptionNotification::clear_timestamp() { - timestamp_ = PROTOBUF_LONGLONG(0); + timestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00000001u; } inline ::PROTOBUF_NAMESPACE_ID::int64 AppStateFatalExceptionNotification::_internal_timestamp() const { @@ -35745,43 +34435,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ContactsArrayMessage::set_displayname(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ContactsArrayMessage.displayName) } inline std::string* ContactsArrayMessage::mutable_displayname() { + std::string* _s = _internal_mutable_displayname(); // @@protoc_insertion_point(field_mutable:proto.ContactsArrayMessage.displayName) - return _internal_mutable_displayname(); + return _s; } 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) + displayname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ContactsArrayMessage::_internal_mutable_displayname() { _has_bits_[0] |= 0x00000001u; - return displayname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return displayname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ContactsArrayMessage::release_displayname() { // @@protoc_insertion_point(field_release:proto.ContactsArrayMessage.displayName) @@ -35789,7 +34464,7 @@ inline std::string* ContactsArrayMessage::release_displayname() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return displayname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return displayname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ContactsArrayMessage::set_allocated_displayname(std::string* displayname) { if (displayname != nullptr) { @@ -35798,7 +34473,7 @@ inline void ContactsArrayMessage::set_allocated_displayname(std::string* display _has_bits_[0] &= ~0x00000001u; } displayname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displayname, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ContactsArrayMessage.displayName) } @@ -35832,8 +34507,9 @@ inline ::proto::ContactMessage* ContactsArrayMessage::_internal_add_contacts() { return contacts_.Add(); } inline ::proto::ContactMessage* ContactsArrayMessage::add_contacts() { + ::proto::ContactMessage* _add = _internal_add_contacts(); // @@protoc_insertion_point(field_add:proto.ContactsArrayMessage.contacts) - return _internal_add_contacts(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::ContactMessage >& ContactsArrayMessage::contacts() const { @@ -35865,7 +34541,7 @@ inline const ::proto::ContextInfo& ContactsArrayMessage::contextinfo() const { } inline void ContactsArrayMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -35880,9 +34556,15 @@ inline ::proto::ContextInfo* ContactsArrayMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000002u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* ContactsArrayMessage::unsafe_arena_release_contextinfo() { @@ -35895,23 +34577,24 @@ inline ::proto::ContextInfo* ContactsArrayMessage::unsafe_arena_release_contexti inline ::proto::ContextInfo* ContactsArrayMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000002u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* ContactsArrayMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.ContactsArrayMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void ContactsArrayMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -35944,43 +34627,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HSMCurrency::set_currencycode(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HSMCurrency.currencyCode) } inline std::string* HSMCurrency::mutable_currencycode() { + std::string* _s = _internal_mutable_currencycode(); // @@protoc_insertion_point(field_mutable:proto.HSMCurrency.currencyCode) - return _internal_mutable_currencycode(); + return _s; } 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) + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HSMCurrency::_internal_mutable_currencycode() { _has_bits_[0] |= 0x00000001u; - return currencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return currencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HSMCurrency::release_currencycode() { // @@protoc_insertion_point(field_release:proto.HSMCurrency.currencyCode) @@ -35988,7 +34656,7 @@ inline std::string* HSMCurrency::release_currencycode() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return currencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return currencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HSMCurrency::set_allocated_currencycode(std::string* currencycode) { if (currencycode != nullptr) { @@ -35997,7 +34665,7 @@ inline void HSMCurrency::set_allocated_currencycode(std::string* currencycode) { _has_bits_[0] &= ~0x00000001u; } currencycode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), currencycode, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HSMCurrency.currencyCode) } @@ -36010,7 +34678,7 @@ inline bool HSMCurrency::has_amount1000() const { return _internal_has_amount1000(); } inline void HSMCurrency::clear_amount1000() { - amount1000_ = PROTOBUF_LONGLONG(0); + amount1000_ = int64_t{0}; _has_bits_[0] &= ~0x00000002u; } inline ::PROTOBUF_NAMESPACE_ID::int64 HSMCurrency::_internal_amount1000() const { @@ -36244,7 +34912,7 @@ inline bool HSMDateTimeUnixEpoch::has_timestamp() const { return _internal_has_timestamp(); } inline void HSMDateTimeUnixEpoch::clear_timestamp() { - timestamp_ = PROTOBUF_LONGLONG(0); + timestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00000001u; } inline ::PROTOBUF_NAMESPACE_ID::int64 HSMDateTimeUnixEpoch::_internal_timestamp() const { @@ -36279,7 +34947,7 @@ inline void HSMDateTime::set_has_component() { } inline void HSMDateTime::clear_component() { if (_internal_has_component()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete datetimeOneof_.component_; } clear_has_datetimeOneof(); @@ -36290,7 +34958,7 @@ inline ::proto::HSMDateTimeComponent* HSMDateTime::release_component() { if (_internal_has_component()) { clear_has_datetimeOneof(); ::proto::HSMDateTimeComponent* temp = datetimeOneof_.component_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } datetimeOneof_.component_ = nullptr; @@ -36331,13 +34999,14 @@ inline ::proto::HSMDateTimeComponent* HSMDateTime::_internal_mutable_component() if (!_internal_has_component()) { clear_datetimeOneof(); set_has_component(); - datetimeOneof_.component_ = CreateMaybeMessage< ::proto::HSMDateTimeComponent >(GetArena()); + datetimeOneof_.component_ = CreateMaybeMessage< ::proto::HSMDateTimeComponent >(GetArenaForAllocation()); } return datetimeOneof_.component_; } inline ::proto::HSMDateTimeComponent* HSMDateTime::mutable_component() { + ::proto::HSMDateTimeComponent* _msg = _internal_mutable_component(); // @@protoc_insertion_point(field_mutable:proto.HSMDateTime.component) - return _internal_mutable_component(); + return _msg; } // .proto.HSMDateTimeUnixEpoch unixEpoch = 2; @@ -36352,7 +35021,7 @@ inline void HSMDateTime::set_has_unixepoch() { } inline void HSMDateTime::clear_unixepoch() { if (_internal_has_unixepoch()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete datetimeOneof_.unixepoch_; } clear_has_datetimeOneof(); @@ -36363,7 +35032,7 @@ inline ::proto::HSMDateTimeUnixEpoch* HSMDateTime::release_unixepoch() { if (_internal_has_unixepoch()) { clear_has_datetimeOneof(); ::proto::HSMDateTimeUnixEpoch* temp = datetimeOneof_.unixepoch_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } datetimeOneof_.unixepoch_ = nullptr; @@ -36404,13 +35073,14 @@ inline ::proto::HSMDateTimeUnixEpoch* HSMDateTime::_internal_mutable_unixepoch() if (!_internal_has_unixepoch()) { clear_datetimeOneof(); set_has_unixepoch(); - datetimeOneof_.unixepoch_ = CreateMaybeMessage< ::proto::HSMDateTimeUnixEpoch >(GetArena()); + datetimeOneof_.unixepoch_ = CreateMaybeMessage< ::proto::HSMDateTimeUnixEpoch >(GetArenaForAllocation()); } return datetimeOneof_.unixepoch_; } inline ::proto::HSMDateTimeUnixEpoch* HSMDateTime::mutable_unixepoch() { + ::proto::HSMDateTimeUnixEpoch* _msg = _internal_mutable_unixepoch(); // @@protoc_insertion_point(field_mutable:proto.HSMDateTime.unixEpoch) - return _internal_mutable_unixepoch(); + return _msg; } inline bool HSMDateTime::has_datetimeOneof() const { @@ -36442,43 +35112,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HSMLocalizableParameter::set_default_(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + default__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HSMLocalizableParameter.default) } inline std::string* HSMLocalizableParameter::mutable_default_() { + std::string* _s = _internal_mutable_default_(); // @@protoc_insertion_point(field_mutable:proto.HSMLocalizableParameter.default) - return _internal_mutable_default_(); + return _s; } 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) + default__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HSMLocalizableParameter::_internal_mutable_default_() { _has_bits_[0] |= 0x00000001u; - return default__.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return default__.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HSMLocalizableParameter::release_default_() { // @@protoc_insertion_point(field_release:proto.HSMLocalizableParameter.default) @@ -36486,7 +35141,7 @@ inline std::string* HSMLocalizableParameter::release_default_() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return default__.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return default__.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HSMLocalizableParameter::set_allocated_default_(std::string* default_) { if (default_ != nullptr) { @@ -36495,7 +35150,7 @@ inline void HSMLocalizableParameter::set_allocated_default_(std::string* default _has_bits_[0] &= ~0x00000001u; } default__.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), default_, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HSMLocalizableParameter.default) } @@ -36511,7 +35166,7 @@ inline void HSMLocalizableParameter::set_has_currency() { } inline void HSMLocalizableParameter::clear_currency() { if (_internal_has_currency()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete paramOneof_.currency_; } clear_has_paramOneof(); @@ -36522,7 +35177,7 @@ inline ::proto::HSMCurrency* HSMLocalizableParameter::release_currency() { if (_internal_has_currency()) { clear_has_paramOneof(); ::proto::HSMCurrency* temp = paramOneof_.currency_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } paramOneof_.currency_ = nullptr; @@ -36563,13 +35218,14 @@ inline ::proto::HSMCurrency* HSMLocalizableParameter::_internal_mutable_currency if (!_internal_has_currency()) { clear_paramOneof(); set_has_currency(); - paramOneof_.currency_ = CreateMaybeMessage< ::proto::HSMCurrency >(GetArena()); + paramOneof_.currency_ = CreateMaybeMessage< ::proto::HSMCurrency >(GetArenaForAllocation()); } return paramOneof_.currency_; } inline ::proto::HSMCurrency* HSMLocalizableParameter::mutable_currency() { + ::proto::HSMCurrency* _msg = _internal_mutable_currency(); // @@protoc_insertion_point(field_mutable:proto.HSMLocalizableParameter.currency) - return _internal_mutable_currency(); + return _msg; } // .proto.HSMDateTime dateTime = 3; @@ -36584,7 +35240,7 @@ inline void HSMLocalizableParameter::set_has_datetime() { } inline void HSMLocalizableParameter::clear_datetime() { if (_internal_has_datetime()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete paramOneof_.datetime_; } clear_has_paramOneof(); @@ -36595,7 +35251,7 @@ inline ::proto::HSMDateTime* HSMLocalizableParameter::release_datetime() { if (_internal_has_datetime()) { clear_has_paramOneof(); ::proto::HSMDateTime* temp = paramOneof_.datetime_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } paramOneof_.datetime_ = nullptr; @@ -36636,13 +35292,14 @@ inline ::proto::HSMDateTime* HSMLocalizableParameter::_internal_mutable_datetime if (!_internal_has_datetime()) { clear_paramOneof(); set_has_datetime(); - paramOneof_.datetime_ = CreateMaybeMessage< ::proto::HSMDateTime >(GetArena()); + paramOneof_.datetime_ = CreateMaybeMessage< ::proto::HSMDateTime >(GetArenaForAllocation()); } return paramOneof_.datetime_; } inline ::proto::HSMDateTime* HSMLocalizableParameter::mutable_datetime() { + ::proto::HSMDateTime* _msg = _internal_mutable_datetime(); // @@protoc_insertion_point(field_mutable:proto.HSMLocalizableParameter.dateTime) - return _internal_mutable_datetime(); + return _msg; } inline bool HSMLocalizableParameter::has_paramOneof() const { @@ -36674,43 +35331,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HighlyStructuredMessage::set_namespace_(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.namespace) } inline std::string* HighlyStructuredMessage::mutable_namespace_() { + std::string* _s = _internal_mutable_namespace_(); // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.namespace) - return _internal_mutable_namespace_(); + return _s; } 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) + namespace__.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::_internal_mutable_namespace_() { _has_bits_[0] |= 0x00000001u; - return namespace__.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return namespace__.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::release_namespace_() { // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.namespace) @@ -36718,7 +35360,7 @@ inline std::string* HighlyStructuredMessage::release_namespace_() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return namespace__.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return namespace__.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HighlyStructuredMessage::set_allocated_namespace_(std::string* namespace_) { if (namespace_ != nullptr) { @@ -36727,7 +35369,7 @@ inline void HighlyStructuredMessage::set_allocated_namespace_(std::string* names _has_bits_[0] &= ~0x00000001u; } namespace__.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), namespace_, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.namespace) } @@ -36747,43 +35389,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HighlyStructuredMessage::set_elementname(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + elementname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.elementName) } inline std::string* HighlyStructuredMessage::mutable_elementname() { + std::string* _s = _internal_mutable_elementname(); // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.elementName) - return _internal_mutable_elementname(); + return _s; } 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) + elementname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::_internal_mutable_elementname() { _has_bits_[0] |= 0x00000002u; - return elementname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return elementname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::release_elementname() { // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.elementName) @@ -36791,7 +35418,7 @@ inline std::string* HighlyStructuredMessage::release_elementname() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return elementname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return elementname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HighlyStructuredMessage::set_allocated_elementname(std::string* elementname) { if (elementname != nullptr) { @@ -36800,7 +35427,7 @@ inline void HighlyStructuredMessage::set_allocated_elementname(std::string* elem _has_bits_[0] &= ~0x00000002u; } elementname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), elementname, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.elementName) } @@ -36815,8 +35442,9 @@ inline void HighlyStructuredMessage::clear_params() { params_.Clear(); } inline std::string* HighlyStructuredMessage::add_params() { + std::string* _s = _internal_add_params(); // @@protoc_insertion_point(field_add_mutable:proto.HighlyStructuredMessage.params) - return _internal_add_params(); + return _s; } inline const std::string& HighlyStructuredMessage::_internal_params(int index) const { return params_.Get(index); @@ -36830,12 +35458,12 @@ inline std::string* HighlyStructuredMessage::mutable_params(int index) { 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); + // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.params) } 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)); + // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.params) } inline void HighlyStructuredMessage::set_params(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); @@ -36894,43 +35522,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HighlyStructuredMessage::set_fallbacklg(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + fallbacklg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.fallbackLg) } inline std::string* HighlyStructuredMessage::mutable_fallbacklg() { + std::string* _s = _internal_mutable_fallbacklg(); // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.fallbackLg) - return _internal_mutable_fallbacklg(); + return _s; } 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) + fallbacklg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::_internal_mutable_fallbacklg() { _has_bits_[0] |= 0x00000004u; - return fallbacklg_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return fallbacklg_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::release_fallbacklg() { // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.fallbackLg) @@ -36938,7 +35551,7 @@ inline std::string* HighlyStructuredMessage::release_fallbacklg() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return fallbacklg_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return fallbacklg_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HighlyStructuredMessage::set_allocated_fallbacklg(std::string* fallbacklg) { if (fallbacklg != nullptr) { @@ -36947,7 +35560,7 @@ inline void HighlyStructuredMessage::set_allocated_fallbacklg(std::string* fallb _has_bits_[0] &= ~0x00000004u; } fallbacklg_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fallbacklg, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.fallbackLg) } @@ -36967,43 +35580,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HighlyStructuredMessage::set_fallbacklc(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + fallbacklc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.fallbackLc) } inline std::string* HighlyStructuredMessage::mutable_fallbacklc() { + std::string* _s = _internal_mutable_fallbacklc(); // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.fallbackLc) - return _internal_mutable_fallbacklc(); + return _s; } 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) + fallbacklc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::_internal_mutable_fallbacklc() { _has_bits_[0] |= 0x00000008u; - return fallbacklc_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return fallbacklc_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::release_fallbacklc() { // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.fallbackLc) @@ -37011,7 +35609,7 @@ inline std::string* HighlyStructuredMessage::release_fallbacklc() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return fallbacklc_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return fallbacklc_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HighlyStructuredMessage::set_allocated_fallbacklc(std::string* fallbacklc) { if (fallbacklc != nullptr) { @@ -37020,7 +35618,7 @@ inline void HighlyStructuredMessage::set_allocated_fallbacklc(std::string* fallb _has_bits_[0] &= ~0x00000008u; } fallbacklc_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fallbacklc, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.fallbackLc) } @@ -37054,8 +35652,9 @@ inline ::proto::HSMLocalizableParameter* HighlyStructuredMessage::_internal_add_ return localizableparams_.Add(); } inline ::proto::HSMLocalizableParameter* HighlyStructuredMessage::add_localizableparams() { + ::proto::HSMLocalizableParameter* _add = _internal_add_localizableparams(); // @@protoc_insertion_point(field_add:proto.HighlyStructuredMessage.localizableParams) - return _internal_add_localizableparams(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HSMLocalizableParameter >& HighlyStructuredMessage::localizableparams() const { @@ -37079,43 +35678,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HighlyStructuredMessage::set_deterministiclg(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + deterministiclg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.deterministicLg) } inline std::string* HighlyStructuredMessage::mutable_deterministiclg() { + std::string* _s = _internal_mutable_deterministiclg(); // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.deterministicLg) - return _internal_mutable_deterministiclg(); + return _s; } 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) + deterministiclg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::_internal_mutable_deterministiclg() { _has_bits_[0] |= 0x00000010u; - return deterministiclg_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return deterministiclg_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::release_deterministiclg() { // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.deterministicLg) @@ -37123,7 +35707,7 @@ inline std::string* HighlyStructuredMessage::release_deterministiclg() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return deterministiclg_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return deterministiclg_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HighlyStructuredMessage::set_allocated_deterministiclg(std::string* deterministiclg) { if (deterministiclg != nullptr) { @@ -37132,7 +35716,7 @@ inline void HighlyStructuredMessage::set_allocated_deterministiclg(std::string* _has_bits_[0] &= ~0x00000010u; } deterministiclg_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deterministiclg, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.deterministicLg) } @@ -37152,43 +35736,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HighlyStructuredMessage::set_deterministiclc(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + deterministiclc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HighlyStructuredMessage.deterministicLc) } inline std::string* HighlyStructuredMessage::mutable_deterministiclc() { + std::string* _s = _internal_mutable_deterministiclc(); // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.deterministicLc) - return _internal_mutable_deterministiclc(); + return _s; } 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) + deterministiclc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::_internal_mutable_deterministiclc() { _has_bits_[0] |= 0x00000020u; - return deterministiclc_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return deterministiclc_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HighlyStructuredMessage::release_deterministiclc() { // @@protoc_insertion_point(field_release:proto.HighlyStructuredMessage.deterministicLc) @@ -37196,7 +35765,7 @@ inline std::string* HighlyStructuredMessage::release_deterministiclc() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return deterministiclc_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return deterministiclc_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HighlyStructuredMessage::set_allocated_deterministiclc(std::string* deterministiclc) { if (deterministiclc != nullptr) { @@ -37205,7 +35774,7 @@ inline void HighlyStructuredMessage::set_allocated_deterministiclc(std::string* _has_bits_[0] &= ~0x00000020u; } deterministiclc_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), deterministiclc, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HighlyStructuredMessage.deterministicLc) } @@ -37233,7 +35802,7 @@ inline const ::proto::TemplateMessage& HighlyStructuredMessage::hydratedhsm() co } inline void HighlyStructuredMessage::unsafe_arena_set_allocated_hydratedhsm( ::proto::TemplateMessage* hydratedhsm) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(hydratedhsm_); } hydratedhsm_ = hydratedhsm; @@ -37248,9 +35817,15 @@ inline ::proto::TemplateMessage* HighlyStructuredMessage::release_hydratedhsm() _has_bits_[0] &= ~0x00000040u; ::proto::TemplateMessage* temp = hydratedhsm_; hydratedhsm_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::TemplateMessage* HighlyStructuredMessage::unsafe_arena_release_hydratedhsm() { @@ -37263,23 +35838,24 @@ inline ::proto::TemplateMessage* HighlyStructuredMessage::unsafe_arena_release_h inline ::proto::TemplateMessage* HighlyStructuredMessage::_internal_mutable_hydratedhsm() { _has_bits_[0] |= 0x00000040u; if (hydratedhsm_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::TemplateMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::TemplateMessage>(GetArenaForAllocation()); hydratedhsm_ = p; } return hydratedhsm_; } inline ::proto::TemplateMessage* HighlyStructuredMessage::mutable_hydratedhsm() { + ::proto::TemplateMessage* _msg = _internal_mutable_hydratedhsm(); // @@protoc_insertion_point(field_mutable:proto.HighlyStructuredMessage.hydratedHsm) - return _internal_mutable_hydratedhsm(); + return _msg; } inline void HighlyStructuredMessage::set_allocated_hydratedhsm(::proto::TemplateMessage* hydratedhsm) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete hydratedhsm_; } if (hydratedhsm) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(hydratedhsm); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::TemplateMessage>::GetOwningArena(hydratedhsm); if (message_arena != submessage_arena) { hydratedhsm = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, hydratedhsm, submessage_arena); @@ -37320,7 +35896,7 @@ inline const ::proto::Message& SendPaymentMessage::notemessage() const { } inline void SendPaymentMessage::unsafe_arena_set_allocated_notemessage( ::proto::Message* notemessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(notemessage_); } notemessage_ = notemessage; @@ -37335,9 +35911,15 @@ inline ::proto::Message* SendPaymentMessage::release_notemessage() { _has_bits_[0] &= ~0x00000001u; ::proto::Message* temp = notemessage_; notemessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::Message* SendPaymentMessage::unsafe_arena_release_notemessage() { @@ -37350,23 +35932,24 @@ inline ::proto::Message* SendPaymentMessage::unsafe_arena_release_notemessage() inline ::proto::Message* SendPaymentMessage::_internal_mutable_notemessage() { _has_bits_[0] |= 0x00000001u; if (notemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + auto* p = CreateMaybeMessage<::proto::Message>(GetArenaForAllocation()); notemessage_ = p; } return notemessage_; } inline ::proto::Message* SendPaymentMessage::mutable_notemessage() { + ::proto::Message* _msg = _internal_mutable_notemessage(); // @@protoc_insertion_point(field_mutable:proto.SendPaymentMessage.noteMessage) - return _internal_mutable_notemessage(); + return _msg; } inline void SendPaymentMessage::set_allocated_notemessage(::proto::Message* notemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete notemessage_; } if (notemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(notemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Message>::GetOwningArena(notemessage); if (message_arena != submessage_arena) { notemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, notemessage, submessage_arena); @@ -37403,7 +35986,7 @@ inline const ::proto::MessageKey& SendPaymentMessage::requestmessagekey() const } inline void SendPaymentMessage::unsafe_arena_set_allocated_requestmessagekey( ::proto::MessageKey* requestmessagekey) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(requestmessagekey_); } requestmessagekey_ = requestmessagekey; @@ -37418,9 +36001,15 @@ inline ::proto::MessageKey* SendPaymentMessage::release_requestmessagekey() { _has_bits_[0] &= ~0x00000002u; ::proto::MessageKey* temp = requestmessagekey_; requestmessagekey_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::MessageKey* SendPaymentMessage::unsafe_arena_release_requestmessagekey() { @@ -37433,23 +36022,24 @@ inline ::proto::MessageKey* SendPaymentMessage::unsafe_arena_release_requestmess inline ::proto::MessageKey* SendPaymentMessage::_internal_mutable_requestmessagekey() { _has_bits_[0] |= 0x00000002u; if (requestmessagekey_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArenaForAllocation()); requestmessagekey_ = p; } return requestmessagekey_; } inline ::proto::MessageKey* SendPaymentMessage::mutable_requestmessagekey() { + ::proto::MessageKey* _msg = _internal_mutable_requestmessagekey(); // @@protoc_insertion_point(field_mutable:proto.SendPaymentMessage.requestMessageKey) - return _internal_mutable_requestmessagekey(); + return _msg; } inline void SendPaymentMessage::set_allocated_requestmessagekey(::proto::MessageKey* requestmessagekey) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete requestmessagekey_; } if (requestmessagekey) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(requestmessagekey); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::MessageKey>::GetOwningArena(requestmessagekey); if (message_arena != submessage_arena) { requestmessagekey = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, requestmessagekey, submessage_arena); @@ -37490,7 +36080,7 @@ inline const ::proto::Message& RequestPaymentMessage::notemessage() const { } inline void RequestPaymentMessage::unsafe_arena_set_allocated_notemessage( ::proto::Message* notemessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(notemessage_); } notemessage_ = notemessage; @@ -37505,9 +36095,15 @@ inline ::proto::Message* RequestPaymentMessage::release_notemessage() { _has_bits_[0] &= ~0x00000004u; ::proto::Message* temp = notemessage_; notemessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::Message* RequestPaymentMessage::unsafe_arena_release_notemessage() { @@ -37520,23 +36116,24 @@ inline ::proto::Message* RequestPaymentMessage::unsafe_arena_release_notemessage inline ::proto::Message* RequestPaymentMessage::_internal_mutable_notemessage() { _has_bits_[0] |= 0x00000004u; if (notemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + auto* p = CreateMaybeMessage<::proto::Message>(GetArenaForAllocation()); notemessage_ = p; } return notemessage_; } inline ::proto::Message* RequestPaymentMessage::mutable_notemessage() { + ::proto::Message* _msg = _internal_mutable_notemessage(); // @@protoc_insertion_point(field_mutable:proto.RequestPaymentMessage.noteMessage) - return _internal_mutable_notemessage(); + return _msg; } inline void RequestPaymentMessage::set_allocated_notemessage(::proto::Message* notemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete notemessage_; } if (notemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(notemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Message>::GetOwningArena(notemessage); if (message_arena != submessage_arena) { notemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, notemessage, submessage_arena); @@ -37565,43 +36162,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void RequestPaymentMessage::set_currencycodeiso4217(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + currencycodeiso4217_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.RequestPaymentMessage.currencyCodeIso4217) } inline std::string* RequestPaymentMessage::mutable_currencycodeiso4217() { + std::string* _s = _internal_mutable_currencycodeiso4217(); // @@protoc_insertion_point(field_mutable:proto.RequestPaymentMessage.currencyCodeIso4217) - return _internal_mutable_currencycodeiso4217(); + return _s; } 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) + currencycodeiso4217_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* RequestPaymentMessage::_internal_mutable_currencycodeiso4217() { _has_bits_[0] |= 0x00000001u; - return currencycodeiso4217_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return currencycodeiso4217_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* RequestPaymentMessage::release_currencycodeiso4217() { // @@protoc_insertion_point(field_release:proto.RequestPaymentMessage.currencyCodeIso4217) @@ -37609,7 +36191,7 @@ inline std::string* RequestPaymentMessage::release_currencycodeiso4217() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return currencycodeiso4217_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return currencycodeiso4217_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void RequestPaymentMessage::set_allocated_currencycodeiso4217(std::string* currencycodeiso4217) { if (currencycodeiso4217 != nullptr) { @@ -37618,7 +36200,7 @@ inline void RequestPaymentMessage::set_allocated_currencycodeiso4217(std::string _has_bits_[0] &= ~0x00000001u; } currencycodeiso4217_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), currencycodeiso4217, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.RequestPaymentMessage.currencyCodeIso4217) } @@ -37631,7 +36213,7 @@ inline bool RequestPaymentMessage::has_amount1000() const { return _internal_has_amount1000(); } inline void RequestPaymentMessage::clear_amount1000() { - amount1000_ = PROTOBUF_ULONGLONG(0); + amount1000_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000010u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 RequestPaymentMessage::_internal_amount1000() const { @@ -37666,43 +36248,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void RequestPaymentMessage::set_requestfrom(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + requestfrom_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.RequestPaymentMessage.requestFrom) } inline std::string* RequestPaymentMessage::mutable_requestfrom() { + std::string* _s = _internal_mutable_requestfrom(); // @@protoc_insertion_point(field_mutable:proto.RequestPaymentMessage.requestFrom) - return _internal_mutable_requestfrom(); + return _s; } 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) + requestfrom_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* RequestPaymentMessage::_internal_mutable_requestfrom() { _has_bits_[0] |= 0x00000002u; - return requestfrom_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return requestfrom_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* RequestPaymentMessage::release_requestfrom() { // @@protoc_insertion_point(field_release:proto.RequestPaymentMessage.requestFrom) @@ -37710,7 +36277,7 @@ inline std::string* RequestPaymentMessage::release_requestfrom() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return requestfrom_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return requestfrom_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void RequestPaymentMessage::set_allocated_requestfrom(std::string* requestfrom) { if (requestfrom != nullptr) { @@ -37719,7 +36286,7 @@ inline void RequestPaymentMessage::set_allocated_requestfrom(std::string* reques _has_bits_[0] &= ~0x00000002u; } requestfrom_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requestfrom, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.RequestPaymentMessage.requestFrom) } @@ -37732,7 +36299,7 @@ inline bool RequestPaymentMessage::has_expirytimestamp() const { return _internal_has_expirytimestamp(); } inline void RequestPaymentMessage::clear_expirytimestamp() { - expirytimestamp_ = PROTOBUF_LONGLONG(0); + expirytimestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00000020u; } inline ::PROTOBUF_NAMESPACE_ID::int64 RequestPaymentMessage::_internal_expirytimestamp() const { @@ -37775,7 +36342,7 @@ inline const ::proto::PaymentMoney& RequestPaymentMessage::amount() const { } inline void RequestPaymentMessage::unsafe_arena_set_allocated_amount( ::proto::PaymentMoney* amount) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(amount_); } amount_ = amount; @@ -37790,9 +36357,15 @@ inline ::proto::PaymentMoney* RequestPaymentMessage::release_amount() { _has_bits_[0] &= ~0x00000008u; ::proto::PaymentMoney* temp = amount_; amount_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::PaymentMoney* RequestPaymentMessage::unsafe_arena_release_amount() { @@ -37805,23 +36378,24 @@ inline ::proto::PaymentMoney* RequestPaymentMessage::unsafe_arena_release_amount inline ::proto::PaymentMoney* RequestPaymentMessage::_internal_mutable_amount() { _has_bits_[0] |= 0x00000008u; if (amount_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::PaymentMoney>(GetArena()); + auto* p = CreateMaybeMessage<::proto::PaymentMoney>(GetArenaForAllocation()); amount_ = p; } return amount_; } inline ::proto::PaymentMoney* RequestPaymentMessage::mutable_amount() { + ::proto::PaymentMoney* _msg = _internal_mutable_amount(); // @@protoc_insertion_point(field_mutable:proto.RequestPaymentMessage.amount) - return _internal_mutable_amount(); + return _msg; } inline void RequestPaymentMessage::set_allocated_amount(::proto::PaymentMoney* amount) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete amount_; } if (amount) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(amount); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::PaymentMoney>::GetOwningArena(amount); if (message_arena != submessage_arena) { amount = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, amount, submessage_arena); @@ -37862,7 +36436,7 @@ inline const ::proto::MessageKey& DeclinePaymentRequestMessage::key() const { } inline void DeclinePaymentRequestMessage::unsafe_arena_set_allocated_key( ::proto::MessageKey* key) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); } key_ = key; @@ -37877,9 +36451,15 @@ inline ::proto::MessageKey* DeclinePaymentRequestMessage::release_key() { _has_bits_[0] &= ~0x00000001u; ::proto::MessageKey* temp = key_; key_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::MessageKey* DeclinePaymentRequestMessage::unsafe_arena_release_key() { @@ -37892,23 +36472,24 @@ inline ::proto::MessageKey* DeclinePaymentRequestMessage::unsafe_arena_release_k inline ::proto::MessageKey* DeclinePaymentRequestMessage::_internal_mutable_key() { _has_bits_[0] |= 0x00000001u; if (key_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArenaForAllocation()); key_ = p; } return key_; } inline ::proto::MessageKey* DeclinePaymentRequestMessage::mutable_key() { + ::proto::MessageKey* _msg = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:proto.DeclinePaymentRequestMessage.key) - return _internal_mutable_key(); + return _msg; } inline void DeclinePaymentRequestMessage::set_allocated_key(::proto::MessageKey* key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete key_; } if (key) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(key); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::MessageKey>::GetOwningArena(key); if (message_arena != submessage_arena) { key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, key, submessage_arena); @@ -37949,7 +36530,7 @@ inline const ::proto::MessageKey& CancelPaymentRequestMessage::key() const { } inline void CancelPaymentRequestMessage::unsafe_arena_set_allocated_key( ::proto::MessageKey* key) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); } key_ = key; @@ -37964,9 +36545,15 @@ inline ::proto::MessageKey* CancelPaymentRequestMessage::release_key() { _has_bits_[0] &= ~0x00000001u; ::proto::MessageKey* temp = key_; key_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::MessageKey* CancelPaymentRequestMessage::unsafe_arena_release_key() { @@ -37979,23 +36566,24 @@ inline ::proto::MessageKey* CancelPaymentRequestMessage::unsafe_arena_release_ke inline ::proto::MessageKey* CancelPaymentRequestMessage::_internal_mutable_key() { _has_bits_[0] |= 0x00000001u; if (key_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArenaForAllocation()); key_ = p; } return key_; } inline ::proto::MessageKey* CancelPaymentRequestMessage::mutable_key() { + ::proto::MessageKey* _msg = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:proto.CancelPaymentRequestMessage.key) - return _internal_mutable_key(); + return _msg; } inline void CancelPaymentRequestMessage::set_allocated_key(::proto::MessageKey* key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete key_; } if (key) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(key); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::MessageKey>::GetOwningArena(key); if (message_arena != submessage_arena) { key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, key, submessage_arena); @@ -38168,43 +36756,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void LiveLocationMessage::set_caption(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.caption) } inline std::string* LiveLocationMessage::mutable_caption() { + std::string* _s = _internal_mutable_caption(); // @@protoc_insertion_point(field_mutable:proto.LiveLocationMessage.caption) - return _internal_mutable_caption(); + return _s; } 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) + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* LiveLocationMessage::_internal_mutable_caption() { _has_bits_[0] |= 0x00000001u; - return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* LiveLocationMessage::release_caption() { // @@protoc_insertion_point(field_release:proto.LiveLocationMessage.caption) @@ -38212,7 +36785,7 @@ inline std::string* LiveLocationMessage::release_caption() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void LiveLocationMessage::set_allocated_caption(std::string* caption) { if (caption != nullptr) { @@ -38221,7 +36794,7 @@ inline void LiveLocationMessage::set_allocated_caption(std::string* caption) { _has_bits_[0] &= ~0x00000001u; } caption_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), caption, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.LiveLocationMessage.caption) } @@ -38234,7 +36807,7 @@ inline bool LiveLocationMessage::has_sequencenumber() const { return _internal_has_sequencenumber(); } inline void LiveLocationMessage::clear_sequencenumber() { - sequencenumber_ = PROTOBUF_LONGLONG(0); + sequencenumber_ = int64_t{0}; _has_bits_[0] &= ~0x00000200u; } inline ::PROTOBUF_NAMESPACE_ID::int64 LiveLocationMessage::_internal_sequencenumber() const { @@ -38297,43 +36870,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void LiveLocationMessage::set_jpegthumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + jpegthumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.LiveLocationMessage.jpegThumbnail) } inline std::string* LiveLocationMessage::mutable_jpegthumbnail() { + std::string* _s = _internal_mutable_jpegthumbnail(); // @@protoc_insertion_point(field_mutable:proto.LiveLocationMessage.jpegThumbnail) - return _internal_mutable_jpegthumbnail(); + return _s; } 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) + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* LiveLocationMessage::_internal_mutable_jpegthumbnail() { _has_bits_[0] |= 0x00000002u; - return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* LiveLocationMessage::release_jpegthumbnail() { // @@protoc_insertion_point(field_release:proto.LiveLocationMessage.jpegThumbnail) @@ -38341,7 +36899,7 @@ inline std::string* LiveLocationMessage::release_jpegthumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void LiveLocationMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { if (jpegthumbnail != nullptr) { @@ -38350,7 +36908,7 @@ inline void LiveLocationMessage::set_allocated_jpegthumbnail(std::string* jpegth _has_bits_[0] &= ~0x00000002u; } jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.LiveLocationMessage.jpegThumbnail) } @@ -38378,7 +36936,7 @@ inline const ::proto::ContextInfo& LiveLocationMessage::contextinfo() const { } inline void LiveLocationMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -38393,9 +36951,15 @@ inline ::proto::ContextInfo* LiveLocationMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000004u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* LiveLocationMessage::unsafe_arena_release_contextinfo() { @@ -38408,23 +36972,24 @@ inline ::proto::ContextInfo* LiveLocationMessage::unsafe_arena_release_contextin inline ::proto::ContextInfo* LiveLocationMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000004u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* LiveLocationMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.LiveLocationMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void LiveLocationMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -38457,43 +37022,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void StickerMessage::set_url(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.StickerMessage.url) } inline std::string* StickerMessage::mutable_url() { + std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:proto.StickerMessage.url) - return _internal_mutable_url(); + return _s; } 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) + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* StickerMessage::_internal_mutable_url() { _has_bits_[0] |= 0x00000001u; - return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* StickerMessage::release_url() { // @@protoc_insertion_point(field_release:proto.StickerMessage.url) @@ -38501,7 +37051,7 @@ inline std::string* StickerMessage::release_url() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void StickerMessage::set_allocated_url(std::string* url) { if (url != nullptr) { @@ -38510,7 +37060,7 @@ inline void StickerMessage::set_allocated_url(std::string* url) { _has_bits_[0] &= ~0x00000001u; } url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.url) } @@ -38530,43 +37080,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void StickerMessage::set_filesha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + filesha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.StickerMessage.fileSha256) } inline std::string* StickerMessage::mutable_filesha256() { + std::string* _s = _internal_mutable_filesha256(); // @@protoc_insertion_point(field_mutable:proto.StickerMessage.fileSha256) - return _internal_mutable_filesha256(); + return _s; } 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) + filesha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* StickerMessage::_internal_mutable_filesha256() { _has_bits_[0] |= 0x00000002u; - return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return filesha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* StickerMessage::release_filesha256() { // @@protoc_insertion_point(field_release:proto.StickerMessage.fileSha256) @@ -38574,7 +37109,7 @@ inline std::string* StickerMessage::release_filesha256() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return filesha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void StickerMessage::set_allocated_filesha256(std::string* filesha256) { if (filesha256 != nullptr) { @@ -38583,7 +37118,7 @@ inline void StickerMessage::set_allocated_filesha256(std::string* filesha256) { _has_bits_[0] &= ~0x00000002u; } filesha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filesha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.fileSha256) } @@ -38603,43 +37138,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void StickerMessage::set_fileencsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + fileencsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.StickerMessage.fileEncSha256) } inline std::string* StickerMessage::mutable_fileencsha256() { + std::string* _s = _internal_mutable_fileencsha256(); // @@protoc_insertion_point(field_mutable:proto.StickerMessage.fileEncSha256) - return _internal_mutable_fileencsha256(); + return _s; } 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) + fileencsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* StickerMessage::_internal_mutable_fileencsha256() { _has_bits_[0] |= 0x00000004u; - return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return fileencsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* StickerMessage::release_fileencsha256() { // @@protoc_insertion_point(field_release:proto.StickerMessage.fileEncSha256) @@ -38647,7 +37167,7 @@ inline std::string* StickerMessage::release_fileencsha256() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return fileencsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void StickerMessage::set_allocated_fileencsha256(std::string* fileencsha256) { if (fileencsha256 != nullptr) { @@ -38656,7 +37176,7 @@ inline void StickerMessage::set_allocated_fileencsha256(std::string* fileencsha2 _has_bits_[0] &= ~0x00000004u; } fileencsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), fileencsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.fileEncSha256) } @@ -38676,43 +37196,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void StickerMessage::set_mediakey(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + mediakey_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.StickerMessage.mediaKey) } inline std::string* StickerMessage::mutable_mediakey() { + std::string* _s = _internal_mutable_mediakey(); // @@protoc_insertion_point(field_mutable:proto.StickerMessage.mediaKey) - return _internal_mutable_mediakey(); + return _s; } 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) + mediakey_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* StickerMessage::_internal_mutable_mediakey() { _has_bits_[0] |= 0x00000008u; - return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mediakey_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* StickerMessage::release_mediakey() { // @@protoc_insertion_point(field_release:proto.StickerMessage.mediaKey) @@ -38720,7 +37225,7 @@ inline std::string* StickerMessage::release_mediakey() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mediakey_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void StickerMessage::set_allocated_mediakey(std::string* mediakey) { if (mediakey != nullptr) { @@ -38729,7 +37234,7 @@ inline void StickerMessage::set_allocated_mediakey(std::string* mediakey) { _has_bits_[0] &= ~0x00000008u; } mediakey_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediakey, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.mediaKey) } @@ -38749,43 +37254,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void StickerMessage::set_mimetype(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.StickerMessage.mimetype) } inline std::string* StickerMessage::mutable_mimetype() { + std::string* _s = _internal_mutable_mimetype(); // @@protoc_insertion_point(field_mutable:proto.StickerMessage.mimetype) - return _internal_mutable_mimetype(); + return _s; } 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) + mimetype_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* StickerMessage::_internal_mutable_mimetype() { _has_bits_[0] |= 0x00000010u; - return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mimetype_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* StickerMessage::release_mimetype() { // @@protoc_insertion_point(field_release:proto.StickerMessage.mimetype) @@ -38793,7 +37283,7 @@ inline std::string* StickerMessage::release_mimetype() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mimetype_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void StickerMessage::set_allocated_mimetype(std::string* mimetype) { if (mimetype != nullptr) { @@ -38802,7 +37292,7 @@ inline void StickerMessage::set_allocated_mimetype(std::string* mimetype) { _has_bits_[0] &= ~0x00000010u; } mimetype_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mimetype, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.mimetype) } @@ -38878,43 +37368,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void StickerMessage::set_directpath(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.StickerMessage.directPath) } inline std::string* StickerMessage::mutable_directpath() { + std::string* _s = _internal_mutable_directpath(); // @@protoc_insertion_point(field_mutable:proto.StickerMessage.directPath) - return _internal_mutable_directpath(); + return _s; } 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) + directpath_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* StickerMessage::_internal_mutable_directpath() { _has_bits_[0] |= 0x00000020u; - return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return directpath_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* StickerMessage::release_directpath() { // @@protoc_insertion_point(field_release:proto.StickerMessage.directPath) @@ -38922,7 +37397,7 @@ inline std::string* StickerMessage::release_directpath() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return directpath_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void StickerMessage::set_allocated_directpath(std::string* directpath) { if (directpath != nullptr) { @@ -38931,7 +37406,7 @@ inline void StickerMessage::set_allocated_directpath(std::string* directpath) { _has_bits_[0] &= ~0x00000020u; } directpath_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), directpath, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.directPath) } @@ -38944,7 +37419,7 @@ inline bool StickerMessage::has_filelength() const { return _internal_has_filelength(); } inline void StickerMessage::clear_filelength() { - filelength_ = PROTOBUF_ULONGLONG(0); + filelength_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000800u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 StickerMessage::_internal_filelength() const { @@ -38972,7 +37447,7 @@ inline bool StickerMessage::has_mediakeytimestamp() const { return _internal_has_mediakeytimestamp(); } inline void StickerMessage::clear_mediakeytimestamp() { - mediakeytimestamp_ = PROTOBUF_LONGLONG(0); + mediakeytimestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00001000u; } inline ::PROTOBUF_NAMESPACE_ID::int64 StickerMessage::_internal_mediakeytimestamp() const { @@ -39035,43 +37510,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void StickerMessage::set_firstframesidecar(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000040u; + firstframesidecar_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.StickerMessage.firstFrameSidecar) } inline std::string* StickerMessage::mutable_firstframesidecar() { + std::string* _s = _internal_mutable_firstframesidecar(); // @@protoc_insertion_point(field_mutable:proto.StickerMessage.firstFrameSidecar) - return _internal_mutable_firstframesidecar(); + return _s; } 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) + firstframesidecar_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* StickerMessage::_internal_mutable_firstframesidecar() { _has_bits_[0] |= 0x00000040u; - return firstframesidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return firstframesidecar_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* StickerMessage::release_firstframesidecar() { // @@protoc_insertion_point(field_release:proto.StickerMessage.firstFrameSidecar) @@ -39079,7 +37539,7 @@ inline std::string* StickerMessage::release_firstframesidecar() { return nullptr; } _has_bits_[0] &= ~0x00000040u; - return firstframesidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return firstframesidecar_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void StickerMessage::set_allocated_firstframesidecar(std::string* firstframesidecar) { if (firstframesidecar != nullptr) { @@ -39088,7 +37548,7 @@ inline void StickerMessage::set_allocated_firstframesidecar(std::string* firstfr _has_bits_[0] &= ~0x00000040u; } firstframesidecar_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), firstframesidecar, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.firstFrameSidecar) } @@ -39136,43 +37596,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void StickerMessage::set_pngthumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000080u; + pngthumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.StickerMessage.pngThumbnail) } inline std::string* StickerMessage::mutable_pngthumbnail() { + std::string* _s = _internal_mutable_pngthumbnail(); // @@protoc_insertion_point(field_mutable:proto.StickerMessage.pngThumbnail) - return _internal_mutable_pngthumbnail(); + return _s; } 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) + pngthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* StickerMessage::_internal_mutable_pngthumbnail() { _has_bits_[0] |= 0x00000080u; - return pngthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return pngthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* StickerMessage::release_pngthumbnail() { // @@protoc_insertion_point(field_release:proto.StickerMessage.pngThumbnail) @@ -39180,7 +37625,7 @@ inline std::string* StickerMessage::release_pngthumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000080u; - return pngthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return pngthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void StickerMessage::set_allocated_pngthumbnail(std::string* pngthumbnail) { if (pngthumbnail != nullptr) { @@ -39189,7 +37634,7 @@ inline void StickerMessage::set_allocated_pngthumbnail(std::string* pngthumbnail _has_bits_[0] &= ~0x00000080u; } pngthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pngthumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.StickerMessage.pngThumbnail) } @@ -39217,7 +37662,7 @@ inline const ::proto::ContextInfo& StickerMessage::contextinfo() const { } inline void StickerMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -39232,9 +37677,15 @@ inline ::proto::ContextInfo* StickerMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000100u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* StickerMessage::unsafe_arena_release_contextinfo() { @@ -39247,23 +37698,24 @@ inline ::proto::ContextInfo* StickerMessage::unsafe_arena_release_contextinfo() inline ::proto::ContextInfo* StickerMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000100u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* StickerMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.StickerMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void StickerMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -39304,7 +37756,7 @@ inline const ::proto::HighlyStructuredMessage& FourRowTemplate::content() const } inline void FourRowTemplate::unsafe_arena_set_allocated_content( ::proto::HighlyStructuredMessage* content) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(content_); } content_ = content; @@ -39319,9 +37771,15 @@ inline ::proto::HighlyStructuredMessage* FourRowTemplate::release_content() { _has_bits_[0] &= ~0x00000001u; ::proto::HighlyStructuredMessage* temp = content_; content_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::HighlyStructuredMessage* FourRowTemplate::unsafe_arena_release_content() { @@ -39334,23 +37792,24 @@ inline ::proto::HighlyStructuredMessage* FourRowTemplate::unsafe_arena_release_c inline ::proto::HighlyStructuredMessage* FourRowTemplate::_internal_mutable_content() { _has_bits_[0] |= 0x00000001u; if (content_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArenaForAllocation()); content_ = p; } return content_; } inline ::proto::HighlyStructuredMessage* FourRowTemplate::mutable_content() { + ::proto::HighlyStructuredMessage* _msg = _internal_mutable_content(); // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.content) - return _internal_mutable_content(); + return _msg; } inline void FourRowTemplate::set_allocated_content(::proto::HighlyStructuredMessage* content) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete content_; } if (content) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(content); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HighlyStructuredMessage>::GetOwningArena(content); if (message_arena != submessage_arena) { content = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, content, submessage_arena); @@ -39387,7 +37846,7 @@ inline const ::proto::HighlyStructuredMessage& FourRowTemplate::footer() const { } inline void FourRowTemplate::unsafe_arena_set_allocated_footer( ::proto::HighlyStructuredMessage* footer) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(footer_); } footer_ = footer; @@ -39402,9 +37861,15 @@ inline ::proto::HighlyStructuredMessage* FourRowTemplate::release_footer() { _has_bits_[0] &= ~0x00000002u; ::proto::HighlyStructuredMessage* temp = footer_; footer_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::HighlyStructuredMessage* FourRowTemplate::unsafe_arena_release_footer() { @@ -39417,23 +37882,24 @@ inline ::proto::HighlyStructuredMessage* FourRowTemplate::unsafe_arena_release_f inline ::proto::HighlyStructuredMessage* FourRowTemplate::_internal_mutable_footer() { _has_bits_[0] |= 0x00000002u; if (footer_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArenaForAllocation()); footer_ = p; } return footer_; } inline ::proto::HighlyStructuredMessage* FourRowTemplate::mutable_footer() { + ::proto::HighlyStructuredMessage* _msg = _internal_mutable_footer(); // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.footer) - return _internal_mutable_footer(); + return _msg; } inline void FourRowTemplate::set_allocated_footer(::proto::HighlyStructuredMessage* footer) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete footer_; } if (footer) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(footer); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HighlyStructuredMessage>::GetOwningArena(footer); if (message_arena != submessage_arena) { footer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, footer, submessage_arena); @@ -39476,8 +37942,9 @@ inline ::proto::TemplateButton* FourRowTemplate::_internal_add_buttons() { return buttons_.Add(); } inline ::proto::TemplateButton* FourRowTemplate::add_buttons() { + ::proto::TemplateButton* _add = _internal_add_buttons(); // @@protoc_insertion_point(field_add:proto.FourRowTemplate.buttons) - return _internal_add_buttons(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::TemplateButton >& FourRowTemplate::buttons() const { @@ -39497,7 +37964,7 @@ inline void FourRowTemplate::set_has_documentmessage() { } inline void FourRowTemplate::clear_documentmessage() { if (_internal_has_documentmessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.documentmessage_; } clear_has_title(); @@ -39508,7 +37975,7 @@ inline ::proto::DocumentMessage* FourRowTemplate::release_documentmessage() { if (_internal_has_documentmessage()) { clear_has_title(); ::proto::DocumentMessage* temp = title_.documentmessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } title_.documentmessage_ = nullptr; @@ -39549,13 +38016,14 @@ inline ::proto::DocumentMessage* FourRowTemplate::_internal_mutable_documentmess if (!_internal_has_documentmessage()) { clear_title(); set_has_documentmessage(); - title_.documentmessage_ = CreateMaybeMessage< ::proto::DocumentMessage >(GetArena()); + title_.documentmessage_ = CreateMaybeMessage< ::proto::DocumentMessage >(GetArenaForAllocation()); } return title_.documentmessage_; } inline ::proto::DocumentMessage* FourRowTemplate::mutable_documentmessage() { + ::proto::DocumentMessage* _msg = _internal_mutable_documentmessage(); // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.documentMessage) - return _internal_mutable_documentmessage(); + return _msg; } // .proto.HighlyStructuredMessage highlyStructuredMessage = 2; @@ -39570,7 +38038,7 @@ inline void FourRowTemplate::set_has_highlystructuredmessage() { } inline void FourRowTemplate::clear_highlystructuredmessage() { if (_internal_has_highlystructuredmessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.highlystructuredmessage_; } clear_has_title(); @@ -39581,7 +38049,7 @@ inline ::proto::HighlyStructuredMessage* FourRowTemplate::release_highlystructur if (_internal_has_highlystructuredmessage()) { clear_has_title(); ::proto::HighlyStructuredMessage* temp = title_.highlystructuredmessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } title_.highlystructuredmessage_ = nullptr; @@ -39622,13 +38090,14 @@ inline ::proto::HighlyStructuredMessage* FourRowTemplate::_internal_mutable_high if (!_internal_has_highlystructuredmessage()) { clear_title(); set_has_highlystructuredmessage(); - title_.highlystructuredmessage_ = CreateMaybeMessage< ::proto::HighlyStructuredMessage >(GetArena()); + title_.highlystructuredmessage_ = CreateMaybeMessage< ::proto::HighlyStructuredMessage >(GetArenaForAllocation()); } return title_.highlystructuredmessage_; } inline ::proto::HighlyStructuredMessage* FourRowTemplate::mutable_highlystructuredmessage() { + ::proto::HighlyStructuredMessage* _msg = _internal_mutable_highlystructuredmessage(); // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.highlyStructuredMessage) - return _internal_mutable_highlystructuredmessage(); + return _msg; } // .proto.ImageMessage imageMessage = 3; @@ -39643,7 +38112,7 @@ inline void FourRowTemplate::set_has_imagemessage() { } inline void FourRowTemplate::clear_imagemessage() { if (_internal_has_imagemessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.imagemessage_; } clear_has_title(); @@ -39654,7 +38123,7 @@ inline ::proto::ImageMessage* FourRowTemplate::release_imagemessage() { if (_internal_has_imagemessage()) { clear_has_title(); ::proto::ImageMessage* temp = title_.imagemessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } title_.imagemessage_ = nullptr; @@ -39695,13 +38164,14 @@ inline ::proto::ImageMessage* FourRowTemplate::_internal_mutable_imagemessage() if (!_internal_has_imagemessage()) { clear_title(); set_has_imagemessage(); - title_.imagemessage_ = CreateMaybeMessage< ::proto::ImageMessage >(GetArena()); + title_.imagemessage_ = CreateMaybeMessage< ::proto::ImageMessage >(GetArenaForAllocation()); } return title_.imagemessage_; } inline ::proto::ImageMessage* FourRowTemplate::mutable_imagemessage() { + ::proto::ImageMessage* _msg = _internal_mutable_imagemessage(); // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.imageMessage) - return _internal_mutable_imagemessage(); + return _msg; } // .proto.VideoMessage videoMessage = 4; @@ -39716,7 +38186,7 @@ inline void FourRowTemplate::set_has_videomessage() { } inline void FourRowTemplate::clear_videomessage() { if (_internal_has_videomessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.videomessage_; } clear_has_title(); @@ -39727,7 +38197,7 @@ inline ::proto::VideoMessage* FourRowTemplate::release_videomessage() { if (_internal_has_videomessage()) { clear_has_title(); ::proto::VideoMessage* temp = title_.videomessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } title_.videomessage_ = nullptr; @@ -39768,13 +38238,14 @@ inline ::proto::VideoMessage* FourRowTemplate::_internal_mutable_videomessage() if (!_internal_has_videomessage()) { clear_title(); set_has_videomessage(); - title_.videomessage_ = CreateMaybeMessage< ::proto::VideoMessage >(GetArena()); + title_.videomessage_ = CreateMaybeMessage< ::proto::VideoMessage >(GetArenaForAllocation()); } return title_.videomessage_; } inline ::proto::VideoMessage* FourRowTemplate::mutable_videomessage() { + ::proto::VideoMessage* _msg = _internal_mutable_videomessage(); // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.videoMessage) - return _internal_mutable_videomessage(); + return _msg; } // .proto.LocationMessage locationMessage = 5; @@ -39789,7 +38260,7 @@ inline void FourRowTemplate::set_has_locationmessage() { } inline void FourRowTemplate::clear_locationmessage() { if (_internal_has_locationmessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.locationmessage_; } clear_has_title(); @@ -39800,7 +38271,7 @@ inline ::proto::LocationMessage* FourRowTemplate::release_locationmessage() { if (_internal_has_locationmessage()) { clear_has_title(); ::proto::LocationMessage* temp = title_.locationmessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } title_.locationmessage_ = nullptr; @@ -39841,13 +38312,14 @@ inline ::proto::LocationMessage* FourRowTemplate::_internal_mutable_locationmess if (!_internal_has_locationmessage()) { clear_title(); set_has_locationmessage(); - title_.locationmessage_ = CreateMaybeMessage< ::proto::LocationMessage >(GetArena()); + title_.locationmessage_ = CreateMaybeMessage< ::proto::LocationMessage >(GetArenaForAllocation()); } return title_.locationmessage_; } inline ::proto::LocationMessage* FourRowTemplate::mutable_locationmessage() { + ::proto::LocationMessage* _msg = _internal_mutable_locationmessage(); // @@protoc_insertion_point(field_mutable:proto.FourRowTemplate.locationMessage) - return _internal_mutable_locationmessage(); + return _msg; } inline bool FourRowTemplate::has_title() const { @@ -39879,43 +38351,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HydratedFourRowTemplate::set_hydratedcontenttext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + hydratedcontenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HydratedFourRowTemplate.hydratedContentText) } inline std::string* HydratedFourRowTemplate::mutable_hydratedcontenttext() { + std::string* _s = _internal_mutable_hydratedcontenttext(); // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.hydratedContentText) - return _internal_mutable_hydratedcontenttext(); + return _s; } 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) + hydratedcontenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HydratedFourRowTemplate::_internal_mutable_hydratedcontenttext() { _has_bits_[0] |= 0x00000001u; - return hydratedcontenttext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return hydratedcontenttext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HydratedFourRowTemplate::release_hydratedcontenttext() { // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.hydratedContentText) @@ -39923,7 +38380,7 @@ inline std::string* HydratedFourRowTemplate::release_hydratedcontenttext() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return hydratedcontenttext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return hydratedcontenttext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HydratedFourRowTemplate::set_allocated_hydratedcontenttext(std::string* hydratedcontenttext) { if (hydratedcontenttext != nullptr) { @@ -39932,7 +38389,7 @@ inline void HydratedFourRowTemplate::set_allocated_hydratedcontenttext(std::stri _has_bits_[0] &= ~0x00000001u; } hydratedcontenttext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hydratedcontenttext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.hydratedContentText) } @@ -39952,43 +38409,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HydratedFourRowTemplate::set_hydratedfootertext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + hydratedfootertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HydratedFourRowTemplate.hydratedFooterText) } inline std::string* HydratedFourRowTemplate::mutable_hydratedfootertext() { + std::string* _s = _internal_mutable_hydratedfootertext(); // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.hydratedFooterText) - return _internal_mutable_hydratedfootertext(); + return _s; } 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) + hydratedfootertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HydratedFourRowTemplate::_internal_mutable_hydratedfootertext() { _has_bits_[0] |= 0x00000002u; - return hydratedfootertext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return hydratedfootertext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HydratedFourRowTemplate::release_hydratedfootertext() { // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.hydratedFooterText) @@ -39996,7 +38438,7 @@ inline std::string* HydratedFourRowTemplate::release_hydratedfootertext() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return hydratedfootertext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return hydratedfootertext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HydratedFourRowTemplate::set_allocated_hydratedfootertext(std::string* hydratedfootertext) { if (hydratedfootertext != nullptr) { @@ -40005,7 +38447,7 @@ inline void HydratedFourRowTemplate::set_allocated_hydratedfootertext(std::strin _has_bits_[0] &= ~0x00000002u; } hydratedfootertext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), hydratedfootertext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.hydratedFooterText) } @@ -40039,8 +38481,9 @@ inline ::proto::HydratedTemplateButton* HydratedFourRowTemplate::_internal_add_h return hydratedbuttons_.Add(); } inline ::proto::HydratedTemplateButton* HydratedFourRowTemplate::add_hydratedbuttons() { + ::proto::HydratedTemplateButton* _add = _internal_add_hydratedbuttons(); // @@protoc_insertion_point(field_add:proto.HydratedFourRowTemplate.hydratedButtons) - return _internal_add_hydratedbuttons(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::HydratedTemplateButton >& HydratedFourRowTemplate::hydratedbuttons() const { @@ -40064,43 +38507,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void HydratedFourRowTemplate::set_templateid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + templateid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HydratedFourRowTemplate.templateId) } inline std::string* HydratedFourRowTemplate::mutable_templateid() { + std::string* _s = _internal_mutable_templateid(); // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.templateId) - return _internal_mutable_templateid(); + return _s; } 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) + templateid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HydratedFourRowTemplate::_internal_mutable_templateid() { _has_bits_[0] |= 0x00000004u; - return templateid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return templateid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* HydratedFourRowTemplate::release_templateid() { // @@protoc_insertion_point(field_release:proto.HydratedFourRowTemplate.templateId) @@ -40108,7 +38536,7 @@ inline std::string* HydratedFourRowTemplate::release_templateid() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return templateid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return templateid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void HydratedFourRowTemplate::set_allocated_templateid(std::string* templateid) { if (templateid != nullptr) { @@ -40117,7 +38545,7 @@ inline void HydratedFourRowTemplate::set_allocated_templateid(std::string* templ _has_bits_[0] &= ~0x00000004u; } templateid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), templateid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.HydratedFourRowTemplate.templateId) } @@ -40133,7 +38561,7 @@ inline void HydratedFourRowTemplate::set_has_documentmessage() { } inline void HydratedFourRowTemplate::clear_documentmessage() { if (_internal_has_documentmessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.documentmessage_; } clear_has_title(); @@ -40144,7 +38572,7 @@ inline ::proto::DocumentMessage* HydratedFourRowTemplate::release_documentmessag if (_internal_has_documentmessage()) { clear_has_title(); ::proto::DocumentMessage* temp = title_.documentmessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } title_.documentmessage_ = nullptr; @@ -40185,13 +38613,14 @@ inline ::proto::DocumentMessage* HydratedFourRowTemplate::_internal_mutable_docu if (!_internal_has_documentmessage()) { clear_title(); set_has_documentmessage(); - title_.documentmessage_ = CreateMaybeMessage< ::proto::DocumentMessage >(GetArena()); + title_.documentmessage_ = CreateMaybeMessage< ::proto::DocumentMessage >(GetArenaForAllocation()); } return title_.documentmessage_; } inline ::proto::DocumentMessage* HydratedFourRowTemplate::mutable_documentmessage() { + ::proto::DocumentMessage* _msg = _internal_mutable_documentmessage(); // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.documentMessage) - return _internal_mutable_documentmessage(); + return _msg; } // string hydratedTitleText = 2; @@ -40206,7 +38635,7 @@ inline void HydratedFourRowTemplate::set_has_hydratedtitletext() { } inline void HydratedFourRowTemplate::clear_hydratedtitletext() { if (_internal_has_hydratedtitletext()) { - title_.hydratedtitletext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + title_.hydratedtitletext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); clear_has_title(); } } @@ -40214,13 +38643,20 @@ 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); +template <typename ArgT0, typename... ArgT> +inline void HydratedFourRowTemplate::set_hydratedtitletext(ArgT0&& arg0, ArgT... args) { + 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{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.HydratedFourRowTemplate.hydratedTitleText) } inline std::string* HydratedFourRowTemplate::mutable_hydratedtitletext() { + std::string* _s = _internal_mutable_hydratedtitletext(); // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.hydratedTitleText) - return _internal_mutable_hydratedtitletext(); + return _s; } inline const std::string& HydratedFourRowTemplate::_internal_hydratedtitletext() const { if (_internal_has_hydratedtitletext()) { @@ -40234,42 +38670,7 @@ inline void HydratedFourRowTemplate::_internal_set_hydratedtitletext(const std:: 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) + title_.hydratedtitletext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* HydratedFourRowTemplate::_internal_mutable_hydratedtitletext() { if (!_internal_has_hydratedtitletext()) { @@ -40278,13 +38679,13 @@ inline std::string* HydratedFourRowTemplate::_internal_mutable_hydratedtitletext title_.hydratedtitletext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } return title_.hydratedtitletext_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } 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()); + return title_.hydratedtitletext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } else { return nullptr; } @@ -40296,7 +38697,7 @@ inline void HydratedFourRowTemplate::set_allocated_hydratedtitletext(std::string if (hydratedtitletext != nullptr) { set_has_hydratedtitletext(); title_.hydratedtitletext_.UnsafeSetDefault(hydratedtitletext); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation(); if (arena != nullptr) { arena->Own(hydratedtitletext); } @@ -40316,7 +38717,7 @@ inline void HydratedFourRowTemplate::set_has_imagemessage() { } inline void HydratedFourRowTemplate::clear_imagemessage() { if (_internal_has_imagemessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.imagemessage_; } clear_has_title(); @@ -40327,7 +38728,7 @@ inline ::proto::ImageMessage* HydratedFourRowTemplate::release_imagemessage() { if (_internal_has_imagemessage()) { clear_has_title(); ::proto::ImageMessage* temp = title_.imagemessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } title_.imagemessage_ = nullptr; @@ -40368,13 +38769,14 @@ inline ::proto::ImageMessage* HydratedFourRowTemplate::_internal_mutable_imageme if (!_internal_has_imagemessage()) { clear_title(); set_has_imagemessage(); - title_.imagemessage_ = CreateMaybeMessage< ::proto::ImageMessage >(GetArena()); + title_.imagemessage_ = CreateMaybeMessage< ::proto::ImageMessage >(GetArenaForAllocation()); } return title_.imagemessage_; } inline ::proto::ImageMessage* HydratedFourRowTemplate::mutable_imagemessage() { + ::proto::ImageMessage* _msg = _internal_mutable_imagemessage(); // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.imageMessage) - return _internal_mutable_imagemessage(); + return _msg; } // .proto.VideoMessage videoMessage = 4; @@ -40389,7 +38791,7 @@ inline void HydratedFourRowTemplate::set_has_videomessage() { } inline void HydratedFourRowTemplate::clear_videomessage() { if (_internal_has_videomessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.videomessage_; } clear_has_title(); @@ -40400,7 +38802,7 @@ inline ::proto::VideoMessage* HydratedFourRowTemplate::release_videomessage() { if (_internal_has_videomessage()) { clear_has_title(); ::proto::VideoMessage* temp = title_.videomessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } title_.videomessage_ = nullptr; @@ -40441,13 +38843,14 @@ inline ::proto::VideoMessage* HydratedFourRowTemplate::_internal_mutable_videome if (!_internal_has_videomessage()) { clear_title(); set_has_videomessage(); - title_.videomessage_ = CreateMaybeMessage< ::proto::VideoMessage >(GetArena()); + title_.videomessage_ = CreateMaybeMessage< ::proto::VideoMessage >(GetArenaForAllocation()); } return title_.videomessage_; } inline ::proto::VideoMessage* HydratedFourRowTemplate::mutable_videomessage() { + ::proto::VideoMessage* _msg = _internal_mutable_videomessage(); // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.videoMessage) - return _internal_mutable_videomessage(); + return _msg; } // .proto.LocationMessage locationMessage = 5; @@ -40462,7 +38865,7 @@ inline void HydratedFourRowTemplate::set_has_locationmessage() { } inline void HydratedFourRowTemplate::clear_locationmessage() { if (_internal_has_locationmessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete title_.locationmessage_; } clear_has_title(); @@ -40473,7 +38876,7 @@ inline ::proto::LocationMessage* HydratedFourRowTemplate::release_locationmessag if (_internal_has_locationmessage()) { clear_has_title(); ::proto::LocationMessage* temp = title_.locationmessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } title_.locationmessage_ = nullptr; @@ -40514,13 +38917,14 @@ inline ::proto::LocationMessage* HydratedFourRowTemplate::_internal_mutable_loca if (!_internal_has_locationmessage()) { clear_title(); set_has_locationmessage(); - title_.locationmessage_ = CreateMaybeMessage< ::proto::LocationMessage >(GetArena()); + title_.locationmessage_ = CreateMaybeMessage< ::proto::LocationMessage >(GetArenaForAllocation()); } return title_.locationmessage_; } inline ::proto::LocationMessage* HydratedFourRowTemplate::mutable_locationmessage() { + ::proto::LocationMessage* _msg = _internal_mutable_locationmessage(); // @@protoc_insertion_point(field_mutable:proto.HydratedFourRowTemplate.locationMessage) - return _internal_mutable_locationmessage(); + return _msg; } inline bool HydratedFourRowTemplate::has_title() const { @@ -40560,7 +38964,7 @@ inline const ::proto::ContextInfo& TemplateMessage::contextinfo() const { } inline void TemplateMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -40575,9 +38979,15 @@ inline ::proto::ContextInfo* TemplateMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000001u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* TemplateMessage::unsafe_arena_release_contextinfo() { @@ -40590,23 +39000,24 @@ inline ::proto::ContextInfo* TemplateMessage::unsafe_arena_release_contextinfo() inline ::proto::ContextInfo* TemplateMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000001u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* TemplateMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.TemplateMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void TemplateMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -40643,7 +39054,7 @@ inline const ::proto::HydratedFourRowTemplate& TemplateMessage::hydratedtemplate } inline void TemplateMessage::unsafe_arena_set_allocated_hydratedtemplate( ::proto::HydratedFourRowTemplate* hydratedtemplate) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(hydratedtemplate_); } hydratedtemplate_ = hydratedtemplate; @@ -40658,9 +39069,15 @@ inline ::proto::HydratedFourRowTemplate* TemplateMessage::release_hydratedtempla _has_bits_[0] &= ~0x00000002u; ::proto::HydratedFourRowTemplate* temp = hydratedtemplate_; hydratedtemplate_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::HydratedFourRowTemplate* TemplateMessage::unsafe_arena_release_hydratedtemplate() { @@ -40673,23 +39090,24 @@ inline ::proto::HydratedFourRowTemplate* TemplateMessage::unsafe_arena_release_h inline ::proto::HydratedFourRowTemplate* TemplateMessage::_internal_mutable_hydratedtemplate() { _has_bits_[0] |= 0x00000002u; if (hydratedtemplate_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::HydratedFourRowTemplate>(GetArena()); + auto* p = CreateMaybeMessage<::proto::HydratedFourRowTemplate>(GetArenaForAllocation()); hydratedtemplate_ = p; } return hydratedtemplate_; } inline ::proto::HydratedFourRowTemplate* TemplateMessage::mutable_hydratedtemplate() { + ::proto::HydratedFourRowTemplate* _msg = _internal_mutable_hydratedtemplate(); // @@protoc_insertion_point(field_mutable:proto.TemplateMessage.hydratedTemplate) - return _internal_mutable_hydratedtemplate(); + return _msg; } inline void TemplateMessage::set_allocated_hydratedtemplate(::proto::HydratedFourRowTemplate* hydratedtemplate) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete hydratedtemplate_; } if (hydratedtemplate) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(hydratedtemplate); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HydratedFourRowTemplate>::GetOwningArena(hydratedtemplate); if (message_arena != submessage_arena) { hydratedtemplate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, hydratedtemplate, submessage_arena); @@ -40714,7 +39132,7 @@ inline void TemplateMessage::set_has_fourrowtemplate() { } inline void TemplateMessage::clear_fourrowtemplate() { if (_internal_has_fourrowtemplate()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete format_.fourrowtemplate_; } clear_has_format(); @@ -40725,7 +39143,7 @@ inline ::proto::FourRowTemplate* TemplateMessage::release_fourrowtemplate() { if (_internal_has_fourrowtemplate()) { clear_has_format(); ::proto::FourRowTemplate* temp = format_.fourrowtemplate_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } format_.fourrowtemplate_ = nullptr; @@ -40766,13 +39184,14 @@ inline ::proto::FourRowTemplate* TemplateMessage::_internal_mutable_fourrowtempl if (!_internal_has_fourrowtemplate()) { clear_format(); set_has_fourrowtemplate(); - format_.fourrowtemplate_ = CreateMaybeMessage< ::proto::FourRowTemplate >(GetArena()); + format_.fourrowtemplate_ = CreateMaybeMessage< ::proto::FourRowTemplate >(GetArenaForAllocation()); } return format_.fourrowtemplate_; } inline ::proto::FourRowTemplate* TemplateMessage::mutable_fourrowtemplate() { + ::proto::FourRowTemplate* _msg = _internal_mutable_fourrowtemplate(); // @@protoc_insertion_point(field_mutable:proto.TemplateMessage.fourRowTemplate) - return _internal_mutable_fourrowtemplate(); + return _msg; } // .proto.HydratedFourRowTemplate hydratedFourRowTemplate = 2; @@ -40787,7 +39206,7 @@ inline void TemplateMessage::set_has_hydratedfourrowtemplate() { } inline void TemplateMessage::clear_hydratedfourrowtemplate() { if (_internal_has_hydratedfourrowtemplate()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete format_.hydratedfourrowtemplate_; } clear_has_format(); @@ -40798,7 +39217,7 @@ inline ::proto::HydratedFourRowTemplate* TemplateMessage::release_hydratedfourro if (_internal_has_hydratedfourrowtemplate()) { clear_has_format(); ::proto::HydratedFourRowTemplate* temp = format_.hydratedfourrowtemplate_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } format_.hydratedfourrowtemplate_ = nullptr; @@ -40839,13 +39258,14 @@ inline ::proto::HydratedFourRowTemplate* TemplateMessage::_internal_mutable_hydr if (!_internal_has_hydratedfourrowtemplate()) { clear_format(); set_has_hydratedfourrowtemplate(); - format_.hydratedfourrowtemplate_ = CreateMaybeMessage< ::proto::HydratedFourRowTemplate >(GetArena()); + format_.hydratedfourrowtemplate_ = CreateMaybeMessage< ::proto::HydratedFourRowTemplate >(GetArenaForAllocation()); } return format_.hydratedfourrowtemplate_; } inline ::proto::HydratedFourRowTemplate* TemplateMessage::mutable_hydratedfourrowtemplate() { + ::proto::HydratedFourRowTemplate* _msg = _internal_mutable_hydratedfourrowtemplate(); // @@protoc_insertion_point(field_mutable:proto.TemplateMessage.hydratedFourRowTemplate) - return _internal_mutable_hydratedfourrowtemplate(); + return _msg; } inline bool TemplateMessage::has_format() const { @@ -40877,43 +39297,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void TemplateButtonReplyMessage::set_selectedid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + selectedid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.TemplateButtonReplyMessage.selectedId) } inline std::string* TemplateButtonReplyMessage::mutable_selectedid() { + std::string* _s = _internal_mutable_selectedid(); // @@protoc_insertion_point(field_mutable:proto.TemplateButtonReplyMessage.selectedId) - return _internal_mutable_selectedid(); + return _s; } 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) + selectedid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* TemplateButtonReplyMessage::_internal_mutable_selectedid() { _has_bits_[0] |= 0x00000001u; - return selectedid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return selectedid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* TemplateButtonReplyMessage::release_selectedid() { // @@protoc_insertion_point(field_release:proto.TemplateButtonReplyMessage.selectedId) @@ -40921,7 +39326,7 @@ inline std::string* TemplateButtonReplyMessage::release_selectedid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return selectedid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return selectedid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void TemplateButtonReplyMessage::set_allocated_selectedid(std::string* selectedid) { if (selectedid != nullptr) { @@ -40930,7 +39335,7 @@ inline void TemplateButtonReplyMessage::set_allocated_selectedid(std::string* se _has_bits_[0] &= ~0x00000001u; } selectedid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selectedid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.TemplateButtonReplyMessage.selectedId) } @@ -40950,43 +39355,28 @@ inline const std::string& TemplateButtonReplyMessage::selecteddisplaytext() cons // @@protoc_insertion_point(field_get:proto.TemplateButtonReplyMessage.selectedDisplayText) return _internal_selecteddisplaytext(); } -inline void TemplateButtonReplyMessage::set_selecteddisplaytext(const std::string& value) { - _internal_set_selecteddisplaytext(value); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void TemplateButtonReplyMessage::set_selecteddisplaytext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.TemplateButtonReplyMessage.selectedDisplayText) } inline std::string* TemplateButtonReplyMessage::mutable_selecteddisplaytext() { + std::string* _s = _internal_mutable_selecteddisplaytext(); // @@protoc_insertion_point(field_mutable:proto.TemplateButtonReplyMessage.selectedDisplayText) - return _internal_mutable_selecteddisplaytext(); + return _s; } 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) + selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* TemplateButtonReplyMessage::_internal_mutable_selecteddisplaytext() { _has_bits_[0] |= 0x00000002u; - return selecteddisplaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return selecteddisplaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* TemplateButtonReplyMessage::release_selecteddisplaytext() { // @@protoc_insertion_point(field_release:proto.TemplateButtonReplyMessage.selectedDisplayText) @@ -40994,7 +39384,7 @@ inline std::string* TemplateButtonReplyMessage::release_selecteddisplaytext() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return selecteddisplaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return selecteddisplaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void TemplateButtonReplyMessage::set_allocated_selecteddisplaytext(std::string* selecteddisplaytext) { if (selecteddisplaytext != nullptr) { @@ -41003,7 +39393,7 @@ inline void TemplateButtonReplyMessage::set_allocated_selecteddisplaytext(std::s _has_bits_[0] &= ~0x00000002u; } selecteddisplaytext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selecteddisplaytext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.TemplateButtonReplyMessage.selectedDisplayText) } @@ -41031,7 +39421,7 @@ inline const ::proto::ContextInfo& TemplateButtonReplyMessage::contextinfo() con } inline void TemplateButtonReplyMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -41046,9 +39436,15 @@ inline ::proto::ContextInfo* TemplateButtonReplyMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000004u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* TemplateButtonReplyMessage::unsafe_arena_release_contextinfo() { @@ -41061,23 +39457,24 @@ inline ::proto::ContextInfo* TemplateButtonReplyMessage::unsafe_arena_release_co inline ::proto::ContextInfo* TemplateButtonReplyMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000004u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* TemplateButtonReplyMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.TemplateButtonReplyMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void TemplateButtonReplyMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -41146,7 +39543,7 @@ inline const ::proto::ImageMessage& CatalogSnapshot::catalogimage() const { } inline void CatalogSnapshot::unsafe_arena_set_allocated_catalogimage( ::proto::ImageMessage* catalogimage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(catalogimage_); } catalogimage_ = catalogimage; @@ -41161,9 +39558,15 @@ inline ::proto::ImageMessage* CatalogSnapshot::release_catalogimage() { _has_bits_[0] &= ~0x00000004u; ::proto::ImageMessage* temp = catalogimage_; catalogimage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ImageMessage* CatalogSnapshot::unsafe_arena_release_catalogimage() { @@ -41176,23 +39579,24 @@ inline ::proto::ImageMessage* CatalogSnapshot::unsafe_arena_release_catalogimage inline ::proto::ImageMessage* CatalogSnapshot::_internal_mutable_catalogimage() { _has_bits_[0] |= 0x00000004u; if (catalogimage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ImageMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ImageMessage>(GetArenaForAllocation()); catalogimage_ = p; } return catalogimage_; } inline ::proto::ImageMessage* CatalogSnapshot::mutable_catalogimage() { + ::proto::ImageMessage* _msg = _internal_mutable_catalogimage(); // @@protoc_insertion_point(field_mutable:proto.CatalogSnapshot.catalogImage) - return _internal_mutable_catalogimage(); + return _msg; } inline void CatalogSnapshot::set_allocated_catalogimage(::proto::ImageMessage* catalogimage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete catalogimage_; } if (catalogimage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(catalogimage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ImageMessage>::GetOwningArena(catalogimage); if (message_arena != submessage_arena) { catalogimage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, catalogimage, submessage_arena); @@ -41221,43 +39625,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void CatalogSnapshot::set_title(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.CatalogSnapshot.title) } inline std::string* CatalogSnapshot::mutable_title() { + std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:proto.CatalogSnapshot.title) - return _internal_mutable_title(); + return _s; } 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) + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* CatalogSnapshot::_internal_mutable_title() { _has_bits_[0] |= 0x00000001u; - return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* CatalogSnapshot::release_title() { // @@protoc_insertion_point(field_release:proto.CatalogSnapshot.title) @@ -41265,7 +39654,7 @@ inline std::string* CatalogSnapshot::release_title() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void CatalogSnapshot::set_allocated_title(std::string* title) { if (title != nullptr) { @@ -41274,7 +39663,7 @@ inline void CatalogSnapshot::set_allocated_title(std::string* title) { _has_bits_[0] &= ~0x00000001u; } title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.CatalogSnapshot.title) } @@ -41294,43 +39683,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void CatalogSnapshot::set_description(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.CatalogSnapshot.description) } inline std::string* CatalogSnapshot::mutable_description() { + std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:proto.CatalogSnapshot.description) - return _internal_mutable_description(); + return _s; } 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) + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* CatalogSnapshot::_internal_mutable_description() { _has_bits_[0] |= 0x00000002u; - return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* CatalogSnapshot::release_description() { // @@protoc_insertion_point(field_release:proto.CatalogSnapshot.description) @@ -41338,7 +39712,7 @@ inline std::string* CatalogSnapshot::release_description() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void CatalogSnapshot::set_allocated_description(std::string* description) { if (description != nullptr) { @@ -41347,7 +39721,7 @@ inline void CatalogSnapshot::set_allocated_description(std::string* description) _has_bits_[0] &= ~0x00000002u; } description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.CatalogSnapshot.description) } @@ -41379,7 +39753,7 @@ inline const ::proto::ImageMessage& ProductSnapshot::productimage() const { } inline void ProductSnapshot::unsafe_arena_set_allocated_productimage( ::proto::ImageMessage* productimage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(productimage_); } productimage_ = productimage; @@ -41394,9 +39768,15 @@ inline ::proto::ImageMessage* ProductSnapshot::release_productimage() { _has_bits_[0] &= ~0x00000080u; ::proto::ImageMessage* temp = productimage_; productimage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ImageMessage* ProductSnapshot::unsafe_arena_release_productimage() { @@ -41409,23 +39789,24 @@ inline ::proto::ImageMessage* ProductSnapshot::unsafe_arena_release_productimage inline ::proto::ImageMessage* ProductSnapshot::_internal_mutable_productimage() { _has_bits_[0] |= 0x00000080u; if (productimage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ImageMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ImageMessage>(GetArenaForAllocation()); productimage_ = p; } return productimage_; } inline ::proto::ImageMessage* ProductSnapshot::mutable_productimage() { + ::proto::ImageMessage* _msg = _internal_mutable_productimage(); // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.productImage) - return _internal_mutable_productimage(); + return _msg; } inline void ProductSnapshot::set_allocated_productimage(::proto::ImageMessage* productimage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete productimage_; } if (productimage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(productimage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ImageMessage>::GetOwningArena(productimage); if (message_arena != submessage_arena) { productimage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, productimage, submessage_arena); @@ -41454,43 +39835,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ProductSnapshot::set_productid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + productid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ProductSnapshot.productId) } inline std::string* ProductSnapshot::mutable_productid() { + std::string* _s = _internal_mutable_productid(); // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.productId) - return _internal_mutable_productid(); + return _s; } 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) + productid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ProductSnapshot::_internal_mutable_productid() { _has_bits_[0] |= 0x00000001u; - return productid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return productid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ProductSnapshot::release_productid() { // @@protoc_insertion_point(field_release:proto.ProductSnapshot.productId) @@ -41498,7 +39864,7 @@ inline std::string* ProductSnapshot::release_productid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return productid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return productid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ProductSnapshot::set_allocated_productid(std::string* productid) { if (productid != nullptr) { @@ -41507,7 +39873,7 @@ inline void ProductSnapshot::set_allocated_productid(std::string* productid) { _has_bits_[0] &= ~0x00000001u; } productid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), productid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.productId) } @@ -41527,43 +39893,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ProductSnapshot::set_title(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ProductSnapshot.title) } inline std::string* ProductSnapshot::mutable_title() { + std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.title) - return _internal_mutable_title(); + return _s; } 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) + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ProductSnapshot::_internal_mutable_title() { _has_bits_[0] |= 0x00000002u; - return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ProductSnapshot::release_title() { // @@protoc_insertion_point(field_release:proto.ProductSnapshot.title) @@ -41571,7 +39922,7 @@ inline std::string* ProductSnapshot::release_title() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ProductSnapshot::set_allocated_title(std::string* title) { if (title != nullptr) { @@ -41580,7 +39931,7 @@ inline void ProductSnapshot::set_allocated_title(std::string* title) { _has_bits_[0] &= ~0x00000002u; } title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.title) } @@ -41600,43 +39951,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ProductSnapshot::set_description(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ProductSnapshot.description) } inline std::string* ProductSnapshot::mutable_description() { + std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.description) - return _internal_mutable_description(); + return _s; } 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) + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ProductSnapshot::_internal_mutable_description() { _has_bits_[0] |= 0x00000004u; - return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ProductSnapshot::release_description() { // @@protoc_insertion_point(field_release:proto.ProductSnapshot.description) @@ -41644,7 +39980,7 @@ inline std::string* ProductSnapshot::release_description() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ProductSnapshot::set_allocated_description(std::string* description) { if (description != nullptr) { @@ -41653,7 +39989,7 @@ inline void ProductSnapshot::set_allocated_description(std::string* description) _has_bits_[0] &= ~0x00000004u; } description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.description) } @@ -41673,43 +40009,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ProductSnapshot::set_currencycode(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ProductSnapshot.currencyCode) } inline std::string* ProductSnapshot::mutable_currencycode() { + std::string* _s = _internal_mutable_currencycode(); // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.currencyCode) - return _internal_mutable_currencycode(); + return _s; } 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) + currencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ProductSnapshot::_internal_mutable_currencycode() { _has_bits_[0] |= 0x00000008u; - return currencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return currencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ProductSnapshot::release_currencycode() { // @@protoc_insertion_point(field_release:proto.ProductSnapshot.currencyCode) @@ -41717,7 +40038,7 @@ inline std::string* ProductSnapshot::release_currencycode() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return currencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return currencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ProductSnapshot::set_allocated_currencycode(std::string* currencycode) { if (currencycode != nullptr) { @@ -41726,7 +40047,7 @@ inline void ProductSnapshot::set_allocated_currencycode(std::string* currencycod _has_bits_[0] &= ~0x00000008u; } currencycode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), currencycode, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.currencyCode) } @@ -41739,7 +40060,7 @@ inline bool ProductSnapshot::has_priceamount1000() const { return _internal_has_priceamount1000(); } inline void ProductSnapshot::clear_priceamount1000() { - priceamount1000_ = PROTOBUF_LONGLONG(0); + priceamount1000_ = int64_t{0}; _has_bits_[0] &= ~0x00000100u; } inline ::PROTOBUF_NAMESPACE_ID::int64 ProductSnapshot::_internal_priceamount1000() const { @@ -41774,43 +40095,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ProductSnapshot::set_retailerid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + retailerid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ProductSnapshot.retailerId) } inline std::string* ProductSnapshot::mutable_retailerid() { + std::string* _s = _internal_mutable_retailerid(); // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.retailerId) - return _internal_mutable_retailerid(); + return _s; } 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) + retailerid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ProductSnapshot::_internal_mutable_retailerid() { _has_bits_[0] |= 0x00000010u; - return retailerid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return retailerid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ProductSnapshot::release_retailerid() { // @@protoc_insertion_point(field_release:proto.ProductSnapshot.retailerId) @@ -41818,7 +40124,7 @@ inline std::string* ProductSnapshot::release_retailerid() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return retailerid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return retailerid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ProductSnapshot::set_allocated_retailerid(std::string* retailerid) { if (retailerid != nullptr) { @@ -41827,7 +40133,7 @@ inline void ProductSnapshot::set_allocated_retailerid(std::string* retailerid) { _has_bits_[0] &= ~0x00000010u; } retailerid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), retailerid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.retailerId) } @@ -41847,43 +40153,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ProductSnapshot::set_url(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ProductSnapshot.url) } inline std::string* ProductSnapshot::mutable_url() { + std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.url) - return _internal_mutable_url(); + return _s; } 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) + url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ProductSnapshot::_internal_mutable_url() { _has_bits_[0] |= 0x00000020u; - return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ProductSnapshot::release_url() { // @@protoc_insertion_point(field_release:proto.ProductSnapshot.url) @@ -41891,7 +40182,7 @@ inline std::string* ProductSnapshot::release_url() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ProductSnapshot::set_allocated_url(std::string* url) { if (url != nullptr) { @@ -41900,7 +40191,7 @@ inline void ProductSnapshot::set_allocated_url(std::string* url) { _has_bits_[0] &= ~0x00000020u; } url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), url, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.url) } @@ -41948,43 +40239,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ProductSnapshot::set_firstimageid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000040u; + firstimageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ProductSnapshot.firstImageId) } inline std::string* ProductSnapshot::mutable_firstimageid() { + std::string* _s = _internal_mutable_firstimageid(); // @@protoc_insertion_point(field_mutable:proto.ProductSnapshot.firstImageId) - return _internal_mutable_firstimageid(); + return _s; } 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) + firstimageid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ProductSnapshot::_internal_mutable_firstimageid() { _has_bits_[0] |= 0x00000040u; - return firstimageid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return firstimageid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ProductSnapshot::release_firstimageid() { // @@protoc_insertion_point(field_release:proto.ProductSnapshot.firstImageId) @@ -41992,7 +40268,7 @@ inline std::string* ProductSnapshot::release_firstimageid() { return nullptr; } _has_bits_[0] &= ~0x00000040u; - return firstimageid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return firstimageid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ProductSnapshot::set_allocated_firstimageid(std::string* firstimageid) { if (firstimageid != nullptr) { @@ -42001,7 +40277,7 @@ inline void ProductSnapshot::set_allocated_firstimageid(std::string* firstimagei _has_bits_[0] &= ~0x00000040u; } firstimageid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), firstimageid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ProductSnapshot.firstImageId) } @@ -42033,7 +40309,7 @@ inline const ::proto::ProductSnapshot& ProductMessage::product() const { } inline void ProductMessage::unsafe_arena_set_allocated_product( ::proto::ProductSnapshot* product) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(product_); } product_ = product; @@ -42048,9 +40324,15 @@ inline ::proto::ProductSnapshot* ProductMessage::release_product() { _has_bits_[0] &= ~0x00000002u; ::proto::ProductSnapshot* temp = product_; product_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ProductSnapshot* ProductMessage::unsafe_arena_release_product() { @@ -42063,23 +40345,24 @@ inline ::proto::ProductSnapshot* ProductMessage::unsafe_arena_release_product() inline ::proto::ProductSnapshot* ProductMessage::_internal_mutable_product() { _has_bits_[0] |= 0x00000002u; if (product_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ProductSnapshot>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ProductSnapshot>(GetArenaForAllocation()); product_ = p; } return product_; } inline ::proto::ProductSnapshot* ProductMessage::mutable_product() { + ::proto::ProductSnapshot* _msg = _internal_mutable_product(); // @@protoc_insertion_point(field_mutable:proto.ProductMessage.product) - return _internal_mutable_product(); + return _msg; } inline void ProductMessage::set_allocated_product(::proto::ProductSnapshot* product) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete product_; } if (product) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(product); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ProductSnapshot>::GetOwningArena(product); if (message_arena != submessage_arena) { product = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, product, submessage_arena); @@ -42108,43 +40391,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ProductMessage::set_businessownerjid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + businessownerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ProductMessage.businessOwnerJid) } inline std::string* ProductMessage::mutable_businessownerjid() { + std::string* _s = _internal_mutable_businessownerjid(); // @@protoc_insertion_point(field_mutable:proto.ProductMessage.businessOwnerJid) - return _internal_mutable_businessownerjid(); + return _s; } 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) + businessownerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ProductMessage::_internal_mutable_businessownerjid() { _has_bits_[0] |= 0x00000001u; - return businessownerjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return businessownerjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ProductMessage::release_businessownerjid() { // @@protoc_insertion_point(field_release:proto.ProductMessage.businessOwnerJid) @@ -42152,7 +40420,7 @@ inline std::string* ProductMessage::release_businessownerjid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return businessownerjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return businessownerjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ProductMessage::set_allocated_businessownerjid(std::string* businessownerjid) { if (businessownerjid != nullptr) { @@ -42161,7 +40429,7 @@ inline void ProductMessage::set_allocated_businessownerjid(std::string* business _has_bits_[0] &= ~0x00000001u; } businessownerjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), businessownerjid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ProductMessage.businessOwnerJid) } @@ -42189,7 +40457,7 @@ inline const ::proto::CatalogSnapshot& ProductMessage::catalog() const { } inline void ProductMessage::unsafe_arena_set_allocated_catalog( ::proto::CatalogSnapshot* catalog) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(catalog_); } catalog_ = catalog; @@ -42204,9 +40472,15 @@ inline ::proto::CatalogSnapshot* ProductMessage::release_catalog() { _has_bits_[0] &= ~0x00000004u; ::proto::CatalogSnapshot* temp = catalog_; catalog_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::CatalogSnapshot* ProductMessage::unsafe_arena_release_catalog() { @@ -42219,23 +40493,24 @@ inline ::proto::CatalogSnapshot* ProductMessage::unsafe_arena_release_catalog() inline ::proto::CatalogSnapshot* ProductMessage::_internal_mutable_catalog() { _has_bits_[0] |= 0x00000004u; if (catalog_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::CatalogSnapshot>(GetArena()); + auto* p = CreateMaybeMessage<::proto::CatalogSnapshot>(GetArenaForAllocation()); catalog_ = p; } return catalog_; } inline ::proto::CatalogSnapshot* ProductMessage::mutable_catalog() { + ::proto::CatalogSnapshot* _msg = _internal_mutable_catalog(); // @@protoc_insertion_point(field_mutable:proto.ProductMessage.catalog) - return _internal_mutable_catalog(); + return _msg; } inline void ProductMessage::set_allocated_catalog(::proto::CatalogSnapshot* catalog) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete catalog_; } if (catalog) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(catalog); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::CatalogSnapshot>::GetOwningArena(catalog); if (message_arena != submessage_arena) { catalog = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, catalog, submessage_arena); @@ -42272,7 +40547,7 @@ inline const ::proto::ContextInfo& ProductMessage::contextinfo() const { } inline void ProductMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -42287,9 +40562,15 @@ inline ::proto::ContextInfo* ProductMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000008u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* ProductMessage::unsafe_arena_release_contextinfo() { @@ -42302,23 +40583,24 @@ inline ::proto::ContextInfo* ProductMessage::unsafe_arena_release_contextinfo() inline ::proto::ContextInfo* ProductMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000008u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* ProductMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.ProductMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void ProductMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -42351,43 +40633,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void OrderMessage::set_orderid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + orderid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.OrderMessage.orderId) } inline std::string* OrderMessage::mutable_orderid() { + std::string* _s = _internal_mutable_orderid(); // @@protoc_insertion_point(field_mutable:proto.OrderMessage.orderId) - return _internal_mutable_orderid(); + return _s; } 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) + orderid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* OrderMessage::_internal_mutable_orderid() { _has_bits_[0] |= 0x00000001u; - return orderid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return orderid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* OrderMessage::release_orderid() { // @@protoc_insertion_point(field_release:proto.OrderMessage.orderId) @@ -42395,7 +40662,7 @@ inline std::string* OrderMessage::release_orderid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return orderid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return orderid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void OrderMessage::set_allocated_orderid(std::string* orderid) { if (orderid != nullptr) { @@ -42404,7 +40671,7 @@ inline void OrderMessage::set_allocated_orderid(std::string* orderid) { _has_bits_[0] &= ~0x00000001u; } orderid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), orderid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.orderId) } @@ -42424,43 +40691,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void OrderMessage::set_thumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + thumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.OrderMessage.thumbnail) } inline std::string* OrderMessage::mutable_thumbnail() { + std::string* _s = _internal_mutable_thumbnail(); // @@protoc_insertion_point(field_mutable:proto.OrderMessage.thumbnail) - return _internal_mutable_thumbnail(); + return _s; } 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) + thumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* OrderMessage::_internal_mutable_thumbnail() { _has_bits_[0] |= 0x00000002u; - return thumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return thumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* OrderMessage::release_thumbnail() { // @@protoc_insertion_point(field_release:proto.OrderMessage.thumbnail) @@ -42468,7 +40720,7 @@ inline std::string* OrderMessage::release_thumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return thumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return thumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void OrderMessage::set_allocated_thumbnail(std::string* thumbnail) { if (thumbnail != nullptr) { @@ -42477,7 +40729,7 @@ inline void OrderMessage::set_allocated_thumbnail(std::string* thumbnail) { _has_bits_[0] &= ~0x00000002u; } thumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), thumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.thumbnail) } @@ -42583,43 +40835,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void OrderMessage::set_message(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.OrderMessage.message) } inline std::string* OrderMessage::mutable_message() { + std::string* _s = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.OrderMessage.message) - return _internal_mutable_message(); + return _s; } 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) + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* OrderMessage::_internal_mutable_message() { _has_bits_[0] |= 0x00000004u; - return message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* OrderMessage::release_message() { // @@protoc_insertion_point(field_release:proto.OrderMessage.message) @@ -42627,7 +40864,7 @@ inline std::string* OrderMessage::release_message() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return message_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return message_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void OrderMessage::set_allocated_message(std::string* message) { if (message != nullptr) { @@ -42636,7 +40873,7 @@ inline void OrderMessage::set_allocated_message(std::string* message) { _has_bits_[0] &= ~0x00000004u; } message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.message) } @@ -42656,43 +40893,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void OrderMessage::set_ordertitle(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + ordertitle_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.OrderMessage.orderTitle) } inline std::string* OrderMessage::mutable_ordertitle() { + std::string* _s = _internal_mutable_ordertitle(); // @@protoc_insertion_point(field_mutable:proto.OrderMessage.orderTitle) - return _internal_mutable_ordertitle(); + return _s; } 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) + ordertitle_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* OrderMessage::_internal_mutable_ordertitle() { _has_bits_[0] |= 0x00000008u; - return ordertitle_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return ordertitle_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* OrderMessage::release_ordertitle() { // @@protoc_insertion_point(field_release:proto.OrderMessage.orderTitle) @@ -42700,7 +40922,7 @@ inline std::string* OrderMessage::release_ordertitle() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return ordertitle_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return ordertitle_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void OrderMessage::set_allocated_ordertitle(std::string* ordertitle) { if (ordertitle != nullptr) { @@ -42709,7 +40931,7 @@ inline void OrderMessage::set_allocated_ordertitle(std::string* ordertitle) { _has_bits_[0] &= ~0x00000008u; } ordertitle_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ordertitle, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.orderTitle) } @@ -42729,43 +40951,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void OrderMessage::set_sellerjid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + sellerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.OrderMessage.sellerJid) } inline std::string* OrderMessage::mutable_sellerjid() { + std::string* _s = _internal_mutable_sellerjid(); // @@protoc_insertion_point(field_mutable:proto.OrderMessage.sellerJid) - return _internal_mutable_sellerjid(); + return _s; } 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) + sellerjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* OrderMessage::_internal_mutable_sellerjid() { _has_bits_[0] |= 0x00000010u; - return sellerjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return sellerjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* OrderMessage::release_sellerjid() { // @@protoc_insertion_point(field_release:proto.OrderMessage.sellerJid) @@ -42773,7 +40980,7 @@ inline std::string* OrderMessage::release_sellerjid() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return sellerjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return sellerjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void OrderMessage::set_allocated_sellerjid(std::string* sellerjid) { if (sellerjid != nullptr) { @@ -42782,7 +40989,7 @@ inline void OrderMessage::set_allocated_sellerjid(std::string* sellerjid) { _has_bits_[0] &= ~0x00000010u; } sellerjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sellerjid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.sellerJid) } @@ -42802,43 +41009,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void OrderMessage::set_token(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000020u; + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.OrderMessage.token) } inline std::string* OrderMessage::mutable_token() { + std::string* _s = _internal_mutable_token(); // @@protoc_insertion_point(field_mutable:proto.OrderMessage.token) - return _internal_mutable_token(); + return _s; } 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) + token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* OrderMessage::_internal_mutable_token() { _has_bits_[0] |= 0x00000020u; - return token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* OrderMessage::release_token() { // @@protoc_insertion_point(field_release:proto.OrderMessage.token) @@ -42846,7 +41038,7 @@ inline std::string* OrderMessage::release_token() { return nullptr; } _has_bits_[0] &= ~0x00000020u; - return token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void OrderMessage::set_allocated_token(std::string* token) { if (token != nullptr) { @@ -42855,7 +41047,7 @@ inline void OrderMessage::set_allocated_token(std::string* token) { _has_bits_[0] &= ~0x00000020u; } token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), token, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.token) } @@ -42868,7 +41060,7 @@ inline bool OrderMessage::has_totalamount1000() const { return _internal_has_totalamount1000(); } inline void OrderMessage::clear_totalamount1000() { - totalamount1000_ = PROTOBUF_LONGLONG(0); + totalamount1000_ = int64_t{0}; _has_bits_[0] &= ~0x00000100u; } inline ::PROTOBUF_NAMESPACE_ID::int64 OrderMessage::_internal_totalamount1000() const { @@ -42903,43 +41095,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void OrderMessage::set_totalcurrencycode(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000040u; + totalcurrencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.OrderMessage.totalCurrencyCode) } inline std::string* OrderMessage::mutable_totalcurrencycode() { + std::string* _s = _internal_mutable_totalcurrencycode(); // @@protoc_insertion_point(field_mutable:proto.OrderMessage.totalCurrencyCode) - return _internal_mutable_totalcurrencycode(); + return _s; } 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) + totalcurrencycode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* OrderMessage::_internal_mutable_totalcurrencycode() { _has_bits_[0] |= 0x00000040u; - return totalcurrencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return totalcurrencycode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* OrderMessage::release_totalcurrencycode() { // @@protoc_insertion_point(field_release:proto.OrderMessage.totalCurrencyCode) @@ -42947,7 +41124,7 @@ inline std::string* OrderMessage::release_totalcurrencycode() { return nullptr; } _has_bits_[0] &= ~0x00000040u; - return totalcurrencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return totalcurrencycode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void OrderMessage::set_allocated_totalcurrencycode(std::string* totalcurrencycode) { if (totalcurrencycode != nullptr) { @@ -42956,7 +41133,7 @@ inline void OrderMessage::set_allocated_totalcurrencycode(std::string* totalcurr _has_bits_[0] &= ~0x00000040u; } totalcurrencycode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), totalcurrencycode, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.OrderMessage.totalCurrencyCode) } @@ -42984,7 +41161,7 @@ inline const ::proto::ContextInfo& OrderMessage::contextinfo() const { } inline void OrderMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -42999,9 +41176,15 @@ inline ::proto::ContextInfo* OrderMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000080u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* OrderMessage::unsafe_arena_release_contextinfo() { @@ -43014,23 +41197,24 @@ inline ::proto::ContextInfo* OrderMessage::unsafe_arena_release_contextinfo() { inline ::proto::ContextInfo* OrderMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000080u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* OrderMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.OrderMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void OrderMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -43063,43 +41247,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void Row::set_title(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.Row.title) } inline std::string* Row::mutable_title() { + std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:proto.Row.title) - return _internal_mutable_title(); + return _s; } 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) + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Row::_internal_mutable_title() { _has_bits_[0] |= 0x00000001u; - return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Row::release_title() { // @@protoc_insertion_point(field_release:proto.Row.title) @@ -43107,7 +41276,7 @@ inline std::string* Row::release_title() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Row::set_allocated_title(std::string* title) { if (title != nullptr) { @@ -43116,7 +41285,7 @@ inline void Row::set_allocated_title(std::string* title) { _has_bits_[0] &= ~0x00000001u; } title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.Row.title) } @@ -43136,43 +41305,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void Row::set_description(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.Row.description) } inline std::string* Row::mutable_description() { + std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:proto.Row.description) - return _internal_mutable_description(); + return _s; } 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) + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Row::_internal_mutable_description() { _has_bits_[0] |= 0x00000002u; - return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Row::release_description() { // @@protoc_insertion_point(field_release:proto.Row.description) @@ -43180,7 +41334,7 @@ inline std::string* Row::release_description() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Row::set_allocated_description(std::string* description) { if (description != nullptr) { @@ -43189,7 +41343,7 @@ inline void Row::set_allocated_description(std::string* description) { _has_bits_[0] &= ~0x00000002u; } description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.Row.description) } @@ -43209,43 +41363,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void Row::set_rowid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + rowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.Row.rowId) } inline std::string* Row::mutable_rowid() { + std::string* _s = _internal_mutable_rowid(); // @@protoc_insertion_point(field_mutable:proto.Row.rowId) - return _internal_mutable_rowid(); + return _s; } 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) + rowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Row::_internal_mutable_rowid() { _has_bits_[0] |= 0x00000004u; - return rowid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return rowid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Row::release_rowid() { // @@protoc_insertion_point(field_release:proto.Row.rowId) @@ -43253,7 +41392,7 @@ inline std::string* Row::release_rowid() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return rowid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return rowid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Row::set_allocated_rowid(std::string* rowid) { if (rowid != nullptr) { @@ -43262,7 +41401,7 @@ inline void Row::set_allocated_rowid(std::string* rowid) { _has_bits_[0] &= ~0x00000004u; } rowid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), rowid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.Row.rowId) } @@ -43286,43 +41425,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void Section::set_title(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.Section.title) } inline std::string* Section::mutable_title() { + std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:proto.Section.title) - return _internal_mutable_title(); + return _s; } 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) + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Section::_internal_mutable_title() { _has_bits_[0] |= 0x00000001u; - return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Section::release_title() { // @@protoc_insertion_point(field_release:proto.Section.title) @@ -43330,7 +41454,7 @@ inline std::string* Section::release_title() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Section::set_allocated_title(std::string* title) { if (title != nullptr) { @@ -43339,7 +41463,7 @@ inline void Section::set_allocated_title(std::string* title) { _has_bits_[0] &= ~0x00000001u; } title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.Section.title) } @@ -43373,8 +41497,9 @@ inline ::proto::Row* Section::_internal_add_rows() { return rows_.Add(); } inline ::proto::Row* Section::add_rows() { + ::proto::Row* _add = _internal_add_rows(); // @@protoc_insertion_point(field_add:proto.Section.rows) - return _internal_add_rows(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Row >& Section::rows() const { @@ -43402,43 +41527,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ListMessage::set_title(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ListMessage.title) } inline std::string* ListMessage::mutable_title() { + std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:proto.ListMessage.title) - return _internal_mutable_title(); + return _s; } 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) + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ListMessage::_internal_mutable_title() { _has_bits_[0] |= 0x00000001u; - return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ListMessage::release_title() { // @@protoc_insertion_point(field_release:proto.ListMessage.title) @@ -43446,7 +41556,7 @@ inline std::string* ListMessage::release_title() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ListMessage::set_allocated_title(std::string* title) { if (title != nullptr) { @@ -43455,7 +41565,7 @@ inline void ListMessage::set_allocated_title(std::string* title) { _has_bits_[0] &= ~0x00000001u; } title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ListMessage.title) } @@ -43475,43 +41585,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ListMessage::set_description(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ListMessage.description) } inline std::string* ListMessage::mutable_description() { + std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:proto.ListMessage.description) - return _internal_mutable_description(); + return _s; } 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) + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ListMessage::_internal_mutable_description() { _has_bits_[0] |= 0x00000002u; - return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ListMessage::release_description() { // @@protoc_insertion_point(field_release:proto.ListMessage.description) @@ -43519,7 +41614,7 @@ inline std::string* ListMessage::release_description() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ListMessage::set_allocated_description(std::string* description) { if (description != nullptr) { @@ -43528,7 +41623,7 @@ inline void ListMessage::set_allocated_description(std::string* description) { _has_bits_[0] &= ~0x00000002u; } description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ListMessage.description) } @@ -43548,43 +41643,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ListMessage::set_buttontext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + buttontext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ListMessage.buttonText) } inline std::string* ListMessage::mutable_buttontext() { + std::string* _s = _internal_mutable_buttontext(); // @@protoc_insertion_point(field_mutable:proto.ListMessage.buttonText) - return _internal_mutable_buttontext(); + return _s; } 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) + buttontext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ListMessage::_internal_mutable_buttontext() { _has_bits_[0] |= 0x00000004u; - return buttontext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return buttontext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ListMessage::release_buttontext() { // @@protoc_insertion_point(field_release:proto.ListMessage.buttonText) @@ -43592,7 +41672,7 @@ inline std::string* ListMessage::release_buttontext() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return buttontext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return buttontext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ListMessage::set_allocated_buttontext(std::string* buttontext) { if (buttontext != nullptr) { @@ -43601,7 +41681,7 @@ inline void ListMessage::set_allocated_buttontext(std::string* buttontext) { _has_bits_[0] &= ~0x00000004u; } buttontext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), buttontext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ListMessage.buttonText) } @@ -43664,8 +41744,9 @@ inline ::proto::Section* ListMessage::_internal_add_sections() { return sections_.Add(); } inline ::proto::Section* ListMessage::add_sections() { + ::proto::Section* _add = _internal_add_sections(); // @@protoc_insertion_point(field_add:proto.ListMessage.sections) - return _internal_add_sections(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Section >& ListMessage::sections() const { @@ -43693,43 +41774,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void SingleSelectReply::set_selectedrowid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + selectedrowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.SingleSelectReply.selectedRowId) } inline std::string* SingleSelectReply::mutable_selectedrowid() { + std::string* _s = _internal_mutable_selectedrowid(); // @@protoc_insertion_point(field_mutable:proto.SingleSelectReply.selectedRowId) - return _internal_mutable_selectedrowid(); + return _s; } 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) + selectedrowid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* SingleSelectReply::_internal_mutable_selectedrowid() { _has_bits_[0] |= 0x00000001u; - return selectedrowid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return selectedrowid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* SingleSelectReply::release_selectedrowid() { // @@protoc_insertion_point(field_release:proto.SingleSelectReply.selectedRowId) @@ -43737,7 +41803,7 @@ inline std::string* SingleSelectReply::release_selectedrowid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return selectedrowid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return selectedrowid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void SingleSelectReply::set_allocated_selectedrowid(std::string* selectedrowid) { if (selectedrowid != nullptr) { @@ -43746,7 +41812,7 @@ inline void SingleSelectReply::set_allocated_selectedrowid(std::string* selected _has_bits_[0] &= ~0x00000001u; } selectedrowid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selectedrowid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.SingleSelectReply.selectedRowId) } @@ -43770,43 +41836,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ListResponseMessage::set_title(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ListResponseMessage.title) } inline std::string* ListResponseMessage::mutable_title() { + std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:proto.ListResponseMessage.title) - return _internal_mutable_title(); + return _s; } 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) + title_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ListResponseMessage::_internal_mutable_title() { _has_bits_[0] |= 0x00000001u; - return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return title_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ListResponseMessage::release_title() { // @@protoc_insertion_point(field_release:proto.ListResponseMessage.title) @@ -43814,7 +41865,7 @@ inline std::string* ListResponseMessage::release_title() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return title_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ListResponseMessage::set_allocated_title(std::string* title) { if (title != nullptr) { @@ -43823,7 +41874,7 @@ inline void ListResponseMessage::set_allocated_title(std::string* title) { _has_bits_[0] &= ~0x00000001u; } title_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), title, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ListResponseMessage.title) } @@ -43880,7 +41931,7 @@ inline const ::proto::SingleSelectReply& ListResponseMessage::singleselectreply( } inline void ListResponseMessage::unsafe_arena_set_allocated_singleselectreply( ::proto::SingleSelectReply* singleselectreply) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(singleselectreply_); } singleselectreply_ = singleselectreply; @@ -43895,9 +41946,15 @@ inline ::proto::SingleSelectReply* ListResponseMessage::release_singleselectrepl _has_bits_[0] &= ~0x00000004u; ::proto::SingleSelectReply* temp = singleselectreply_; singleselectreply_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::SingleSelectReply* ListResponseMessage::unsafe_arena_release_singleselectreply() { @@ -43910,23 +41967,24 @@ inline ::proto::SingleSelectReply* ListResponseMessage::unsafe_arena_release_sin inline ::proto::SingleSelectReply* ListResponseMessage::_internal_mutable_singleselectreply() { _has_bits_[0] |= 0x00000004u; if (singleselectreply_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::SingleSelectReply>(GetArena()); + auto* p = CreateMaybeMessage<::proto::SingleSelectReply>(GetArenaForAllocation()); singleselectreply_ = p; } return singleselectreply_; } inline ::proto::SingleSelectReply* ListResponseMessage::mutable_singleselectreply() { + ::proto::SingleSelectReply* _msg = _internal_mutable_singleselectreply(); // @@protoc_insertion_point(field_mutable:proto.ListResponseMessage.singleSelectReply) - return _internal_mutable_singleselectreply(); + return _msg; } inline void ListResponseMessage::set_allocated_singleselectreply(::proto::SingleSelectReply* singleselectreply) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete singleselectreply_; } if (singleselectreply) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(singleselectreply); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::SingleSelectReply>::GetOwningArena(singleselectreply); if (message_arena != submessage_arena) { singleselectreply = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, singleselectreply, submessage_arena); @@ -43963,7 +42021,7 @@ inline const ::proto::ContextInfo& ListResponseMessage::contextinfo() const { } inline void ListResponseMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -43978,9 +42036,15 @@ inline ::proto::ContextInfo* ListResponseMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000008u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* ListResponseMessage::unsafe_arena_release_contextinfo() { @@ -43993,23 +42057,24 @@ inline ::proto::ContextInfo* ListResponseMessage::unsafe_arena_release_contextin inline ::proto::ContextInfo* ListResponseMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000008u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* ListResponseMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.ListResponseMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void ListResponseMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -44038,43 +42103,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ListResponseMessage::set_description(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ListResponseMessage.description) } inline std::string* ListResponseMessage::mutable_description() { + std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:proto.ListResponseMessage.description) - return _internal_mutable_description(); + return _s; } 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) + description_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ListResponseMessage::_internal_mutable_description() { _has_bits_[0] |= 0x00000002u; - return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return description_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ListResponseMessage::release_description() { // @@protoc_insertion_point(field_release:proto.ListResponseMessage.description) @@ -44082,7 +42132,7 @@ inline std::string* ListResponseMessage::release_description() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return description_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ListResponseMessage::set_allocated_description(std::string* description) { if (description != nullptr) { @@ -44091,7 +42141,7 @@ inline void ListResponseMessage::set_allocated_description(std::string* descript _has_bits_[0] &= ~0x00000002u; } description_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), description, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ListResponseMessage.description) } @@ -44115,43 +42165,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void GroupInviteMessage::set_groupjid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + groupjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.groupJid) } inline std::string* GroupInviteMessage::mutable_groupjid() { + std::string* _s = _internal_mutable_groupjid(); // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.groupJid) - return _internal_mutable_groupjid(); + return _s; } 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) + groupjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* GroupInviteMessage::_internal_mutable_groupjid() { _has_bits_[0] |= 0x00000001u; - return groupjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return groupjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* GroupInviteMessage::release_groupjid() { // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.groupJid) @@ -44159,7 +42194,7 @@ inline std::string* GroupInviteMessage::release_groupjid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return groupjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return groupjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void GroupInviteMessage::set_allocated_groupjid(std::string* groupjid) { if (groupjid != nullptr) { @@ -44168,7 +42203,7 @@ inline void GroupInviteMessage::set_allocated_groupjid(std::string* groupjid) { _has_bits_[0] &= ~0x00000001u; } groupjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), groupjid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.groupJid) } @@ -44188,43 +42223,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void GroupInviteMessage::set_invitecode(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + invitecode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.inviteCode) } inline std::string* GroupInviteMessage::mutable_invitecode() { + std::string* _s = _internal_mutable_invitecode(); // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.inviteCode) - return _internal_mutable_invitecode(); + return _s; } 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) + invitecode_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* GroupInviteMessage::_internal_mutable_invitecode() { _has_bits_[0] |= 0x00000002u; - return invitecode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return invitecode_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* GroupInviteMessage::release_invitecode() { // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.inviteCode) @@ -44232,7 +42252,7 @@ inline std::string* GroupInviteMessage::release_invitecode() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return invitecode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return invitecode_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void GroupInviteMessage::set_allocated_invitecode(std::string* invitecode) { if (invitecode != nullptr) { @@ -44241,7 +42261,7 @@ inline void GroupInviteMessage::set_allocated_invitecode(std::string* invitecode _has_bits_[0] &= ~0x00000002u; } invitecode_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), invitecode, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.inviteCode) } @@ -44254,7 +42274,7 @@ inline bool GroupInviteMessage::has_inviteexpiration() const { return _internal_has_inviteexpiration(); } inline void GroupInviteMessage::clear_inviteexpiration() { - inviteexpiration_ = PROTOBUF_LONGLONG(0); + inviteexpiration_ = int64_t{0}; _has_bits_[0] &= ~0x00000040u; } inline ::PROTOBUF_NAMESPACE_ID::int64 GroupInviteMessage::_internal_inviteexpiration() const { @@ -44289,43 +42309,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void GroupInviteMessage::set_groupname(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + groupname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.groupName) } inline std::string* GroupInviteMessage::mutable_groupname() { + std::string* _s = _internal_mutable_groupname(); // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.groupName) - return _internal_mutable_groupname(); + return _s; } 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) + groupname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* GroupInviteMessage::_internal_mutable_groupname() { _has_bits_[0] |= 0x00000004u; - return groupname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return groupname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* GroupInviteMessage::release_groupname() { // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.groupName) @@ -44333,7 +42338,7 @@ inline std::string* GroupInviteMessage::release_groupname() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return groupname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return groupname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void GroupInviteMessage::set_allocated_groupname(std::string* groupname) { if (groupname != nullptr) { @@ -44342,7 +42347,7 @@ inline void GroupInviteMessage::set_allocated_groupname(std::string* groupname) _has_bits_[0] &= ~0x00000004u; } groupname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), groupname, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.groupName) } @@ -44362,43 +42367,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void GroupInviteMessage::set_jpegthumbnail(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + jpegthumbnail_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.jpegThumbnail) } inline std::string* GroupInviteMessage::mutable_jpegthumbnail() { + std::string* _s = _internal_mutable_jpegthumbnail(); // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.jpegThumbnail) - return _internal_mutable_jpegthumbnail(); + return _s; } 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) + jpegthumbnail_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* GroupInviteMessage::_internal_mutable_jpegthumbnail() { _has_bits_[0] |= 0x00000008u; - return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return jpegthumbnail_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* GroupInviteMessage::release_jpegthumbnail() { // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.jpegThumbnail) @@ -44406,7 +42396,7 @@ inline std::string* GroupInviteMessage::release_jpegthumbnail() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return jpegthumbnail_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void GroupInviteMessage::set_allocated_jpegthumbnail(std::string* jpegthumbnail) { if (jpegthumbnail != nullptr) { @@ -44415,7 +42405,7 @@ inline void GroupInviteMessage::set_allocated_jpegthumbnail(std::string* jpegthu _has_bits_[0] &= ~0x00000008u; } jpegthumbnail_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), jpegthumbnail, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.jpegThumbnail) } @@ -44435,43 +42425,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void GroupInviteMessage::set_caption(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000010u; + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.GroupInviteMessage.caption) } inline std::string* GroupInviteMessage::mutable_caption() { + std::string* _s = _internal_mutable_caption(); // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.caption) - return _internal_mutable_caption(); + return _s; } 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) + caption_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* GroupInviteMessage::_internal_mutable_caption() { _has_bits_[0] |= 0x00000010u; - return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return caption_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* GroupInviteMessage::release_caption() { // @@protoc_insertion_point(field_release:proto.GroupInviteMessage.caption) @@ -44479,7 +42454,7 @@ inline std::string* GroupInviteMessage::release_caption() { return nullptr; } _has_bits_[0] &= ~0x00000010u; - return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return caption_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void GroupInviteMessage::set_allocated_caption(std::string* caption) { if (caption != nullptr) { @@ -44488,7 +42463,7 @@ inline void GroupInviteMessage::set_allocated_caption(std::string* caption) { _has_bits_[0] &= ~0x00000010u; } caption_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), caption, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.GroupInviteMessage.caption) } @@ -44516,7 +42491,7 @@ inline const ::proto::ContextInfo& GroupInviteMessage::contextinfo() const { } inline void GroupInviteMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -44531,9 +42506,15 @@ inline ::proto::ContextInfo* GroupInviteMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000020u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* GroupInviteMessage::unsafe_arena_release_contextinfo() { @@ -44546,23 +42527,24 @@ inline ::proto::ContextInfo* GroupInviteMessage::unsafe_arena_release_contextinf inline ::proto::ContextInfo* GroupInviteMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000020u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* GroupInviteMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.GroupInviteMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void GroupInviteMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -44595,43 +42577,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void EphemeralSetting::set_chatjid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + chatjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.EphemeralSetting.chatJid) } inline std::string* EphemeralSetting::mutable_chatjid() { + std::string* _s = _internal_mutable_chatjid(); // @@protoc_insertion_point(field_mutable:proto.EphemeralSetting.chatJid) - return _internal_mutable_chatjid(); + return _s; } 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) + chatjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* EphemeralSetting::_internal_mutable_chatjid() { _has_bits_[0] |= 0x00000001u; - return chatjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return chatjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* EphemeralSetting::release_chatjid() { // @@protoc_insertion_point(field_release:proto.EphemeralSetting.chatJid) @@ -44639,7 +42606,7 @@ inline std::string* EphemeralSetting::release_chatjid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return chatjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return chatjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void EphemeralSetting::set_allocated_chatjid(std::string* chatjid) { if (chatjid != nullptr) { @@ -44648,7 +42615,7 @@ inline void EphemeralSetting::set_allocated_chatjid(std::string* chatjid) { _has_bits_[0] &= ~0x00000001u; } chatjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chatjid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.EphemeralSetting.chatJid) } @@ -44689,7 +42656,7 @@ inline bool EphemeralSetting::has_ephemeralsettingtimestamp() const { return _internal_has_ephemeralsettingtimestamp(); } inline void EphemeralSetting::clear_ephemeralsettingtimestamp() { - ephemeralsettingtimestamp_ = PROTOBUF_LONGLONG(0); + ephemeralsettingtimestamp_ = int64_t{0}; _has_bits_[0] &= ~0x00000002u; } inline ::PROTOBUF_NAMESPACE_ID::int64 EphemeralSetting::_internal_ephemeralsettingtimestamp() const { @@ -44728,43 +42695,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DeviceSentMessage::set_destinationjid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + destinationjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DeviceSentMessage.destinationJid) } inline std::string* DeviceSentMessage::mutable_destinationjid() { + std::string* _s = _internal_mutable_destinationjid(); // @@protoc_insertion_point(field_mutable:proto.DeviceSentMessage.destinationJid) - return _internal_mutable_destinationjid(); + return _s; } 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) + destinationjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DeviceSentMessage::_internal_mutable_destinationjid() { _has_bits_[0] |= 0x00000001u; - return destinationjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return destinationjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DeviceSentMessage::release_destinationjid() { // @@protoc_insertion_point(field_release:proto.DeviceSentMessage.destinationJid) @@ -44772,7 +42724,7 @@ inline std::string* DeviceSentMessage::release_destinationjid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return destinationjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return destinationjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DeviceSentMessage::set_allocated_destinationjid(std::string* destinationjid) { if (destinationjid != nullptr) { @@ -44781,7 +42733,7 @@ inline void DeviceSentMessage::set_allocated_destinationjid(std::string* destina _has_bits_[0] &= ~0x00000001u; } destinationjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), destinationjid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DeviceSentMessage.destinationJid) } @@ -44809,7 +42761,7 @@ inline const ::proto::Message& DeviceSentMessage::message() const { } inline void DeviceSentMessage::unsafe_arena_set_allocated_message( ::proto::Message* message) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(message_); } message_ = message; @@ -44824,9 +42776,15 @@ inline ::proto::Message* DeviceSentMessage::release_message() { _has_bits_[0] &= ~0x00000004u; ::proto::Message* temp = message_; message_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::Message* DeviceSentMessage::unsafe_arena_release_message() { @@ -44839,23 +42797,24 @@ inline ::proto::Message* DeviceSentMessage::unsafe_arena_release_message() { inline ::proto::Message* DeviceSentMessage::_internal_mutable_message() { _has_bits_[0] |= 0x00000004u; if (message_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + auto* p = CreateMaybeMessage<::proto::Message>(GetArenaForAllocation()); message_ = p; } return message_; } inline ::proto::Message* DeviceSentMessage::mutable_message() { + ::proto::Message* _msg = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.DeviceSentMessage.message) - return _internal_mutable_message(); + return _msg; } inline void DeviceSentMessage::set_allocated_message(::proto::Message* message) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete message_; } if (message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Message>::GetOwningArena(message); if (message_arena != submessage_arena) { message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, message, submessage_arena); @@ -44884,43 +42843,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void DeviceSentMessage::set_phash(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + phash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.DeviceSentMessage.phash) } inline std::string* DeviceSentMessage::mutable_phash() { + std::string* _s = _internal_mutable_phash(); // @@protoc_insertion_point(field_mutable:proto.DeviceSentMessage.phash) - return _internal_mutable_phash(); + return _s; } 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) + phash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* DeviceSentMessage::_internal_mutable_phash() { _has_bits_[0] |= 0x00000002u; - return phash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return phash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* DeviceSentMessage::release_phash() { // @@protoc_insertion_point(field_release:proto.DeviceSentMessage.phash) @@ -44928,7 +42872,7 @@ inline std::string* DeviceSentMessage::release_phash() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return phash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return phash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void DeviceSentMessage::set_allocated_phash(std::string* phash) { if (phash != nullptr) { @@ -44937,7 +42881,7 @@ inline void DeviceSentMessage::set_allocated_phash(std::string* phash) { _has_bits_[0] &= ~0x00000002u; } phash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), phash, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.DeviceSentMessage.phash) } @@ -44971,8 +42915,9 @@ inline ::proto::EphemeralSetting* DeviceSentMessage::_internal_add_broadcastephe return broadcastephemeralsettings_.Add(); } inline ::proto::EphemeralSetting* DeviceSentMessage::add_broadcastephemeralsettings() { + ::proto::EphemeralSetting* _add = _internal_add_broadcastephemeralsettings(); // @@protoc_insertion_point(field_add:proto.DeviceSentMessage.broadcastEphemeralSettings) - return _internal_add_broadcastephemeralsettings(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::EphemeralSetting >& DeviceSentMessage::broadcastephemeralsettings() const { @@ -45008,7 +42953,7 @@ inline const ::proto::Message& FutureProofMessage::message() const { } inline void FutureProofMessage::unsafe_arena_set_allocated_message( ::proto::Message* message) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(message_); } message_ = message; @@ -45023,9 +42968,15 @@ inline ::proto::Message* FutureProofMessage::release_message() { _has_bits_[0] &= ~0x00000001u; ::proto::Message* temp = message_; message_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::Message* FutureProofMessage::unsafe_arena_release_message() { @@ -45038,23 +42989,24 @@ inline ::proto::Message* FutureProofMessage::unsafe_arena_release_message() { inline ::proto::Message* FutureProofMessage::_internal_mutable_message() { _has_bits_[0] |= 0x00000001u; if (message_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + auto* p = CreateMaybeMessage<::proto::Message>(GetArenaForAllocation()); message_ = p; } return message_; } inline ::proto::Message* FutureProofMessage::mutable_message() { + ::proto::Message* _msg = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.FutureProofMessage.message) - return _internal_mutable_message(); + return _msg; } inline void FutureProofMessage::set_allocated_message(::proto::Message* message) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete message_; } if (message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Message>::GetOwningArena(message); if (message_arena != submessage_arena) { message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, message, submessage_arena); @@ -45087,43 +43039,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ButtonText::set_displaytext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ButtonText.displayText) } inline std::string* ButtonText::mutable_displaytext() { + std::string* _s = _internal_mutable_displaytext(); // @@protoc_insertion_point(field_mutable:proto.ButtonText.displayText) - return _internal_mutable_displaytext(); + return _s; } 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) + displaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ButtonText::_internal_mutable_displaytext() { _has_bits_[0] |= 0x00000001u; - return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return displaytext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ButtonText::release_displaytext() { // @@protoc_insertion_point(field_release:proto.ButtonText.displayText) @@ -45131,7 +43068,7 @@ inline std::string* ButtonText::release_displaytext() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return displaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ButtonText::set_allocated_displaytext(std::string* displaytext) { if (displaytext != nullptr) { @@ -45140,7 +43077,7 @@ inline void ButtonText::set_allocated_displaytext(std::string* displaytext) { _has_bits_[0] &= ~0x00000001u; } displaytext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), displaytext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ButtonText.displayText) } @@ -45164,43 +43101,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void Button::set_buttonid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + buttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.Button.buttonId) } inline std::string* Button::mutable_buttonid() { + std::string* _s = _internal_mutable_buttonid(); // @@protoc_insertion_point(field_mutable:proto.Button.buttonId) - return _internal_mutable_buttonid(); + return _s; } 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) + buttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Button::_internal_mutable_buttonid() { _has_bits_[0] |= 0x00000001u; - return buttonid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return buttonid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Button::release_buttonid() { // @@protoc_insertion_point(field_release:proto.Button.buttonId) @@ -45208,7 +43130,7 @@ inline std::string* Button::release_buttonid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return buttonid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return buttonid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Button::set_allocated_buttonid(std::string* buttonid) { if (buttonid != nullptr) { @@ -45217,7 +43139,7 @@ inline void Button::set_allocated_buttonid(std::string* buttonid) { _has_bits_[0] &= ~0x00000001u; } buttonid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), buttonid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.Button.buttonId) } @@ -45245,7 +43167,7 @@ inline const ::proto::ButtonText& Button::buttontext() const { } inline void Button::unsafe_arena_set_allocated_buttontext( ::proto::ButtonText* buttontext) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(buttontext_); } buttontext_ = buttontext; @@ -45260,9 +43182,15 @@ inline ::proto::ButtonText* Button::release_buttontext() { _has_bits_[0] &= ~0x00000002u; ::proto::ButtonText* temp = buttontext_; buttontext_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ButtonText* Button::unsafe_arena_release_buttontext() { @@ -45275,23 +43203,24 @@ inline ::proto::ButtonText* Button::unsafe_arena_release_buttontext() { inline ::proto::ButtonText* Button::_internal_mutable_buttontext() { _has_bits_[0] |= 0x00000002u; if (buttontext_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ButtonText>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ButtonText>(GetArenaForAllocation()); buttontext_ = p; } return buttontext_; } inline ::proto::ButtonText* Button::mutable_buttontext() { + ::proto::ButtonText* _msg = _internal_mutable_buttontext(); // @@protoc_insertion_point(field_mutable:proto.Button.buttonText) - return _internal_mutable_buttontext(); + return _msg; } inline void Button::set_allocated_buttontext(::proto::ButtonText* buttontext) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete buttontext_; } if (buttontext) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(buttontext); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ButtonText>::GetOwningArena(buttontext); if (message_arena != submessage_arena) { buttontext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, buttontext, submessage_arena); @@ -45353,43 +43282,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ButtonsMessage::set_contenttext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + contenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ButtonsMessage.contentText) } inline std::string* ButtonsMessage::mutable_contenttext() { + std::string* _s = _internal_mutable_contenttext(); // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.contentText) - return _internal_mutable_contenttext(); + return _s; } 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) + contenttext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ButtonsMessage::_internal_mutable_contenttext() { _has_bits_[0] |= 0x00000001u; - return contenttext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return contenttext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ButtonsMessage::release_contenttext() { // @@protoc_insertion_point(field_release:proto.ButtonsMessage.contentText) @@ -45397,7 +43311,7 @@ inline std::string* ButtonsMessage::release_contenttext() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return contenttext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return contenttext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ButtonsMessage::set_allocated_contenttext(std::string* contenttext) { if (contenttext != nullptr) { @@ -45406,7 +43320,7 @@ inline void ButtonsMessage::set_allocated_contenttext(std::string* contenttext) _has_bits_[0] &= ~0x00000001u; } contenttext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), contenttext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.contentText) } @@ -45426,43 +43340,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ButtonsMessage::set_footertext(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + footertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ButtonsMessage.footerText) } inline std::string* ButtonsMessage::mutable_footertext() { + std::string* _s = _internal_mutable_footertext(); // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.footerText) - return _internal_mutable_footertext(); + return _s; } 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) + footertext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ButtonsMessage::_internal_mutable_footertext() { _has_bits_[0] |= 0x00000002u; - return footertext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return footertext_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ButtonsMessage::release_footertext() { // @@protoc_insertion_point(field_release:proto.ButtonsMessage.footerText) @@ -45470,7 +43369,7 @@ inline std::string* ButtonsMessage::release_footertext() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return footertext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return footertext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ButtonsMessage::set_allocated_footertext(std::string* footertext) { if (footertext != nullptr) { @@ -45479,7 +43378,7 @@ inline void ButtonsMessage::set_allocated_footertext(std::string* footertext) { _has_bits_[0] &= ~0x00000002u; } footertext_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), footertext, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ButtonsMessage.footerText) } @@ -45507,7 +43406,7 @@ inline const ::proto::ContextInfo& ButtonsMessage::contextinfo() const { } inline void ButtonsMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -45522,9 +43421,15 @@ inline ::proto::ContextInfo* ButtonsMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000004u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* ButtonsMessage::unsafe_arena_release_contextinfo() { @@ -45537,23 +43442,24 @@ inline ::proto::ContextInfo* ButtonsMessage::unsafe_arena_release_contextinfo() inline ::proto::ContextInfo* ButtonsMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000004u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* ButtonsMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void ButtonsMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -45596,8 +43502,9 @@ inline ::proto::Button* ButtonsMessage::_internal_add_buttons() { return buttons_.Add(); } inline ::proto::Button* ButtonsMessage::add_buttons() { + ::proto::Button* _add = _internal_add_buttons(); // @@protoc_insertion_point(field_add:proto.ButtonsMessage.buttons) - return _internal_add_buttons(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::Button >& ButtonsMessage::buttons() const { @@ -45646,7 +43553,7 @@ inline void ButtonsMessage::set_has_text() { } inline void ButtonsMessage::clear_text() { if (_internal_has_text()) { - header_.text_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + header_.text_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); clear_has_header(); } } @@ -45654,13 +43561,20 @@ 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); +template <typename ArgT0, typename... ArgT> +inline void ButtonsMessage::set_text(ArgT0&& arg0, ArgT... args) { + 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{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ButtonsMessage.text) } inline std::string* ButtonsMessage::mutable_text() { + std::string* _s = _internal_mutable_text(); // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.text) - return _internal_mutable_text(); + return _s; } inline const std::string& ButtonsMessage::_internal_text() const { if (_internal_has_text()) { @@ -45674,42 +43588,7 @@ inline void ButtonsMessage::_internal_set_text(const std::string& value) { 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) + header_.text_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ButtonsMessage::_internal_mutable_text() { if (!_internal_has_text()) { @@ -45718,13 +43597,13 @@ inline std::string* ButtonsMessage::_internal_mutable_text() { header_.text_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } return header_.text_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } 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()); + return header_.text_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } else { return nullptr; } @@ -45736,7 +43615,7 @@ inline void ButtonsMessage::set_allocated_text(std::string* text) { if (text != nullptr) { set_has_text(); header_.text_.UnsafeSetDefault(text); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation(); if (arena != nullptr) { arena->Own(text); } @@ -45756,7 +43635,7 @@ inline void ButtonsMessage::set_has_documentmessage() { } inline void ButtonsMessage::clear_documentmessage() { if (_internal_has_documentmessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete header_.documentmessage_; } clear_has_header(); @@ -45767,7 +43646,7 @@ inline ::proto::DocumentMessage* ButtonsMessage::release_documentmessage() { if (_internal_has_documentmessage()) { clear_has_header(); ::proto::DocumentMessage* temp = header_.documentmessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } header_.documentmessage_ = nullptr; @@ -45808,13 +43687,14 @@ inline ::proto::DocumentMessage* ButtonsMessage::_internal_mutable_documentmessa if (!_internal_has_documentmessage()) { clear_header(); set_has_documentmessage(); - header_.documentmessage_ = CreateMaybeMessage< ::proto::DocumentMessage >(GetArena()); + header_.documentmessage_ = CreateMaybeMessage< ::proto::DocumentMessage >(GetArenaForAllocation()); } return header_.documentmessage_; } inline ::proto::DocumentMessage* ButtonsMessage::mutable_documentmessage() { + ::proto::DocumentMessage* _msg = _internal_mutable_documentmessage(); // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.documentMessage) - return _internal_mutable_documentmessage(); + return _msg; } // .proto.ImageMessage imageMessage = 3; @@ -45829,7 +43709,7 @@ inline void ButtonsMessage::set_has_imagemessage() { } inline void ButtonsMessage::clear_imagemessage() { if (_internal_has_imagemessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete header_.imagemessage_; } clear_has_header(); @@ -45840,7 +43720,7 @@ inline ::proto::ImageMessage* ButtonsMessage::release_imagemessage() { if (_internal_has_imagemessage()) { clear_has_header(); ::proto::ImageMessage* temp = header_.imagemessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } header_.imagemessage_ = nullptr; @@ -45881,13 +43761,14 @@ inline ::proto::ImageMessage* ButtonsMessage::_internal_mutable_imagemessage() { if (!_internal_has_imagemessage()) { clear_header(); set_has_imagemessage(); - header_.imagemessage_ = CreateMaybeMessage< ::proto::ImageMessage >(GetArena()); + header_.imagemessage_ = CreateMaybeMessage< ::proto::ImageMessage >(GetArenaForAllocation()); } return header_.imagemessage_; } inline ::proto::ImageMessage* ButtonsMessage::mutable_imagemessage() { + ::proto::ImageMessage* _msg = _internal_mutable_imagemessage(); // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.imageMessage) - return _internal_mutable_imagemessage(); + return _msg; } // .proto.VideoMessage videoMessage = 4; @@ -45902,7 +43783,7 @@ inline void ButtonsMessage::set_has_videomessage() { } inline void ButtonsMessage::clear_videomessage() { if (_internal_has_videomessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete header_.videomessage_; } clear_has_header(); @@ -45913,7 +43794,7 @@ inline ::proto::VideoMessage* ButtonsMessage::release_videomessage() { if (_internal_has_videomessage()) { clear_has_header(); ::proto::VideoMessage* temp = header_.videomessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } header_.videomessage_ = nullptr; @@ -45954,13 +43835,14 @@ inline ::proto::VideoMessage* ButtonsMessage::_internal_mutable_videomessage() { if (!_internal_has_videomessage()) { clear_header(); set_has_videomessage(); - header_.videomessage_ = CreateMaybeMessage< ::proto::VideoMessage >(GetArena()); + header_.videomessage_ = CreateMaybeMessage< ::proto::VideoMessage >(GetArenaForAllocation()); } return header_.videomessage_; } inline ::proto::VideoMessage* ButtonsMessage::mutable_videomessage() { + ::proto::VideoMessage* _msg = _internal_mutable_videomessage(); // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.videoMessage) - return _internal_mutable_videomessage(); + return _msg; } // .proto.LocationMessage locationMessage = 5; @@ -45975,7 +43857,7 @@ inline void ButtonsMessage::set_has_locationmessage() { } inline void ButtonsMessage::clear_locationmessage() { if (_internal_has_locationmessage()) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete header_.locationmessage_; } clear_has_header(); @@ -45986,7 +43868,7 @@ inline ::proto::LocationMessage* ButtonsMessage::release_locationmessage() { if (_internal_has_locationmessage()) { clear_has_header(); ::proto::LocationMessage* temp = header_.locationmessage_; - if (GetArena() != nullptr) { + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } header_.locationmessage_ = nullptr; @@ -46027,13 +43909,14 @@ inline ::proto::LocationMessage* ButtonsMessage::_internal_mutable_locationmessa if (!_internal_has_locationmessage()) { clear_header(); set_has_locationmessage(); - header_.locationmessage_ = CreateMaybeMessage< ::proto::LocationMessage >(GetArena()); + header_.locationmessage_ = CreateMaybeMessage< ::proto::LocationMessage >(GetArenaForAllocation()); } return header_.locationmessage_; } inline ::proto::LocationMessage* ButtonsMessage::mutable_locationmessage() { + ::proto::LocationMessage* _msg = _internal_mutable_locationmessage(); // @@protoc_insertion_point(field_mutable:proto.ButtonsMessage.locationMessage) - return _internal_mutable_locationmessage(); + return _msg; } inline bool ButtonsMessage::has_header() const { @@ -46065,43 +43948,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void ButtonsResponseMessage::set_selectedbuttonid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + selectedbuttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ButtonsResponseMessage.selectedButtonId) } inline std::string* ButtonsResponseMessage::mutable_selectedbuttonid() { + std::string* _s = _internal_mutable_selectedbuttonid(); // @@protoc_insertion_point(field_mutable:proto.ButtonsResponseMessage.selectedButtonId) - return _internal_mutable_selectedbuttonid(); + return _s; } 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) + selectedbuttonid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ButtonsResponseMessage::_internal_mutable_selectedbuttonid() { _has_bits_[0] |= 0x00000001u; - return selectedbuttonid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return selectedbuttonid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* ButtonsResponseMessage::release_selectedbuttonid() { // @@protoc_insertion_point(field_release:proto.ButtonsResponseMessage.selectedButtonId) @@ -46109,7 +43977,7 @@ inline std::string* ButtonsResponseMessage::release_selectedbuttonid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return selectedbuttonid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return selectedbuttonid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void ButtonsResponseMessage::set_allocated_selectedbuttonid(std::string* selectedbuttonid) { if (selectedbuttonid != nullptr) { @@ -46118,7 +43986,7 @@ inline void ButtonsResponseMessage::set_allocated_selectedbuttonid(std::string* _has_bits_[0] &= ~0x00000001u; } selectedbuttonid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selectedbuttonid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.ButtonsResponseMessage.selectedButtonId) } @@ -46146,7 +44014,7 @@ inline const ::proto::ContextInfo& ButtonsResponseMessage::contextinfo() const { } inline void ButtonsResponseMessage::unsafe_arena_set_allocated_contextinfo( ::proto::ContextInfo* contextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contextinfo_); } contextinfo_ = contextinfo; @@ -46161,9 +44029,15 @@ inline ::proto::ContextInfo* ButtonsResponseMessage::release_contextinfo() { _has_bits_[0] &= ~0x00000002u; ::proto::ContextInfo* temp = contextinfo_; contextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContextInfo* ButtonsResponseMessage::unsafe_arena_release_contextinfo() { @@ -46176,23 +44050,24 @@ inline ::proto::ContextInfo* ButtonsResponseMessage::unsafe_arena_release_contex inline ::proto::ContextInfo* ButtonsResponseMessage::_internal_mutable_contextinfo() { _has_bits_[0] |= 0x00000002u; if (contextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContextInfo>(GetArenaForAllocation()); contextinfo_ = p; } return contextinfo_; } inline ::proto::ContextInfo* ButtonsResponseMessage::mutable_contextinfo() { + ::proto::ContextInfo* _msg = _internal_mutable_contextinfo(); // @@protoc_insertion_point(field_mutable:proto.ButtonsResponseMessage.contextInfo) - return _internal_mutable_contextinfo(); + return _msg; } inline void ButtonsResponseMessage::set_allocated_contextinfo(::proto::ContextInfo* contextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contextinfo_; } if (contextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContextInfo>::GetOwningArena(contextinfo); if (message_arena != submessage_arena) { contextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contextinfo, submessage_arena); @@ -46246,7 +44121,7 @@ inline void ButtonsResponseMessage::set_has_selecteddisplaytext() { } inline void ButtonsResponseMessage::clear_selecteddisplaytext() { if (_internal_has_selecteddisplaytext()) { - response_.selecteddisplaytext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + response_.selecteddisplaytext_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); clear_has_response(); } } @@ -46254,13 +44129,20 @@ 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); +template <typename ArgT0, typename... ArgT> +inline void ButtonsResponseMessage::set_selecteddisplaytext(ArgT0&& arg0, ArgT... args) { + 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{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.ButtonsResponseMessage.selectedDisplayText) } inline std::string* ButtonsResponseMessage::mutable_selecteddisplaytext() { + std::string* _s = _internal_mutable_selecteddisplaytext(); // @@protoc_insertion_point(field_mutable:proto.ButtonsResponseMessage.selectedDisplayText) - return _internal_mutable_selecteddisplaytext(); + return _s; } inline const std::string& ButtonsResponseMessage::_internal_selecteddisplaytext() const { if (_internal_has_selecteddisplaytext()) { @@ -46274,42 +44156,7 @@ inline void ButtonsResponseMessage::_internal_set_selecteddisplaytext(const std: 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) + response_.selecteddisplaytext_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* ButtonsResponseMessage::_internal_mutable_selecteddisplaytext() { if (!_internal_has_selecteddisplaytext()) { @@ -46318,13 +44165,13 @@ inline std::string* ButtonsResponseMessage::_internal_mutable_selecteddisplaytex response_.selecteddisplaytext_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } return response_.selecteddisplaytext_.Mutable( - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } 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()); + return response_.selecteddisplaytext_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } else { return nullptr; } @@ -46336,7 +44183,7 @@ inline void ButtonsResponseMessage::set_allocated_selecteddisplaytext(std::strin if (selecteddisplaytext != nullptr) { set_has_selecteddisplaytext(); response_.selecteddisplaytext_.UnsafeSetDefault(selecteddisplaytext); - ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaForAllocation(); if (arena != nullptr) { arena->Own(selecteddisplaytext); } @@ -46373,43 +44220,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void Message::set_conversation(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + conversation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.Message.conversation) } inline std::string* Message::mutable_conversation() { + std::string* _s = _internal_mutable_conversation(); // @@protoc_insertion_point(field_mutable:proto.Message.conversation) - return _internal_mutable_conversation(); + return _s; } 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) + conversation_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* Message::_internal_mutable_conversation() { _has_bits_[0] |= 0x00000001u; - return conversation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return conversation_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* Message::release_conversation() { // @@protoc_insertion_point(field_release:proto.Message.conversation) @@ -46417,7 +44249,7 @@ inline std::string* Message::release_conversation() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return conversation_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return conversation_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void Message::set_allocated_conversation(std::string* conversation) { if (conversation != nullptr) { @@ -46426,7 +44258,7 @@ inline void Message::set_allocated_conversation(std::string* conversation) { _has_bits_[0] &= ~0x00000001u; } conversation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), conversation, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.Message.conversation) } @@ -46454,7 +44286,7 @@ inline const ::proto::SenderKeyDistributionMessage& Message::senderkeydistributi } inline void Message::unsafe_arena_set_allocated_senderkeydistributionmessage( ::proto::SenderKeyDistributionMessage* senderkeydistributionmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(senderkeydistributionmessage_); } senderkeydistributionmessage_ = senderkeydistributionmessage; @@ -46469,9 +44301,15 @@ inline ::proto::SenderKeyDistributionMessage* Message::release_senderkeydistribu _has_bits_[0] &= ~0x00000002u; ::proto::SenderKeyDistributionMessage* temp = senderkeydistributionmessage_; senderkeydistributionmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::SenderKeyDistributionMessage* Message::unsafe_arena_release_senderkeydistributionmessage() { @@ -46484,23 +44322,24 @@ inline ::proto::SenderKeyDistributionMessage* Message::unsafe_arena_release_send inline ::proto::SenderKeyDistributionMessage* Message::_internal_mutable_senderkeydistributionmessage() { _has_bits_[0] |= 0x00000002u; if (senderkeydistributionmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::SenderKeyDistributionMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::SenderKeyDistributionMessage>(GetArenaForAllocation()); senderkeydistributionmessage_ = p; } return senderkeydistributionmessage_; } inline ::proto::SenderKeyDistributionMessage* Message::mutable_senderkeydistributionmessage() { + ::proto::SenderKeyDistributionMessage* _msg = _internal_mutable_senderkeydistributionmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.senderKeyDistributionMessage) - return _internal_mutable_senderkeydistributionmessage(); + return _msg; } inline void Message::set_allocated_senderkeydistributionmessage(::proto::SenderKeyDistributionMessage* senderkeydistributionmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete senderkeydistributionmessage_; } if (senderkeydistributionmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(senderkeydistributionmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::SenderKeyDistributionMessage>::GetOwningArena(senderkeydistributionmessage); if (message_arena != submessage_arena) { senderkeydistributionmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, senderkeydistributionmessage, submessage_arena); @@ -46537,7 +44376,7 @@ inline const ::proto::ImageMessage& Message::imagemessage() const { } inline void Message::unsafe_arena_set_allocated_imagemessage( ::proto::ImageMessage* imagemessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(imagemessage_); } imagemessage_ = imagemessage; @@ -46552,9 +44391,15 @@ inline ::proto::ImageMessage* Message::release_imagemessage() { _has_bits_[0] &= ~0x00000004u; ::proto::ImageMessage* temp = imagemessage_; imagemessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ImageMessage* Message::unsafe_arena_release_imagemessage() { @@ -46567,23 +44412,24 @@ inline ::proto::ImageMessage* Message::unsafe_arena_release_imagemessage() { inline ::proto::ImageMessage* Message::_internal_mutable_imagemessage() { _has_bits_[0] |= 0x00000004u; if (imagemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ImageMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ImageMessage>(GetArenaForAllocation()); imagemessage_ = p; } return imagemessage_; } inline ::proto::ImageMessage* Message::mutable_imagemessage() { + ::proto::ImageMessage* _msg = _internal_mutable_imagemessage(); // @@protoc_insertion_point(field_mutable:proto.Message.imageMessage) - return _internal_mutable_imagemessage(); + return _msg; } inline void Message::set_allocated_imagemessage(::proto::ImageMessage* imagemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete imagemessage_; } if (imagemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(imagemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ImageMessage>::GetOwningArena(imagemessage); if (message_arena != submessage_arena) { imagemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, imagemessage, submessage_arena); @@ -46620,7 +44466,7 @@ inline const ::proto::ContactMessage& Message::contactmessage() const { } inline void Message::unsafe_arena_set_allocated_contactmessage( ::proto::ContactMessage* contactmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contactmessage_); } contactmessage_ = contactmessage; @@ -46635,9 +44481,15 @@ inline ::proto::ContactMessage* Message::release_contactmessage() { _has_bits_[0] &= ~0x00000008u; ::proto::ContactMessage* temp = contactmessage_; contactmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContactMessage* Message::unsafe_arena_release_contactmessage() { @@ -46650,23 +44502,24 @@ inline ::proto::ContactMessage* Message::unsafe_arena_release_contactmessage() { inline ::proto::ContactMessage* Message::_internal_mutable_contactmessage() { _has_bits_[0] |= 0x00000008u; if (contactmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContactMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContactMessage>(GetArenaForAllocation()); contactmessage_ = p; } return contactmessage_; } inline ::proto::ContactMessage* Message::mutable_contactmessage() { + ::proto::ContactMessage* _msg = _internal_mutable_contactmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.contactMessage) - return _internal_mutable_contactmessage(); + return _msg; } inline void Message::set_allocated_contactmessage(::proto::ContactMessage* contactmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contactmessage_; } if (contactmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contactmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContactMessage>::GetOwningArena(contactmessage); if (message_arena != submessage_arena) { contactmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contactmessage, submessage_arena); @@ -46703,7 +44556,7 @@ inline const ::proto::LocationMessage& Message::locationmessage() const { } inline void Message::unsafe_arena_set_allocated_locationmessage( ::proto::LocationMessage* locationmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(locationmessage_); } locationmessage_ = locationmessage; @@ -46718,9 +44571,15 @@ inline ::proto::LocationMessage* Message::release_locationmessage() { _has_bits_[0] &= ~0x00000010u; ::proto::LocationMessage* temp = locationmessage_; locationmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::LocationMessage* Message::unsafe_arena_release_locationmessage() { @@ -46733,23 +44592,24 @@ inline ::proto::LocationMessage* Message::unsafe_arena_release_locationmessage() inline ::proto::LocationMessage* Message::_internal_mutable_locationmessage() { _has_bits_[0] |= 0x00000010u; if (locationmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::LocationMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::LocationMessage>(GetArenaForAllocation()); locationmessage_ = p; } return locationmessage_; } inline ::proto::LocationMessage* Message::mutable_locationmessage() { + ::proto::LocationMessage* _msg = _internal_mutable_locationmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.locationMessage) - return _internal_mutable_locationmessage(); + return _msg; } inline void Message::set_allocated_locationmessage(::proto::LocationMessage* locationmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete locationmessage_; } if (locationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(locationmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::LocationMessage>::GetOwningArena(locationmessage); if (message_arena != submessage_arena) { locationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, locationmessage, submessage_arena); @@ -46786,7 +44646,7 @@ inline const ::proto::ExtendedTextMessage& Message::extendedtextmessage() const } inline void Message::unsafe_arena_set_allocated_extendedtextmessage( ::proto::ExtendedTextMessage* extendedtextmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(extendedtextmessage_); } extendedtextmessage_ = extendedtextmessage; @@ -46801,9 +44661,15 @@ inline ::proto::ExtendedTextMessage* Message::release_extendedtextmessage() { _has_bits_[0] &= ~0x00000020u; ::proto::ExtendedTextMessage* temp = extendedtextmessage_; extendedtextmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ExtendedTextMessage* Message::unsafe_arena_release_extendedtextmessage() { @@ -46816,23 +44682,24 @@ inline ::proto::ExtendedTextMessage* Message::unsafe_arena_release_extendedtextm inline ::proto::ExtendedTextMessage* Message::_internal_mutable_extendedtextmessage() { _has_bits_[0] |= 0x00000020u; if (extendedtextmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ExtendedTextMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ExtendedTextMessage>(GetArenaForAllocation()); extendedtextmessage_ = p; } return extendedtextmessage_; } inline ::proto::ExtendedTextMessage* Message::mutable_extendedtextmessage() { + ::proto::ExtendedTextMessage* _msg = _internal_mutable_extendedtextmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.extendedTextMessage) - return _internal_mutable_extendedtextmessage(); + return _msg; } inline void Message::set_allocated_extendedtextmessage(::proto::ExtendedTextMessage* extendedtextmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete extendedtextmessage_; } if (extendedtextmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(extendedtextmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ExtendedTextMessage>::GetOwningArena(extendedtextmessage); if (message_arena != submessage_arena) { extendedtextmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, extendedtextmessage, submessage_arena); @@ -46869,7 +44736,7 @@ inline const ::proto::DocumentMessage& Message::documentmessage() const { } inline void Message::unsafe_arena_set_allocated_documentmessage( ::proto::DocumentMessage* documentmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(documentmessage_); } documentmessage_ = documentmessage; @@ -46884,9 +44751,15 @@ inline ::proto::DocumentMessage* Message::release_documentmessage() { _has_bits_[0] &= ~0x00000040u; ::proto::DocumentMessage* temp = documentmessage_; documentmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::DocumentMessage* Message::unsafe_arena_release_documentmessage() { @@ -46899,23 +44772,24 @@ inline ::proto::DocumentMessage* Message::unsafe_arena_release_documentmessage() inline ::proto::DocumentMessage* Message::_internal_mutable_documentmessage() { _has_bits_[0] |= 0x00000040u; if (documentmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::DocumentMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::DocumentMessage>(GetArenaForAllocation()); documentmessage_ = p; } return documentmessage_; } inline ::proto::DocumentMessage* Message::mutable_documentmessage() { + ::proto::DocumentMessage* _msg = _internal_mutable_documentmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.documentMessage) - return _internal_mutable_documentmessage(); + return _msg; } inline void Message::set_allocated_documentmessage(::proto::DocumentMessage* documentmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete documentmessage_; } if (documentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(documentmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::DocumentMessage>::GetOwningArena(documentmessage); if (message_arena != submessage_arena) { documentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, documentmessage, submessage_arena); @@ -46952,7 +44826,7 @@ inline const ::proto::AudioMessage& Message::audiomessage() const { } inline void Message::unsafe_arena_set_allocated_audiomessage( ::proto::AudioMessage* audiomessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(audiomessage_); } audiomessage_ = audiomessage; @@ -46967,9 +44841,15 @@ inline ::proto::AudioMessage* Message::release_audiomessage() { _has_bits_[0] &= ~0x00000080u; ::proto::AudioMessage* temp = audiomessage_; audiomessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::AudioMessage* Message::unsafe_arena_release_audiomessage() { @@ -46982,23 +44862,24 @@ inline ::proto::AudioMessage* Message::unsafe_arena_release_audiomessage() { inline ::proto::AudioMessage* Message::_internal_mutable_audiomessage() { _has_bits_[0] |= 0x00000080u; if (audiomessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::AudioMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::AudioMessage>(GetArenaForAllocation()); audiomessage_ = p; } return audiomessage_; } inline ::proto::AudioMessage* Message::mutable_audiomessage() { + ::proto::AudioMessage* _msg = _internal_mutable_audiomessage(); // @@protoc_insertion_point(field_mutable:proto.Message.audioMessage) - return _internal_mutable_audiomessage(); + return _msg; } inline void Message::set_allocated_audiomessage(::proto::AudioMessage* audiomessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete audiomessage_; } if (audiomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(audiomessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::AudioMessage>::GetOwningArena(audiomessage); if (message_arena != submessage_arena) { audiomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, audiomessage, submessage_arena); @@ -47035,7 +44916,7 @@ inline const ::proto::VideoMessage& Message::videomessage() const { } inline void Message::unsafe_arena_set_allocated_videomessage( ::proto::VideoMessage* videomessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(videomessage_); } videomessage_ = videomessage; @@ -47050,9 +44931,15 @@ inline ::proto::VideoMessage* Message::release_videomessage() { _has_bits_[0] &= ~0x00000100u; ::proto::VideoMessage* temp = videomessage_; videomessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::VideoMessage* Message::unsafe_arena_release_videomessage() { @@ -47065,23 +44952,24 @@ inline ::proto::VideoMessage* Message::unsafe_arena_release_videomessage() { inline ::proto::VideoMessage* Message::_internal_mutable_videomessage() { _has_bits_[0] |= 0x00000100u; if (videomessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::VideoMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::VideoMessage>(GetArenaForAllocation()); videomessage_ = p; } return videomessage_; } inline ::proto::VideoMessage* Message::mutable_videomessage() { + ::proto::VideoMessage* _msg = _internal_mutable_videomessage(); // @@protoc_insertion_point(field_mutable:proto.Message.videoMessage) - return _internal_mutable_videomessage(); + return _msg; } inline void Message::set_allocated_videomessage(::proto::VideoMessage* videomessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete videomessage_; } if (videomessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(videomessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::VideoMessage>::GetOwningArena(videomessage); if (message_arena != submessage_arena) { videomessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, videomessage, submessage_arena); @@ -47118,7 +45006,7 @@ inline const ::proto::Call& Message::call() const { } inline void Message::unsafe_arena_set_allocated_call( ::proto::Call* call) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(call_); } call_ = call; @@ -47133,9 +45021,15 @@ inline ::proto::Call* Message::release_call() { _has_bits_[0] &= ~0x00000200u; ::proto::Call* temp = call_; call_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::Call* Message::unsafe_arena_release_call() { @@ -47148,23 +45042,24 @@ inline ::proto::Call* Message::unsafe_arena_release_call() { inline ::proto::Call* Message::_internal_mutable_call() { _has_bits_[0] |= 0x00000200u; if (call_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::Call>(GetArena()); + auto* p = CreateMaybeMessage<::proto::Call>(GetArenaForAllocation()); call_ = p; } return call_; } inline ::proto::Call* Message::mutable_call() { + ::proto::Call* _msg = _internal_mutable_call(); // @@protoc_insertion_point(field_mutable:proto.Message.call) - return _internal_mutable_call(); + return _msg; } inline void Message::set_allocated_call(::proto::Call* call) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete call_; } if (call) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(call); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Call>::GetOwningArena(call); if (message_arena != submessage_arena) { call = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, call, submessage_arena); @@ -47201,7 +45096,7 @@ inline const ::proto::Chat& Message::chat() const { } inline void Message::unsafe_arena_set_allocated_chat( ::proto::Chat* chat) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(chat_); } chat_ = chat; @@ -47216,9 +45111,15 @@ inline ::proto::Chat* Message::release_chat() { _has_bits_[0] &= ~0x00000400u; ::proto::Chat* temp = chat_; chat_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::Chat* Message::unsafe_arena_release_chat() { @@ -47231,23 +45132,24 @@ inline ::proto::Chat* Message::unsafe_arena_release_chat() { inline ::proto::Chat* Message::_internal_mutable_chat() { _has_bits_[0] |= 0x00000400u; if (chat_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::Chat>(GetArena()); + auto* p = CreateMaybeMessage<::proto::Chat>(GetArenaForAllocation()); chat_ = p; } return chat_; } inline ::proto::Chat* Message::mutable_chat() { + ::proto::Chat* _msg = _internal_mutable_chat(); // @@protoc_insertion_point(field_mutable:proto.Message.chat) - return _internal_mutable_chat(); + return _msg; } inline void Message::set_allocated_chat(::proto::Chat* chat) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete chat_; } if (chat) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(chat); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Chat>::GetOwningArena(chat); if (message_arena != submessage_arena) { chat = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, chat, submessage_arena); @@ -47284,7 +45186,7 @@ inline const ::proto::ProtocolMessage& Message::protocolmessage() const { } inline void Message::unsafe_arena_set_allocated_protocolmessage( ::proto::ProtocolMessage* protocolmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(protocolmessage_); } protocolmessage_ = protocolmessage; @@ -47299,9 +45201,15 @@ inline ::proto::ProtocolMessage* Message::release_protocolmessage() { _has_bits_[0] &= ~0x00000800u; ::proto::ProtocolMessage* temp = protocolmessage_; protocolmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ProtocolMessage* Message::unsafe_arena_release_protocolmessage() { @@ -47314,23 +45222,24 @@ inline ::proto::ProtocolMessage* Message::unsafe_arena_release_protocolmessage() inline ::proto::ProtocolMessage* Message::_internal_mutable_protocolmessage() { _has_bits_[0] |= 0x00000800u; if (protocolmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ProtocolMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ProtocolMessage>(GetArenaForAllocation()); protocolmessage_ = p; } return protocolmessage_; } inline ::proto::ProtocolMessage* Message::mutable_protocolmessage() { + ::proto::ProtocolMessage* _msg = _internal_mutable_protocolmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.protocolMessage) - return _internal_mutable_protocolmessage(); + return _msg; } inline void Message::set_allocated_protocolmessage(::proto::ProtocolMessage* protocolmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete protocolmessage_; } if (protocolmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(protocolmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ProtocolMessage>::GetOwningArena(protocolmessage); if (message_arena != submessage_arena) { protocolmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, protocolmessage, submessage_arena); @@ -47367,7 +45276,7 @@ inline const ::proto::ContactsArrayMessage& Message::contactsarraymessage() cons } inline void Message::unsafe_arena_set_allocated_contactsarraymessage( ::proto::ContactsArrayMessage* contactsarraymessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(contactsarraymessage_); } contactsarraymessage_ = contactsarraymessage; @@ -47382,9 +45291,15 @@ inline ::proto::ContactsArrayMessage* Message::release_contactsarraymessage() { _has_bits_[0] &= ~0x00001000u; ::proto::ContactsArrayMessage* temp = contactsarraymessage_; contactsarraymessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ContactsArrayMessage* Message::unsafe_arena_release_contactsarraymessage() { @@ -47397,23 +45312,24 @@ inline ::proto::ContactsArrayMessage* Message::unsafe_arena_release_contactsarra inline ::proto::ContactsArrayMessage* Message::_internal_mutable_contactsarraymessage() { _has_bits_[0] |= 0x00001000u; if (contactsarraymessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ContactsArrayMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ContactsArrayMessage>(GetArenaForAllocation()); contactsarraymessage_ = p; } return contactsarraymessage_; } inline ::proto::ContactsArrayMessage* Message::mutable_contactsarraymessage() { + ::proto::ContactsArrayMessage* _msg = _internal_mutable_contactsarraymessage(); // @@protoc_insertion_point(field_mutable:proto.Message.contactsArrayMessage) - return _internal_mutable_contactsarraymessage(); + return _msg; } inline void Message::set_allocated_contactsarraymessage(::proto::ContactsArrayMessage* contactsarraymessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete contactsarraymessage_; } if (contactsarraymessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(contactsarraymessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ContactsArrayMessage>::GetOwningArena(contactsarraymessage); if (message_arena != submessage_arena) { contactsarraymessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, contactsarraymessage, submessage_arena); @@ -47450,7 +45366,7 @@ inline const ::proto::HighlyStructuredMessage& Message::highlystructuredmessage( } inline void Message::unsafe_arena_set_allocated_highlystructuredmessage( ::proto::HighlyStructuredMessage* highlystructuredmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(highlystructuredmessage_); } highlystructuredmessage_ = highlystructuredmessage; @@ -47465,9 +45381,15 @@ inline ::proto::HighlyStructuredMessage* Message::release_highlystructuredmessag _has_bits_[0] &= ~0x00002000u; ::proto::HighlyStructuredMessage* temp = highlystructuredmessage_; highlystructuredmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::HighlyStructuredMessage* Message::unsafe_arena_release_highlystructuredmessage() { @@ -47480,23 +45402,24 @@ inline ::proto::HighlyStructuredMessage* Message::unsafe_arena_release_highlystr inline ::proto::HighlyStructuredMessage* Message::_internal_mutable_highlystructuredmessage() { _has_bits_[0] |= 0x00002000u; if (highlystructuredmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::HighlyStructuredMessage>(GetArenaForAllocation()); highlystructuredmessage_ = p; } return highlystructuredmessage_; } inline ::proto::HighlyStructuredMessage* Message::mutable_highlystructuredmessage() { + ::proto::HighlyStructuredMessage* _msg = _internal_mutable_highlystructuredmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.highlyStructuredMessage) - return _internal_mutable_highlystructuredmessage(); + return _msg; } inline void Message::set_allocated_highlystructuredmessage(::proto::HighlyStructuredMessage* highlystructuredmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete highlystructuredmessage_; } if (highlystructuredmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(highlystructuredmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::HighlyStructuredMessage>::GetOwningArena(highlystructuredmessage); if (message_arena != submessage_arena) { highlystructuredmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, highlystructuredmessage, submessage_arena); @@ -47533,7 +45456,7 @@ inline const ::proto::SenderKeyDistributionMessage& Message::fastratchetkeysende } inline void Message::unsafe_arena_set_allocated_fastratchetkeysenderkeydistributionmessage( ::proto::SenderKeyDistributionMessage* fastratchetkeysenderkeydistributionmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(fastratchetkeysenderkeydistributionmessage_); } fastratchetkeysenderkeydistributionmessage_ = fastratchetkeysenderkeydistributionmessage; @@ -47548,9 +45471,15 @@ inline ::proto::SenderKeyDistributionMessage* Message::release_fastratchetkeysen _has_bits_[0] &= ~0x00004000u; ::proto::SenderKeyDistributionMessage* temp = fastratchetkeysenderkeydistributionmessage_; fastratchetkeysenderkeydistributionmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::SenderKeyDistributionMessage* Message::unsafe_arena_release_fastratchetkeysenderkeydistributionmessage() { @@ -47563,23 +45492,24 @@ inline ::proto::SenderKeyDistributionMessage* Message::unsafe_arena_release_fast inline ::proto::SenderKeyDistributionMessage* Message::_internal_mutable_fastratchetkeysenderkeydistributionmessage() { _has_bits_[0] |= 0x00004000u; if (fastratchetkeysenderkeydistributionmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::SenderKeyDistributionMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::SenderKeyDistributionMessage>(GetArenaForAllocation()); fastratchetkeysenderkeydistributionmessage_ = p; } return fastratchetkeysenderkeydistributionmessage_; } inline ::proto::SenderKeyDistributionMessage* Message::mutable_fastratchetkeysenderkeydistributionmessage() { + ::proto::SenderKeyDistributionMessage* _msg = _internal_mutable_fastratchetkeysenderkeydistributionmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.fastRatchetKeySenderKeyDistributionMessage) - return _internal_mutable_fastratchetkeysenderkeydistributionmessage(); + return _msg; } inline void Message::set_allocated_fastratchetkeysenderkeydistributionmessage(::proto::SenderKeyDistributionMessage* fastratchetkeysenderkeydistributionmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete fastratchetkeysenderkeydistributionmessage_; } if (fastratchetkeysenderkeydistributionmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fastratchetkeysenderkeydistributionmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::SenderKeyDistributionMessage>::GetOwningArena(fastratchetkeysenderkeydistributionmessage); if (message_arena != submessage_arena) { fastratchetkeysenderkeydistributionmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, fastratchetkeysenderkeydistributionmessage, submessage_arena); @@ -47616,7 +45546,7 @@ inline const ::proto::SendPaymentMessage& Message::sendpaymentmessage() const { } inline void Message::unsafe_arena_set_allocated_sendpaymentmessage( ::proto::SendPaymentMessage* sendpaymentmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sendpaymentmessage_); } sendpaymentmessage_ = sendpaymentmessage; @@ -47631,9 +45561,15 @@ inline ::proto::SendPaymentMessage* Message::release_sendpaymentmessage() { _has_bits_[0] &= ~0x00008000u; ::proto::SendPaymentMessage* temp = sendpaymentmessage_; sendpaymentmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::SendPaymentMessage* Message::unsafe_arena_release_sendpaymentmessage() { @@ -47646,23 +45582,24 @@ inline ::proto::SendPaymentMessage* Message::unsafe_arena_release_sendpaymentmes inline ::proto::SendPaymentMessage* Message::_internal_mutable_sendpaymentmessage() { _has_bits_[0] |= 0x00008000u; if (sendpaymentmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::SendPaymentMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::SendPaymentMessage>(GetArenaForAllocation()); sendpaymentmessage_ = p; } return sendpaymentmessage_; } inline ::proto::SendPaymentMessage* Message::mutable_sendpaymentmessage() { + ::proto::SendPaymentMessage* _msg = _internal_mutable_sendpaymentmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.sendPaymentMessage) - return _internal_mutable_sendpaymentmessage(); + return _msg; } inline void Message::set_allocated_sendpaymentmessage(::proto::SendPaymentMessage* sendpaymentmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete sendpaymentmessage_; } if (sendpaymentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(sendpaymentmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::SendPaymentMessage>::GetOwningArena(sendpaymentmessage); if (message_arena != submessage_arena) { sendpaymentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, sendpaymentmessage, submessage_arena); @@ -47699,7 +45636,7 @@ inline const ::proto::LiveLocationMessage& Message::livelocationmessage() const } inline void Message::unsafe_arena_set_allocated_livelocationmessage( ::proto::LiveLocationMessage* livelocationmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(livelocationmessage_); } livelocationmessage_ = livelocationmessage; @@ -47714,9 +45651,15 @@ inline ::proto::LiveLocationMessage* Message::release_livelocationmessage() { _has_bits_[0] &= ~0x00010000u; ::proto::LiveLocationMessage* temp = livelocationmessage_; livelocationmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::LiveLocationMessage* Message::unsafe_arena_release_livelocationmessage() { @@ -47729,23 +45672,24 @@ inline ::proto::LiveLocationMessage* Message::unsafe_arena_release_livelocationm inline ::proto::LiveLocationMessage* Message::_internal_mutable_livelocationmessage() { _has_bits_[0] |= 0x00010000u; if (livelocationmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::LiveLocationMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::LiveLocationMessage>(GetArenaForAllocation()); livelocationmessage_ = p; } return livelocationmessage_; } inline ::proto::LiveLocationMessage* Message::mutable_livelocationmessage() { + ::proto::LiveLocationMessage* _msg = _internal_mutable_livelocationmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.liveLocationMessage) - return _internal_mutable_livelocationmessage(); + return _msg; } inline void Message::set_allocated_livelocationmessage(::proto::LiveLocationMessage* livelocationmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete livelocationmessage_; } if (livelocationmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(livelocationmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::LiveLocationMessage>::GetOwningArena(livelocationmessage); if (message_arena != submessage_arena) { livelocationmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, livelocationmessage, submessage_arena); @@ -47782,7 +45726,7 @@ inline const ::proto::RequestPaymentMessage& Message::requestpaymentmessage() co } inline void Message::unsafe_arena_set_allocated_requestpaymentmessage( ::proto::RequestPaymentMessage* requestpaymentmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(requestpaymentmessage_); } requestpaymentmessage_ = requestpaymentmessage; @@ -47797,9 +45741,15 @@ inline ::proto::RequestPaymentMessage* Message::release_requestpaymentmessage() _has_bits_[0] &= ~0x00020000u; ::proto::RequestPaymentMessage* temp = requestpaymentmessage_; requestpaymentmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::RequestPaymentMessage* Message::unsafe_arena_release_requestpaymentmessage() { @@ -47812,23 +45762,24 @@ inline ::proto::RequestPaymentMessage* Message::unsafe_arena_release_requestpaym inline ::proto::RequestPaymentMessage* Message::_internal_mutable_requestpaymentmessage() { _has_bits_[0] |= 0x00020000u; if (requestpaymentmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::RequestPaymentMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::RequestPaymentMessage>(GetArenaForAllocation()); requestpaymentmessage_ = p; } return requestpaymentmessage_; } inline ::proto::RequestPaymentMessage* Message::mutable_requestpaymentmessage() { + ::proto::RequestPaymentMessage* _msg = _internal_mutable_requestpaymentmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.requestPaymentMessage) - return _internal_mutable_requestpaymentmessage(); + return _msg; } inline void Message::set_allocated_requestpaymentmessage(::proto::RequestPaymentMessage* requestpaymentmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete requestpaymentmessage_; } if (requestpaymentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(requestpaymentmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::RequestPaymentMessage>::GetOwningArena(requestpaymentmessage); if (message_arena != submessage_arena) { requestpaymentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, requestpaymentmessage, submessage_arena); @@ -47865,7 +45816,7 @@ inline const ::proto::DeclinePaymentRequestMessage& Message::declinepaymentreque } inline void Message::unsafe_arena_set_allocated_declinepaymentrequestmessage( ::proto::DeclinePaymentRequestMessage* declinepaymentrequestmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(declinepaymentrequestmessage_); } declinepaymentrequestmessage_ = declinepaymentrequestmessage; @@ -47880,9 +45831,15 @@ inline ::proto::DeclinePaymentRequestMessage* Message::release_declinepaymentreq _has_bits_[0] &= ~0x00040000u; ::proto::DeclinePaymentRequestMessage* temp = declinepaymentrequestmessage_; declinepaymentrequestmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::DeclinePaymentRequestMessage* Message::unsafe_arena_release_declinepaymentrequestmessage() { @@ -47895,23 +45852,24 @@ inline ::proto::DeclinePaymentRequestMessage* Message::unsafe_arena_release_decl inline ::proto::DeclinePaymentRequestMessage* Message::_internal_mutable_declinepaymentrequestmessage() { _has_bits_[0] |= 0x00040000u; if (declinepaymentrequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::DeclinePaymentRequestMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::DeclinePaymentRequestMessage>(GetArenaForAllocation()); declinepaymentrequestmessage_ = p; } return declinepaymentrequestmessage_; } inline ::proto::DeclinePaymentRequestMessage* Message::mutable_declinepaymentrequestmessage() { + ::proto::DeclinePaymentRequestMessage* _msg = _internal_mutable_declinepaymentrequestmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.declinePaymentRequestMessage) - return _internal_mutable_declinepaymentrequestmessage(); + return _msg; } inline void Message::set_allocated_declinepaymentrequestmessage(::proto::DeclinePaymentRequestMessage* declinepaymentrequestmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete declinepaymentrequestmessage_; } if (declinepaymentrequestmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(declinepaymentrequestmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::DeclinePaymentRequestMessage>::GetOwningArena(declinepaymentrequestmessage); if (message_arena != submessage_arena) { declinepaymentrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, declinepaymentrequestmessage, submessage_arena); @@ -47948,7 +45906,7 @@ inline const ::proto::CancelPaymentRequestMessage& Message::cancelpaymentrequest } inline void Message::unsafe_arena_set_allocated_cancelpaymentrequestmessage( ::proto::CancelPaymentRequestMessage* cancelpaymentrequestmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(cancelpaymentrequestmessage_); } cancelpaymentrequestmessage_ = cancelpaymentrequestmessage; @@ -47963,9 +45921,15 @@ inline ::proto::CancelPaymentRequestMessage* Message::release_cancelpaymentreque _has_bits_[0] &= ~0x00080000u; ::proto::CancelPaymentRequestMessage* temp = cancelpaymentrequestmessage_; cancelpaymentrequestmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::CancelPaymentRequestMessage* Message::unsafe_arena_release_cancelpaymentrequestmessage() { @@ -47978,23 +45942,24 @@ inline ::proto::CancelPaymentRequestMessage* Message::unsafe_arena_release_cance inline ::proto::CancelPaymentRequestMessage* Message::_internal_mutable_cancelpaymentrequestmessage() { _has_bits_[0] |= 0x00080000u; if (cancelpaymentrequestmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::CancelPaymentRequestMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::CancelPaymentRequestMessage>(GetArenaForAllocation()); cancelpaymentrequestmessage_ = p; } return cancelpaymentrequestmessage_; } inline ::proto::CancelPaymentRequestMessage* Message::mutable_cancelpaymentrequestmessage() { + ::proto::CancelPaymentRequestMessage* _msg = _internal_mutable_cancelpaymentrequestmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.cancelPaymentRequestMessage) - return _internal_mutable_cancelpaymentrequestmessage(); + return _msg; } inline void Message::set_allocated_cancelpaymentrequestmessage(::proto::CancelPaymentRequestMessage* cancelpaymentrequestmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete cancelpaymentrequestmessage_; } if (cancelpaymentrequestmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(cancelpaymentrequestmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::CancelPaymentRequestMessage>::GetOwningArena(cancelpaymentrequestmessage); if (message_arena != submessage_arena) { cancelpaymentrequestmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, cancelpaymentrequestmessage, submessage_arena); @@ -48031,7 +45996,7 @@ inline const ::proto::TemplateMessage& Message::templatemessage() const { } inline void Message::unsafe_arena_set_allocated_templatemessage( ::proto::TemplateMessage* templatemessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(templatemessage_); } templatemessage_ = templatemessage; @@ -48046,9 +46011,15 @@ inline ::proto::TemplateMessage* Message::release_templatemessage() { _has_bits_[0] &= ~0x00100000u; ::proto::TemplateMessage* temp = templatemessage_; templatemessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::TemplateMessage* Message::unsafe_arena_release_templatemessage() { @@ -48061,23 +46032,24 @@ inline ::proto::TemplateMessage* Message::unsafe_arena_release_templatemessage() inline ::proto::TemplateMessage* Message::_internal_mutable_templatemessage() { _has_bits_[0] |= 0x00100000u; if (templatemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::TemplateMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::TemplateMessage>(GetArenaForAllocation()); templatemessage_ = p; } return templatemessage_; } inline ::proto::TemplateMessage* Message::mutable_templatemessage() { + ::proto::TemplateMessage* _msg = _internal_mutable_templatemessage(); // @@protoc_insertion_point(field_mutable:proto.Message.templateMessage) - return _internal_mutable_templatemessage(); + return _msg; } inline void Message::set_allocated_templatemessage(::proto::TemplateMessage* templatemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete templatemessage_; } if (templatemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(templatemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::TemplateMessage>::GetOwningArena(templatemessage); if (message_arena != submessage_arena) { templatemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, templatemessage, submessage_arena); @@ -48114,7 +46086,7 @@ inline const ::proto::StickerMessage& Message::stickermessage() const { } inline void Message::unsafe_arena_set_allocated_stickermessage( ::proto::StickerMessage* stickermessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(stickermessage_); } stickermessage_ = stickermessage; @@ -48129,9 +46101,15 @@ inline ::proto::StickerMessage* Message::release_stickermessage() { _has_bits_[0] &= ~0x00200000u; ::proto::StickerMessage* temp = stickermessage_; stickermessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::StickerMessage* Message::unsafe_arena_release_stickermessage() { @@ -48144,23 +46122,24 @@ inline ::proto::StickerMessage* Message::unsafe_arena_release_stickermessage() { inline ::proto::StickerMessage* Message::_internal_mutable_stickermessage() { _has_bits_[0] |= 0x00200000u; if (stickermessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::StickerMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::StickerMessage>(GetArenaForAllocation()); stickermessage_ = p; } return stickermessage_; } inline ::proto::StickerMessage* Message::mutable_stickermessage() { + ::proto::StickerMessage* _msg = _internal_mutable_stickermessage(); // @@protoc_insertion_point(field_mutable:proto.Message.stickerMessage) - return _internal_mutable_stickermessage(); + return _msg; } inline void Message::set_allocated_stickermessage(::proto::StickerMessage* stickermessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete stickermessage_; } if (stickermessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(stickermessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::StickerMessage>::GetOwningArena(stickermessage); if (message_arena != submessage_arena) { stickermessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, stickermessage, submessage_arena); @@ -48197,7 +46176,7 @@ inline const ::proto::GroupInviteMessage& Message::groupinvitemessage() const { } inline void Message::unsafe_arena_set_allocated_groupinvitemessage( ::proto::GroupInviteMessage* groupinvitemessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(groupinvitemessage_); } groupinvitemessage_ = groupinvitemessage; @@ -48212,9 +46191,15 @@ inline ::proto::GroupInviteMessage* Message::release_groupinvitemessage() { _has_bits_[0] &= ~0x00400000u; ::proto::GroupInviteMessage* temp = groupinvitemessage_; groupinvitemessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::GroupInviteMessage* Message::unsafe_arena_release_groupinvitemessage() { @@ -48227,23 +46212,24 @@ inline ::proto::GroupInviteMessage* Message::unsafe_arena_release_groupinvitemes inline ::proto::GroupInviteMessage* Message::_internal_mutable_groupinvitemessage() { _has_bits_[0] |= 0x00400000u; if (groupinvitemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::GroupInviteMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::GroupInviteMessage>(GetArenaForAllocation()); groupinvitemessage_ = p; } return groupinvitemessage_; } inline ::proto::GroupInviteMessage* Message::mutable_groupinvitemessage() { + ::proto::GroupInviteMessage* _msg = _internal_mutable_groupinvitemessage(); // @@protoc_insertion_point(field_mutable:proto.Message.groupInviteMessage) - return _internal_mutable_groupinvitemessage(); + return _msg; } inline void Message::set_allocated_groupinvitemessage(::proto::GroupInviteMessage* groupinvitemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete groupinvitemessage_; } if (groupinvitemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(groupinvitemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::GroupInviteMessage>::GetOwningArena(groupinvitemessage); if (message_arena != submessage_arena) { groupinvitemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, groupinvitemessage, submessage_arena); @@ -48280,7 +46266,7 @@ inline const ::proto::TemplateButtonReplyMessage& Message::templatebuttonreplyme } inline void Message::unsafe_arena_set_allocated_templatebuttonreplymessage( ::proto::TemplateButtonReplyMessage* templatebuttonreplymessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(templatebuttonreplymessage_); } templatebuttonreplymessage_ = templatebuttonreplymessage; @@ -48295,9 +46281,15 @@ inline ::proto::TemplateButtonReplyMessage* Message::release_templatebuttonreply _has_bits_[0] &= ~0x00800000u; ::proto::TemplateButtonReplyMessage* temp = templatebuttonreplymessage_; templatebuttonreplymessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::TemplateButtonReplyMessage* Message::unsafe_arena_release_templatebuttonreplymessage() { @@ -48310,23 +46302,24 @@ inline ::proto::TemplateButtonReplyMessage* Message::unsafe_arena_release_templa inline ::proto::TemplateButtonReplyMessage* Message::_internal_mutable_templatebuttonreplymessage() { _has_bits_[0] |= 0x00800000u; if (templatebuttonreplymessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::TemplateButtonReplyMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::TemplateButtonReplyMessage>(GetArenaForAllocation()); templatebuttonreplymessage_ = p; } return templatebuttonreplymessage_; } inline ::proto::TemplateButtonReplyMessage* Message::mutable_templatebuttonreplymessage() { + ::proto::TemplateButtonReplyMessage* _msg = _internal_mutable_templatebuttonreplymessage(); // @@protoc_insertion_point(field_mutable:proto.Message.templateButtonReplyMessage) - return _internal_mutable_templatebuttonreplymessage(); + return _msg; } inline void Message::set_allocated_templatebuttonreplymessage(::proto::TemplateButtonReplyMessage* templatebuttonreplymessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete templatebuttonreplymessage_; } if (templatebuttonreplymessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(templatebuttonreplymessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::TemplateButtonReplyMessage>::GetOwningArena(templatebuttonreplymessage); if (message_arena != submessage_arena) { templatebuttonreplymessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, templatebuttonreplymessage, submessage_arena); @@ -48363,7 +46356,7 @@ inline const ::proto::ProductMessage& Message::productmessage() const { } inline void Message::unsafe_arena_set_allocated_productmessage( ::proto::ProductMessage* productmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(productmessage_); } productmessage_ = productmessage; @@ -48378,9 +46371,15 @@ inline ::proto::ProductMessage* Message::release_productmessage() { _has_bits_[0] &= ~0x01000000u; ::proto::ProductMessage* temp = productmessage_; productmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ProductMessage* Message::unsafe_arena_release_productmessage() { @@ -48393,23 +46392,24 @@ inline ::proto::ProductMessage* Message::unsafe_arena_release_productmessage() { inline ::proto::ProductMessage* Message::_internal_mutable_productmessage() { _has_bits_[0] |= 0x01000000u; if (productmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ProductMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ProductMessage>(GetArenaForAllocation()); productmessage_ = p; } return productmessage_; } inline ::proto::ProductMessage* Message::mutable_productmessage() { + ::proto::ProductMessage* _msg = _internal_mutable_productmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.productMessage) - return _internal_mutable_productmessage(); + return _msg; } inline void Message::set_allocated_productmessage(::proto::ProductMessage* productmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete productmessage_; } if (productmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(productmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ProductMessage>::GetOwningArena(productmessage); if (message_arena != submessage_arena) { productmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, productmessage, submessage_arena); @@ -48446,7 +46446,7 @@ inline const ::proto::DeviceSentMessage& Message::devicesentmessage() const { } inline void Message::unsafe_arena_set_allocated_devicesentmessage( ::proto::DeviceSentMessage* devicesentmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(devicesentmessage_); } devicesentmessage_ = devicesentmessage; @@ -48461,9 +46461,15 @@ inline ::proto::DeviceSentMessage* Message::release_devicesentmessage() { _has_bits_[0] &= ~0x02000000u; ::proto::DeviceSentMessage* temp = devicesentmessage_; devicesentmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::DeviceSentMessage* Message::unsafe_arena_release_devicesentmessage() { @@ -48476,23 +46482,24 @@ inline ::proto::DeviceSentMessage* Message::unsafe_arena_release_devicesentmessa inline ::proto::DeviceSentMessage* Message::_internal_mutable_devicesentmessage() { _has_bits_[0] |= 0x02000000u; if (devicesentmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::DeviceSentMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::DeviceSentMessage>(GetArenaForAllocation()); devicesentmessage_ = p; } return devicesentmessage_; } inline ::proto::DeviceSentMessage* Message::mutable_devicesentmessage() { + ::proto::DeviceSentMessage* _msg = _internal_mutable_devicesentmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.deviceSentMessage) - return _internal_mutable_devicesentmessage(); + return _msg; } inline void Message::set_allocated_devicesentmessage(::proto::DeviceSentMessage* devicesentmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete devicesentmessage_; } if (devicesentmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(devicesentmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::DeviceSentMessage>::GetOwningArena(devicesentmessage); if (message_arena != submessage_arena) { devicesentmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, devicesentmessage, submessage_arena); @@ -48529,7 +46536,7 @@ inline const ::proto::MessageContextInfo& Message::messagecontextinfo() const { } inline void Message::unsafe_arena_set_allocated_messagecontextinfo( ::proto::MessageContextInfo* messagecontextinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(messagecontextinfo_); } messagecontextinfo_ = messagecontextinfo; @@ -48544,9 +46551,15 @@ inline ::proto::MessageContextInfo* Message::release_messagecontextinfo() { _has_bits_[0] &= ~0x04000000u; ::proto::MessageContextInfo* temp = messagecontextinfo_; messagecontextinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::MessageContextInfo* Message::unsafe_arena_release_messagecontextinfo() { @@ -48559,23 +46572,24 @@ inline ::proto::MessageContextInfo* Message::unsafe_arena_release_messagecontext inline ::proto::MessageContextInfo* Message::_internal_mutable_messagecontextinfo() { _has_bits_[0] |= 0x04000000u; if (messagecontextinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::MessageContextInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::MessageContextInfo>(GetArenaForAllocation()); messagecontextinfo_ = p; } return messagecontextinfo_; } inline ::proto::MessageContextInfo* Message::mutable_messagecontextinfo() { + ::proto::MessageContextInfo* _msg = _internal_mutable_messagecontextinfo(); // @@protoc_insertion_point(field_mutable:proto.Message.messageContextInfo) - return _internal_mutable_messagecontextinfo(); + return _msg; } inline void Message::set_allocated_messagecontextinfo(::proto::MessageContextInfo* messagecontextinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete messagecontextinfo_; } if (messagecontextinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(messagecontextinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::MessageContextInfo>::GetOwningArena(messagecontextinfo); if (message_arena != submessage_arena) { messagecontextinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, messagecontextinfo, submessage_arena); @@ -48612,7 +46626,7 @@ inline const ::proto::ListMessage& Message::listmessage() const { } inline void Message::unsafe_arena_set_allocated_listmessage( ::proto::ListMessage* listmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(listmessage_); } listmessage_ = listmessage; @@ -48627,9 +46641,15 @@ inline ::proto::ListMessage* Message::release_listmessage() { _has_bits_[0] &= ~0x08000000u; ::proto::ListMessage* temp = listmessage_; listmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ListMessage* Message::unsafe_arena_release_listmessage() { @@ -48642,23 +46662,24 @@ inline ::proto::ListMessage* Message::unsafe_arena_release_listmessage() { inline ::proto::ListMessage* Message::_internal_mutable_listmessage() { _has_bits_[0] |= 0x08000000u; if (listmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ListMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ListMessage>(GetArenaForAllocation()); listmessage_ = p; } return listmessage_; } inline ::proto::ListMessage* Message::mutable_listmessage() { + ::proto::ListMessage* _msg = _internal_mutable_listmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.listMessage) - return _internal_mutable_listmessage(); + return _msg; } inline void Message::set_allocated_listmessage(::proto::ListMessage* listmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete listmessage_; } if (listmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(listmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ListMessage>::GetOwningArena(listmessage); if (message_arena != submessage_arena) { listmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, listmessage, submessage_arena); @@ -48695,7 +46716,7 @@ inline const ::proto::FutureProofMessage& Message::viewoncemessage() const { } inline void Message::unsafe_arena_set_allocated_viewoncemessage( ::proto::FutureProofMessage* viewoncemessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(viewoncemessage_); } viewoncemessage_ = viewoncemessage; @@ -48710,9 +46731,15 @@ inline ::proto::FutureProofMessage* Message::release_viewoncemessage() { _has_bits_[0] &= ~0x10000000u; ::proto::FutureProofMessage* temp = viewoncemessage_; viewoncemessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::FutureProofMessage* Message::unsafe_arena_release_viewoncemessage() { @@ -48725,23 +46752,24 @@ inline ::proto::FutureProofMessage* Message::unsafe_arena_release_viewoncemessag inline ::proto::FutureProofMessage* Message::_internal_mutable_viewoncemessage() { _has_bits_[0] |= 0x10000000u; if (viewoncemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::FutureProofMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::FutureProofMessage>(GetArenaForAllocation()); viewoncemessage_ = p; } return viewoncemessage_; } inline ::proto::FutureProofMessage* Message::mutable_viewoncemessage() { + ::proto::FutureProofMessage* _msg = _internal_mutable_viewoncemessage(); // @@protoc_insertion_point(field_mutable:proto.Message.viewOnceMessage) - return _internal_mutable_viewoncemessage(); + return _msg; } inline void Message::set_allocated_viewoncemessage(::proto::FutureProofMessage* viewoncemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete viewoncemessage_; } if (viewoncemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(viewoncemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::FutureProofMessage>::GetOwningArena(viewoncemessage); if (message_arena != submessage_arena) { viewoncemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, viewoncemessage, submessage_arena); @@ -48778,7 +46806,7 @@ inline const ::proto::OrderMessage& Message::ordermessage() const { } inline void Message::unsafe_arena_set_allocated_ordermessage( ::proto::OrderMessage* ordermessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ordermessage_); } ordermessage_ = ordermessage; @@ -48793,9 +46821,15 @@ inline ::proto::OrderMessage* Message::release_ordermessage() { _has_bits_[0] &= ~0x20000000u; ::proto::OrderMessage* temp = ordermessage_; ordermessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::OrderMessage* Message::unsafe_arena_release_ordermessage() { @@ -48808,23 +46842,24 @@ inline ::proto::OrderMessage* Message::unsafe_arena_release_ordermessage() { inline ::proto::OrderMessage* Message::_internal_mutable_ordermessage() { _has_bits_[0] |= 0x20000000u; if (ordermessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::OrderMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::OrderMessage>(GetArenaForAllocation()); ordermessage_ = p; } return ordermessage_; } inline ::proto::OrderMessage* Message::mutable_ordermessage() { + ::proto::OrderMessage* _msg = _internal_mutable_ordermessage(); // @@protoc_insertion_point(field_mutable:proto.Message.orderMessage) - return _internal_mutable_ordermessage(); + return _msg; } inline void Message::set_allocated_ordermessage(::proto::OrderMessage* ordermessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete ordermessage_; } if (ordermessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(ordermessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::OrderMessage>::GetOwningArena(ordermessage); if (message_arena != submessage_arena) { ordermessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, ordermessage, submessage_arena); @@ -48861,7 +46896,7 @@ inline const ::proto::ListResponseMessage& Message::listresponsemessage() const } inline void Message::unsafe_arena_set_allocated_listresponsemessage( ::proto::ListResponseMessage* listresponsemessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(listresponsemessage_); } listresponsemessage_ = listresponsemessage; @@ -48876,9 +46911,15 @@ inline ::proto::ListResponseMessage* Message::release_listresponsemessage() { _has_bits_[0] &= ~0x40000000u; ::proto::ListResponseMessage* temp = listresponsemessage_; listresponsemessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ListResponseMessage* Message::unsafe_arena_release_listresponsemessage() { @@ -48891,23 +46932,24 @@ inline ::proto::ListResponseMessage* Message::unsafe_arena_release_listresponsem inline ::proto::ListResponseMessage* Message::_internal_mutable_listresponsemessage() { _has_bits_[0] |= 0x40000000u; if (listresponsemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ListResponseMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ListResponseMessage>(GetArenaForAllocation()); listresponsemessage_ = p; } return listresponsemessage_; } inline ::proto::ListResponseMessage* Message::mutable_listresponsemessage() { + ::proto::ListResponseMessage* _msg = _internal_mutable_listresponsemessage(); // @@protoc_insertion_point(field_mutable:proto.Message.listResponseMessage) - return _internal_mutable_listresponsemessage(); + return _msg; } inline void Message::set_allocated_listresponsemessage(::proto::ListResponseMessage* listresponsemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete listresponsemessage_; } if (listresponsemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(listresponsemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ListResponseMessage>::GetOwningArena(listresponsemessage); if (message_arena != submessage_arena) { listresponsemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, listresponsemessage, submessage_arena); @@ -48944,7 +46986,7 @@ inline const ::proto::FutureProofMessage& Message::ephemeralmessage() const { } inline void Message::unsafe_arena_set_allocated_ephemeralmessage( ::proto::FutureProofMessage* ephemeralmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(ephemeralmessage_); } ephemeralmessage_ = ephemeralmessage; @@ -48959,9 +47001,15 @@ inline ::proto::FutureProofMessage* Message::release_ephemeralmessage() { _has_bits_[0] &= ~0x80000000u; ::proto::FutureProofMessage* temp = ephemeralmessage_; ephemeralmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::FutureProofMessage* Message::unsafe_arena_release_ephemeralmessage() { @@ -48974,23 +47022,24 @@ inline ::proto::FutureProofMessage* Message::unsafe_arena_release_ephemeralmessa inline ::proto::FutureProofMessage* Message::_internal_mutable_ephemeralmessage() { _has_bits_[0] |= 0x80000000u; if (ephemeralmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::FutureProofMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::FutureProofMessage>(GetArenaForAllocation()); ephemeralmessage_ = p; } return ephemeralmessage_; } inline ::proto::FutureProofMessage* Message::mutable_ephemeralmessage() { + ::proto::FutureProofMessage* _msg = _internal_mutable_ephemeralmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.ephemeralMessage) - return _internal_mutable_ephemeralmessage(); + return _msg; } inline void Message::set_allocated_ephemeralmessage(::proto::FutureProofMessage* ephemeralmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete ephemeralmessage_; } if (ephemeralmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(ephemeralmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::FutureProofMessage>::GetOwningArena(ephemeralmessage); if (message_arena != submessage_arena) { ephemeralmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, ephemeralmessage, submessage_arena); @@ -49027,7 +47076,7 @@ inline const ::proto::InvoiceMessage& Message::invoicemessage() const { } inline void Message::unsafe_arena_set_allocated_invoicemessage( ::proto::InvoiceMessage* invoicemessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(invoicemessage_); } invoicemessage_ = invoicemessage; @@ -49042,9 +47091,15 @@ inline ::proto::InvoiceMessage* Message::release_invoicemessage() { _has_bits_[1] &= ~0x00000001u; ::proto::InvoiceMessage* temp = invoicemessage_; invoicemessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::InvoiceMessage* Message::unsafe_arena_release_invoicemessage() { @@ -49057,23 +47112,24 @@ inline ::proto::InvoiceMessage* Message::unsafe_arena_release_invoicemessage() { inline ::proto::InvoiceMessage* Message::_internal_mutable_invoicemessage() { _has_bits_[1] |= 0x00000001u; if (invoicemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::InvoiceMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::InvoiceMessage>(GetArenaForAllocation()); invoicemessage_ = p; } return invoicemessage_; } inline ::proto::InvoiceMessage* Message::mutable_invoicemessage() { + ::proto::InvoiceMessage* _msg = _internal_mutable_invoicemessage(); // @@protoc_insertion_point(field_mutable:proto.Message.invoiceMessage) - return _internal_mutable_invoicemessage(); + return _msg; } inline void Message::set_allocated_invoicemessage(::proto::InvoiceMessage* invoicemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete invoicemessage_; } if (invoicemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(invoicemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::InvoiceMessage>::GetOwningArena(invoicemessage); if (message_arena != submessage_arena) { invoicemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, invoicemessage, submessage_arena); @@ -49110,7 +47166,7 @@ inline const ::proto::ButtonsMessage& Message::buttonsmessage() const { } inline void Message::unsafe_arena_set_allocated_buttonsmessage( ::proto::ButtonsMessage* buttonsmessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(buttonsmessage_); } buttonsmessage_ = buttonsmessage; @@ -49125,9 +47181,15 @@ inline ::proto::ButtonsMessage* Message::release_buttonsmessage() { _has_bits_[1] &= ~0x00000002u; ::proto::ButtonsMessage* temp = buttonsmessage_; buttonsmessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ButtonsMessage* Message::unsafe_arena_release_buttonsmessage() { @@ -49140,23 +47202,24 @@ inline ::proto::ButtonsMessage* Message::unsafe_arena_release_buttonsmessage() { inline ::proto::ButtonsMessage* Message::_internal_mutable_buttonsmessage() { _has_bits_[1] |= 0x00000002u; if (buttonsmessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ButtonsMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ButtonsMessage>(GetArenaForAllocation()); buttonsmessage_ = p; } return buttonsmessage_; } inline ::proto::ButtonsMessage* Message::mutable_buttonsmessage() { + ::proto::ButtonsMessage* _msg = _internal_mutable_buttonsmessage(); // @@protoc_insertion_point(field_mutable:proto.Message.buttonsMessage) - return _internal_mutable_buttonsmessage(); + return _msg; } inline void Message::set_allocated_buttonsmessage(::proto::ButtonsMessage* buttonsmessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete buttonsmessage_; } if (buttonsmessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(buttonsmessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ButtonsMessage>::GetOwningArena(buttonsmessage); if (message_arena != submessage_arena) { buttonsmessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, buttonsmessage, submessage_arena); @@ -49193,7 +47256,7 @@ inline const ::proto::ButtonsResponseMessage& Message::buttonsresponsemessage() } inline void Message::unsafe_arena_set_allocated_buttonsresponsemessage( ::proto::ButtonsResponseMessage* buttonsresponsemessage) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(buttonsresponsemessage_); } buttonsresponsemessage_ = buttonsresponsemessage; @@ -49208,9 +47271,15 @@ inline ::proto::ButtonsResponseMessage* Message::release_buttonsresponsemessage( _has_bits_[1] &= ~0x00000004u; ::proto::ButtonsResponseMessage* temp = buttonsresponsemessage_; buttonsresponsemessage_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::ButtonsResponseMessage* Message::unsafe_arena_release_buttonsresponsemessage() { @@ -49223,23 +47292,24 @@ inline ::proto::ButtonsResponseMessage* Message::unsafe_arena_release_buttonsres inline ::proto::ButtonsResponseMessage* Message::_internal_mutable_buttonsresponsemessage() { _has_bits_[1] |= 0x00000004u; if (buttonsresponsemessage_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::ButtonsResponseMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::ButtonsResponseMessage>(GetArenaForAllocation()); buttonsresponsemessage_ = p; } return buttonsresponsemessage_; } inline ::proto::ButtonsResponseMessage* Message::mutable_buttonsresponsemessage() { + ::proto::ButtonsResponseMessage* _msg = _internal_mutable_buttonsresponsemessage(); // @@protoc_insertion_point(field_mutable:proto.Message.buttonsResponseMessage) - return _internal_mutable_buttonsresponsemessage(); + return _msg; } inline void Message::set_allocated_buttonsresponsemessage(::proto::ButtonsResponseMessage* buttonsresponsemessage) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete buttonsresponsemessage_; } if (buttonsresponsemessage) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(buttonsresponsemessage); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::ButtonsResponseMessage>::GetOwningArena(buttonsresponsemessage); if (message_arena != submessage_arena) { buttonsresponsemessage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, buttonsresponsemessage, submessage_arena); @@ -49272,43 +47342,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void MessageKey::set_remotejid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.MessageKey.remoteJid) } inline std::string* MessageKey::mutable_remotejid() { + std::string* _s = _internal_mutable_remotejid(); // @@protoc_insertion_point(field_mutable:proto.MessageKey.remoteJid) - return _internal_mutable_remotejid(); + return _s; } 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) + remotejid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* MessageKey::_internal_mutable_remotejid() { _has_bits_[0] |= 0x00000001u; - return remotejid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return remotejid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* MessageKey::release_remotejid() { // @@protoc_insertion_point(field_release:proto.MessageKey.remoteJid) @@ -49316,7 +47371,7 @@ inline std::string* MessageKey::release_remotejid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return remotejid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return remotejid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void MessageKey::set_allocated_remotejid(std::string* remotejid) { if (remotejid != nullptr) { @@ -49325,7 +47380,7 @@ inline void MessageKey::set_allocated_remotejid(std::string* remotejid) { _has_bits_[0] &= ~0x00000001u; } remotejid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), remotejid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.MessageKey.remoteJid) } @@ -49373,43 +47428,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void MessageKey::set_id(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.MessageKey.id) } inline std::string* MessageKey::mutable_id() { + std::string* _s = _internal_mutable_id(); // @@protoc_insertion_point(field_mutable:proto.MessageKey.id) - return _internal_mutable_id(); + return _s; } 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) + id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* MessageKey::_internal_mutable_id() { _has_bits_[0] |= 0x00000002u; - return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* MessageKey::release_id() { // @@protoc_insertion_point(field_release:proto.MessageKey.id) @@ -49417,7 +47457,7 @@ inline std::string* MessageKey::release_id() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void MessageKey::set_allocated_id(std::string* id) { if (id != nullptr) { @@ -49426,7 +47466,7 @@ inline void MessageKey::set_allocated_id(std::string* id) { _has_bits_[0] &= ~0x00000002u; } id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.MessageKey.id) } @@ -49446,43 +47486,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void MessageKey::set_participant(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.MessageKey.participant) } inline std::string* MessageKey::mutable_participant() { + std::string* _s = _internal_mutable_participant(); // @@protoc_insertion_point(field_mutable:proto.MessageKey.participant) - return _internal_mutable_participant(); + return _s; } 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) + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* MessageKey::_internal_mutable_participant() { _has_bits_[0] |= 0x00000004u; - return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* MessageKey::release_participant() { // @@protoc_insertion_point(field_release:proto.MessageKey.participant) @@ -49490,7 +47515,7 @@ inline std::string* MessageKey::release_participant() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void MessageKey::set_allocated_participant(std::string* participant) { if (participant != nullptr) { @@ -49499,7 +47524,7 @@ inline void MessageKey::set_allocated_participant(std::string* participant) { _has_bits_[0] &= ~0x00000004u; } participant_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), participant, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.MessageKey.participant) } @@ -50695,7 +48720,7 @@ inline const ::proto::MessageKey& NotificationMessageInfo::key() const { } inline void NotificationMessageInfo::unsafe_arena_set_allocated_key( ::proto::MessageKey* key) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); } key_ = key; @@ -50710,9 +48735,15 @@ inline ::proto::MessageKey* NotificationMessageInfo::release_key() { _has_bits_[0] &= ~0x00000002u; ::proto::MessageKey* temp = key_; key_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::MessageKey* NotificationMessageInfo::unsafe_arena_release_key() { @@ -50725,23 +48756,24 @@ inline ::proto::MessageKey* NotificationMessageInfo::unsafe_arena_release_key() inline ::proto::MessageKey* NotificationMessageInfo::_internal_mutable_key() { _has_bits_[0] |= 0x00000002u; if (key_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArenaForAllocation()); key_ = p; } return key_; } inline ::proto::MessageKey* NotificationMessageInfo::mutable_key() { + ::proto::MessageKey* _msg = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:proto.NotificationMessageInfo.key) - return _internal_mutable_key(); + return _msg; } inline void NotificationMessageInfo::set_allocated_key(::proto::MessageKey* key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete key_; } if (key) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(key); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::MessageKey>::GetOwningArena(key); if (message_arena != submessage_arena) { key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, key, submessage_arena); @@ -50778,7 +48810,7 @@ inline const ::proto::Message& NotificationMessageInfo::message() const { } inline void NotificationMessageInfo::unsafe_arena_set_allocated_message( ::proto::Message* message) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(message_); } message_ = message; @@ -50793,9 +48825,15 @@ inline ::proto::Message* NotificationMessageInfo::release_message() { _has_bits_[0] &= ~0x00000004u; ::proto::Message* temp = message_; message_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::Message* NotificationMessageInfo::unsafe_arena_release_message() { @@ -50808,23 +48846,24 @@ inline ::proto::Message* NotificationMessageInfo::unsafe_arena_release_message() inline ::proto::Message* NotificationMessageInfo::_internal_mutable_message() { _has_bits_[0] |= 0x00000004u; if (message_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + auto* p = CreateMaybeMessage<::proto::Message>(GetArenaForAllocation()); message_ = p; } return message_; } inline ::proto::Message* NotificationMessageInfo::mutable_message() { + ::proto::Message* _msg = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.NotificationMessageInfo.message) - return _internal_mutable_message(); + return _msg; } inline void NotificationMessageInfo::set_allocated_message(::proto::Message* message) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete message_; } if (message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Message>::GetOwningArena(message); if (message_arena != submessage_arena) { message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, message, submessage_arena); @@ -50846,7 +48885,7 @@ inline bool NotificationMessageInfo::has_messagetimestamp() const { return _internal_has_messagetimestamp(); } inline void NotificationMessageInfo::clear_messagetimestamp() { - messagetimestamp_ = PROTOBUF_ULONGLONG(0); + messagetimestamp_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000008u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 NotificationMessageInfo::_internal_messagetimestamp() const { @@ -50881,43 +48920,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void NotificationMessageInfo::set_participant(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.NotificationMessageInfo.participant) } inline std::string* NotificationMessageInfo::mutable_participant() { + std::string* _s = _internal_mutable_participant(); // @@protoc_insertion_point(field_mutable:proto.NotificationMessageInfo.participant) - return _internal_mutable_participant(); + return _s; } 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) + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* NotificationMessageInfo::_internal_mutable_participant() { _has_bits_[0] |= 0x00000001u; - return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* NotificationMessageInfo::release_participant() { // @@protoc_insertion_point(field_release:proto.NotificationMessageInfo.participant) @@ -50925,7 +48949,7 @@ inline std::string* NotificationMessageInfo::release_participant() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void NotificationMessageInfo::set_allocated_participant(std::string* participant) { if (participant != nullptr) { @@ -50934,7 +48958,7 @@ inline void NotificationMessageInfo::set_allocated_participant(std::string* part _has_bits_[0] &= ~0x00000001u; } participant_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), participant, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.NotificationMessageInfo.participant) } @@ -50951,7 +48975,7 @@ inline bool WebNotificationsInfo::has_timestamp() const { return _internal_has_timestamp(); } inline void WebNotificationsInfo::clear_timestamp() { - timestamp_ = PROTOBUF_ULONGLONG(0); + timestamp_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000001u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 WebNotificationsInfo::_internal_timestamp() const { @@ -51056,8 +49080,9 @@ inline ::proto::WebMessageInfo* WebNotificationsInfo::_internal_add_notifymessag return notifymessages_.Add(); } inline ::proto::WebMessageInfo* WebNotificationsInfo::add_notifymessages() { + ::proto::WebMessageInfo* _add = _internal_add_notifymessages(); // @@protoc_insertion_point(field_add:proto.WebNotificationsInfo.notifyMessages) - return _internal_add_notifymessages(); + return _add; } inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::proto::WebMessageInfo >& WebNotificationsInfo::notifymessages() const { @@ -51107,7 +49132,7 @@ inline bool PaymentInfo::has_amount1000() const { return _internal_has_amount1000(); } inline void PaymentInfo::clear_amount1000() { - amount1000_ = PROTOBUF_ULONGLONG(0); + amount1000_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000020u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 PaymentInfo::_internal_amount1000() const { @@ -51142,43 +49167,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void PaymentInfo::set_receiverjid(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + receiverjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.PaymentInfo.receiverJid) } inline std::string* PaymentInfo::mutable_receiverjid() { + std::string* _s = _internal_mutable_receiverjid(); // @@protoc_insertion_point(field_mutable:proto.PaymentInfo.receiverJid) - return _internal_mutable_receiverjid(); + return _s; } 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) + receiverjid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* PaymentInfo::_internal_mutable_receiverjid() { _has_bits_[0] |= 0x00000001u; - return receiverjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return receiverjid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* PaymentInfo::release_receiverjid() { // @@protoc_insertion_point(field_release:proto.PaymentInfo.receiverJid) @@ -51186,7 +49196,7 @@ inline std::string* PaymentInfo::release_receiverjid() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return receiverjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return receiverjid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void PaymentInfo::set_allocated_receiverjid(std::string* receiverjid) { if (receiverjid != nullptr) { @@ -51195,7 +49205,7 @@ inline void PaymentInfo::set_allocated_receiverjid(std::string* receiverjid) { _has_bits_[0] &= ~0x00000001u; } receiverjid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), receiverjid, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.PaymentInfo.receiverJid) } @@ -51237,7 +49247,7 @@ inline bool PaymentInfo::has_transactiontimestamp() const { return _internal_has_transactiontimestamp(); } inline void PaymentInfo::clear_transactiontimestamp() { - transactiontimestamp_ = PROTOBUF_ULONGLONG(0); + transactiontimestamp_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000100u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 PaymentInfo::_internal_transactiontimestamp() const { @@ -51280,7 +49290,7 @@ inline const ::proto::MessageKey& PaymentInfo::requestmessagekey() const { } inline void PaymentInfo::unsafe_arena_set_allocated_requestmessagekey( ::proto::MessageKey* requestmessagekey) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(requestmessagekey_); } requestmessagekey_ = requestmessagekey; @@ -51295,9 +49305,15 @@ inline ::proto::MessageKey* PaymentInfo::release_requestmessagekey() { _has_bits_[0] &= ~0x00000004u; ::proto::MessageKey* temp = requestmessagekey_; requestmessagekey_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::MessageKey* PaymentInfo::unsafe_arena_release_requestmessagekey() { @@ -51310,23 +49326,24 @@ inline ::proto::MessageKey* PaymentInfo::unsafe_arena_release_requestmessagekey( inline ::proto::MessageKey* PaymentInfo::_internal_mutable_requestmessagekey() { _has_bits_[0] |= 0x00000004u; if (requestmessagekey_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArenaForAllocation()); requestmessagekey_ = p; } return requestmessagekey_; } inline ::proto::MessageKey* PaymentInfo::mutable_requestmessagekey() { + ::proto::MessageKey* _msg = _internal_mutable_requestmessagekey(); // @@protoc_insertion_point(field_mutable:proto.PaymentInfo.requestMessageKey) - return _internal_mutable_requestmessagekey(); + return _msg; } inline void PaymentInfo::set_allocated_requestmessagekey(::proto::MessageKey* requestmessagekey) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete requestmessagekey_; } if (requestmessagekey) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(requestmessagekey); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::MessageKey>::GetOwningArena(requestmessagekey); if (message_arena != submessage_arena) { requestmessagekey = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, requestmessagekey, submessage_arena); @@ -51348,7 +49365,7 @@ inline bool PaymentInfo::has_expirytimestamp() const { return _internal_has_expirytimestamp(); } inline void PaymentInfo::clear_expirytimestamp() { - expirytimestamp_ = PROTOBUF_ULONGLONG(0); + expirytimestamp_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000200u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 PaymentInfo::_internal_expirytimestamp() const { @@ -51411,43 +49428,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void PaymentInfo::set_currency(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + currency_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.PaymentInfo.currency) } inline std::string* PaymentInfo::mutable_currency() { + std::string* _s = _internal_mutable_currency(); // @@protoc_insertion_point(field_mutable:proto.PaymentInfo.currency) - return _internal_mutable_currency(); + return _s; } 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) + currency_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* PaymentInfo::_internal_mutable_currency() { _has_bits_[0] |= 0x00000002u; - return currency_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return currency_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* PaymentInfo::release_currency() { // @@protoc_insertion_point(field_release:proto.PaymentInfo.currency) @@ -51455,7 +49457,7 @@ inline std::string* PaymentInfo::release_currency() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return currency_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return currency_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void PaymentInfo::set_allocated_currency(std::string* currency) { if (currency != nullptr) { @@ -51464,7 +49466,7 @@ inline void PaymentInfo::set_allocated_currency(std::string* currency) { _has_bits_[0] &= ~0x00000002u; } currency_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), currency, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.PaymentInfo.currency) } @@ -51549,7 +49551,7 @@ inline const ::proto::PaymentMoney& PaymentInfo::primaryamount() const { } inline void PaymentInfo::unsafe_arena_set_allocated_primaryamount( ::proto::PaymentMoney* primaryamount) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(primaryamount_); } primaryamount_ = primaryamount; @@ -51564,9 +49566,15 @@ inline ::proto::PaymentMoney* PaymentInfo::release_primaryamount() { _has_bits_[0] &= ~0x00000008u; ::proto::PaymentMoney* temp = primaryamount_; primaryamount_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::PaymentMoney* PaymentInfo::unsafe_arena_release_primaryamount() { @@ -51579,23 +49587,24 @@ inline ::proto::PaymentMoney* PaymentInfo::unsafe_arena_release_primaryamount() inline ::proto::PaymentMoney* PaymentInfo::_internal_mutable_primaryamount() { _has_bits_[0] |= 0x00000008u; if (primaryamount_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::PaymentMoney>(GetArena()); + auto* p = CreateMaybeMessage<::proto::PaymentMoney>(GetArenaForAllocation()); primaryamount_ = p; } return primaryamount_; } inline ::proto::PaymentMoney* PaymentInfo::mutable_primaryamount() { + ::proto::PaymentMoney* _msg = _internal_mutable_primaryamount(); // @@protoc_insertion_point(field_mutable:proto.PaymentInfo.primaryAmount) - return _internal_mutable_primaryamount(); + return _msg; } inline void PaymentInfo::set_allocated_primaryamount(::proto::PaymentMoney* primaryamount) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete primaryamount_; } if (primaryamount) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(primaryamount); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::PaymentMoney>::GetOwningArena(primaryamount); if (message_arena != submessage_arena) { primaryamount = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, primaryamount, submessage_arena); @@ -51632,7 +49641,7 @@ inline const ::proto::PaymentMoney& PaymentInfo::exchangeamount() const { } inline void PaymentInfo::unsafe_arena_set_allocated_exchangeamount( ::proto::PaymentMoney* exchangeamount) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(exchangeamount_); } exchangeamount_ = exchangeamount; @@ -51647,9 +49656,15 @@ inline ::proto::PaymentMoney* PaymentInfo::release_exchangeamount() { _has_bits_[0] &= ~0x00000010u; ::proto::PaymentMoney* temp = exchangeamount_; exchangeamount_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::PaymentMoney* PaymentInfo::unsafe_arena_release_exchangeamount() { @@ -51662,23 +49677,24 @@ inline ::proto::PaymentMoney* PaymentInfo::unsafe_arena_release_exchangeamount() inline ::proto::PaymentMoney* PaymentInfo::_internal_mutable_exchangeamount() { _has_bits_[0] |= 0x00000010u; if (exchangeamount_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::PaymentMoney>(GetArena()); + auto* p = CreateMaybeMessage<::proto::PaymentMoney>(GetArenaForAllocation()); exchangeamount_ = p; } return exchangeamount_; } inline ::proto::PaymentMoney* PaymentInfo::mutable_exchangeamount() { + ::proto::PaymentMoney* _msg = _internal_mutable_exchangeamount(); // @@protoc_insertion_point(field_mutable:proto.PaymentInfo.exchangeAmount) - return _internal_mutable_exchangeamount(); + return _msg; } inline void PaymentInfo::set_allocated_exchangeamount(::proto::PaymentMoney* exchangeamount) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete exchangeamount_; } if (exchangeamount) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(exchangeamount); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::PaymentMoney>::GetOwningArena(exchangeamount); if (message_arena != submessage_arena) { exchangeamount = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, exchangeamount, submessage_arena); @@ -51719,7 +49735,7 @@ inline const ::proto::MessageKey& WebMessageInfo::key() const { } inline void WebMessageInfo::unsafe_arena_set_allocated_key( ::proto::MessageKey* key) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_); } key_ = key; @@ -51734,9 +49750,15 @@ inline ::proto::MessageKey* WebMessageInfo::release_key() { _has_bits_[0] &= ~0x00000010u; ::proto::MessageKey* temp = key_; key_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::MessageKey* WebMessageInfo::unsafe_arena_release_key() { @@ -51749,23 +49771,24 @@ inline ::proto::MessageKey* WebMessageInfo::unsafe_arena_release_key() { inline ::proto::MessageKey* WebMessageInfo::_internal_mutable_key() { _has_bits_[0] |= 0x00000010u; if (key_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArena()); + auto* p = CreateMaybeMessage<::proto::MessageKey>(GetArenaForAllocation()); key_ = p; } return key_; } inline ::proto::MessageKey* WebMessageInfo::mutable_key() { + ::proto::MessageKey* _msg = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.key) - return _internal_mutable_key(); + return _msg; } inline void WebMessageInfo::set_allocated_key(::proto::MessageKey* key) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete key_; } if (key) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(key); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::MessageKey>::GetOwningArena(key); if (message_arena != submessage_arena) { key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, key, submessage_arena); @@ -51802,7 +49825,7 @@ inline const ::proto::Message& WebMessageInfo::message() const { } inline void WebMessageInfo::unsafe_arena_set_allocated_message( ::proto::Message* message) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(message_); } message_ = message; @@ -51817,9 +49840,15 @@ inline ::proto::Message* WebMessageInfo::release_message() { _has_bits_[0] &= ~0x00000020u; ::proto::Message* temp = message_; message_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::Message* WebMessageInfo::unsafe_arena_release_message() { @@ -51832,23 +49861,24 @@ inline ::proto::Message* WebMessageInfo::unsafe_arena_release_message() { inline ::proto::Message* WebMessageInfo::_internal_mutable_message() { _has_bits_[0] |= 0x00000020u; if (message_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::Message>(GetArena()); + auto* p = CreateMaybeMessage<::proto::Message>(GetArenaForAllocation()); message_ = p; } return message_; } inline ::proto::Message* WebMessageInfo::mutable_message() { + ::proto::Message* _msg = _internal_mutable_message(); // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.message) - return _internal_mutable_message(); + return _msg; } inline void WebMessageInfo::set_allocated_message(::proto::Message* message) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete message_; } if (message) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(message); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::Message>::GetOwningArena(message); if (message_arena != submessage_arena) { message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, message, submessage_arena); @@ -51870,7 +49900,7 @@ inline bool WebMessageInfo::has_messagetimestamp() const { return _internal_has_messagetimestamp(); } inline void WebMessageInfo::clear_messagetimestamp() { - messagetimestamp_ = PROTOBUF_ULONGLONG(0); + messagetimestamp_ = uint64_t{0u}; _has_bits_[0] &= ~0x00000200u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 WebMessageInfo::_internal_messagetimestamp() const { @@ -51934,43 +49964,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void WebMessageInfo::set_participant(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.WebMessageInfo.participant) } inline std::string* WebMessageInfo::mutable_participant() { + std::string* _s = _internal_mutable_participant(); // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.participant) - return _internal_mutable_participant(); + return _s; } 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) + participant_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* WebMessageInfo::_internal_mutable_participant() { _has_bits_[0] |= 0x00000001u; - return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return participant_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* WebMessageInfo::release_participant() { // @@protoc_insertion_point(field_release:proto.WebMessageInfo.participant) @@ -51978,7 +49993,7 @@ inline std::string* WebMessageInfo::release_participant() { return nullptr; } _has_bits_[0] &= ~0x00000001u; - return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return participant_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void WebMessageInfo::set_allocated_participant(std::string* participant) { if (participant != nullptr) { @@ -51987,7 +50002,7 @@ inline void WebMessageInfo::set_allocated_participant(std::string* participant) _has_bits_[0] &= ~0x00000001u; } participant_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), participant, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.participant) } @@ -52091,43 +50106,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void WebMessageInfo::set_pushname(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + pushname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.WebMessageInfo.pushName) } inline std::string* WebMessageInfo::mutable_pushname() { + std::string* _s = _internal_mutable_pushname(); // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.pushName) - return _internal_mutable_pushname(); + return _s; } 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) + pushname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* WebMessageInfo::_internal_mutable_pushname() { _has_bits_[0] |= 0x00000002u; - return pushname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return pushname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* WebMessageInfo::release_pushname() { // @@protoc_insertion_point(field_release:proto.WebMessageInfo.pushName) @@ -52135,7 +50135,7 @@ inline std::string* WebMessageInfo::release_pushname() { return nullptr; } _has_bits_[0] &= ~0x00000002u; - return pushname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return pushname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void WebMessageInfo::set_allocated_pushname(std::string* pushname) { if (pushname != nullptr) { @@ -52144,7 +50144,7 @@ inline void WebMessageInfo::set_allocated_pushname(std::string* pushname) { _has_bits_[0] &= ~0x00000002u; } pushname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), pushname, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.pushName) } @@ -52164,43 +50164,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void WebMessageInfo::set_mediaciphertextsha256(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + mediaciphertextsha256_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.WebMessageInfo.mediaCiphertextSha256) } inline std::string* WebMessageInfo::mutable_mediaciphertextsha256() { + std::string* _s = _internal_mutable_mediaciphertextsha256(); // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.mediaCiphertextSha256) - return _internal_mutable_mediaciphertextsha256(); + return _s; } 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) + mediaciphertextsha256_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* WebMessageInfo::_internal_mutable_mediaciphertextsha256() { _has_bits_[0] |= 0x00000004u; - return mediaciphertextsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return mediaciphertextsha256_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* WebMessageInfo::release_mediaciphertextsha256() { // @@protoc_insertion_point(field_release:proto.WebMessageInfo.mediaCiphertextSha256) @@ -52208,7 +50193,7 @@ inline std::string* WebMessageInfo::release_mediaciphertextsha256() { return nullptr; } _has_bits_[0] &= ~0x00000004u; - return mediaciphertextsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return mediaciphertextsha256_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void WebMessageInfo::set_allocated_mediaciphertextsha256(std::string* mediaciphertextsha256) { if (mediaciphertextsha256 != nullptr) { @@ -52217,7 +50202,7 @@ inline void WebMessageInfo::set_allocated_mediaciphertextsha256(std::string* med _has_bits_[0] &= ~0x00000004u; } mediaciphertextsha256_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mediaciphertextsha256, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.mediaCiphertextSha256) } @@ -52373,8 +50358,9 @@ inline void WebMessageInfo::clear_messagestubparameters() { messagestubparameters_.Clear(); } inline std::string* WebMessageInfo::add_messagestubparameters() { + std::string* _s = _internal_add_messagestubparameters(); // @@protoc_insertion_point(field_add_mutable:proto.WebMessageInfo.messageStubParameters) - return _internal_add_messagestubparameters(); + return _s; } inline const std::string& WebMessageInfo::_internal_messagestubparameters(int index) const { return messagestubparameters_.Get(index); @@ -52388,12 +50374,12 @@ inline std::string* WebMessageInfo::mutable_messagestubparameters(int index) { 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); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.messageStubParameters) } 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)); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.messageStubParameters) } inline void WebMessageInfo::set_messagestubparameters(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); @@ -52475,8 +50461,9 @@ inline void WebMessageInfo::clear_labels() { labels_.Clear(); } inline std::string* WebMessageInfo::add_labels() { + std::string* _s = _internal_add_labels(); // @@protoc_insertion_point(field_add_mutable:proto.WebMessageInfo.labels) - return _internal_add_labels(); + return _s; } inline const std::string& WebMessageInfo::_internal_labels(int index) const { return labels_.Get(index); @@ -52490,12 +50477,12 @@ inline std::string* WebMessageInfo::mutable_labels(int index) { 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); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.labels) } 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)); + // @@protoc_insertion_point(field_set:proto.WebMessageInfo.labels) } inline void WebMessageInfo::set_labels(int index, const char* value) { GOOGLE_DCHECK(value != nullptr); @@ -52562,7 +50549,7 @@ inline const ::proto::PaymentInfo& WebMessageInfo::paymentinfo() const { } inline void WebMessageInfo::unsafe_arena_set_allocated_paymentinfo( ::proto::PaymentInfo* paymentinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(paymentinfo_); } paymentinfo_ = paymentinfo; @@ -52577,9 +50564,15 @@ inline ::proto::PaymentInfo* WebMessageInfo::release_paymentinfo() { _has_bits_[0] &= ~0x00000040u; ::proto::PaymentInfo* temp = paymentinfo_; paymentinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::PaymentInfo* WebMessageInfo::unsafe_arena_release_paymentinfo() { @@ -52592,23 +50585,24 @@ inline ::proto::PaymentInfo* WebMessageInfo::unsafe_arena_release_paymentinfo() inline ::proto::PaymentInfo* WebMessageInfo::_internal_mutable_paymentinfo() { _has_bits_[0] |= 0x00000040u; if (paymentinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::PaymentInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::PaymentInfo>(GetArenaForAllocation()); paymentinfo_ = p; } return paymentinfo_; } inline ::proto::PaymentInfo* WebMessageInfo::mutable_paymentinfo() { + ::proto::PaymentInfo* _msg = _internal_mutable_paymentinfo(); // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.paymentInfo) - return _internal_mutable_paymentinfo(); + return _msg; } inline void WebMessageInfo::set_allocated_paymentinfo(::proto::PaymentInfo* paymentinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete paymentinfo_; } if (paymentinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(paymentinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::PaymentInfo>::GetOwningArena(paymentinfo); if (message_arena != submessage_arena) { paymentinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, paymentinfo, submessage_arena); @@ -52645,7 +50639,7 @@ inline const ::proto::LiveLocationMessage& WebMessageInfo::finallivelocation() c } inline void WebMessageInfo::unsafe_arena_set_allocated_finallivelocation( ::proto::LiveLocationMessage* finallivelocation) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(finallivelocation_); } finallivelocation_ = finallivelocation; @@ -52660,9 +50654,15 @@ inline ::proto::LiveLocationMessage* WebMessageInfo::release_finallivelocation() _has_bits_[0] &= ~0x00000080u; ::proto::LiveLocationMessage* temp = finallivelocation_; finallivelocation_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::LiveLocationMessage* WebMessageInfo::unsafe_arena_release_finallivelocation() { @@ -52675,23 +50675,24 @@ inline ::proto::LiveLocationMessage* WebMessageInfo::unsafe_arena_release_finall inline ::proto::LiveLocationMessage* WebMessageInfo::_internal_mutable_finallivelocation() { _has_bits_[0] |= 0x00000080u; if (finallivelocation_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::LiveLocationMessage>(GetArena()); + auto* p = CreateMaybeMessage<::proto::LiveLocationMessage>(GetArenaForAllocation()); finallivelocation_ = p; } return finallivelocation_; } inline ::proto::LiveLocationMessage* WebMessageInfo::mutable_finallivelocation() { + ::proto::LiveLocationMessage* _msg = _internal_mutable_finallivelocation(); // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.finalLiveLocation) - return _internal_mutable_finallivelocation(); + return _msg; } inline void WebMessageInfo::set_allocated_finallivelocation(::proto::LiveLocationMessage* finallivelocation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete finallivelocation_; } if (finallivelocation) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(finallivelocation); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::LiveLocationMessage>::GetOwningArena(finallivelocation); if (message_arena != submessage_arena) { finallivelocation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, finallivelocation, submessage_arena); @@ -52728,7 +50729,7 @@ inline const ::proto::PaymentInfo& WebMessageInfo::quotedpaymentinfo() const { } inline void WebMessageInfo::unsafe_arena_set_allocated_quotedpaymentinfo( ::proto::PaymentInfo* quotedpaymentinfo) { - if (GetArena() == nullptr) { + if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(quotedpaymentinfo_); } quotedpaymentinfo_ = quotedpaymentinfo; @@ -52743,9 +50744,15 @@ inline ::proto::PaymentInfo* WebMessageInfo::release_quotedpaymentinfo() { _has_bits_[0] &= ~0x00000100u; ::proto::PaymentInfo* temp = quotedpaymentinfo_; quotedpaymentinfo_ = nullptr; - if (GetArena() != nullptr) { +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } inline ::proto::PaymentInfo* WebMessageInfo::unsafe_arena_release_quotedpaymentinfo() { @@ -52758,23 +50765,24 @@ inline ::proto::PaymentInfo* WebMessageInfo::unsafe_arena_release_quotedpaymenti inline ::proto::PaymentInfo* WebMessageInfo::_internal_mutable_quotedpaymentinfo() { _has_bits_[0] |= 0x00000100u; if (quotedpaymentinfo_ == nullptr) { - auto* p = CreateMaybeMessage<::proto::PaymentInfo>(GetArena()); + auto* p = CreateMaybeMessage<::proto::PaymentInfo>(GetArenaForAllocation()); quotedpaymentinfo_ = p; } return quotedpaymentinfo_; } inline ::proto::PaymentInfo* WebMessageInfo::mutable_quotedpaymentinfo() { + ::proto::PaymentInfo* _msg = _internal_mutable_quotedpaymentinfo(); // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.quotedPaymentInfo) - return _internal_mutable_quotedpaymentinfo(); + return _msg; } inline void WebMessageInfo::set_allocated_quotedpaymentinfo(::proto::PaymentInfo* quotedpaymentinfo) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena(); + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete quotedpaymentinfo_; } if (quotedpaymentinfo) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(quotedpaymentinfo); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::proto::PaymentInfo>::GetOwningArena(quotedpaymentinfo); if (message_arena != submessage_arena) { quotedpaymentinfo = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, quotedpaymentinfo, submessage_arena); @@ -52796,7 +50804,7 @@ inline bool WebMessageInfo::has_ephemeralstarttimestamp() const { return _internal_has_ephemeralstarttimestamp(); } inline void WebMessageInfo::clear_ephemeralstarttimestamp() { - ephemeralstarttimestamp_ = PROTOBUF_ULONGLONG(0); + ephemeralstarttimestamp_ = uint64_t{0u}; _has_bits_[0] &= ~0x00400000u; } inline ::PROTOBUF_NAMESPACE_ID::uint64 WebMessageInfo::_internal_ephemeralstarttimestamp() const { @@ -52944,43 +50952,28 @@ 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); +template <typename ArgT0, typename... ArgT> +inline PROTOBUF_ALWAYS_INLINE +void WebMessageInfo::set_verifiedbizname(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + verifiedbizname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); // @@protoc_insertion_point(field_set:proto.WebMessageInfo.verifiedBizName) } inline std::string* WebMessageInfo::mutable_verifiedbizname() { + std::string* _s = _internal_mutable_verifiedbizname(); // @@protoc_insertion_point(field_mutable:proto.WebMessageInfo.verifiedBizName) - return _internal_mutable_verifiedbizname(); + return _s; } 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) + verifiedbizname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); } inline std::string* WebMessageInfo::_internal_mutable_verifiedbizname() { _has_bits_[0] |= 0x00000008u; - return verifiedbizname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena()); + return verifiedbizname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); } inline std::string* WebMessageInfo::release_verifiedbizname() { // @@protoc_insertion_point(field_release:proto.WebMessageInfo.verifiedBizName) @@ -52988,7 +50981,7 @@ inline std::string* WebMessageInfo::release_verifiedbizname() { return nullptr; } _has_bits_[0] &= ~0x00000008u; - return verifiedbizname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); + return verifiedbizname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); } inline void WebMessageInfo::set_allocated_verifiedbizname(std::string* verifiedbizname) { if (verifiedbizname != nullptr) { @@ -52997,7 +50990,7 @@ inline void WebMessageInfo::set_allocated_verifiedbizname(std::string* verifiedb _has_bits_[0] &= ~0x00000008u; } verifiedbizname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), verifiedbizname, - GetArena()); + GetArenaForAllocation()); // @@protoc_insertion_point(field_set_allocated:proto.WebMessageInfo.verifiedBizName) } |