From 1777a6b712832d305ff5a16afe6ec062ac7fc20b Mon Sep 17 00:00:00 2001 From: bourdakos1 Date: Wed, 14 Jan 2026 15:51:44 -0500 Subject: [PATCH 1/2] Fix SPM proto issues --- Package.resolved | 6 +- Package.swift | 21 +- .../proto/offline_wire_formats.pb.cc | 9912 ------------- .../proto/offline_wire_formats.pb.h | 11883 ---------------- .../proto/analytics/experiments_log.pb.cc | 311 - .../proto/analytics/experiments_log.pb.h | 394 - .../proto/analytics/fast_pair_log.pb.cc | 2816 ---- .../proto/analytics/fast_pair_log.pb.h | 3387 ----- .../presence/proto/presence_frame.pb.cc | 4258 ------ .../presence/proto/presence_frame.pb.h | 5274 ------- compiled_proto/proto/fast_pair_enums.pb.cc | 748 - compiled_proto/proto/fast_pair_enums.pb.h | 583 - third_party/protobuf | 2 +- .../proto/device_to_device_messages.pb.cc | 1834 --- .../proto/device_to_device_messages.pb.h | 1999 --- .../compiled_proto/proto/securegcm.pb.cc | 2620 ---- .../ukey2/compiled_proto/proto/securegcm.pb.h | 3947 ----- .../compiled_proto/proto/securemessage.pb.cc | 3031 ---- .../compiled_proto/proto/securemessage.pb.h | 3435 ----- .../ukey2/compiled_proto/proto/ukey.pb.cc | 2211 --- .../ukey2/compiled_proto/proto/ukey.pb.h | 2324 --- .../proto/passwordless_auth_payloads.pb.cc | 328 - .../proto/passwordless_auth_payloads.pb.h | 387 - .../src/main/proto/proximity_payloads.pb.cc | 716 - .../src/main/proto/proximity_payloads.pb.h | 882 -- third_party/ukey2/include/proto/ukey.pb.h | 2085 --- 26 files changed, 14 insertions(+), 65380 deletions(-) delete mode 100644 compiled_proto/connections/cpp/implementation/proto/offline_wire_formats.pb.cc delete mode 100644 compiled_proto/connections/cpp/implementation/proto/offline_wire_formats.pb.h delete mode 100644 compiled_proto/internal/proto/analytics/experiments_log.pb.cc delete mode 100644 compiled_proto/internal/proto/analytics/experiments_log.pb.h delete mode 100644 compiled_proto/internal/proto/analytics/fast_pair_log.pb.cc delete mode 100644 compiled_proto/internal/proto/analytics/fast_pair_log.pb.h delete mode 100644 compiled_proto/presence/proto/presence_frame.pb.cc delete mode 100644 compiled_proto/presence/proto/presence_frame.pb.h delete mode 100644 compiled_proto/proto/fast_pair_enums.pb.cc delete mode 100644 compiled_proto/proto/fast_pair_enums.pb.h delete mode 100644 third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.cc delete mode 100644 third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.h delete mode 100644 third_party/ukey2/compiled_proto/proto/securegcm.pb.cc delete mode 100644 third_party/ukey2/compiled_proto/proto/securegcm.pb.h delete mode 100644 third_party/ukey2/compiled_proto/proto/securemessage.pb.cc delete mode 100644 third_party/ukey2/compiled_proto/proto/securemessage.pb.h delete mode 100644 third_party/ukey2/compiled_proto/proto/ukey.pb.cc delete mode 100644 third_party/ukey2/compiled_proto/proto/ukey.pb.h delete mode 100644 third_party/ukey2/compiled_proto/src/main/proto/passwordless_auth_payloads.pb.cc delete mode 100644 third_party/ukey2/compiled_proto/src/main/proto/passwordless_auth_payloads.pb.h delete mode 100644 third_party/ukey2/compiled_proto/src/main/proto/proximity_payloads.pb.cc delete mode 100644 third_party/ukey2/compiled_proto/src/main/proto/proximity_payloads.pb.h delete mode 100644 third_party/ukey2/include/proto/ukey.pb.h diff --git a/Package.resolved b/Package.resolved index f763a7cf..a79429cf 100644 --- a/Package.resolved +++ b/Package.resolved @@ -3,10 +3,10 @@ { "identity" : "abseil-cpp-swiftpm", "kind" : "remoteSourceControl", - "location" : "https://github.com/bourdakos1/abseil-cpp-SwiftPM.git", + "location" : "https://github.com/firebase/abseil-cpp-SwiftPM.git", "state" : { - "branch" : "cxx17-test", - "revision" : "f2c56293ba0c7dc4fed62c38dfea5c5c2d632166" + "branch" : "main", + "revision" : "1c50c2cd0bffe5a03cde6fe17129334dcf05071b" } }, { diff --git a/Package.swift b/Package.swift index 6b97e596..a70e97ee 100644 --- a/Package.swift +++ b/Package.swift @@ -74,13 +74,13 @@ let package = Package( sources: [ "ukey2/src/securemessage/src/securemessage", "ukey2/src/main/cpp/src/securegcm", - "ukey2/protoc_out", + "compiled_proto", ], publicHeadersPath: "include", cSettings: [ .headerSearchPath("ukey2/"), - .headerSearchPath("ukey2/protoc_out/"), - .headerSearchPath("ukey2/protoc_out/src/main/proto"), + .headerSearchPath("compiled_proto/"), + .headerSearchPath("compiled_proto/src/main/proto"), ] ), .target( @@ -94,7 +94,7 @@ let package = Package( dependencies: [ .product(name: "abseil", package: "abseil-cpp-SwiftPM"), ], - path: "google-protobuf/third_party/utf8_range", + path: "third_party/protobuf/third_party/utf8_range", sources: [ "utf8_validity.h", "utf8_range.h", @@ -110,7 +110,7 @@ let package = Package( dependencies: [ "protobuf-utf8", ], - path: "google-protobuf/src", + path: "third_party/protobuf/src", exclude: [ "google/protobuf/bridge", "google/protobuf/compiler", @@ -535,7 +535,7 @@ let package = Package( "internal/platform/medium_environment.cc", ], sources: [ - "protoc_out", + "compiled_proto", "connections", "internal", "proto", @@ -543,10 +543,9 @@ let package = Package( publicHeadersPath: "connections", cSettings: [ .headerSearchPath("./"), - .headerSearchPath("protoc_out/"), + .headerSearchPath("compiled_proto/"), .headerSearchPath("third_party/ukey2/ukey2/"), - .headerSearchPath("third_party/ukey2/ukey2/protoc_out/"), - .headerSearchPath("third_party/ukey2/ukey2/protoc_out/src/main/proto"), + .headerSearchPath("third_party/ukey2/compiled_proto/src/main/proto"), .define("NO_WEBRTC"), ] ), @@ -563,7 +562,7 @@ let package = Package( publicHeadersPath: "connections/c", cSettings: [ .headerSearchPath("./"), - .headerSearchPath("protoc_out/"), + .headerSearchPath("compiled_proto/"), .define("NO_WEBRTC"), ] ), @@ -576,7 +575,7 @@ let package = Package( publicHeadersPath: "connections/swift/NearbyCoreAdapter/Sources/Public", cSettings: [ .headerSearchPath("./"), - .headerSearchPath("protoc_out/"), + .headerSearchPath("compiled_proto/"), .define("NO_WEBRTC"), ] ), diff --git a/compiled_proto/connections/cpp/implementation/proto/offline_wire_formats.pb.cc b/compiled_proto/connections/cpp/implementation/proto/offline_wire_formats.pb.cc deleted file mode 100644 index ccb71db7..00000000 --- a/compiled_proto/connections/cpp/implementation/proto/offline_wire_formats.pb.cc +++ /dev/null @@ -1,9912 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: connections/implementation/proto/offline_wire_formats.proto - -#include "connections/implementation/proto/offline_wire_formats.pb.h" - -#include - -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG -namespace location { -namespace nearby { -namespace connections { -constexpr OfflineFrame::OfflineFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : v1_(nullptr) - , version_(0) -{} -struct OfflineFrameDefaultTypeInternal { - constexpr OfflineFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~OfflineFrameDefaultTypeInternal() {} - union { - OfflineFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfflineFrameDefaultTypeInternal _OfflineFrame_default_instance_; -constexpr V1Frame::V1Frame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : connection_request_(nullptr) - , connection_response_(nullptr) - , payload_transfer_(nullptr) - , bandwidth_upgrade_negotiation_(nullptr) - , keep_alive_(nullptr) - , disconnection_(nullptr) - , paired_key_encryption_(nullptr) - , type_(0) -{} -struct V1FrameDefaultTypeInternal { - constexpr V1FrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~V1FrameDefaultTypeInternal() {} - union { - V1Frame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT V1FrameDefaultTypeInternal _V1Frame_default_instance_; -constexpr ConnectionRequestFrame::ConnectionRequestFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : mediums_() - , endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , endpoint_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , handshake_data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , endpoint_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , medium_metadata_(nullptr) - , nonce_(0) - , keep_alive_interval_millis_(0) - , keep_alive_timeout_millis_(0) - , device_type_(0){} -struct ConnectionRequestFrameDefaultTypeInternal { - constexpr ConnectionRequestFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionRequestFrameDefaultTypeInternal() {} - union { - ConnectionRequestFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_; -constexpr ConnectionResponseFrame::ConnectionResponseFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : handshake_data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , status_(0) - , response_(0) -{} -struct ConnectionResponseFrameDefaultTypeInternal { - constexpr ConnectionResponseFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionResponseFrameDefaultTypeInternal() {} - union { - ConnectionResponseFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_; -constexpr PayloadTransferFrame_PayloadHeader::PayloadTransferFrame_PayloadHeader( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : file_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , parent_folder_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , id_(int64_t{0}) - , total_size_(int64_t{0}) - , type_(0) - - , is_sensitive_(false){} -struct PayloadTransferFrame_PayloadHeaderDefaultTypeInternal { - constexpr PayloadTransferFrame_PayloadHeaderDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PayloadTransferFrame_PayloadHeaderDefaultTypeInternal() {} - union { - PayloadTransferFrame_PayloadHeader _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrame_PayloadHeaderDefaultTypeInternal _PayloadTransferFrame_PayloadHeader_default_instance_; -constexpr PayloadTransferFrame_PayloadChunk::PayloadTransferFrame_PayloadChunk( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : body_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , offset_(int64_t{0}) - , flags_(0){} -struct PayloadTransferFrame_PayloadChunkDefaultTypeInternal { - constexpr PayloadTransferFrame_PayloadChunkDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PayloadTransferFrame_PayloadChunkDefaultTypeInternal() {} - union { - PayloadTransferFrame_PayloadChunk _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrame_PayloadChunkDefaultTypeInternal _PayloadTransferFrame_PayloadChunk_default_instance_; -constexpr PayloadTransferFrame_ControlMessage::PayloadTransferFrame_ControlMessage( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : offset_(int64_t{0}) - , event_(0) -{} -struct PayloadTransferFrame_ControlMessageDefaultTypeInternal { - constexpr PayloadTransferFrame_ControlMessageDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PayloadTransferFrame_ControlMessageDefaultTypeInternal() {} - union { - PayloadTransferFrame_ControlMessage _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrame_ControlMessageDefaultTypeInternal _PayloadTransferFrame_ControlMessage_default_instance_; -constexpr PayloadTransferFrame::PayloadTransferFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : payload_header_(nullptr) - , payload_chunk_(nullptr) - , control_message_(nullptr) - , packet_type_(0) -{} -struct PayloadTransferFrameDefaultTypeInternal { - constexpr PayloadTransferFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PayloadTransferFrameDefaultTypeInternal() {} - union { - PayloadTransferFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrameDefaultTypeInternal _PayloadTransferFrame_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , gateway_(nullptr) - , port_(0) - , frequency_(-1){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ip_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , wifi_port_(0){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : service_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , mac_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : service_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , service_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , gateway_(nullptr) - , port_(0) - , frequency_(0){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : peer_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , location_hint_(nullptr){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFrame_UpgradePathInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : wifi_hotspot_credentials_(nullptr) - , wifi_lan_socket_(nullptr) - , bluetooth_credentials_(nullptr) - , wifi_aware_credentials_(nullptr) - , wifi_direct_credentials_(nullptr) - , web_rtc_credentials_(nullptr) - , medium_(0) - - , supports_disabling_encryption_(false) - , supports_client_introduction_ack_(false){} -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , supports_disabling_encryption_(false){} -struct BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_ClientIntroduction _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_; -constexpr BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : upgrade_path_info_(nullptr) - , client_introduction_(nullptr) - , client_introduction_ack_(nullptr) - , event_type_(0) -{} -struct BandwidthUpgradeNegotiationFrameDefaultTypeInternal { - constexpr BandwidthUpgradeNegotiationFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~BandwidthUpgradeNegotiationFrameDefaultTypeInternal() {} - union { - BandwidthUpgradeNegotiationFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrameDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_default_instance_; -constexpr KeepAliveFrame::KeepAliveFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : ack_(false){} -struct KeepAliveFrameDefaultTypeInternal { - constexpr KeepAliveFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~KeepAliveFrameDefaultTypeInternal() {} - union { - KeepAliveFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT KeepAliveFrameDefaultTypeInternal _KeepAliveFrame_default_instance_; -constexpr DisconnectionFrame::DisconnectionFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct DisconnectionFrameDefaultTypeInternal { - constexpr DisconnectionFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~DisconnectionFrameDefaultTypeInternal() {} - union { - DisconnectionFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_; -constexpr PairedKeyEncryptionFrame::PairedKeyEncryptionFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : signed_data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct PairedKeyEncryptionFrameDefaultTypeInternal { - constexpr PairedKeyEncryptionFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PairedKeyEncryptionFrameDefaultTypeInternal() {} - union { - PairedKeyEncryptionFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PairedKeyEncryptionFrameDefaultTypeInternal _PairedKeyEncryptionFrame_default_instance_; -constexpr MediumMetadata::MediumMetadata( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : bssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , ip_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , available_channels_(nullptr) - , wifi_direct_cli_usable_channels_(nullptr) - , wifi_lan_usable_channels_(nullptr) - , wifi_aware_usable_channels_(nullptr) - , wifi_hotspot_sta_usable_channels_(nullptr) - , supports_5_ghz_(false) - , supports_6_ghz_(false) - , mobile_radio_(false) - , ap_frequency_(-1){} -struct MediumMetadataDefaultTypeInternal { - constexpr MediumMetadataDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~MediumMetadataDefaultTypeInternal() {} - union { - MediumMetadata _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MediumMetadataDefaultTypeInternal _MediumMetadata_default_instance_; -constexpr AvailableChannels::AvailableChannels( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : channels_() - , _channels_cached_byte_size_(0){} -struct AvailableChannelsDefaultTypeInternal { - constexpr AvailableChannelsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~AvailableChannelsDefaultTypeInternal() {} - union { - AvailableChannels _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AvailableChannelsDefaultTypeInternal _AvailableChannels_default_instance_; -constexpr WifiDirectCliUsableChannels::WifiDirectCliUsableChannels( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : channels_() - , _channels_cached_byte_size_(0){} -struct WifiDirectCliUsableChannelsDefaultTypeInternal { - constexpr WifiDirectCliUsableChannelsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~WifiDirectCliUsableChannelsDefaultTypeInternal() {} - union { - WifiDirectCliUsableChannels _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiDirectCliUsableChannelsDefaultTypeInternal _WifiDirectCliUsableChannels_default_instance_; -constexpr WifiLanUsableChannels::WifiLanUsableChannels( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : channels_() - , _channels_cached_byte_size_(0){} -struct WifiLanUsableChannelsDefaultTypeInternal { - constexpr WifiLanUsableChannelsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~WifiLanUsableChannelsDefaultTypeInternal() {} - union { - WifiLanUsableChannels _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiLanUsableChannelsDefaultTypeInternal _WifiLanUsableChannels_default_instance_; -constexpr WifiAwareUsableChannels::WifiAwareUsableChannels( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : channels_() - , _channels_cached_byte_size_(0){} -struct WifiAwareUsableChannelsDefaultTypeInternal { - constexpr WifiAwareUsableChannelsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~WifiAwareUsableChannelsDefaultTypeInternal() {} - union { - WifiAwareUsableChannels _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiAwareUsableChannelsDefaultTypeInternal _WifiAwareUsableChannels_default_instance_; -constexpr WifiHotspotStaUsableChannels::WifiHotspotStaUsableChannels( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : channels_() - , _channels_cached_byte_size_(0){} -struct WifiHotspotStaUsableChannelsDefaultTypeInternal { - constexpr WifiHotspotStaUsableChannelsDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~WifiHotspotStaUsableChannelsDefaultTypeInternal() {} - union { - WifiHotspotStaUsableChannels _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiHotspotStaUsableChannelsDefaultTypeInternal _WifiHotspotStaUsableChannels_default_instance_; -constexpr LocationHint::LocationHint( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : location_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , format_(0) -{} -struct LocationHintDefaultTypeInternal { - constexpr LocationHintDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~LocationHintDefaultTypeInternal() {} - union { - LocationHint _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocationHintDefaultTypeInternal _LocationHint_default_instance_; -constexpr LocationStandard::LocationStandard( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct LocationStandardDefaultTypeInternal { - constexpr LocationStandardDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~LocationStandardDefaultTypeInternal() {} - union { - LocationStandard _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocationStandardDefaultTypeInternal _LocationStandard_default_instance_; -} // namespace connections -} // namespace nearby -} // namespace location -namespace location { -namespace nearby { -namespace connections { -bool OfflineFrame_Version_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OfflineFrame_Version_strings[2] = {}; - -static const char OfflineFrame_Version_names[] = - "UNKNOWN_VERSION" - "V1"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OfflineFrame_Version_entries[] = { - { {OfflineFrame_Version_names + 0, 15}, 0 }, - { {OfflineFrame_Version_names + 15, 2}, 1 }, -}; - -static const int OfflineFrame_Version_entries_by_number[] = { - 0, // 0 -> UNKNOWN_VERSION - 1, // 1 -> V1 -}; - -const std::string& OfflineFrame_Version_Name( - OfflineFrame_Version value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - OfflineFrame_Version_entries, - OfflineFrame_Version_entries_by_number, - 2, OfflineFrame_Version_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - OfflineFrame_Version_entries, - OfflineFrame_Version_entries_by_number, - 2, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - OfflineFrame_Version_strings[idx].get(); -} -bool OfflineFrame_Version_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OfflineFrame_Version* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - OfflineFrame_Version_entries, 2, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr OfflineFrame_Version OfflineFrame::UNKNOWN_VERSION; -constexpr OfflineFrame_Version OfflineFrame::V1; -constexpr OfflineFrame_Version OfflineFrame::Version_MIN; -constexpr OfflineFrame_Version OfflineFrame::Version_MAX; -constexpr int OfflineFrame::Version_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool V1Frame_FrameType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed V1Frame_FrameType_strings[8] = {}; - -static const char V1Frame_FrameType_names[] = - "BANDWIDTH_UPGRADE_NEGOTIATION" - "CONNECTION_REQUEST" - "CONNECTION_RESPONSE" - "DISCONNECTION" - "KEEP_ALIVE" - "PAIRED_KEY_ENCRYPTION" - "PAYLOAD_TRANSFER" - "UNKNOWN_FRAME_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry V1Frame_FrameType_entries[] = { - { {V1Frame_FrameType_names + 0, 29}, 4 }, - { {V1Frame_FrameType_names + 29, 18}, 1 }, - { {V1Frame_FrameType_names + 47, 19}, 2 }, - { {V1Frame_FrameType_names + 66, 13}, 6 }, - { {V1Frame_FrameType_names + 79, 10}, 5 }, - { {V1Frame_FrameType_names + 89, 21}, 7 }, - { {V1Frame_FrameType_names + 110, 16}, 3 }, - { {V1Frame_FrameType_names + 126, 18}, 0 }, -}; - -static const int V1Frame_FrameType_entries_by_number[] = { - 7, // 0 -> UNKNOWN_FRAME_TYPE - 1, // 1 -> CONNECTION_REQUEST - 2, // 2 -> CONNECTION_RESPONSE - 6, // 3 -> PAYLOAD_TRANSFER - 0, // 4 -> BANDWIDTH_UPGRADE_NEGOTIATION - 4, // 5 -> KEEP_ALIVE - 3, // 6 -> DISCONNECTION - 5, // 7 -> PAIRED_KEY_ENCRYPTION -}; - -const std::string& V1Frame_FrameType_Name( - V1Frame_FrameType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - V1Frame_FrameType_entries, - V1Frame_FrameType_entries_by_number, - 8, V1Frame_FrameType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - V1Frame_FrameType_entries, - V1Frame_FrameType_entries_by_number, - 8, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - V1Frame_FrameType_strings[idx].get(); -} -bool V1Frame_FrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, V1Frame_FrameType* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - V1Frame_FrameType_entries, 8, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr V1Frame_FrameType V1Frame::UNKNOWN_FRAME_TYPE; -constexpr V1Frame_FrameType V1Frame::CONNECTION_REQUEST; -constexpr V1Frame_FrameType V1Frame::CONNECTION_RESPONSE; -constexpr V1Frame_FrameType V1Frame::PAYLOAD_TRANSFER; -constexpr V1Frame_FrameType V1Frame::BANDWIDTH_UPGRADE_NEGOTIATION; -constexpr V1Frame_FrameType V1Frame::KEEP_ALIVE; -constexpr V1Frame_FrameType V1Frame::DISCONNECTION; -constexpr V1Frame_FrameType V1Frame::PAIRED_KEY_ENCRYPTION; -constexpr V1Frame_FrameType V1Frame::FrameType_MIN; -constexpr V1Frame_FrameType V1Frame::FrameType_MAX; -constexpr int V1Frame::FrameType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool ConnectionRequestFrame_Medium_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionRequestFrame_Medium_strings[12] = {}; - -static const char ConnectionRequestFrame_Medium_names[] = - "BLE" - "BLE_L2CAP" - "BLUETOOTH" - "MDNS" - "NFC" - "UNKNOWN_MEDIUM" - "USB" - "WEB_RTC" - "WIFI_AWARE" - "WIFI_DIRECT" - "WIFI_HOTSPOT" - "WIFI_LAN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionRequestFrame_Medium_entries[] = { - { {ConnectionRequestFrame_Medium_names + 0, 3}, 4 }, - { {ConnectionRequestFrame_Medium_names + 3, 9}, 10 }, - { {ConnectionRequestFrame_Medium_names + 12, 9}, 2 }, - { {ConnectionRequestFrame_Medium_names + 21, 4}, 1 }, - { {ConnectionRequestFrame_Medium_names + 25, 3}, 7 }, - { {ConnectionRequestFrame_Medium_names + 28, 14}, 0 }, - { {ConnectionRequestFrame_Medium_names + 42, 3}, 11 }, - { {ConnectionRequestFrame_Medium_names + 45, 7}, 9 }, - { {ConnectionRequestFrame_Medium_names + 52, 10}, 6 }, - { {ConnectionRequestFrame_Medium_names + 62, 11}, 8 }, - { {ConnectionRequestFrame_Medium_names + 73, 12}, 3 }, - { {ConnectionRequestFrame_Medium_names + 85, 8}, 5 }, -}; - -static const int ConnectionRequestFrame_Medium_entries_by_number[] = { - 5, // 0 -> UNKNOWN_MEDIUM - 3, // 1 -> MDNS - 2, // 2 -> BLUETOOTH - 10, // 3 -> WIFI_HOTSPOT - 0, // 4 -> BLE - 11, // 5 -> WIFI_LAN - 8, // 6 -> WIFI_AWARE - 4, // 7 -> NFC - 9, // 8 -> WIFI_DIRECT - 7, // 9 -> WEB_RTC - 1, // 10 -> BLE_L2CAP - 6, // 11 -> USB -}; - -const std::string& ConnectionRequestFrame_Medium_Name( - ConnectionRequestFrame_Medium value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionRequestFrame_Medium_entries, - ConnectionRequestFrame_Medium_entries_by_number, - 12, ConnectionRequestFrame_Medium_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionRequestFrame_Medium_entries, - ConnectionRequestFrame_Medium_entries_by_number, - 12, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionRequestFrame_Medium_strings[idx].get(); -} -bool ConnectionRequestFrame_Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_Medium* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - ConnectionRequestFrame_Medium_entries, 12, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::UNKNOWN_MEDIUM; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::MDNS; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLUETOOTH; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_HOTSPOT; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLE; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_LAN; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_AWARE; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::NFC; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_DIRECT; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WEB_RTC; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLE_L2CAP; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::USB; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::Medium_MIN; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::Medium_MAX; -constexpr int ConnectionRequestFrame::Medium_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool ConnectionResponseFrame_ResponseStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionResponseFrame_ResponseStatus_strings[3] = {}; - -static const char ConnectionResponseFrame_ResponseStatus_names[] = - "ACCEPT" - "REJECT" - "UNKNOWN_RESPONSE_STATUS"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionResponseFrame_ResponseStatus_entries[] = { - { {ConnectionResponseFrame_ResponseStatus_names + 0, 6}, 1 }, - { {ConnectionResponseFrame_ResponseStatus_names + 6, 6}, 2 }, - { {ConnectionResponseFrame_ResponseStatus_names + 12, 23}, 0 }, -}; - -static const int ConnectionResponseFrame_ResponseStatus_entries_by_number[] = { - 2, // 0 -> UNKNOWN_RESPONSE_STATUS - 0, // 1 -> ACCEPT - 1, // 2 -> REJECT -}; - -const std::string& ConnectionResponseFrame_ResponseStatus_Name( - ConnectionResponseFrame_ResponseStatus value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - ConnectionResponseFrame_ResponseStatus_entries, - ConnectionResponseFrame_ResponseStatus_entries_by_number, - 3, ConnectionResponseFrame_ResponseStatus_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - ConnectionResponseFrame_ResponseStatus_entries, - ConnectionResponseFrame_ResponseStatus_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - ConnectionResponseFrame_ResponseStatus_strings[idx].get(); -} -bool ConnectionResponseFrame_ResponseStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionResponseFrame_ResponseStatus* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - ConnectionResponseFrame_ResponseStatus_entries, 3, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::UNKNOWN_RESPONSE_STATUS; -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::ACCEPT; -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::REJECT; -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::ResponseStatus_MIN; -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::ResponseStatus_MAX; -constexpr int ConnectionResponseFrame::ResponseStatus_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadTransferFrame_PayloadHeader_PayloadType_strings[4] = {}; - -static const char PayloadTransferFrame_PayloadHeader_PayloadType_names[] = - "BYTES" - "FILE" - "STREAM" - "UNKNOWN_PAYLOAD_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_PayloadHeader_PayloadType_entries[] = { - { {PayloadTransferFrame_PayloadHeader_PayloadType_names + 0, 5}, 1 }, - { {PayloadTransferFrame_PayloadHeader_PayloadType_names + 5, 4}, 2 }, - { {PayloadTransferFrame_PayloadHeader_PayloadType_names + 9, 6}, 3 }, - { {PayloadTransferFrame_PayloadHeader_PayloadType_names + 15, 20}, 0 }, -}; - -static const int PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number[] = { - 3, // 0 -> UNKNOWN_PAYLOAD_TYPE - 0, // 1 -> BYTES - 1, // 2 -> FILE - 2, // 3 -> STREAM -}; - -const std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name( - PayloadTransferFrame_PayloadHeader_PayloadType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PayloadTransferFrame_PayloadHeader_PayloadType_entries, - PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number, - 4, PayloadTransferFrame_PayloadHeader_PayloadType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PayloadTransferFrame_PayloadHeader_PayloadType_entries, - PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PayloadTransferFrame_PayloadHeader_PayloadType_strings[idx].get(); -} -bool PayloadTransferFrame_PayloadHeader_PayloadType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadHeader_PayloadType* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - PayloadTransferFrame_PayloadHeader_PayloadType_entries, 4, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::UNKNOWN_PAYLOAD_TYPE; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::BYTES; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::FILE; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::STREAM; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::PayloadType_MIN; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::PayloadType_MAX; -constexpr int PayloadTransferFrame_PayloadHeader::PayloadType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool PayloadTransferFrame_PayloadChunk_Flags_IsValid(int value) { - switch (value) { - case 1: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadTransferFrame_PayloadChunk_Flags_strings[1] = {}; - -static const char PayloadTransferFrame_PayloadChunk_Flags_names[] = - "LAST_CHUNK"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_PayloadChunk_Flags_entries[] = { - { {PayloadTransferFrame_PayloadChunk_Flags_names + 0, 10}, 1 }, -}; - -static const int PayloadTransferFrame_PayloadChunk_Flags_entries_by_number[] = { - 0, // 1 -> LAST_CHUNK -}; - -const std::string& PayloadTransferFrame_PayloadChunk_Flags_Name( - PayloadTransferFrame_PayloadChunk_Flags value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PayloadTransferFrame_PayloadChunk_Flags_entries, - PayloadTransferFrame_PayloadChunk_Flags_entries_by_number, - 1, PayloadTransferFrame_PayloadChunk_Flags_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PayloadTransferFrame_PayloadChunk_Flags_entries, - PayloadTransferFrame_PayloadChunk_Flags_entries_by_number, - 1, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PayloadTransferFrame_PayloadChunk_Flags_strings[idx].get(); -} -bool PayloadTransferFrame_PayloadChunk_Flags_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadChunk_Flags* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - PayloadTransferFrame_PayloadChunk_Flags_entries, 1, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk::LAST_CHUNK; -constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk::Flags_MIN; -constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk::Flags_MAX; -constexpr int PayloadTransferFrame_PayloadChunk::Flags_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool PayloadTransferFrame_ControlMessage_EventType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadTransferFrame_ControlMessage_EventType_strings[3] = {}; - -static const char PayloadTransferFrame_ControlMessage_EventType_names[] = - "PAYLOAD_CANCELED" - "PAYLOAD_ERROR" - "UNKNOWN_EVENT_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_ControlMessage_EventType_entries[] = { - { {PayloadTransferFrame_ControlMessage_EventType_names + 0, 16}, 2 }, - { {PayloadTransferFrame_ControlMessage_EventType_names + 16, 13}, 1 }, - { {PayloadTransferFrame_ControlMessage_EventType_names + 29, 18}, 0 }, -}; - -static const int PayloadTransferFrame_ControlMessage_EventType_entries_by_number[] = { - 2, // 0 -> UNKNOWN_EVENT_TYPE - 1, // 1 -> PAYLOAD_ERROR - 0, // 2 -> PAYLOAD_CANCELED -}; - -const std::string& PayloadTransferFrame_ControlMessage_EventType_Name( - PayloadTransferFrame_ControlMessage_EventType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PayloadTransferFrame_ControlMessage_EventType_entries, - PayloadTransferFrame_ControlMessage_EventType_entries_by_number, - 3, PayloadTransferFrame_ControlMessage_EventType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PayloadTransferFrame_ControlMessage_EventType_entries, - PayloadTransferFrame_ControlMessage_EventType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PayloadTransferFrame_ControlMessage_EventType_strings[idx].get(); -} -bool PayloadTransferFrame_ControlMessage_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_ControlMessage_EventType* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - PayloadTransferFrame_ControlMessage_EventType_entries, 3, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::UNKNOWN_EVENT_TYPE; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::PAYLOAD_ERROR; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::PAYLOAD_CANCELED; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::EventType_MIN; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::EventType_MAX; -constexpr int PayloadTransferFrame_ControlMessage::EventType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool PayloadTransferFrame_PacketType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadTransferFrame_PacketType_strings[3] = {}; - -static const char PayloadTransferFrame_PacketType_names[] = - "CONTROL" - "DATA" - "UNKNOWN_PACKET_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_PacketType_entries[] = { - { {PayloadTransferFrame_PacketType_names + 0, 7}, 2 }, - { {PayloadTransferFrame_PacketType_names + 7, 4}, 1 }, - { {PayloadTransferFrame_PacketType_names + 11, 19}, 0 }, -}; - -static const int PayloadTransferFrame_PacketType_entries_by_number[] = { - 2, // 0 -> UNKNOWN_PACKET_TYPE - 1, // 1 -> DATA - 0, // 2 -> CONTROL -}; - -const std::string& PayloadTransferFrame_PacketType_Name( - PayloadTransferFrame_PacketType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - PayloadTransferFrame_PacketType_entries, - PayloadTransferFrame_PacketType_entries_by_number, - 3, PayloadTransferFrame_PacketType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - PayloadTransferFrame_PacketType_entries, - PayloadTransferFrame_PacketType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - PayloadTransferFrame_PacketType_strings[idx].get(); -} -bool PayloadTransferFrame_PacketType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PacketType* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - PayloadTransferFrame_PacketType_entries, 3, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::UNKNOWN_PACKET_TYPE; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::DATA; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::CONTROL; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::PacketType_MIN; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::PacketType_MAX; -constexpr int PayloadTransferFrame::PacketType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 11: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[11] = {}; - -static const char BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[] = - "BLE" - "BLUETOOTH" - "MDNS" - "NFC" - "UNKNOWN_MEDIUM" - "USB" - "WEB_RTC" - "WIFI_AWARE" - "WIFI_DIRECT" - "WIFI_HOTSPOT" - "WIFI_LAN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries[] = { - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 0, 3}, 4 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 3, 9}, 2 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 12, 4}, 1 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 16, 3}, 7 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 19, 14}, 0 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 33, 3}, 11 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 36, 7}, 9 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 43, 10}, 6 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 53, 11}, 8 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 64, 12}, 3 }, - { {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 76, 8}, 5 }, -}; - -static const int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number[] = { - 4, // 0 -> UNKNOWN_MEDIUM - 2, // 1 -> MDNS - 1, // 2 -> BLUETOOTH - 9, // 3 -> WIFI_HOTSPOT - 0, // 4 -> BLE - 10, // 5 -> WIFI_LAN - 7, // 6 -> WIFI_AWARE - 3, // 7 -> NFC - 8, // 8 -> WIFI_DIRECT - 6, // 9 -> WEB_RTC - 5, // 11 -> USB -}; - -const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name( - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number, - 11, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number, - 11, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[idx].get(); -} -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, 11, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::UNKNOWN_MEDIUM; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MDNS; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BLUETOOTH; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_HOTSPOT; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BLE; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_LAN; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_AWARE; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::NFC; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_DIRECT; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WEB_RTC; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::USB; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_MIN; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_MAX; -constexpr int BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool BandwidthUpgradeNegotiationFrame_EventType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed BandwidthUpgradeNegotiationFrame_EventType_strings[7] = {}; - -static const char BandwidthUpgradeNegotiationFrame_EventType_names[] = - "CLIENT_INTRODUCTION" - "CLIENT_INTRODUCTION_ACK" - "LAST_WRITE_TO_PRIOR_CHANNEL" - "SAFE_TO_CLOSE_PRIOR_CHANNEL" - "UNKNOWN_EVENT_TYPE" - "UPGRADE_FAILURE" - "UPGRADE_PATH_AVAILABLE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeNegotiationFrame_EventType_entries[] = { - { {BandwidthUpgradeNegotiationFrame_EventType_names + 0, 19}, 4 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 19, 23}, 6 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 42, 27}, 2 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 69, 27}, 3 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 96, 18}, 0 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 114, 15}, 5 }, - { {BandwidthUpgradeNegotiationFrame_EventType_names + 129, 22}, 1 }, -}; - -static const int BandwidthUpgradeNegotiationFrame_EventType_entries_by_number[] = { - 4, // 0 -> UNKNOWN_EVENT_TYPE - 6, // 1 -> UPGRADE_PATH_AVAILABLE - 2, // 2 -> LAST_WRITE_TO_PRIOR_CHANNEL - 3, // 3 -> SAFE_TO_CLOSE_PRIOR_CHANNEL - 0, // 4 -> CLIENT_INTRODUCTION - 5, // 5 -> UPGRADE_FAILURE - 1, // 6 -> CLIENT_INTRODUCTION_ACK -}; - -const std::string& BandwidthUpgradeNegotiationFrame_EventType_Name( - BandwidthUpgradeNegotiationFrame_EventType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - BandwidthUpgradeNegotiationFrame_EventType_entries, - BandwidthUpgradeNegotiationFrame_EventType_entries_by_number, - 7, BandwidthUpgradeNegotiationFrame_EventType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - BandwidthUpgradeNegotiationFrame_EventType_entries, - BandwidthUpgradeNegotiationFrame_EventType_entries_by_number, - 7, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - BandwidthUpgradeNegotiationFrame_EventType_strings[idx].get(); -} -bool BandwidthUpgradeNegotiationFrame_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_EventType* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - BandwidthUpgradeNegotiationFrame_EventType_entries, 7, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::UNKNOWN_EVENT_TYPE; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::UPGRADE_PATH_AVAILABLE; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::LAST_WRITE_TO_PRIOR_CHANNEL; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::SAFE_TO_CLOSE_PRIOR_CHANNEL; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::CLIENT_INTRODUCTION; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::UPGRADE_FAILURE; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::CLIENT_INTRODUCTION_ACK; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::EventType_MIN; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::EventType_MAX; -constexpr int BandwidthUpgradeNegotiationFrame::EventType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool LocationStandard_Format_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed LocationStandard_Format_strings[3] = {}; - -static const char LocationStandard_Format_names[] = - "E164_CALLING" - "ISO_3166_1_ALPHA_2" - "UNKNOWN"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry LocationStandard_Format_entries[] = { - { {LocationStandard_Format_names + 0, 12}, 1 }, - { {LocationStandard_Format_names + 12, 18}, 2 }, - { {LocationStandard_Format_names + 30, 7}, 0 }, -}; - -static const int LocationStandard_Format_entries_by_number[] = { - 2, // 0 -> UNKNOWN - 0, // 1 -> E164_CALLING - 1, // 2 -> ISO_3166_1_ALPHA_2 -}; - -const std::string& LocationStandard_Format_Name( - LocationStandard_Format value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - LocationStandard_Format_entries, - LocationStandard_Format_entries_by_number, - 3, LocationStandard_Format_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - LocationStandard_Format_entries, - LocationStandard_Format_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - LocationStandard_Format_strings[idx].get(); -} -bool LocationStandard_Format_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LocationStandard_Format* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - LocationStandard_Format_entries, 3, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr LocationStandard_Format LocationStandard::UNKNOWN; -constexpr LocationStandard_Format LocationStandard::E164_CALLING; -constexpr LocationStandard_Format LocationStandard::ISO_3166_1_ALPHA_2; -constexpr LocationStandard_Format LocationStandard::Format_MIN; -constexpr LocationStandard_Format LocationStandard::Format_MAX; -constexpr int LocationStandard::Format_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) - -// =================================================================== - -class OfflineFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::connections::V1Frame& v1(const OfflineFrame* msg); - static void set_has_v1(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::location::nearby::connections::V1Frame& -OfflineFrame::_Internal::v1(const OfflineFrame* msg) { - return *msg->v1_; -} -OfflineFrame::OfflineFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.OfflineFrame) -} -OfflineFrame::OfflineFrame(const OfflineFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_v1()) { - v1_ = new ::location::nearby::connections::V1Frame(*from.v1_); - } else { - v1_ = nullptr; - } - version_ = from.version_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.OfflineFrame) -} - -inline void OfflineFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&v1_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&version_) - - reinterpret_cast(&v1_)) + sizeof(version_)); -} - -OfflineFrame::~OfflineFrame() { - // @@protoc_insertion_point(destructor:location.nearby.connections.OfflineFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void OfflineFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete v1_; -} - -void OfflineFrame::ArenaDtor(void* object) { - OfflineFrame* _this = reinterpret_cast< OfflineFrame* >(object); - (void)_this; -} -void OfflineFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void OfflineFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void OfflineFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.OfflineFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(v1_ != nullptr); - v1_->Clear(); - } - version_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* OfflineFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.OfflineFrame.Version version = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::OfflineFrame_Version_IsValid(val))) { - _internal_set_version(static_cast<::location::nearby::connections::OfflineFrame_Version>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.V1Frame v1 = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_v1(), ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* OfflineFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.OfflineFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .location.nearby.connections.OfflineFrame.Version version = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_version(), target); - } - - // optional .location.nearby.connections.V1Frame v1 = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::v1(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.OfflineFrame) - return target; -} - -size_t OfflineFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.OfflineFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional .location.nearby.connections.V1Frame v1 = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *v1_); - } - - // optional .location.nearby.connections.OfflineFrame.Version version = 1; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_version()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OfflineFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void OfflineFrame::MergeFrom(const OfflineFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.OfflineFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_v1()->::location::nearby::connections::V1Frame::MergeFrom(from._internal_v1()); - } - if (cached_has_bits & 0x00000002u) { - version_ = from.version_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void OfflineFrame::CopyFrom(const OfflineFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.OfflineFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OfflineFrame::IsInitialized() const { - return true; -} - -void OfflineFrame::InternalSwap(OfflineFrame* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(OfflineFrame, version_) - + sizeof(OfflineFrame::version_) - - PROTOBUF_FIELD_OFFSET(OfflineFrame, v1_)>( - reinterpret_cast(&v1_), - reinterpret_cast(&other->v1_)); -} - -std::string OfflineFrame::GetTypeName() const { - return "location.nearby.connections.OfflineFrame"; -} - - -// =================================================================== - -class V1Frame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static const ::location::nearby::connections::ConnectionRequestFrame& connection_request(const V1Frame* msg); - static void set_has_connection_request(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::connections::ConnectionResponseFrame& connection_response(const V1Frame* msg); - static void set_has_connection_response(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::connections::PayloadTransferFrame& payload_transfer(const V1Frame* msg); - static void set_has_payload_transfer(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& bandwidth_upgrade_negotiation(const V1Frame* msg); - static void set_has_bandwidth_upgrade_negotiation(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::KeepAliveFrame& keep_alive(const V1Frame* msg); - static void set_has_keep_alive(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::location::nearby::connections::DisconnectionFrame& disconnection(const V1Frame* msg); - static void set_has_disconnection(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::location::nearby::connections::PairedKeyEncryptionFrame& paired_key_encryption(const V1Frame* msg); - static void set_has_paired_key_encryption(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } -}; - -const ::location::nearby::connections::ConnectionRequestFrame& -V1Frame::_Internal::connection_request(const V1Frame* msg) { - return *msg->connection_request_; -} -const ::location::nearby::connections::ConnectionResponseFrame& -V1Frame::_Internal::connection_response(const V1Frame* msg) { - return *msg->connection_response_; -} -const ::location::nearby::connections::PayloadTransferFrame& -V1Frame::_Internal::payload_transfer(const V1Frame* msg) { - return *msg->payload_transfer_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& -V1Frame::_Internal::bandwidth_upgrade_negotiation(const V1Frame* msg) { - return *msg->bandwidth_upgrade_negotiation_; -} -const ::location::nearby::connections::KeepAliveFrame& -V1Frame::_Internal::keep_alive(const V1Frame* msg) { - return *msg->keep_alive_; -} -const ::location::nearby::connections::DisconnectionFrame& -V1Frame::_Internal::disconnection(const V1Frame* msg) { - return *msg->disconnection_; -} -const ::location::nearby::connections::PairedKeyEncryptionFrame& -V1Frame::_Internal::paired_key_encryption(const V1Frame* msg) { - return *msg->paired_key_encryption_; -} -V1Frame::V1Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.V1Frame) -} -V1Frame::V1Frame(const V1Frame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_connection_request()) { - connection_request_ = new ::location::nearby::connections::ConnectionRequestFrame(*from.connection_request_); - } else { - connection_request_ = nullptr; - } - if (from._internal_has_connection_response()) { - connection_response_ = new ::location::nearby::connections::ConnectionResponseFrame(*from.connection_response_); - } else { - connection_response_ = nullptr; - } - if (from._internal_has_payload_transfer()) { - payload_transfer_ = new ::location::nearby::connections::PayloadTransferFrame(*from.payload_transfer_); - } else { - payload_transfer_ = nullptr; - } - if (from._internal_has_bandwidth_upgrade_negotiation()) { - bandwidth_upgrade_negotiation_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame(*from.bandwidth_upgrade_negotiation_); - } else { - bandwidth_upgrade_negotiation_ = nullptr; - } - if (from._internal_has_keep_alive()) { - keep_alive_ = new ::location::nearby::connections::KeepAliveFrame(*from.keep_alive_); - } else { - keep_alive_ = nullptr; - } - if (from._internal_has_disconnection()) { - disconnection_ = new ::location::nearby::connections::DisconnectionFrame(*from.disconnection_); - } else { - disconnection_ = nullptr; - } - if (from._internal_has_paired_key_encryption()) { - paired_key_encryption_ = new ::location::nearby::connections::PairedKeyEncryptionFrame(*from.paired_key_encryption_); - } else { - paired_key_encryption_ = nullptr; - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.V1Frame) -} - -inline void V1Frame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&connection_request_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&type_) - - reinterpret_cast(&connection_request_)) + sizeof(type_)); -} - -V1Frame::~V1Frame() { - // @@protoc_insertion_point(destructor:location.nearby.connections.V1Frame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void V1Frame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete connection_request_; - if (this != internal_default_instance()) delete connection_response_; - if (this != internal_default_instance()) delete payload_transfer_; - if (this != internal_default_instance()) delete bandwidth_upgrade_negotiation_; - if (this != internal_default_instance()) delete keep_alive_; - if (this != internal_default_instance()) delete disconnection_; - if (this != internal_default_instance()) delete paired_key_encryption_; -} - -void V1Frame::ArenaDtor(void* object) { - V1Frame* _this = reinterpret_cast< V1Frame* >(object); - (void)_this; -} -void V1Frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void V1Frame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void V1Frame::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.V1Frame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(connection_request_ != nullptr); - connection_request_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(connection_response_ != nullptr); - connection_response_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(payload_transfer_ != nullptr); - payload_transfer_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(bandwidth_upgrade_negotiation_ != nullptr); - bandwidth_upgrade_negotiation_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(keep_alive_ != nullptr); - keep_alive_->Clear(); - } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(disconnection_ != nullptr); - disconnection_->Clear(); - } - if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(paired_key_encryption_ != nullptr); - paired_key_encryption_->Clear(); - } - } - type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* V1Frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.V1Frame.FrameType type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::V1Frame_FrameType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::connections::V1Frame_FrameType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_connection_request(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_connection_response(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_payload_transfer(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_bandwidth_upgrade_negotiation(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_keep_alive(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_disconnection(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_paired_key_encryption(), ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* V1Frame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.V1Frame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .location.nearby.connections.V1Frame.FrameType type = 1; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); - } - - // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::connection_request(this), target, stream); - } - - // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::connection_response(this), target, stream); - } - - // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::payload_transfer(this), target, stream); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::bandwidth_upgrade_negotiation(this), target, stream); - } - - // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::keep_alive(this), target, stream); - } - - // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::disconnection(this), target, stream); - } - - // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::paired_key_encryption(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.V1Frame) - return target; -} - -size_t V1Frame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.V1Frame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *connection_request_); - } - - // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *connection_response_); - } - - // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *payload_transfer_); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *bandwidth_upgrade_negotiation_); - } - - // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *keep_alive_); - } - - // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *disconnection_); - } - - // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *paired_key_encryption_); - } - - // optional .location.nearby.connections.V1Frame.FrameType type = 1; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void V1Frame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void V1Frame::MergeFrom(const V1Frame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.V1Frame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_connection_request()->::location::nearby::connections::ConnectionRequestFrame::MergeFrom(from._internal_connection_request()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_connection_response()->::location::nearby::connections::ConnectionResponseFrame::MergeFrom(from._internal_connection_response()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_payload_transfer()->::location::nearby::connections::PayloadTransferFrame::MergeFrom(from._internal_payload_transfer()); - } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_bandwidth_upgrade_negotiation()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame::MergeFrom(from._internal_bandwidth_upgrade_negotiation()); - } - if (cached_has_bits & 0x00000010u) { - _internal_mutable_keep_alive()->::location::nearby::connections::KeepAliveFrame::MergeFrom(from._internal_keep_alive()); - } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_disconnection()->::location::nearby::connections::DisconnectionFrame::MergeFrom(from._internal_disconnection()); - } - if (cached_has_bits & 0x00000040u) { - _internal_mutable_paired_key_encryption()->::location::nearby::connections::PairedKeyEncryptionFrame::MergeFrom(from._internal_paired_key_encryption()); - } - if (cached_has_bits & 0x00000080u) { - type_ = from.type_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void V1Frame::CopyFrom(const V1Frame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.V1Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool V1Frame::IsInitialized() const { - return true; -} - -void V1Frame::InternalSwap(V1Frame* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(V1Frame, type_) - + sizeof(V1Frame::type_) - - PROTOBUF_FIELD_OFFSET(V1Frame, connection_request_)>( - reinterpret_cast(&connection_request_), - reinterpret_cast(&other->connection_request_)); -} - -std::string V1Frame::GetTypeName() const { - return "location.nearby.connections.V1Frame"; -} - - -// =================================================================== - -class ConnectionRequestFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_endpoint_name(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_handshake_data(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_nonce(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_endpoint_info(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::MediumMetadata& medium_metadata(const ConnectionRequestFrame* msg); - static void set_has_medium_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_keep_alive_interval_millis(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_keep_alive_timeout_millis(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_device_info(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } -}; - -const ::location::nearby::connections::MediumMetadata& -ConnectionRequestFrame::_Internal::medium_metadata(const ConnectionRequestFrame* msg) { - return *msg->medium_metadata_; -} -ConnectionRequestFrame::ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - mediums_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.ConnectionRequestFrame) -} -ConnectionRequestFrame::ConnectionRequestFrame(const ConnectionRequestFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_), - mediums_(from.mediums_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_id()) { - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(), - GetArenaForAllocation()); - } - endpoint_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_name()) { - endpoint_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_name(), - GetArenaForAllocation()); - } - handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_handshake_data()) { - handshake_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_handshake_data(), - GetArenaForAllocation()); - } - endpoint_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_info()) { - endpoint_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_info(), - GetArenaForAllocation()); - } - device_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_info()) { - device_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_info(), - GetArenaForAllocation()); - } - if (from._internal_has_medium_metadata()) { - medium_metadata_ = new ::location::nearby::connections::MediumMetadata(*from.medium_metadata_); - } else { - medium_metadata_ = nullptr; - } - ::memcpy(&nonce_, &from.nonce_, - static_cast(reinterpret_cast(&device_type_) - - reinterpret_cast(&nonce_)) + sizeof(device_type_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.ConnectionRequestFrame) -} - -inline void ConnectionRequestFrame::SharedCtor() { -endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -endpoint_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -endpoint_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&medium_metadata_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&device_type_) - - reinterpret_cast(&medium_metadata_)) + sizeof(device_type_)); -} - -ConnectionRequestFrame::~ConnectionRequestFrame() { - // @@protoc_insertion_point(destructor:location.nearby.connections.ConnectionRequestFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void ConnectionRequestFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - endpoint_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - handshake_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - endpoint_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete medium_metadata_; -} - -void ConnectionRequestFrame::ArenaDtor(void* object) { - ConnectionRequestFrame* _this = reinterpret_cast< ConnectionRequestFrame* >(object); - (void)_this; -} -void ConnectionRequestFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionRequestFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void ConnectionRequestFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.ConnectionRequestFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - mediums_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - endpoint_id_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - endpoint_name_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - handshake_data_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000008u) { - endpoint_info_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000010u) { - device_info_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(medium_metadata_ != nullptr); - medium_metadata_->Clear(); - } - } - if (cached_has_bits & 0x000000c0u) { - ::memset(&nonce_, 0, static_cast( - reinterpret_cast(&keep_alive_interval_millis_) - - reinterpret_cast(&nonce_)) + sizeof(keep_alive_interval_millis_)); - } - if (cached_has_bits & 0x00000300u) { - ::memset(&keep_alive_timeout_millis_, 0, static_cast( - reinterpret_cast(&device_type_) - - reinterpret_cast(&keep_alive_timeout_millis_)) + sizeof(device_type_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* ConnectionRequestFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string endpoint_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string endpoint_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_endpoint_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes handshake_data = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_handshake_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 nonce = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_nonce(&has_bits); - nonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - ptr -= 1; - do { - ptr += 1; - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(val))) { - _internal_add_mediums(static_cast<::location::nearby::connections::ConnectionRequestFrame_Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); - } - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<40>(ptr)); - } else if (static_cast(tag) == 42) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_mediums(), ptr, ctx, ::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid, &_internal_metadata_, 5); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes endpoint_info = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_endpoint_info(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_medium_metadata(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 keep_alive_interval_millis = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_keep_alive_interval_millis(&has_bits); - keep_alive_interval_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 keep_alive_timeout_millis = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_keep_alive_timeout_millis(&has_bits); - keep_alive_timeout_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 device_type = 10 [default = 0]; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_device_type(&has_bits); - device_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes device_info = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - auto str = _internal_mutable_device_info(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionRequestFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.ConnectionRequestFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_endpoint_id(), target); - } - - // optional string endpoint_name = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_endpoint_name(), target); - } - - // optional bytes handshake_data = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_handshake_data(), target); - } - - // optional int32 nonce = 4; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_nonce(), target); - } - - // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; - for (int i = 0, n = this->_internal_mediums_size(); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 5, this->_internal_mediums(i), target); - } - - // optional bytes endpoint_info = 6; - if (cached_has_bits & 0x00000008u) { - target = stream->WriteBytesMaybeAliased( - 6, this->_internal_endpoint_info(), target); - } - - // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::medium_metadata(this), target, stream); - } - - // optional int32 keep_alive_interval_millis = 8; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(8, this->_internal_keep_alive_interval_millis(), target); - } - - // optional int32 keep_alive_timeout_millis = 9; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_keep_alive_timeout_millis(), target); - } - - // optional int32 device_type = 10 [default = 0]; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_device_type(), target); - } - - // optional bytes device_info = 11; - if (cached_has_bits & 0x00000010u) { - target = stream->WriteBytesMaybeAliased( - 11, this->_internal_device_info(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.ConnectionRequestFrame) - return target; -} - -size_t ConnectionRequestFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ConnectionRequestFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; - { - size_t data_size = 0; - unsigned int count = static_cast(this->_internal_mediums_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( - this->_internal_mediums(static_cast(i))); - } - total_size += (1UL * count) + data_size; - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_id()); - } - - // optional string endpoint_name = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_name()); - } - - // optional bytes handshake_data = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_handshake_data()); - } - - // optional bytes endpoint_info = 6; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_endpoint_info()); - } - - // optional bytes device_info = 11; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_device_info()); - } - - // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *medium_metadata_); - } - - // optional int32 nonce = 4; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_nonce()); - } - - // optional int32 keep_alive_interval_millis = 8; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_keep_alive_interval_millis()); - } - - } - if (cached_has_bits & 0x00000300u) { - // optional int32 keep_alive_timeout_millis = 9; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_keep_alive_timeout_millis()); - } - - // optional int32 device_type = 10 [default = 0]; - if (cached_has_bits & 0x00000200u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_device_type()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ConnectionRequestFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionRequestFrame::MergeFrom(const ConnectionRequestFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ConnectionRequestFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - mediums_.MergeFrom(from.mediums_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_endpoint_id(from._internal_endpoint_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_endpoint_name(from._internal_endpoint_name()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_handshake_data(from._internal_handshake_data()); - } - if (cached_has_bits & 0x00000008u) { - _internal_set_endpoint_info(from._internal_endpoint_info()); - } - if (cached_has_bits & 0x00000010u) { - _internal_set_device_info(from._internal_device_info()); - } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_medium_metadata()->::location::nearby::connections::MediumMetadata::MergeFrom(from._internal_medium_metadata()); - } - if (cached_has_bits & 0x00000040u) { - nonce_ = from.nonce_; - } - if (cached_has_bits & 0x00000080u) { - keep_alive_interval_millis_ = from.keep_alive_interval_millis_; - } - _has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x00000300u) { - if (cached_has_bits & 0x00000100u) { - keep_alive_timeout_millis_ = from.keep_alive_timeout_millis_; - } - if (cached_has_bits & 0x00000200u) { - device_type_ = from.device_type_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void ConnectionRequestFrame::CopyFrom(const ConnectionRequestFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ConnectionRequestFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConnectionRequestFrame::IsInitialized() const { - return true; -} - -void ConnectionRequestFrame::InternalSwap(ConnectionRequestFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - mediums_.InternalSwap(&other->mediums_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_id_, lhs_arena, - &other->endpoint_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_name_, lhs_arena, - &other->endpoint_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &handshake_data_, lhs_arena, - &other->handshake_data_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_info_, lhs_arena, - &other->endpoint_info_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_info_, lhs_arena, - &other->device_info_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, device_type_) - + sizeof(ConnectionRequestFrame::device_type_) - - PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, medium_metadata_)>( - reinterpret_cast(&medium_metadata_), - reinterpret_cast(&other->medium_metadata_)); -} - -std::string ConnectionRequestFrame::GetTypeName() const { - return "location.nearby.connections.ConnectionRequestFrame"; -} - - -// =================================================================== - -class ConnectionResponseFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_status(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_handshake_data(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_response(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -ConnectionResponseFrame::ConnectionResponseFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.ConnectionResponseFrame) -} -ConnectionResponseFrame::ConnectionResponseFrame(const ConnectionResponseFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_handshake_data()) { - handshake_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_handshake_data(), - GetArenaForAllocation()); - } - ::memcpy(&status_, &from.status_, - static_cast(reinterpret_cast(&response_) - - reinterpret_cast(&status_)) + sizeof(response_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.ConnectionResponseFrame) -} - -inline void ConnectionResponseFrame::SharedCtor() { -handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&status_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&response_) - - reinterpret_cast(&status_)) + sizeof(response_)); -} - -ConnectionResponseFrame::~ConnectionResponseFrame() { - // @@protoc_insertion_point(destructor:location.nearby.connections.ConnectionResponseFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void ConnectionResponseFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - handshake_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void ConnectionResponseFrame::ArenaDtor(void* object) { - ConnectionResponseFrame* _this = reinterpret_cast< ConnectionResponseFrame* >(object); - (void)_this; -} -void ConnectionResponseFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionResponseFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void ConnectionResponseFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.ConnectionResponseFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - handshake_data_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000006u) { - ::memset(&status_, 0, static_cast( - reinterpret_cast(&response_) - - reinterpret_cast(&status_)) + sizeof(response_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* ConnectionResponseFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 status = 1 [deprecated = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_status(&has_bits); - status_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes handshake_data = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_handshake_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus_IsValid(val))) { - _internal_set_response(static_cast<::location::nearby::connections::ConnectionResponseFrame_ResponseStatus>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionResponseFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.ConnectionResponseFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional int32 status = 1 [deprecated = true]; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_status(), target); - } - - // optional bytes handshake_data = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_handshake_data(), target); - } - - // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_response(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.ConnectionResponseFrame) - return target; -} - -size_t ConnectionResponseFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ConnectionResponseFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional bytes handshake_data = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_handshake_data()); - } - - // optional int32 status = 1 [deprecated = true]; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_status()); - } - - // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_response()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ConnectionResponseFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ConnectionResponseFrame::MergeFrom(const ConnectionResponseFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ConnectionResponseFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_handshake_data(from._internal_handshake_data()); - } - if (cached_has_bits & 0x00000002u) { - status_ = from.status_; - } - if (cached_has_bits & 0x00000004u) { - response_ = from.response_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void ConnectionResponseFrame::CopyFrom(const ConnectionResponseFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ConnectionResponseFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConnectionResponseFrame::IsInitialized() const { - return true; -} - -void ConnectionResponseFrame::InternalSwap(ConnectionResponseFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &handshake_data_, lhs_arena, - &other->handshake_data_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, response_) - + sizeof(ConnectionResponseFrame::response_) - - PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, status_)>( - reinterpret_cast(&status_), - reinterpret_cast(&other->status_)); -} - -std::string ConnectionResponseFrame::GetTypeName() const { - return "location.nearby.connections.ConnectionResponseFrame"; -} - - -// =================================================================== - -class PayloadTransferFrame_PayloadHeader::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_total_size(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_is_sensitive(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_file_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_parent_folder(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -PayloadTransferFrame_PayloadHeader::PayloadTransferFrame_PayloadHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PayloadTransferFrame.PayloadHeader) -} -PayloadTransferFrame_PayloadHeader::PayloadTransferFrame_PayloadHeader(const PayloadTransferFrame_PayloadHeader& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_file_name()) { - file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_file_name(), - GetArenaForAllocation()); - } - parent_folder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - parent_folder_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_parent_folder()) { - parent_folder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_parent_folder(), - GetArenaForAllocation()); - } - ::memcpy(&id_, &from.id_, - static_cast(reinterpret_cast(&is_sensitive_) - - reinterpret_cast(&id_)) + sizeof(is_sensitive_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PayloadTransferFrame.PayloadHeader) -} - -inline void PayloadTransferFrame_PayloadHeader::SharedCtor() { -file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -parent_folder_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - parent_folder_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&is_sensitive_) - - reinterpret_cast(&id_)) + sizeof(is_sensitive_)); -} - -PayloadTransferFrame_PayloadHeader::~PayloadTransferFrame_PayloadHeader() { - // @@protoc_insertion_point(destructor:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void PayloadTransferFrame_PayloadHeader::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - file_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - parent_folder_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PayloadTransferFrame_PayloadHeader::ArenaDtor(void* object) { - PayloadTransferFrame_PayloadHeader* _this = reinterpret_cast< PayloadTransferFrame_PayloadHeader* >(object); - (void)_this; -} -void PayloadTransferFrame_PayloadHeader::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PayloadTransferFrame_PayloadHeader::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PayloadTransferFrame_PayloadHeader::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - file_name_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - parent_folder_.ClearNonDefaultToEmpty(); - } - } - if (cached_has_bits & 0x0000003cu) { - ::memset(&id_, 0, static_cast( - reinterpret_cast(&is_sensitive_) - - reinterpret_cast(&id_)) + sizeof(is_sensitive_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* PayloadTransferFrame_PayloadHeader::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int64 id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_id(&has_bits); - id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(val))) { - _internal_set_type(static_cast<::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 total_size = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_total_size(&has_bits); - total_size_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_sensitive = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_is_sensitive(&has_bits); - is_sensitive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string file_name = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_file_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string parent_folder = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_parent_folder(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PayloadTransferFrame_PayloadHeader::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional int64 id = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_id(), target); - } - - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_type(), target); - } - - // optional int64 total_size = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_total_size(), target); - } - - // optional bool is_sensitive = 4; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_is_sensitive(), target); - } - - // optional string file_name = 5; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 5, this->_internal_file_name(), target); - } - - // optional string parent_folder = 6; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 6, this->_internal_parent_folder(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - return target; -} - -size_t PayloadTransferFrame_PayloadHeader::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // optional string file_name = 5; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_file_name()); - } - - // optional string parent_folder = 6; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_parent_folder()); - } - - // optional int64 id = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_id()); - } - - // optional int64 total_size = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_total_size()); - } - - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - - // optional bool is_sensitive = 4; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PayloadTransferFrame_PayloadHeader::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PayloadTransferFrame_PayloadHeader::MergeFrom(const PayloadTransferFrame_PayloadHeader& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_file_name(from._internal_file_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_parent_folder(from._internal_parent_folder()); - } - if (cached_has_bits & 0x00000004u) { - id_ = from.id_; - } - if (cached_has_bits & 0x00000008u) { - total_size_ = from.total_size_; - } - if (cached_has_bits & 0x00000010u) { - type_ = from.type_; - } - if (cached_has_bits & 0x00000020u) { - is_sensitive_ = from.is_sensitive_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void PayloadTransferFrame_PayloadHeader::CopyFrom(const PayloadTransferFrame_PayloadHeader& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PayloadTransferFrame_PayloadHeader::IsInitialized() const { - return true; -} - -void PayloadTransferFrame_PayloadHeader::InternalSwap(PayloadTransferFrame_PayloadHeader* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &file_name_, lhs_arena, - &other->file_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &parent_folder_, lhs_arena, - &other->parent_folder_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, is_sensitive_) - + sizeof(PayloadTransferFrame_PayloadHeader::is_sensitive_) - - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadHeader, id_)>( - reinterpret_cast(&id_), - reinterpret_cast(&other->id_)); -} - -std::string PayloadTransferFrame_PayloadHeader::GetTypeName() const { - return "location.nearby.connections.PayloadTransferFrame.PayloadHeader"; -} - - -// =================================================================== - -class PayloadTransferFrame_PayloadChunk::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_flags(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_offset(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_body(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -PayloadTransferFrame_PayloadChunk::PayloadTransferFrame_PayloadChunk(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PayloadTransferFrame.PayloadChunk) -} -PayloadTransferFrame_PayloadChunk::PayloadTransferFrame_PayloadChunk(const PayloadTransferFrame_PayloadChunk& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_body()) { - body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_body(), - GetArenaForAllocation()); - } - ::memcpy(&offset_, &from.offset_, - static_cast(reinterpret_cast(&flags_) - - reinterpret_cast(&offset_)) + sizeof(flags_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PayloadTransferFrame.PayloadChunk) -} - -inline void PayloadTransferFrame_PayloadChunk::SharedCtor() { -body_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&offset_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&flags_) - - reinterpret_cast(&offset_)) + sizeof(flags_)); -} - -PayloadTransferFrame_PayloadChunk::~PayloadTransferFrame_PayloadChunk() { - // @@protoc_insertion_point(destructor:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void PayloadTransferFrame_PayloadChunk::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - body_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PayloadTransferFrame_PayloadChunk::ArenaDtor(void* object) { - PayloadTransferFrame_PayloadChunk* _this = reinterpret_cast< PayloadTransferFrame_PayloadChunk* >(object); - (void)_this; -} -void PayloadTransferFrame_PayloadChunk::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PayloadTransferFrame_PayloadChunk::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PayloadTransferFrame_PayloadChunk::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - body_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000006u) { - ::memset(&offset_, 0, static_cast( - reinterpret_cast(&flags_) - - reinterpret_cast(&offset_)) + sizeof(flags_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* PayloadTransferFrame_PayloadChunk::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 flags = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_flags(&has_bits); - flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 offset = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_offset(&has_bits); - offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes body = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_body(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PayloadTransferFrame_PayloadChunk::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional int32 flags = 1; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_flags(), target); - } - - // optional int64 offset = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_offset(), target); - } - - // optional bytes body = 3; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_body(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - return target; -} - -size_t PayloadTransferFrame_PayloadChunk::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional bytes body = 3; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_body()); - } - - // optional int64 offset = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_offset()); - } - - // optional int32 flags = 1; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_flags()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PayloadTransferFrame_PayloadChunk::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PayloadTransferFrame_PayloadChunk::MergeFrom(const PayloadTransferFrame_PayloadChunk& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_body(from._internal_body()); - } - if (cached_has_bits & 0x00000002u) { - offset_ = from.offset_; - } - if (cached_has_bits & 0x00000004u) { - flags_ = from.flags_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void PayloadTransferFrame_PayloadChunk::CopyFrom(const PayloadTransferFrame_PayloadChunk& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PayloadTransferFrame_PayloadChunk::IsInitialized() const { - return true; -} - -void PayloadTransferFrame_PayloadChunk::InternalSwap(PayloadTransferFrame_PayloadChunk* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &body_, lhs_arena, - &other->body_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, flags_) - + sizeof(PayloadTransferFrame_PayloadChunk::flags_) - - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_PayloadChunk, offset_)>( - reinterpret_cast(&offset_), - reinterpret_cast(&other->offset_)); -} - -std::string PayloadTransferFrame_PayloadChunk::GetTypeName() const { - return "location.nearby.connections.PayloadTransferFrame.PayloadChunk"; -} - - -// =================================================================== - -class PayloadTransferFrame_ControlMessage::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_event(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_offset(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -PayloadTransferFrame_ControlMessage::PayloadTransferFrame_ControlMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PayloadTransferFrame.ControlMessage) -} -PayloadTransferFrame_ControlMessage::PayloadTransferFrame_ControlMessage(const PayloadTransferFrame_ControlMessage& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&offset_, &from.offset_, - static_cast(reinterpret_cast(&event_) - - reinterpret_cast(&offset_)) + sizeof(event_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PayloadTransferFrame.ControlMessage) -} - -inline void PayloadTransferFrame_ControlMessage::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&offset_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&event_) - - reinterpret_cast(&offset_)) + sizeof(event_)); -} - -PayloadTransferFrame_ControlMessage::~PayloadTransferFrame_ControlMessage() { - // @@protoc_insertion_point(destructor:location.nearby.connections.PayloadTransferFrame.ControlMessage) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void PayloadTransferFrame_ControlMessage::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void PayloadTransferFrame_ControlMessage::ArenaDtor(void* object) { - PayloadTransferFrame_ControlMessage* _this = reinterpret_cast< PayloadTransferFrame_ControlMessage* >(object); - (void)_this; -} -void PayloadTransferFrame_ControlMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PayloadTransferFrame_ControlMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PayloadTransferFrame_ControlMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&offset_, 0, static_cast( - reinterpret_cast(&event_) - - reinterpret_cast(&offset_)) + sizeof(event_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* PayloadTransferFrame_ControlMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType_IsValid(val))) { - _internal_set_event(static_cast<::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int64 offset = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_offset(&has_bits); - offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PayloadTransferFrame_ControlMessage::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_event(), target); - } - - // optional int64 offset = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_offset(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PayloadTransferFrame.ControlMessage) - return target; -} - -size_t PayloadTransferFrame_ControlMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional int64 offset = 2; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_offset()); - } - - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PayloadTransferFrame_ControlMessage::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PayloadTransferFrame_ControlMessage::MergeFrom(const PayloadTransferFrame_ControlMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - offset_ = from.offset_; - } - if (cached_has_bits & 0x00000002u) { - event_ = from.event_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void PayloadTransferFrame_ControlMessage::CopyFrom(const PayloadTransferFrame_ControlMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame.ControlMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PayloadTransferFrame_ControlMessage::IsInitialized() const { - return true; -} - -void PayloadTransferFrame_ControlMessage::InternalSwap(PayloadTransferFrame_ControlMessage* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, event_) - + sizeof(PayloadTransferFrame_ControlMessage::event_) - - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame_ControlMessage, offset_)>( - reinterpret_cast(&offset_), - reinterpret_cast(&other->offset_)); -} - -std::string PayloadTransferFrame_ControlMessage::GetTypeName() const { - return "location.nearby.connections.PayloadTransferFrame.ControlMessage"; -} - - -// =================================================================== - -class PayloadTransferFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_packet_type(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& payload_header(const PayloadTransferFrame* msg); - static void set_has_payload_header(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& payload_chunk(const PayloadTransferFrame* msg); - static void set_has_payload_chunk(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& control_message(const PayloadTransferFrame* msg); - static void set_has_control_message(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& -PayloadTransferFrame::_Internal::payload_header(const PayloadTransferFrame* msg) { - return *msg->payload_header_; -} -const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& -PayloadTransferFrame::_Internal::payload_chunk(const PayloadTransferFrame* msg) { - return *msg->payload_chunk_; -} -const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& -PayloadTransferFrame::_Internal::control_message(const PayloadTransferFrame* msg) { - return *msg->control_message_; -} -PayloadTransferFrame::PayloadTransferFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PayloadTransferFrame) -} -PayloadTransferFrame::PayloadTransferFrame(const PayloadTransferFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_payload_header()) { - payload_header_ = new ::location::nearby::connections::PayloadTransferFrame_PayloadHeader(*from.payload_header_); - } else { - payload_header_ = nullptr; - } - if (from._internal_has_payload_chunk()) { - payload_chunk_ = new ::location::nearby::connections::PayloadTransferFrame_PayloadChunk(*from.payload_chunk_); - } else { - payload_chunk_ = nullptr; - } - if (from._internal_has_control_message()) { - control_message_ = new ::location::nearby::connections::PayloadTransferFrame_ControlMessage(*from.control_message_); - } else { - control_message_ = nullptr; - } - packet_type_ = from.packet_type_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PayloadTransferFrame) -} - -inline void PayloadTransferFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&payload_header_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&packet_type_) - - reinterpret_cast(&payload_header_)) + sizeof(packet_type_)); -} - -PayloadTransferFrame::~PayloadTransferFrame() { - // @@protoc_insertion_point(destructor:location.nearby.connections.PayloadTransferFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void PayloadTransferFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete payload_header_; - if (this != internal_default_instance()) delete payload_chunk_; - if (this != internal_default_instance()) delete control_message_; -} - -void PayloadTransferFrame::ArenaDtor(void* object) { - PayloadTransferFrame* _this = reinterpret_cast< PayloadTransferFrame* >(object); - (void)_this; -} -void PayloadTransferFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PayloadTransferFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PayloadTransferFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.PayloadTransferFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(payload_header_ != nullptr); - payload_header_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(payload_chunk_ != nullptr); - payload_chunk_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(control_message_ != nullptr); - control_message_->Clear(); - } - } - packet_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* PayloadTransferFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::PayloadTransferFrame_PacketType_IsValid(val))) { - _internal_set_packet_type(static_cast<::location::nearby::connections::PayloadTransferFrame_PacketType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_payload_header(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_payload_chunk(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_control_message(), ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PayloadTransferFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PayloadTransferFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_packet_type(), target); - } - - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::payload_header(this), target, stream); - } - - // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::payload_chunk(this), target, stream); - } - - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::control_message(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PayloadTransferFrame) - return target; -} - -size_t PayloadTransferFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PayloadTransferFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *payload_header_); - } - - // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *payload_chunk_); - } - - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *control_message_); - } - - // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_packet_type()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PayloadTransferFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PayloadTransferFrame::MergeFrom(const PayloadTransferFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PayloadTransferFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_payload_header()->::location::nearby::connections::PayloadTransferFrame_PayloadHeader::MergeFrom(from._internal_payload_header()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_payload_chunk()->::location::nearby::connections::PayloadTransferFrame_PayloadChunk::MergeFrom(from._internal_payload_chunk()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_control_message()->::location::nearby::connections::PayloadTransferFrame_ControlMessage::MergeFrom(from._internal_control_message()); - } - if (cached_has_bits & 0x00000008u) { - packet_type_ = from.packet_type_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void PayloadTransferFrame::CopyFrom(const PayloadTransferFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PayloadTransferFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PayloadTransferFrame::IsInitialized() const { - return true; -} - -void PayloadTransferFrame::InternalSwap(PayloadTransferFrame* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, packet_type_) - + sizeof(PayloadTransferFrame::packet_type_) - - PROTOBUF_FIELD_OFFSET(PayloadTransferFrame, payload_header_)>( - reinterpret_cast(&payload_header_), - reinterpret_cast(&other->payload_header_)); -} - -std::string PayloadTransferFrame::GetTypeName() const { - return "location.nearby.connections.PayloadTransferFrame"; -} - - -// =================================================================== - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_ssid(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_password(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_port(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_gateway(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } -}; - -const ::PROTOBUF_NAMESPACE_ID::internal::LazyString BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_i_give_permission_to_break_this_code_default_gateway_{{{"0.0.0.0", 7}}, {nullptr}}; -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ssid()) { - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ssid(), - GetArenaForAllocation()); - } - password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_password()) { - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(), - GetArenaForAllocation()); - } - gateway_.UnsafeSetDefault(nullptr); - if (from._internal_has_gateway()) { - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, from._internal_gateway(), - GetArenaForAllocation()); - } - ::memcpy(&port_, &from.port_, - static_cast(reinterpret_cast(&frequency_) - - reinterpret_cast(&port_)) + sizeof(frequency_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::SharedCtor() { -ssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -gateway_.UnsafeSetDefault(nullptr); -port_ = 0; -frequency_ = -1; -} - -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials() { - // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - ssid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - gateway_.DestroyNoArena(nullptr); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ssid_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - password_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); - } - } - if (cached_has_bits & 0x00000018u) { - port_ = 0; - frequency_ = -1; - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string ssid = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_ssid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string password = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_password(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 port = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_port(&has_bits); - port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string gateway = 4 [default = "0.0.0.0"]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_gateway(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 frequency = 5 [default = -1]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_frequency(&has_bits); - frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string ssid = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_ssid(), target); - } - - // optional string password = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_password(), target); - } - - // optional int32 port = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_port(), target); - } - - // optional string gateway = 4 [default = "0.0.0.0"]; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 4, this->_internal_gateway(), target); - } - - // optional int32 frequency = 5 [default = -1]; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_frequency(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - return target; -} - -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // optional string ssid = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_ssid()); - } - - // optional string password = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_password()); - } - - // optional string gateway = 4 [default = "0.0.0.0"]; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_gateway()); - } - - // optional int32 port = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_port()); - } - - // optional int32 frequency = 5 [default = -1]; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_frequency()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_ssid(from._internal_ssid()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_password(from._internal_password()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_gateway(from._internal_gateway()); - } - if (cached_has_bits & 0x00000008u) { - port_ = from.port_; - } - if (cached_has_bits & 0x00000010u) { - frequency_ = from.frequency_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::IsInitialized() const { - return true; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ssid_, lhs_arena, - &other->ssid_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &password_, lhs_arena, - &other->password_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - nullptr, - &gateway_, lhs_arena, - &other->gateway_, rhs_arena - ); - swap(port_, other->port_); - swap(frequency_, other->frequency_); -} - -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials"; -} - - -// =================================================================== - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_ip_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_wifi_port(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ip_address()) { - ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ip_address(), - GetArenaForAllocation()); - } - wifi_port_ = from.wifi_port_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::SharedCtor() { -ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -wifi_port_ = 0; -} - -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket() { - // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - ip_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - ip_address_.ClearNonDefaultToEmpty(); - } - wifi_port_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes ip_address = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_ip_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 wifi_port = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_wifi_port(&has_bits); - wifi_port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional bytes ip_address = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_ip_address(), target); - } - - // optional int32 wifi_port = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_wifi_port(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - return target; -} - -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional bytes ip_address = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip_address()); - } - - // optional int32 wifi_port = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_wifi_port()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_ip_address(from._internal_ip_address()); - } - if (cached_has_bits & 0x00000002u) { - wifi_port_ = from.wifi_port_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::IsInitialized() const { - return true; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ip_address_, lhs_arena, - &other->ip_address_, rhs_arena - ); - swap(wifi_port_, other->wifi_port_); -} - -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket"; -} - - -// =================================================================== - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_service_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_mac_address(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - service_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_name()) { - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_name(), - GetArenaForAllocation()); - } - mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_mac_address()) { - mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mac_address(), - GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::SharedCtor() { -service_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials() { - // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - service_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - mac_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - service_name_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - mac_address_.ClearNonDefaultToEmpty(); - } - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string service_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_service_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string mac_address = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_mac_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string service_name = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_service_name(), target); - } - - // optional string mac_address = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_mac_address(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - return target; -} - -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string service_name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_name()); - } - - // optional string mac_address = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_mac_address()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_service_name(from._internal_service_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_mac_address(from._internal_mac_address()); - } - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::IsInitialized() const { - return true; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_name_, lhs_arena, - &other->service_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &mac_address_, lhs_arena, - &other->mac_address_, rhs_arena - ); -} - -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials"; -} - - -// =================================================================== - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_service_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_service_info(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_password(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - service_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_id()) { - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_id(), - GetArenaForAllocation()); - } - service_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_service_info()) { - service_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_service_info(), - GetArenaForAllocation()); - } - password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_password()) { - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(), - GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::SharedCtor() { -service_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -service_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - service_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials() { - // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - service_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - service_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - service_id_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - service_info_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - password_.ClearNonDefaultToEmpty(); - } - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string service_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_service_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes service_info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_service_info(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string password = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_password(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string service_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_service_id(), target); - } - - // optional bytes service_info = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_service_info(), target); - } - - // optional string password = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 3, this->_internal_password(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - return target; -} - -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional string service_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_service_id()); - } - - // optional bytes service_info = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_service_info()); - } - - // optional string password = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_password()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_service_id(from._internal_service_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_service_info(from._internal_service_info()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_password(from._internal_password()); - } - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::IsInitialized() const { - return true; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_id_, lhs_arena, - &other->service_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &service_info_, lhs_arena, - &other->service_info_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &password_, lhs_arena, - &other->password_, rhs_arena - ); -} - -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials"; -} - - -// =================================================================== - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_ssid(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_password(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_port(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_gateway(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -const ::PROTOBUF_NAMESPACE_ID::internal::LazyString BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_{{{"0.0.0.0", 7}}, {nullptr}}; -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ssid()) { - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ssid(), - GetArenaForAllocation()); - } - password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_password()) { - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(), - GetArenaForAllocation()); - } - gateway_.UnsafeSetDefault(nullptr); - if (from._internal_has_gateway()) { - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, from._internal_gateway(), - GetArenaForAllocation()); - } - ::memcpy(&port_, &from.port_, - static_cast(reinterpret_cast(&frequency_) - - reinterpret_cast(&port_)) + sizeof(frequency_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::SharedCtor() { -ssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -gateway_.UnsafeSetDefault(nullptr); -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&port_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&frequency_) - - reinterpret_cast(&port_)) + sizeof(frequency_)); -} - -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials() { - // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - ssid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - gateway_.DestroyNoArena(nullptr); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - ssid_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - password_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); - } - } - if (cached_has_bits & 0x00000018u) { - ::memset(&port_, 0, static_cast( - reinterpret_cast(&frequency_) - - reinterpret_cast(&port_)) + sizeof(frequency_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string ssid = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_ssid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string password = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_password(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 port = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_port(&has_bits); - port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 frequency = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_frequency(&has_bits); - frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string gateway = 5 [default = "0.0.0.0"]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_gateway(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string ssid = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_ssid(), target); - } - - // optional string password = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_password(), target); - } - - // optional int32 port = 3; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_port(), target); - } - - // optional int32 frequency = 4; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_frequency(), target); - } - - // optional string gateway = 5 [default = "0.0.0.0"]; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteStringMaybeAliased( - 5, this->_internal_gateway(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - return target; -} - -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - // optional string ssid = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_ssid()); - } - - // optional string password = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_password()); - } - - // optional string gateway = 5 [default = "0.0.0.0"]; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_gateway()); - } - - // optional int32 port = 3; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_port()); - } - - // optional int32 frequency = 4; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_frequency()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_ssid(from._internal_ssid()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_password(from._internal_password()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_gateway(from._internal_gateway()); - } - if (cached_has_bits & 0x00000008u) { - port_ = from.port_; - } - if (cached_has_bits & 0x00000010u) { - frequency_ = from.frequency_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::IsInitialized() const { - return true; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ssid_, lhs_arena, - &other->ssid_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &password_, lhs_arena, - &other->password_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - nullptr, - &gateway_, lhs_arena, - &other->gateway_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, frequency_) - + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::frequency_) - - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, port_)>( - reinterpret_cast(&port_), - reinterpret_cast(&other->port_)); -} - -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials"; -} - - -// =================================================================== - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_peer_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::connections::LocationHint& location_hint(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* msg); - static void set_has_location_hint(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -const ::location::nearby::connections::LocationHint& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_Internal::location_hint(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* msg) { - return *msg->location_hint_; -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - peer_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - peer_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_peer_id()) { - peer_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_peer_id(), - GetArenaForAllocation()); - } - if (from._internal_has_location_hint()) { - location_hint_ = new ::location::nearby::connections::LocationHint(*from.location_hint_); - } else { - location_hint_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::SharedCtor() { -peer_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - peer_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -location_hint_ = nullptr; -} - -BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials() { - // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - peer_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete location_hint_; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - peer_id_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(location_hint_ != nullptr); - location_hint_->Clear(); - } - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string peer_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_peer_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.LocationHint location_hint = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_location_hint(), ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string peer_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_peer_id(), target); - } - - // optional .location.nearby.connections.LocationHint location_hint = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::location_hint(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - return target; -} - -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string peer_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_peer_id()); - } - - // optional .location.nearby.connections.LocationHint location_hint = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *location_hint_); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_peer_id(from._internal_peer_id()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_location_hint()->::location::nearby::connections::LocationHint::MergeFrom(from._internal_location_hint()); - } - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::IsInitialized() const { - return true; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &peer_id_, lhs_arena, - &other->peer_id_, rhs_arena - ); - swap(location_hint_, other->location_hint_); -} - -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials"; -} - - -// =================================================================== - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_medium(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& wifi_hotspot_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_wifi_hotspot_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& wifi_lan_socket(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_wifi_lan_socket(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& bluetooth_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_bluetooth_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& wifi_aware_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_wifi_aware_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& wifi_direct_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_wifi_direct_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& web_rtc_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg); - static void set_has_web_rtc_credentials(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_supports_disabling_encryption(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_supports_client_introduction_ack(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } -}; - -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::wifi_hotspot_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->wifi_hotspot_credentials_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::wifi_lan_socket(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->wifi_lan_socket_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::bluetooth_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->bluetooth_credentials_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::wifi_aware_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->wifi_aware_credentials_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::wifi_direct_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->wifi_direct_credentials_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_Internal::web_rtc_credentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* msg) { - return *msg->web_rtc_credentials_; -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) -} -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFrame_UpgradePathInfo(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_wifi_hotspot_credentials()) { - wifi_hotspot_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(*from.wifi_hotspot_credentials_); - } else { - wifi_hotspot_credentials_ = nullptr; - } - if (from._internal_has_wifi_lan_socket()) { - wifi_lan_socket_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(*from.wifi_lan_socket_); - } else { - wifi_lan_socket_ = nullptr; - } - if (from._internal_has_bluetooth_credentials()) { - bluetooth_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(*from.bluetooth_credentials_); - } else { - bluetooth_credentials_ = nullptr; - } - if (from._internal_has_wifi_aware_credentials()) { - wifi_aware_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(*from.wifi_aware_credentials_); - } else { - wifi_aware_credentials_ = nullptr; - } - if (from._internal_has_wifi_direct_credentials()) { - wifi_direct_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(*from.wifi_direct_credentials_); - } else { - wifi_direct_credentials_ = nullptr; - } - if (from._internal_has_web_rtc_credentials()) { - web_rtc_credentials_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(*from.web_rtc_credentials_); - } else { - web_rtc_credentials_ = nullptr; - } - ::memcpy(&medium_, &from.medium_, - static_cast(reinterpret_cast(&supports_client_introduction_ack_) - - reinterpret_cast(&medium_)) + sizeof(supports_client_introduction_ack_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&wifi_hotspot_credentials_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&supports_client_introduction_ack_) - - reinterpret_cast(&wifi_hotspot_credentials_)) + sizeof(supports_client_introduction_ack_)); -} - -BandwidthUpgradeNegotiationFrame_UpgradePathInfo::~BandwidthUpgradeNegotiationFrame_UpgradePathInfo() { - // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete wifi_hotspot_credentials_; - if (this != internal_default_instance()) delete wifi_lan_socket_; - if (this != internal_default_instance()) delete bluetooth_credentials_; - if (this != internal_default_instance()) delete wifi_aware_credentials_; - if (this != internal_default_instance()) delete wifi_direct_credentials_; - if (this != internal_default_instance()) delete web_rtc_credentials_; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_UpgradePathInfo* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(wifi_hotspot_credentials_ != nullptr); - wifi_hotspot_credentials_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(wifi_lan_socket_ != nullptr); - wifi_lan_socket_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(bluetooth_credentials_ != nullptr); - bluetooth_credentials_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(wifi_aware_credentials_ != nullptr); - wifi_aware_credentials_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(wifi_direct_credentials_ != nullptr); - wifi_direct_credentials_->Clear(); - } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(web_rtc_credentials_ != nullptr); - web_rtc_credentials_->Clear(); - } - } - if (cached_has_bits & 0x000000c0u) { - ::memset(&medium_, 0, static_cast( - reinterpret_cast(&supports_disabling_encryption_) - - reinterpret_cast(&medium_)) + sizeof(supports_disabling_encryption_)); - } - supports_client_introduction_ack_ = false; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(val))) { - _internal_set_medium(static_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_hotspot_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_lan_socket(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_bluetooth_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_aware_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_direct_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_disabling_encryption = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_supports_disabling_encryption(&has_bits); - supports_disabling_encryption_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_web_rtc_credentials(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_client_introduction_ack = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_supports_client_introduction_ack(&has_bits); - supports_client_introduction_ack_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_medium(), target); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::wifi_hotspot_credentials(this), target, stream); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::wifi_lan_socket(this), target, stream); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::bluetooth_credentials(this), target, stream); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::wifi_aware_credentials(this), target, stream); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::wifi_direct_credentials(this), target, stream); - } - - // optional bool supports_disabling_encryption = 7; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_supports_disabling_encryption(), target); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::web_rtc_credentials(this), target, stream); - } - - // optional bool supports_client_introduction_ack = 9; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_supports_client_introduction_ack(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - return target; -} - -size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_hotspot_credentials_); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_lan_socket_); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *bluetooth_credentials_); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_aware_credentials_); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_direct_credentials_); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *web_rtc_credentials_); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_medium()); - } - - // optional bool supports_disabling_encryption = 7; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 1; - } - - } - // optional bool supports_client_introduction_ack = 9; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + 1; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_wifi_hotspot_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::MergeFrom(from._internal_wifi_hotspot_credentials()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_wifi_lan_socket()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::MergeFrom(from._internal_wifi_lan_socket()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_bluetooth_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::MergeFrom(from._internal_bluetooth_credentials()); - } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_wifi_aware_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::MergeFrom(from._internal_wifi_aware_credentials()); - } - if (cached_has_bits & 0x00000010u) { - _internal_mutable_wifi_direct_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::MergeFrom(from._internal_wifi_direct_credentials()); - } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_web_rtc_credentials()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::MergeFrom(from._internal_web_rtc_credentials()); - } - if (cached_has_bits & 0x00000040u) { - medium_ = from.medium_; - } - if (cached_has_bits & 0x00000080u) { - supports_disabling_encryption_ = from.supports_disabling_encryption_; - } - _has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x00000100u) { - _internal_set_supports_client_introduction_ack(from._internal_supports_client_introduction_ack()); - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::IsInitialized() const { - return true; -} - -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, supports_client_introduction_ack_) - + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo::supports_client_introduction_ack_) - - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo, wifi_hotspot_credentials_)>( - reinterpret_cast(&wifi_hotspot_credentials_), - reinterpret_cast(&other->wifi_hotspot_credentials_)); -} - -std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo"; -} - - -// =================================================================== - -class BandwidthUpgradeNegotiationFrame_ClientIntroduction::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_endpoint_id(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_supports_disabling_encryption(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) -} -BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_endpoint_id()) { - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(), - GetArenaForAllocation()); - } - supports_disabling_encryption_ = from.supports_disabling_encryption_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) -} - -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::SharedCtor() { -endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -supports_disabling_encryption_ = false; -} - -BandwidthUpgradeNegotiationFrame_ClientIntroduction::~BandwidthUpgradeNegotiationFrame_ClientIntroduction() { - // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_ClientIntroduction* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_ClientIntroduction* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - endpoint_id_.ClearNonDefaultToEmpty(); - } - supports_disabling_encryption_ = false; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_ClientIntroduction::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string endpoint_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_endpoint_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_disabling_encryption = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_supports_disabling_encryption(&has_bits); - supports_disabling_encryption_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_ClientIntroduction::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_endpoint_id(), target); - } - - // optional bool supports_disabling_encryption = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_supports_disabling_encryption(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - return target; -} - -size_t BandwidthUpgradeNegotiationFrame_ClientIntroduction::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string endpoint_id = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_endpoint_id()); - } - - // optional bool supports_disabling_encryption = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::MergeFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_endpoint_id(from._internal_endpoint_id()); - } - if (cached_has_bits & 0x00000002u) { - supports_disabling_encryption_ = from.supports_disabling_encryption_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::CopyFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::IsInitialized() const { - return true; -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &endpoint_id_, lhs_arena, - &other->endpoint_id_, rhs_arena - ); - swap(supports_disabling_encryption_, other->supports_disabling_encryption_); -} - -std::string BandwidthUpgradeNegotiationFrame_ClientIntroduction::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction"; -} - - -// =================================================================== - -class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::_Internal { - public: -}; - -BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) -} -BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) -} - -inline void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::SharedCtor() { -} - -BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::~BandwidthUpgradeNegotiationFrame_ClientIntroductionAck() { - // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - return target; -} - -size_t BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::MergeFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::CopyFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::IsInitialized() const { - return true; -} - -void BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); -} - -std::string BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck"; -} - - -// =================================================================== - -class BandwidthUpgradeNegotiationFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_event_type(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& upgrade_path_info(const BandwidthUpgradeNegotiationFrame* msg); - static void set_has_upgrade_path_info(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& client_introduction(const BandwidthUpgradeNegotiationFrame* msg); - static void set_has_client_introduction(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& client_introduction_ack(const BandwidthUpgradeNegotiationFrame* msg); - static void set_has_client_introduction_ack(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& -BandwidthUpgradeNegotiationFrame::_Internal::upgrade_path_info(const BandwidthUpgradeNegotiationFrame* msg) { - return *msg->upgrade_path_info_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& -BandwidthUpgradeNegotiationFrame::_Internal::client_introduction(const BandwidthUpgradeNegotiationFrame* msg) { - return *msg->client_introduction_; -} -const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& -BandwidthUpgradeNegotiationFrame::_Internal::client_introduction_ack(const BandwidthUpgradeNegotiationFrame* msg) { - return *msg->client_introduction_ack_; -} -BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame) -} -BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame(const BandwidthUpgradeNegotiationFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_upgrade_path_info()) { - upgrade_path_info_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo(*from.upgrade_path_info_); - } else { - upgrade_path_info_ = nullptr; - } - if (from._internal_has_client_introduction()) { - client_introduction_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction(*from.client_introduction_); - } else { - client_introduction_ = nullptr; - } - if (from._internal_has_client_introduction_ack()) { - client_introduction_ack_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(*from.client_introduction_ack_); - } else { - client_introduction_ack_ = nullptr; - } - event_type_ = from.event_type_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame) -} - -inline void BandwidthUpgradeNegotiationFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&upgrade_path_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&event_type_) - - reinterpret_cast(&upgrade_path_info_)) + sizeof(event_type_)); -} - -BandwidthUpgradeNegotiationFrame::~BandwidthUpgradeNegotiationFrame() { - // @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void BandwidthUpgradeNegotiationFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete upgrade_path_info_; - if (this != internal_default_instance()) delete client_introduction_; - if (this != internal_default_instance()) delete client_introduction_ack_; -} - -void BandwidthUpgradeNegotiationFrame::ArenaDtor(void* object) { - BandwidthUpgradeNegotiationFrame* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame* >(object); - (void)_this; -} -void BandwidthUpgradeNegotiationFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void BandwidthUpgradeNegotiationFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void BandwidthUpgradeNegotiationFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(upgrade_path_info_ != nullptr); - upgrade_path_info_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(client_introduction_ != nullptr); - client_introduction_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(client_introduction_ack_ != nullptr); - client_introduction_ack_->Clear(); - } - } - event_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* BandwidthUpgradeNegotiationFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType_IsValid(val))) { - _internal_set_event_type(static_cast<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_upgrade_path_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_client_introduction(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_client_introduction_ack(), ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* BandwidthUpgradeNegotiationFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_event_type(), target); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::upgrade_path_info(this), target, stream); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::client_introduction(this), target, stream); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::client_introduction_ack(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - return target; -} - -size_t BandwidthUpgradeNegotiationFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *upgrade_path_info_); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *client_introduction_); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *client_introduction_ack_); - } - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event_type()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BandwidthUpgradeNegotiationFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void BandwidthUpgradeNegotiationFrame::MergeFrom(const BandwidthUpgradeNegotiationFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_upgrade_path_info()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MergeFrom(from._internal_upgrade_path_info()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_client_introduction()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction::MergeFrom(from._internal_client_introduction()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_client_introduction_ack()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::MergeFrom(from._internal_client_introduction_ack()); - } - if (cached_has_bits & 0x00000008u) { - event_type_ = from.event_type_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void BandwidthUpgradeNegotiationFrame::CopyFrom(const BandwidthUpgradeNegotiationFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BandwidthUpgradeNegotiationFrame::IsInitialized() const { - return true; -} - -void BandwidthUpgradeNegotiationFrame::InternalSwap(BandwidthUpgradeNegotiationFrame* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, event_type_) - + sizeof(BandwidthUpgradeNegotiationFrame::event_type_) - - PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame, upgrade_path_info_)>( - reinterpret_cast(&upgrade_path_info_), - reinterpret_cast(&other->upgrade_path_info_)); -} - -std::string BandwidthUpgradeNegotiationFrame::GetTypeName() const { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame"; -} - - -// =================================================================== - -class KeepAliveFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_ack(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -KeepAliveFrame::KeepAliveFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.KeepAliveFrame) -} -KeepAliveFrame::KeepAliveFrame(const KeepAliveFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ack_ = from.ack_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.KeepAliveFrame) -} - -inline void KeepAliveFrame::SharedCtor() { -ack_ = false; -} - -KeepAliveFrame::~KeepAliveFrame() { - // @@protoc_insertion_point(destructor:location.nearby.connections.KeepAliveFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void KeepAliveFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void KeepAliveFrame::ArenaDtor(void* object) { - KeepAliveFrame* _this = reinterpret_cast< KeepAliveFrame* >(object); - (void)_this; -} -void KeepAliveFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void KeepAliveFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void KeepAliveFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.KeepAliveFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ack_ = false; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* KeepAliveFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool ack = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_ack(&has_bits); - ack_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* KeepAliveFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.KeepAliveFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional bool ack = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_ack(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.KeepAliveFrame) - return target; -} - -size_t KeepAliveFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.KeepAliveFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional bool ack = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + 1; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void KeepAliveFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void KeepAliveFrame::MergeFrom(const KeepAliveFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.KeepAliveFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_ack()) { - _internal_set_ack(from._internal_ack()); - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void KeepAliveFrame::CopyFrom(const KeepAliveFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.KeepAliveFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KeepAliveFrame::IsInitialized() const { - return true; -} - -void KeepAliveFrame::InternalSwap(KeepAliveFrame* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(ack_, other->ack_); -} - -std::string KeepAliveFrame::GetTypeName() const { - return "location.nearby.connections.KeepAliveFrame"; -} - - -// =================================================================== - -class DisconnectionFrame::_Internal { - public: -}; - -DisconnectionFrame::DisconnectionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.DisconnectionFrame) -} -DisconnectionFrame::DisconnectionFrame(const DisconnectionFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.DisconnectionFrame) -} - -inline void DisconnectionFrame::SharedCtor() { -} - -DisconnectionFrame::~DisconnectionFrame() { - // @@protoc_insertion_point(destructor:location.nearby.connections.DisconnectionFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void DisconnectionFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void DisconnectionFrame::ArenaDtor(void* object) { - DisconnectionFrame* _this = reinterpret_cast< DisconnectionFrame* >(object); - (void)_this; -} -void DisconnectionFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void DisconnectionFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void DisconnectionFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.DisconnectionFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -const char* DisconnectionFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* DisconnectionFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.DisconnectionFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.DisconnectionFrame) - return target; -} - -size_t DisconnectionFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.DisconnectionFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DisconnectionFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void DisconnectionFrame::MergeFrom(const DisconnectionFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.DisconnectionFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void DisconnectionFrame::CopyFrom(const DisconnectionFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.DisconnectionFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DisconnectionFrame::IsInitialized() const { - return true; -} - -void DisconnectionFrame::InternalSwap(DisconnectionFrame* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); -} - -std::string DisconnectionFrame::GetTypeName() const { - return "location.nearby.connections.DisconnectionFrame"; -} - - -// =================================================================== - -class PairedKeyEncryptionFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_signed_data(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -PairedKeyEncryptionFrame::PairedKeyEncryptionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PairedKeyEncryptionFrame) -} -PairedKeyEncryptionFrame::PairedKeyEncryptionFrame(const PairedKeyEncryptionFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - signed_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - signed_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_signed_data()) { - signed_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_signed_data(), - GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PairedKeyEncryptionFrame) -} - -inline void PairedKeyEncryptionFrame::SharedCtor() { -signed_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - signed_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -PairedKeyEncryptionFrame::~PairedKeyEncryptionFrame() { - // @@protoc_insertion_point(destructor:location.nearby.connections.PairedKeyEncryptionFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void PairedKeyEncryptionFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - signed_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PairedKeyEncryptionFrame::ArenaDtor(void* object) { - PairedKeyEncryptionFrame* _this = reinterpret_cast< PairedKeyEncryptionFrame* >(object); - (void)_this; -} -void PairedKeyEncryptionFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PairedKeyEncryptionFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PairedKeyEncryptionFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.PairedKeyEncryptionFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - signed_data_.ClearNonDefaultToEmpty(); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* PairedKeyEncryptionFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes signed_data = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_signed_data(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PairedKeyEncryptionFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PairedKeyEncryptionFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional bytes signed_data = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_signed_data(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.PairedKeyEncryptionFrame) - return target; -} - -size_t PairedKeyEncryptionFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PairedKeyEncryptionFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional bytes signed_data = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_signed_data()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PairedKeyEncryptionFrame::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void PairedKeyEncryptionFrame::MergeFrom(const PairedKeyEncryptionFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PairedKeyEncryptionFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_signed_data()) { - _internal_set_signed_data(from._internal_signed_data()); - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void PairedKeyEncryptionFrame::CopyFrom(const PairedKeyEncryptionFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PairedKeyEncryptionFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PairedKeyEncryptionFrame::IsInitialized() const { - return true; -} - -void PairedKeyEncryptionFrame::InternalSwap(PairedKeyEncryptionFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &signed_data_, lhs_arena, - &other->signed_data_, rhs_arena - ); -} - -std::string PairedKeyEncryptionFrame::GetTypeName() const { - return "location.nearby.connections.PairedKeyEncryptionFrame"; -} - - -// =================================================================== - -class MediumMetadata::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_supports_5_ghz(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_bssid(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_ip_address(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_supports_6_ghz(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_mobile_radio(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_ap_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static const ::location::nearby::connections::AvailableChannels& available_channels(const MediumMetadata* msg); - static void set_has_available_channels(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::location::nearby::connections::WifiDirectCliUsableChannels& wifi_direct_cli_usable_channels(const MediumMetadata* msg); - static void set_has_wifi_direct_cli_usable_channels(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static const ::location::nearby::connections::WifiLanUsableChannels& wifi_lan_usable_channels(const MediumMetadata* msg); - static void set_has_wifi_lan_usable_channels(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::location::nearby::connections::WifiAwareUsableChannels& wifi_aware_usable_channels(const MediumMetadata* msg); - static void set_has_wifi_aware_usable_channels(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static const ::location::nearby::connections::WifiHotspotStaUsableChannels& wifi_hotspot_sta_usable_channels(const MediumMetadata* msg); - static void set_has_wifi_hotspot_sta_usable_channels(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } -}; - -const ::location::nearby::connections::AvailableChannels& -MediumMetadata::_Internal::available_channels(const MediumMetadata* msg) { - return *msg->available_channels_; -} -const ::location::nearby::connections::WifiDirectCliUsableChannels& -MediumMetadata::_Internal::wifi_direct_cli_usable_channels(const MediumMetadata* msg) { - return *msg->wifi_direct_cli_usable_channels_; -} -const ::location::nearby::connections::WifiLanUsableChannels& -MediumMetadata::_Internal::wifi_lan_usable_channels(const MediumMetadata* msg) { - return *msg->wifi_lan_usable_channels_; -} -const ::location::nearby::connections::WifiAwareUsableChannels& -MediumMetadata::_Internal::wifi_aware_usable_channels(const MediumMetadata* msg) { - return *msg->wifi_aware_usable_channels_; -} -const ::location::nearby::connections::WifiHotspotStaUsableChannels& -MediumMetadata::_Internal::wifi_hotspot_sta_usable_channels(const MediumMetadata* msg) { - return *msg->wifi_hotspot_sta_usable_channels_; -} -MediumMetadata::MediumMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.MediumMetadata) -} -MediumMetadata::MediumMetadata(const MediumMetadata& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - bssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - bssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_bssid()) { - bssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_bssid(), - GetArenaForAllocation()); - } - ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ip_address()) { - ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ip_address(), - GetArenaForAllocation()); - } - if (from._internal_has_available_channels()) { - available_channels_ = new ::location::nearby::connections::AvailableChannels(*from.available_channels_); - } else { - available_channels_ = nullptr; - } - if (from._internal_has_wifi_direct_cli_usable_channels()) { - wifi_direct_cli_usable_channels_ = new ::location::nearby::connections::WifiDirectCliUsableChannels(*from.wifi_direct_cli_usable_channels_); - } else { - wifi_direct_cli_usable_channels_ = nullptr; - } - if (from._internal_has_wifi_lan_usable_channels()) { - wifi_lan_usable_channels_ = new ::location::nearby::connections::WifiLanUsableChannels(*from.wifi_lan_usable_channels_); - } else { - wifi_lan_usable_channels_ = nullptr; - } - if (from._internal_has_wifi_aware_usable_channels()) { - wifi_aware_usable_channels_ = new ::location::nearby::connections::WifiAwareUsableChannels(*from.wifi_aware_usable_channels_); - } else { - wifi_aware_usable_channels_ = nullptr; - } - if (from._internal_has_wifi_hotspot_sta_usable_channels()) { - wifi_hotspot_sta_usable_channels_ = new ::location::nearby::connections::WifiHotspotStaUsableChannels(*from.wifi_hotspot_sta_usable_channels_); - } else { - wifi_hotspot_sta_usable_channels_ = nullptr; - } - ::memcpy(&supports_5_ghz_, &from.supports_5_ghz_, - static_cast(reinterpret_cast(&ap_frequency_) - - reinterpret_cast(&supports_5_ghz_)) + sizeof(ap_frequency_)); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.MediumMetadata) -} - -inline void MediumMetadata::SharedCtor() { -bssid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - bssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -ip_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&available_channels_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&mobile_radio_) - - reinterpret_cast(&available_channels_)) + sizeof(mobile_radio_)); -ap_frequency_ = -1; -} - -MediumMetadata::~MediumMetadata() { - // @@protoc_insertion_point(destructor:location.nearby.connections.MediumMetadata) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void MediumMetadata::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - bssid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ip_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete available_channels_; - if (this != internal_default_instance()) delete wifi_direct_cli_usable_channels_; - if (this != internal_default_instance()) delete wifi_lan_usable_channels_; - if (this != internal_default_instance()) delete wifi_aware_usable_channels_; - if (this != internal_default_instance()) delete wifi_hotspot_sta_usable_channels_; -} - -void MediumMetadata::ArenaDtor(void* object) { - MediumMetadata* _this = reinterpret_cast< MediumMetadata* >(object); - (void)_this; -} -void MediumMetadata::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void MediumMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void MediumMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.MediumMetadata) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - bssid_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - ip_address_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(available_channels_ != nullptr); - available_channels_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(wifi_direct_cli_usable_channels_ != nullptr); - wifi_direct_cli_usable_channels_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(wifi_lan_usable_channels_ != nullptr); - wifi_lan_usable_channels_->Clear(); - } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(wifi_aware_usable_channels_ != nullptr); - wifi_aware_usable_channels_->Clear(); - } - if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(wifi_hotspot_sta_usable_channels_ != nullptr); - wifi_hotspot_sta_usable_channels_->Clear(); - } - } - supports_5_ghz_ = false; - ::memset(&supports_6_ghz_, 0, static_cast( - reinterpret_cast(&mobile_radio_) - - reinterpret_cast(&supports_6_ghz_)) + sizeof(mobile_radio_)); - ap_frequency_ = -1; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* MediumMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bool supports_5_ghz = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_supports_5_ghz(&has_bits); - supports_5_ghz_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string bssid = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_bssid(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes ip_address = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_ip_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool supports_6_ghz = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_supports_6_ghz(&has_bits); - supports_6_ghz_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool mobile_radio = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_mobile_radio(&has_bits); - mobile_radio_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 ap_frequency = 6 [default = -1]; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_ap_frequency(&has_bits); - ap_frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.AvailableChannels available_channels = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_available_channels(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_direct_cli_usable_channels(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_lan_usable_channels(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_aware_usable_channels(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_wifi_hotspot_sta_usable_channels(), ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* MediumMetadata::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.MediumMetadata) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional bool supports_5_ghz = 1; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_supports_5_ghz(), target); - } - - // optional string bssid = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_bssid(), target); - } - - // optional bytes ip_address = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_ip_address(), target); - } - - // optional bool supports_6_ghz = 4; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_supports_6_ghz(), target); - } - - // optional bool mobile_radio = 5; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_mobile_radio(), target); - } - - // optional int32 ap_frequency = 6 [default = -1]; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_ap_frequency(), target); - } - - // optional .location.nearby.connections.AvailableChannels available_channels = 7; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::available_channels(this), target, stream); - } - - // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 8, _Internal::wifi_direct_cli_usable_channels(this), target, stream); - } - - // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 9, _Internal::wifi_lan_usable_channels(this), target, stream); - } - - // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::wifi_aware_usable_channels(this), target, stream); - } - - // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 11, _Internal::wifi_hotspot_sta_usable_channels(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.MediumMetadata) - return target; -} - -size_t MediumMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.MediumMetadata) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional string bssid = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_bssid()); - } - - // optional bytes ip_address = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ip_address()); - } - - // optional .location.nearby.connections.AvailableChannels available_channels = 7; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *available_channels_); - } - - // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_direct_cli_usable_channels_); - } - - // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_lan_usable_channels_); - } - - // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_aware_usable_channels_); - } - - // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *wifi_hotspot_sta_usable_channels_); - } - - // optional bool supports_5_ghz = 1; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 1; - } - - } - if (cached_has_bits & 0x00000700u) { - // optional bool supports_6_ghz = 4; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + 1; - } - - // optional bool mobile_radio = 5; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 1; - } - - // optional int32 ap_frequency = 6 [default = -1]; - if (cached_has_bits & 0x00000400u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_ap_frequency()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MediumMetadata::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void MediumMetadata::MergeFrom(const MediumMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.MediumMetadata) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_bssid(from._internal_bssid()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_ip_address(from._internal_ip_address()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_available_channels()->::location::nearby::connections::AvailableChannels::MergeFrom(from._internal_available_channels()); - } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_wifi_direct_cli_usable_channels()->::location::nearby::connections::WifiDirectCliUsableChannels::MergeFrom(from._internal_wifi_direct_cli_usable_channels()); - } - if (cached_has_bits & 0x00000010u) { - _internal_mutable_wifi_lan_usable_channels()->::location::nearby::connections::WifiLanUsableChannels::MergeFrom(from._internal_wifi_lan_usable_channels()); - } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_wifi_aware_usable_channels()->::location::nearby::connections::WifiAwareUsableChannels::MergeFrom(from._internal_wifi_aware_usable_channels()); - } - if (cached_has_bits & 0x00000040u) { - _internal_mutable_wifi_hotspot_sta_usable_channels()->::location::nearby::connections::WifiHotspotStaUsableChannels::MergeFrom(from._internal_wifi_hotspot_sta_usable_channels()); - } - if (cached_has_bits & 0x00000080u) { - supports_5_ghz_ = from.supports_5_ghz_; - } - _has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x00000700u) { - if (cached_has_bits & 0x00000100u) { - supports_6_ghz_ = from.supports_6_ghz_; - } - if (cached_has_bits & 0x00000200u) { - mobile_radio_ = from.mobile_radio_; - } - if (cached_has_bits & 0x00000400u) { - ap_frequency_ = from.ap_frequency_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void MediumMetadata::CopyFrom(const MediumMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.MediumMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediumMetadata::IsInitialized() const { - return true; -} - -void MediumMetadata::InternalSwap(MediumMetadata* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &bssid_, lhs_arena, - &other->bssid_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ip_address_, lhs_arena, - &other->ip_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(MediumMetadata, mobile_radio_) - + sizeof(MediumMetadata::mobile_radio_) - - PROTOBUF_FIELD_OFFSET(MediumMetadata, available_channels_)>( - reinterpret_cast(&available_channels_), - reinterpret_cast(&other->available_channels_)); - swap(ap_frequency_, other->ap_frequency_); -} - -std::string MediumMetadata::GetTypeName() const { - return "location.nearby.connections.MediumMetadata"; -} - - -// =================================================================== - -class AvailableChannels::_Internal { - public: -}; - -AvailableChannels::AvailableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - channels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.AvailableChannels) -} -AvailableChannels::AvailableChannels(const AvailableChannels& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - channels_(from.channels_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.AvailableChannels) -} - -inline void AvailableChannels::SharedCtor() { -} - -AvailableChannels::~AvailableChannels() { - // @@protoc_insertion_point(destructor:location.nearby.connections.AvailableChannels) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void AvailableChannels::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void AvailableChannels::ArenaDtor(void* object) { - AvailableChannels* _this = reinterpret_cast< AvailableChannels* >(object); - (void)_this; -} -void AvailableChannels::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void AvailableChannels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void AvailableChannels::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.AvailableChannels) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - channels_.Clear(); - _internal_metadata_.Clear(); -} - -const char* AvailableChannels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 channels = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* AvailableChannels::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.AvailableChannels) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // repeated int32 channels = 1 [packed = true]; - { - int byte_size = _channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_channels(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.AvailableChannels) - return target; -} - -size_t AvailableChannels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AvailableChannels) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int32 channels = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AvailableChannels::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void AvailableChannels::MergeFrom(const AvailableChannels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AvailableChannels) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - channels_.MergeFrom(from.channels_); - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void AvailableChannels::CopyFrom(const AvailableChannels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AvailableChannels) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AvailableChannels::IsInitialized() const { - return true; -} - -void AvailableChannels::InternalSwap(AvailableChannels* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - channels_.InternalSwap(&other->channels_); -} - -std::string AvailableChannels::GetTypeName() const { - return "location.nearby.connections.AvailableChannels"; -} - - -// =================================================================== - -class WifiDirectCliUsableChannels::_Internal { - public: -}; - -WifiDirectCliUsableChannels::WifiDirectCliUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - channels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.WifiDirectCliUsableChannels) -} -WifiDirectCliUsableChannels::WifiDirectCliUsableChannels(const WifiDirectCliUsableChannels& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - channels_(from.channels_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.WifiDirectCliUsableChannels) -} - -inline void WifiDirectCliUsableChannels::SharedCtor() { -} - -WifiDirectCliUsableChannels::~WifiDirectCliUsableChannels() { - // @@protoc_insertion_point(destructor:location.nearby.connections.WifiDirectCliUsableChannels) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void WifiDirectCliUsableChannels::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void WifiDirectCliUsableChannels::ArenaDtor(void* object) { - WifiDirectCliUsableChannels* _this = reinterpret_cast< WifiDirectCliUsableChannels* >(object); - (void)_this; -} -void WifiDirectCliUsableChannels::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WifiDirectCliUsableChannels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void WifiDirectCliUsableChannels::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.WifiDirectCliUsableChannels) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - channels_.Clear(); - _internal_metadata_.Clear(); -} - -const char* WifiDirectCliUsableChannels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 channels = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* WifiDirectCliUsableChannels::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.WifiDirectCliUsableChannels) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // repeated int32 channels = 1 [packed = true]; - { - int byte_size = _channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_channels(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.WifiDirectCliUsableChannels) - return target; -} - -size_t WifiDirectCliUsableChannels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiDirectCliUsableChannels) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int32 channels = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WifiDirectCliUsableChannels::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void WifiDirectCliUsableChannels::MergeFrom(const WifiDirectCliUsableChannels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiDirectCliUsableChannels) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - channels_.MergeFrom(from.channels_); - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void WifiDirectCliUsableChannels::CopyFrom(const WifiDirectCliUsableChannels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiDirectCliUsableChannels) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WifiDirectCliUsableChannels::IsInitialized() const { - return true; -} - -void WifiDirectCliUsableChannels::InternalSwap(WifiDirectCliUsableChannels* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - channels_.InternalSwap(&other->channels_); -} - -std::string WifiDirectCliUsableChannels::GetTypeName() const { - return "location.nearby.connections.WifiDirectCliUsableChannels"; -} - - -// =================================================================== - -class WifiLanUsableChannels::_Internal { - public: -}; - -WifiLanUsableChannels::WifiLanUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - channels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.WifiLanUsableChannels) -} -WifiLanUsableChannels::WifiLanUsableChannels(const WifiLanUsableChannels& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - channels_(from.channels_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.WifiLanUsableChannels) -} - -inline void WifiLanUsableChannels::SharedCtor() { -} - -WifiLanUsableChannels::~WifiLanUsableChannels() { - // @@protoc_insertion_point(destructor:location.nearby.connections.WifiLanUsableChannels) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void WifiLanUsableChannels::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void WifiLanUsableChannels::ArenaDtor(void* object) { - WifiLanUsableChannels* _this = reinterpret_cast< WifiLanUsableChannels* >(object); - (void)_this; -} -void WifiLanUsableChannels::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WifiLanUsableChannels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void WifiLanUsableChannels::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.WifiLanUsableChannels) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - channels_.Clear(); - _internal_metadata_.Clear(); -} - -const char* WifiLanUsableChannels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 channels = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* WifiLanUsableChannels::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.WifiLanUsableChannels) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // repeated int32 channels = 1 [packed = true]; - { - int byte_size = _channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_channels(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.WifiLanUsableChannels) - return target; -} - -size_t WifiLanUsableChannels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiLanUsableChannels) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int32 channels = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WifiLanUsableChannels::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void WifiLanUsableChannels::MergeFrom(const WifiLanUsableChannels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiLanUsableChannels) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - channels_.MergeFrom(from.channels_); - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void WifiLanUsableChannels::CopyFrom(const WifiLanUsableChannels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiLanUsableChannels) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WifiLanUsableChannels::IsInitialized() const { - return true; -} - -void WifiLanUsableChannels::InternalSwap(WifiLanUsableChannels* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - channels_.InternalSwap(&other->channels_); -} - -std::string WifiLanUsableChannels::GetTypeName() const { - return "location.nearby.connections.WifiLanUsableChannels"; -} - - -// =================================================================== - -class WifiAwareUsableChannels::_Internal { - public: -}; - -WifiAwareUsableChannels::WifiAwareUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - channels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.WifiAwareUsableChannels) -} -WifiAwareUsableChannels::WifiAwareUsableChannels(const WifiAwareUsableChannels& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - channels_(from.channels_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.WifiAwareUsableChannels) -} - -inline void WifiAwareUsableChannels::SharedCtor() { -} - -WifiAwareUsableChannels::~WifiAwareUsableChannels() { - // @@protoc_insertion_point(destructor:location.nearby.connections.WifiAwareUsableChannels) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void WifiAwareUsableChannels::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void WifiAwareUsableChannels::ArenaDtor(void* object) { - WifiAwareUsableChannels* _this = reinterpret_cast< WifiAwareUsableChannels* >(object); - (void)_this; -} -void WifiAwareUsableChannels::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WifiAwareUsableChannels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void WifiAwareUsableChannels::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.WifiAwareUsableChannels) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - channels_.Clear(); - _internal_metadata_.Clear(); -} - -const char* WifiAwareUsableChannels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 channels = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* WifiAwareUsableChannels::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.WifiAwareUsableChannels) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // repeated int32 channels = 1 [packed = true]; - { - int byte_size = _channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_channels(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.WifiAwareUsableChannels) - return target; -} - -size_t WifiAwareUsableChannels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiAwareUsableChannels) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int32 channels = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WifiAwareUsableChannels::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void WifiAwareUsableChannels::MergeFrom(const WifiAwareUsableChannels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiAwareUsableChannels) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - channels_.MergeFrom(from.channels_); - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void WifiAwareUsableChannels::CopyFrom(const WifiAwareUsableChannels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiAwareUsableChannels) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WifiAwareUsableChannels::IsInitialized() const { - return true; -} - -void WifiAwareUsableChannels::InternalSwap(WifiAwareUsableChannels* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - channels_.InternalSwap(&other->channels_); -} - -std::string WifiAwareUsableChannels::GetTypeName() const { - return "location.nearby.connections.WifiAwareUsableChannels"; -} - - -// =================================================================== - -class WifiHotspotStaUsableChannels::_Internal { - public: -}; - -WifiHotspotStaUsableChannels::WifiHotspotStaUsableChannels(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), - channels_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.WifiHotspotStaUsableChannels) -} -WifiHotspotStaUsableChannels::WifiHotspotStaUsableChannels(const WifiHotspotStaUsableChannels& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - channels_(from.channels_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.WifiHotspotStaUsableChannels) -} - -inline void WifiHotspotStaUsableChannels::SharedCtor() { -} - -WifiHotspotStaUsableChannels::~WifiHotspotStaUsableChannels() { - // @@protoc_insertion_point(destructor:location.nearby.connections.WifiHotspotStaUsableChannels) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void WifiHotspotStaUsableChannels::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void WifiHotspotStaUsableChannels::ArenaDtor(void* object) { - WifiHotspotStaUsableChannels* _this = reinterpret_cast< WifiHotspotStaUsableChannels* >(object); - (void)_this; -} -void WifiHotspotStaUsableChannels::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void WifiHotspotStaUsableChannels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void WifiHotspotStaUsableChannels::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.WifiHotspotStaUsableChannels) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - channels_.Clear(); - _internal_metadata_.Clear(); -} - -const char* WifiHotspotStaUsableChannels::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 channels = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* WifiHotspotStaUsableChannels::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.WifiHotspotStaUsableChannels) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // repeated int32 channels = 1 [packed = true]; - { - int byte_size = _channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_channels(), byte_size, target); - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.WifiHotspotStaUsableChannels) - return target; -} - -size_t WifiHotspotStaUsableChannels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.WifiHotspotStaUsableChannels) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int32 channels = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WifiHotspotStaUsableChannels::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void WifiHotspotStaUsableChannels::MergeFrom(const WifiHotspotStaUsableChannels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.WifiHotspotStaUsableChannels) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - channels_.MergeFrom(from.channels_); - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void WifiHotspotStaUsableChannels::CopyFrom(const WifiHotspotStaUsableChannels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.WifiHotspotStaUsableChannels) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WifiHotspotStaUsableChannels::IsInitialized() const { - return true; -} - -void WifiHotspotStaUsableChannels::InternalSwap(WifiHotspotStaUsableChannels* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - channels_.InternalSwap(&other->channels_); -} - -std::string WifiHotspotStaUsableChannels::GetTypeName() const { - return "location.nearby.connections.WifiHotspotStaUsableChannels"; -} - - -// =================================================================== - -class LocationHint::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_location(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_format(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -LocationHint::LocationHint(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.LocationHint) -} -LocationHint::LocationHint(const LocationHint& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - location_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - location_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_location()) { - location_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_location(), - GetArenaForAllocation()); - } - format_ = from.format_; - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.LocationHint) -} - -inline void LocationHint::SharedCtor() { -location_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - location_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -format_ = 0; -} - -LocationHint::~LocationHint() { - // @@protoc_insertion_point(destructor:location.nearby.connections.LocationHint) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void LocationHint::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - location_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void LocationHint::ArenaDtor(void* object) { - LocationHint* _this = reinterpret_cast< LocationHint* >(object); - (void)_this; -} -void LocationHint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void LocationHint::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void LocationHint::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.LocationHint) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - location_.ClearNonDefaultToEmpty(); - } - format_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* LocationHint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string location = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_location(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .location.nearby.connections.LocationStandard.Format format = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::LocationStandard_Format_IsValid(val))) { - _internal_set_format(static_cast<::location::nearby::connections::LocationStandard_Format>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* LocationHint::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.LocationHint) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string location = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_location(), target); - } - - // optional .location.nearby.connections.LocationStandard.Format format = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_format(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.LocationHint) - return target; -} - -size_t LocationHint::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.LocationHint) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string location = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_location()); - } - - // optional .location.nearby.connections.LocationStandard.Format format = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_format()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LocationHint::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void LocationHint::MergeFrom(const LocationHint& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.LocationHint) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_location(from._internal_location()); - } - if (cached_has_bits & 0x00000002u) { - format_ = from.format_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void LocationHint::CopyFrom(const LocationHint& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.LocationHint) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LocationHint::IsInitialized() const { - return true; -} - -void LocationHint::InternalSwap(LocationHint* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &location_, lhs_arena, - &other->location_, rhs_arena - ); - swap(format_, other->format_); -} - -std::string LocationHint::GetTypeName() const { - return "location.nearby.connections.LocationHint"; -} - - -// =================================================================== - -class LocationStandard::_Internal { - public: -}; - -LocationStandard::LocationStandard(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:location.nearby.connections.LocationStandard) -} -LocationStandard::LocationStandard(const LocationStandard& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:location.nearby.connections.LocationStandard) -} - -inline void LocationStandard::SharedCtor() { -} - -LocationStandard::~LocationStandard() { - // @@protoc_insertion_point(destructor:location.nearby.connections.LocationStandard) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void LocationStandard::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void LocationStandard::ArenaDtor(void* object) { - LocationStandard* _this = reinterpret_cast< LocationStandard* >(object); - (void)_this; -} -void LocationStandard::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void LocationStandard::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void LocationStandard::Clear() { -// @@protoc_insertion_point(message_clear_start:location.nearby.connections.LocationStandard) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -const char* LocationStandard::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* LocationStandard::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.LocationStandard) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.LocationStandard) - return target; -} - -size_t LocationStandard::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.LocationStandard) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LocationStandard::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void LocationStandard::MergeFrom(const LocationStandard& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.LocationStandard) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void LocationStandard::CopyFrom(const LocationStandard& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.LocationStandard) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LocationStandard::IsInitialized() const { - return true; -} - -void LocationStandard::InternalSwap(LocationStandard* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); -} - -std::string LocationStandard::GetTypeName() const { - return "location.nearby.connections.LocationStandard"; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace connections -} // namespace nearby -} // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::location::nearby::connections::OfflineFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::OfflineFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::OfflineFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::V1Frame* Arena::CreateMaybeMessage< ::location::nearby::connections::V1Frame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::V1Frame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::ConnectionRequestFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::ConnectionRequestFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::ConnectionRequestFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::ConnectionResponseFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::ConnectionResponseFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::ConnectionResponseFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* Arena::CreateMaybeMessage< ::location::nearby::connections::PayloadTransferFrame_PayloadHeader >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PayloadTransferFrame_PayloadHeader >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* Arena::CreateMaybeMessage< ::location::nearby::connections::PayloadTransferFrame_PayloadChunk >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PayloadTransferFrame_PayloadChunk >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PayloadTransferFrame_ControlMessage* Arena::CreateMaybeMessage< ::location::nearby::connections::PayloadTransferFrame_ControlMessage >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PayloadTransferFrame_ControlMessage >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PayloadTransferFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::PayloadTransferFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PayloadTransferFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::KeepAliveFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::KeepAliveFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::KeepAliveFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::DisconnectionFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::DisconnectionFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::DisconnectionFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::PairedKeyEncryptionFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::PairedKeyEncryptionFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::PairedKeyEncryptionFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::MediumMetadata* Arena::CreateMaybeMessage< ::location::nearby::connections::MediumMetadata >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::MediumMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::AvailableChannels* Arena::CreateMaybeMessage< ::location::nearby::connections::AvailableChannels >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::AvailableChannels >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::WifiDirectCliUsableChannels* Arena::CreateMaybeMessage< ::location::nearby::connections::WifiDirectCliUsableChannels >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::WifiDirectCliUsableChannels >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::WifiLanUsableChannels* Arena::CreateMaybeMessage< ::location::nearby::connections::WifiLanUsableChannels >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::WifiLanUsableChannels >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::WifiAwareUsableChannels* Arena::CreateMaybeMessage< ::location::nearby::connections::WifiAwareUsableChannels >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::WifiAwareUsableChannels >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::WifiHotspotStaUsableChannels* Arena::CreateMaybeMessage< ::location::nearby::connections::WifiHotspotStaUsableChannels >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::WifiHotspotStaUsableChannels >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::LocationHint* Arena::CreateMaybeMessage< ::location::nearby::connections::LocationHint >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::LocationHint >(arena); -} -template<> PROTOBUF_NOINLINE ::location::nearby::connections::LocationStandard* Arena::CreateMaybeMessage< ::location::nearby::connections::LocationStandard >(Arena* arena) { - return Arena::CreateMessageInternal< ::location::nearby::connections::LocationStandard >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/compiled_proto/connections/cpp/implementation/proto/offline_wire_formats.pb.h b/compiled_proto/connections/cpp/implementation/proto/offline_wire_formats.pb.h deleted file mode 100644 index d9de2a8d..00000000 --- a/compiled_proto/connections/cpp/implementation/proto/offline_wire_formats.pb.h +++ /dev/null @@ -1,11883 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: connections/implementation/proto/offline_wire_formats.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3019000 -#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 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[29] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; -}; -namespace location { -namespace nearby { -namespace connections { -class AvailableChannels; -struct AvailableChannelsDefaultTypeInternal; -extern AvailableChannelsDefaultTypeInternal _AvailableChannels_default_instance_; -class BandwidthUpgradeNegotiationFrame; -struct BandwidthUpgradeNegotiationFrameDefaultTypeInternal; -extern BandwidthUpgradeNegotiationFrameDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_default_instance_; -class BandwidthUpgradeNegotiationFrame_ClientIntroduction; -struct BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal; -extern BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_; -class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck; -struct BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal; -extern BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_; -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo; -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal; -extern BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_; -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials; -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal; -extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_; -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials; -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal; -extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_; -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials; -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal; -extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_; -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials; -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal; -extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_; -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials; -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal; -extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_; -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket; -struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal; -extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_; -class ConnectionRequestFrame; -struct ConnectionRequestFrameDefaultTypeInternal; -extern ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_; -class ConnectionResponseFrame; -struct ConnectionResponseFrameDefaultTypeInternal; -extern ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_; -class DisconnectionFrame; -struct DisconnectionFrameDefaultTypeInternal; -extern DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_; -class KeepAliveFrame; -struct KeepAliveFrameDefaultTypeInternal; -extern KeepAliveFrameDefaultTypeInternal _KeepAliveFrame_default_instance_; -class LocationHint; -struct LocationHintDefaultTypeInternal; -extern LocationHintDefaultTypeInternal _LocationHint_default_instance_; -class LocationStandard; -struct LocationStandardDefaultTypeInternal; -extern LocationStandardDefaultTypeInternal _LocationStandard_default_instance_; -class MediumMetadata; -struct MediumMetadataDefaultTypeInternal; -extern MediumMetadataDefaultTypeInternal _MediumMetadata_default_instance_; -class OfflineFrame; -struct OfflineFrameDefaultTypeInternal; -extern OfflineFrameDefaultTypeInternal _OfflineFrame_default_instance_; -class PairedKeyEncryptionFrame; -struct PairedKeyEncryptionFrameDefaultTypeInternal; -extern PairedKeyEncryptionFrameDefaultTypeInternal _PairedKeyEncryptionFrame_default_instance_; -class PayloadTransferFrame; -struct PayloadTransferFrameDefaultTypeInternal; -extern PayloadTransferFrameDefaultTypeInternal _PayloadTransferFrame_default_instance_; -class PayloadTransferFrame_ControlMessage; -struct PayloadTransferFrame_ControlMessageDefaultTypeInternal; -extern PayloadTransferFrame_ControlMessageDefaultTypeInternal _PayloadTransferFrame_ControlMessage_default_instance_; -class PayloadTransferFrame_PayloadChunk; -struct PayloadTransferFrame_PayloadChunkDefaultTypeInternal; -extern PayloadTransferFrame_PayloadChunkDefaultTypeInternal _PayloadTransferFrame_PayloadChunk_default_instance_; -class PayloadTransferFrame_PayloadHeader; -struct PayloadTransferFrame_PayloadHeaderDefaultTypeInternal; -extern PayloadTransferFrame_PayloadHeaderDefaultTypeInternal _PayloadTransferFrame_PayloadHeader_default_instance_; -class V1Frame; -struct V1FrameDefaultTypeInternal; -extern V1FrameDefaultTypeInternal _V1Frame_default_instance_; -class WifiAwareUsableChannels; -struct WifiAwareUsableChannelsDefaultTypeInternal; -extern WifiAwareUsableChannelsDefaultTypeInternal _WifiAwareUsableChannels_default_instance_; -class WifiDirectCliUsableChannels; -struct WifiDirectCliUsableChannelsDefaultTypeInternal; -extern WifiDirectCliUsableChannelsDefaultTypeInternal _WifiDirectCliUsableChannels_default_instance_; -class WifiHotspotStaUsableChannels; -struct WifiHotspotStaUsableChannelsDefaultTypeInternal; -extern WifiHotspotStaUsableChannelsDefaultTypeInternal _WifiHotspotStaUsableChannels_default_instance_; -class WifiLanUsableChannels; -struct WifiLanUsableChannelsDefaultTypeInternal; -extern WifiLanUsableChannelsDefaultTypeInternal _WifiLanUsableChannels_default_instance_; -} // namespace connections -} // namespace nearby -} // namespace location -PROTOBUF_NAMESPACE_OPEN -template<> ::location::nearby::connections::AvailableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::AvailableChannels>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials>(Arena*); -template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket>(Arena*); -template<> ::location::nearby::connections::ConnectionRequestFrame* Arena::CreateMaybeMessage<::location::nearby::connections::ConnectionRequestFrame>(Arena*); -template<> ::location::nearby::connections::ConnectionResponseFrame* Arena::CreateMaybeMessage<::location::nearby::connections::ConnectionResponseFrame>(Arena*); -template<> ::location::nearby::connections::DisconnectionFrame* Arena::CreateMaybeMessage<::location::nearby::connections::DisconnectionFrame>(Arena*); -template<> ::location::nearby::connections::KeepAliveFrame* Arena::CreateMaybeMessage<::location::nearby::connections::KeepAliveFrame>(Arena*); -template<> ::location::nearby::connections::LocationHint* Arena::CreateMaybeMessage<::location::nearby::connections::LocationHint>(Arena*); -template<> ::location::nearby::connections::LocationStandard* Arena::CreateMaybeMessage<::location::nearby::connections::LocationStandard>(Arena*); -template<> ::location::nearby::connections::MediumMetadata* Arena::CreateMaybeMessage<::location::nearby::connections::MediumMetadata>(Arena*); -template<> ::location::nearby::connections::OfflineFrame* Arena::CreateMaybeMessage<::location::nearby::connections::OfflineFrame>(Arena*); -template<> ::location::nearby::connections::PairedKeyEncryptionFrame* Arena::CreateMaybeMessage<::location::nearby::connections::PairedKeyEncryptionFrame>(Arena*); -template<> ::location::nearby::connections::PayloadTransferFrame* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame>(Arena*); -template<> ::location::nearby::connections::PayloadTransferFrame_ControlMessage* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_ControlMessage>(Arena*); -template<> ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>(Arena*); -template<> ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>(Arena*); -template<> ::location::nearby::connections::V1Frame* Arena::CreateMaybeMessage<::location::nearby::connections::V1Frame>(Arena*); -template<> ::location::nearby::connections::WifiAwareUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiAwareUsableChannels>(Arena*); -template<> ::location::nearby::connections::WifiDirectCliUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiDirectCliUsableChannels>(Arena*); -template<> ::location::nearby::connections::WifiHotspotStaUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiHotspotStaUsableChannels>(Arena*); -template<> ::location::nearby::connections::WifiLanUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiLanUsableChannels>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace location { -namespace nearby { -namespace connections { - -enum OfflineFrame_Version : int { - OfflineFrame_Version_UNKNOWN_VERSION = 0, - OfflineFrame_Version_V1 = 1 -}; -bool OfflineFrame_Version_IsValid(int value); -constexpr OfflineFrame_Version OfflineFrame_Version_Version_MIN = OfflineFrame_Version_UNKNOWN_VERSION; -constexpr OfflineFrame_Version OfflineFrame_Version_Version_MAX = OfflineFrame_Version_V1; -constexpr int OfflineFrame_Version_Version_ARRAYSIZE = OfflineFrame_Version_Version_MAX + 1; - -const std::string& OfflineFrame_Version_Name(OfflineFrame_Version value); -template -inline const std::string& OfflineFrame_Version_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OfflineFrame_Version_Name."); - return OfflineFrame_Version_Name(static_cast(enum_t_value)); -} -bool OfflineFrame_Version_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OfflineFrame_Version* value); -enum V1Frame_FrameType : int { - V1Frame_FrameType_UNKNOWN_FRAME_TYPE = 0, - V1Frame_FrameType_CONNECTION_REQUEST = 1, - V1Frame_FrameType_CONNECTION_RESPONSE = 2, - V1Frame_FrameType_PAYLOAD_TRANSFER = 3, - V1Frame_FrameType_BANDWIDTH_UPGRADE_NEGOTIATION = 4, - V1Frame_FrameType_KEEP_ALIVE = 5, - V1Frame_FrameType_DISCONNECTION = 6, - V1Frame_FrameType_PAIRED_KEY_ENCRYPTION = 7 -}; -bool V1Frame_FrameType_IsValid(int value); -constexpr V1Frame_FrameType V1Frame_FrameType_FrameType_MIN = V1Frame_FrameType_UNKNOWN_FRAME_TYPE; -constexpr V1Frame_FrameType V1Frame_FrameType_FrameType_MAX = V1Frame_FrameType_PAIRED_KEY_ENCRYPTION; -constexpr int V1Frame_FrameType_FrameType_ARRAYSIZE = V1Frame_FrameType_FrameType_MAX + 1; - -const std::string& V1Frame_FrameType_Name(V1Frame_FrameType value); -template -inline const std::string& V1Frame_FrameType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function V1Frame_FrameType_Name."); - return V1Frame_FrameType_Name(static_cast(enum_t_value)); -} -bool V1Frame_FrameType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, V1Frame_FrameType* value); -enum ConnectionRequestFrame_Medium : int { - ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM = 0, - ConnectionRequestFrame_Medium_MDNS PROTOBUF_DEPRECATED_ENUM = 1, - ConnectionRequestFrame_Medium_BLUETOOTH = 2, - ConnectionRequestFrame_Medium_WIFI_HOTSPOT = 3, - ConnectionRequestFrame_Medium_BLE = 4, - ConnectionRequestFrame_Medium_WIFI_LAN = 5, - ConnectionRequestFrame_Medium_WIFI_AWARE = 6, - ConnectionRequestFrame_Medium_NFC = 7, - ConnectionRequestFrame_Medium_WIFI_DIRECT = 8, - ConnectionRequestFrame_Medium_WEB_RTC = 9, - ConnectionRequestFrame_Medium_BLE_L2CAP = 10, - ConnectionRequestFrame_Medium_USB = 11 -}; -bool ConnectionRequestFrame_Medium_IsValid(int value); -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MIN = ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM; -constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MAX = ConnectionRequestFrame_Medium_USB; -constexpr int ConnectionRequestFrame_Medium_Medium_ARRAYSIZE = ConnectionRequestFrame_Medium_Medium_MAX + 1; - -const std::string& ConnectionRequestFrame_Medium_Name(ConnectionRequestFrame_Medium value); -template -inline const std::string& ConnectionRequestFrame_Medium_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionRequestFrame_Medium_Name."); - return ConnectionRequestFrame_Medium_Name(static_cast(enum_t_value)); -} -bool ConnectionRequestFrame_Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_Medium* value); -enum ConnectionResponseFrame_ResponseStatus : int { - ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS = 0, - ConnectionResponseFrame_ResponseStatus_ACCEPT = 1, - ConnectionResponseFrame_ResponseStatus_REJECT = 2 -}; -bool ConnectionResponseFrame_ResponseStatus_IsValid(int value); -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame_ResponseStatus_ResponseStatus_MIN = ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS; -constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX = ConnectionResponseFrame_ResponseStatus_REJECT; -constexpr int ConnectionResponseFrame_ResponseStatus_ResponseStatus_ARRAYSIZE = ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX + 1; - -const std::string& ConnectionResponseFrame_ResponseStatus_Name(ConnectionResponseFrame_ResponseStatus value); -template -inline const std::string& ConnectionResponseFrame_ResponseStatus_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectionResponseFrame_ResponseStatus_Name."); - return ConnectionResponseFrame_ResponseStatus_Name(static_cast(enum_t_value)); -} -bool ConnectionResponseFrame_ResponseStatus_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionResponseFrame_ResponseStatus* value); -enum PayloadTransferFrame_PayloadHeader_PayloadType : int { - PayloadTransferFrame_PayloadHeader_PayloadType_UNKNOWN_PAYLOAD_TYPE = 0, - PayloadTransferFrame_PayloadHeader_PayloadType_BYTES = 1, - PayloadTransferFrame_PayloadHeader_PayloadType_FILE = 2, - PayloadTransferFrame_PayloadHeader_PayloadType_STREAM = 3 -}; -bool PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(int value); -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MIN = PayloadTransferFrame_PayloadHeader_PayloadType_UNKNOWN_PAYLOAD_TYPE; -constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX = PayloadTransferFrame_PayloadHeader_PayloadType_STREAM; -constexpr int PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_ARRAYSIZE = PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX + 1; - -const std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name(PayloadTransferFrame_PayloadHeader_PayloadType value); -template -inline const std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadTransferFrame_PayloadHeader_PayloadType_Name."); - return PayloadTransferFrame_PayloadHeader_PayloadType_Name(static_cast(enum_t_value)); -} -bool PayloadTransferFrame_PayloadHeader_PayloadType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadHeader_PayloadType* value); -enum PayloadTransferFrame_PayloadChunk_Flags : int { - PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK = 1 -}; -bool PayloadTransferFrame_PayloadChunk_Flags_IsValid(int value); -constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk_Flags_Flags_MIN = PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK; -constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX = PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK; -constexpr int PayloadTransferFrame_PayloadChunk_Flags_Flags_ARRAYSIZE = PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX + 1; - -const std::string& PayloadTransferFrame_PayloadChunk_Flags_Name(PayloadTransferFrame_PayloadChunk_Flags value); -template -inline const std::string& PayloadTransferFrame_PayloadChunk_Flags_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadTransferFrame_PayloadChunk_Flags_Name."); - return PayloadTransferFrame_PayloadChunk_Flags_Name(static_cast(enum_t_value)); -} -bool PayloadTransferFrame_PayloadChunk_Flags_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadChunk_Flags* value); -enum PayloadTransferFrame_ControlMessage_EventType : int { - PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE = 0, - PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_ERROR = 1, - PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED = 2 -}; -bool PayloadTransferFrame_ControlMessage_EventType_IsValid(int value); -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage_EventType_EventType_MIN = PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE; -constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage_EventType_EventType_MAX = PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED; -constexpr int PayloadTransferFrame_ControlMessage_EventType_EventType_ARRAYSIZE = PayloadTransferFrame_ControlMessage_EventType_EventType_MAX + 1; - -const std::string& PayloadTransferFrame_ControlMessage_EventType_Name(PayloadTransferFrame_ControlMessage_EventType value); -template -inline const std::string& PayloadTransferFrame_ControlMessage_EventType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadTransferFrame_ControlMessage_EventType_Name."); - return PayloadTransferFrame_ControlMessage_EventType_Name(static_cast(enum_t_value)); -} -bool PayloadTransferFrame_ControlMessage_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_ControlMessage_EventType* value); -enum PayloadTransferFrame_PacketType : int { - PayloadTransferFrame_PacketType_UNKNOWN_PACKET_TYPE = 0, - PayloadTransferFrame_PacketType_DATA = 1, - PayloadTransferFrame_PacketType_CONTROL = 2 -}; -bool PayloadTransferFrame_PacketType_IsValid(int value); -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame_PacketType_PacketType_MIN = PayloadTransferFrame_PacketType_UNKNOWN_PACKET_TYPE; -constexpr PayloadTransferFrame_PacketType PayloadTransferFrame_PacketType_PacketType_MAX = PayloadTransferFrame_PacketType_CONTROL; -constexpr int PayloadTransferFrame_PacketType_PacketType_ARRAYSIZE = PayloadTransferFrame_PacketType_PacketType_MAX + 1; - -const std::string& PayloadTransferFrame_PacketType_Name(PayloadTransferFrame_PacketType value); -template -inline const std::string& PayloadTransferFrame_PacketType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadTransferFrame_PacketType_Name."); - return PayloadTransferFrame_PacketType_Name(static_cast(enum_t_value)); -} -bool PayloadTransferFrame_PacketType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PacketType* value); -enum BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium : int { - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_UNKNOWN_MEDIUM = 0, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_MDNS PROTOBUF_DEPRECATED_ENUM = 1, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLUETOOTH = 2, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_HOTSPOT = 3, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLE = 4, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_LAN = 5, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_AWARE = 6, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_NFC = 7, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_DIRECT = 8, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC = 9, - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB = 11 -}; -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(int value); -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MIN = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_UNKNOWN_MEDIUM; -constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB; -constexpr int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_ARRAYSIZE = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX + 1; - -const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value); -template -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name."); - return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(static_cast(enum_t_value)); -} -bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium* value); -enum BandwidthUpgradeNegotiationFrame_EventType : int { - BandwidthUpgradeNegotiationFrame_EventType_UNKNOWN_EVENT_TYPE = 0, - BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_AVAILABLE = 1, - BandwidthUpgradeNegotiationFrame_EventType_LAST_WRITE_TO_PRIOR_CHANNEL = 2, - BandwidthUpgradeNegotiationFrame_EventType_SAFE_TO_CLOSE_PRIOR_CHANNEL = 3, - BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION = 4, - BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_FAILURE = 5, - BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION_ACK = 6 -}; -bool BandwidthUpgradeNegotiationFrame_EventType_IsValid(int value); -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame_EventType_EventType_MIN = BandwidthUpgradeNegotiationFrame_EventType_UNKNOWN_EVENT_TYPE; -constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame_EventType_EventType_MAX = BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION_ACK; -constexpr int BandwidthUpgradeNegotiationFrame_EventType_EventType_ARRAYSIZE = BandwidthUpgradeNegotiationFrame_EventType_EventType_MAX + 1; - -const std::string& BandwidthUpgradeNegotiationFrame_EventType_Name(BandwidthUpgradeNegotiationFrame_EventType value); -template -inline const std::string& BandwidthUpgradeNegotiationFrame_EventType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BandwidthUpgradeNegotiationFrame_EventType_Name."); - return BandwidthUpgradeNegotiationFrame_EventType_Name(static_cast(enum_t_value)); -} -bool BandwidthUpgradeNegotiationFrame_EventType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_EventType* value); -enum LocationStandard_Format : int { - LocationStandard_Format_UNKNOWN = 0, - LocationStandard_Format_E164_CALLING = 1, - LocationStandard_Format_ISO_3166_1_ALPHA_2 = 2 -}; -bool LocationStandard_Format_IsValid(int value); -constexpr LocationStandard_Format LocationStandard_Format_Format_MIN = LocationStandard_Format_UNKNOWN; -constexpr LocationStandard_Format LocationStandard_Format_Format_MAX = LocationStandard_Format_ISO_3166_1_ALPHA_2; -constexpr int LocationStandard_Format_Format_ARRAYSIZE = LocationStandard_Format_Format_MAX + 1; - -const std::string& LocationStandard_Format_Name(LocationStandard_Format value); -template -inline const std::string& LocationStandard_Format_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function LocationStandard_Format_Name."); - return LocationStandard_Format_Name(static_cast(enum_t_value)); -} -bool LocationStandard_Format_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LocationStandard_Format* value); -// =================================================================== - -class OfflineFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.OfflineFrame) */ { - public: - inline OfflineFrame() : OfflineFrame(nullptr) {} - ~OfflineFrame() override; - explicit constexpr OfflineFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - OfflineFrame(const OfflineFrame& from); - OfflineFrame(OfflineFrame&& from) noexcept - : OfflineFrame() { - *this = ::std::move(from); - } - - inline OfflineFrame& operator=(const OfflineFrame& from) { - CopyFrom(from); - return *this; - } - inline OfflineFrame& operator=(OfflineFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const OfflineFrame& default_instance() { - return *internal_default_instance(); - } - static inline const OfflineFrame* internal_default_instance() { - return reinterpret_cast( - &_OfflineFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(OfflineFrame& a, OfflineFrame& b) { - a.Swap(&b); - } - inline void Swap(OfflineFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(OfflineFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - OfflineFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const OfflineFrame& from); - void MergeFrom(const OfflineFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(OfflineFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.OfflineFrame"; - } - protected: - explicit OfflineFrame(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef OfflineFrame_Version Version; - static constexpr Version UNKNOWN_VERSION = - OfflineFrame_Version_UNKNOWN_VERSION; - static constexpr Version V1 = - OfflineFrame_Version_V1; - static inline bool Version_IsValid(int value) { - return OfflineFrame_Version_IsValid(value); - } - static constexpr Version Version_MIN = - OfflineFrame_Version_Version_MIN; - static constexpr Version Version_MAX = - OfflineFrame_Version_Version_MAX; - static constexpr int Version_ARRAYSIZE = - OfflineFrame_Version_Version_ARRAYSIZE; - template - static inline const std::string& Version_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Version_Name."); - return OfflineFrame_Version_Name(enum_t_value); - } - static inline bool Version_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Version* value) { - return OfflineFrame_Version_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kV1FieldNumber = 2, - kVersionFieldNumber = 1, - }; - // optional .location.nearby.connections.V1Frame v1 = 2; - bool has_v1() const; - private: - bool _internal_has_v1() const; - public: - void clear_v1(); - const ::location::nearby::connections::V1Frame& v1() const; - PROTOBUF_NODISCARD ::location::nearby::connections::V1Frame* release_v1(); - ::location::nearby::connections::V1Frame* mutable_v1(); - void set_allocated_v1(::location::nearby::connections::V1Frame* v1); - private: - const ::location::nearby::connections::V1Frame& _internal_v1() const; - ::location::nearby::connections::V1Frame* _internal_mutable_v1(); - public: - void unsafe_arena_set_allocated_v1( - ::location::nearby::connections::V1Frame* v1); - ::location::nearby::connections::V1Frame* unsafe_arena_release_v1(); - - // optional .location.nearby.connections.OfflineFrame.Version version = 1; - bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - ::location::nearby::connections::OfflineFrame_Version version() const; - void set_version(::location::nearby::connections::OfflineFrame_Version value); - private: - ::location::nearby::connections::OfflineFrame_Version _internal_version() const; - void _internal_set_version(::location::nearby::connections::OfflineFrame_Version value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.OfflineFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::connections::V1Frame* v1_; - int version_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class V1Frame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.V1Frame) */ { - public: - inline V1Frame() : V1Frame(nullptr) {} - ~V1Frame() override; - explicit constexpr V1Frame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - V1Frame(const V1Frame& from); - V1Frame(V1Frame&& from) noexcept - : V1Frame() { - *this = ::std::move(from); - } - - inline V1Frame& operator=(const V1Frame& from) { - CopyFrom(from); - return *this; - } - inline V1Frame& operator=(V1Frame&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const V1Frame& default_instance() { - return *internal_default_instance(); - } - static inline const V1Frame* internal_default_instance() { - return reinterpret_cast( - &_V1Frame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(V1Frame& a, V1Frame& b) { - a.Swap(&b); - } - inline void Swap(V1Frame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(V1Frame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - V1Frame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const V1Frame& from); - void MergeFrom(const V1Frame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(V1Frame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.V1Frame"; - } - protected: - explicit V1Frame(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef V1Frame_FrameType FrameType; - static constexpr FrameType UNKNOWN_FRAME_TYPE = - V1Frame_FrameType_UNKNOWN_FRAME_TYPE; - static constexpr FrameType CONNECTION_REQUEST = - V1Frame_FrameType_CONNECTION_REQUEST; - static constexpr FrameType CONNECTION_RESPONSE = - V1Frame_FrameType_CONNECTION_RESPONSE; - static constexpr FrameType PAYLOAD_TRANSFER = - V1Frame_FrameType_PAYLOAD_TRANSFER; - static constexpr FrameType BANDWIDTH_UPGRADE_NEGOTIATION = - V1Frame_FrameType_BANDWIDTH_UPGRADE_NEGOTIATION; - static constexpr FrameType KEEP_ALIVE = - V1Frame_FrameType_KEEP_ALIVE; - static constexpr FrameType DISCONNECTION = - V1Frame_FrameType_DISCONNECTION; - static constexpr FrameType PAIRED_KEY_ENCRYPTION = - V1Frame_FrameType_PAIRED_KEY_ENCRYPTION; - static inline bool FrameType_IsValid(int value) { - return V1Frame_FrameType_IsValid(value); - } - static constexpr FrameType FrameType_MIN = - V1Frame_FrameType_FrameType_MIN; - static constexpr FrameType FrameType_MAX = - V1Frame_FrameType_FrameType_MAX; - static constexpr int FrameType_ARRAYSIZE = - V1Frame_FrameType_FrameType_ARRAYSIZE; - template - static inline const std::string& FrameType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FrameType_Name."); - return V1Frame_FrameType_Name(enum_t_value); - } - static inline bool FrameType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - FrameType* value) { - return V1Frame_FrameType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kConnectionRequestFieldNumber = 2, - kConnectionResponseFieldNumber = 3, - kPayloadTransferFieldNumber = 4, - kBandwidthUpgradeNegotiationFieldNumber = 5, - kKeepAliveFieldNumber = 6, - kDisconnectionFieldNumber = 7, - kPairedKeyEncryptionFieldNumber = 8, - kTypeFieldNumber = 1, - }; - // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; - bool has_connection_request() const; - private: - bool _internal_has_connection_request() const; - public: - void clear_connection_request(); - const ::location::nearby::connections::ConnectionRequestFrame& connection_request() const; - PROTOBUF_NODISCARD ::location::nearby::connections::ConnectionRequestFrame* release_connection_request(); - ::location::nearby::connections::ConnectionRequestFrame* mutable_connection_request(); - void set_allocated_connection_request(::location::nearby::connections::ConnectionRequestFrame* connection_request); - private: - const ::location::nearby::connections::ConnectionRequestFrame& _internal_connection_request() const; - ::location::nearby::connections::ConnectionRequestFrame* _internal_mutable_connection_request(); - public: - void unsafe_arena_set_allocated_connection_request( - ::location::nearby::connections::ConnectionRequestFrame* connection_request); - ::location::nearby::connections::ConnectionRequestFrame* unsafe_arena_release_connection_request(); - - // optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; - bool has_connection_response() const; - private: - bool _internal_has_connection_response() const; - public: - void clear_connection_response(); - const ::location::nearby::connections::ConnectionResponseFrame& connection_response() const; - PROTOBUF_NODISCARD ::location::nearby::connections::ConnectionResponseFrame* release_connection_response(); - ::location::nearby::connections::ConnectionResponseFrame* mutable_connection_response(); - void set_allocated_connection_response(::location::nearby::connections::ConnectionResponseFrame* connection_response); - private: - const ::location::nearby::connections::ConnectionResponseFrame& _internal_connection_response() const; - ::location::nearby::connections::ConnectionResponseFrame* _internal_mutable_connection_response(); - public: - void unsafe_arena_set_allocated_connection_response( - ::location::nearby::connections::ConnectionResponseFrame* connection_response); - ::location::nearby::connections::ConnectionResponseFrame* unsafe_arena_release_connection_response(); - - // optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; - bool has_payload_transfer() const; - private: - bool _internal_has_payload_transfer() const; - public: - void clear_payload_transfer(); - const ::location::nearby::connections::PayloadTransferFrame& payload_transfer() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame* release_payload_transfer(); - ::location::nearby::connections::PayloadTransferFrame* mutable_payload_transfer(); - void set_allocated_payload_transfer(::location::nearby::connections::PayloadTransferFrame* payload_transfer); - private: - const ::location::nearby::connections::PayloadTransferFrame& _internal_payload_transfer() const; - ::location::nearby::connections::PayloadTransferFrame* _internal_mutable_payload_transfer(); - public: - void unsafe_arena_set_allocated_payload_transfer( - ::location::nearby::connections::PayloadTransferFrame* payload_transfer); - ::location::nearby::connections::PayloadTransferFrame* unsafe_arena_release_payload_transfer(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; - bool has_bandwidth_upgrade_negotiation() const; - private: - bool _internal_has_bandwidth_upgrade_negotiation() const; - public: - void clear_bandwidth_upgrade_negotiation(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& bandwidth_upgrade_negotiation() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* release_bandwidth_upgrade_negotiation(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* mutable_bandwidth_upgrade_negotiation(); - void set_allocated_bandwidth_upgrade_negotiation(::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& _internal_bandwidth_upgrade_negotiation() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* _internal_mutable_bandwidth_upgrade_negotiation(); - public: - void unsafe_arena_set_allocated_bandwidth_upgrade_negotiation( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* unsafe_arena_release_bandwidth_upgrade_negotiation(); - - // optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; - bool has_keep_alive() const; - private: - bool _internal_has_keep_alive() const; - public: - void clear_keep_alive(); - const ::location::nearby::connections::KeepAliveFrame& keep_alive() const; - PROTOBUF_NODISCARD ::location::nearby::connections::KeepAliveFrame* release_keep_alive(); - ::location::nearby::connections::KeepAliveFrame* mutable_keep_alive(); - void set_allocated_keep_alive(::location::nearby::connections::KeepAliveFrame* keep_alive); - private: - const ::location::nearby::connections::KeepAliveFrame& _internal_keep_alive() const; - ::location::nearby::connections::KeepAliveFrame* _internal_mutable_keep_alive(); - public: - void unsafe_arena_set_allocated_keep_alive( - ::location::nearby::connections::KeepAliveFrame* keep_alive); - ::location::nearby::connections::KeepAliveFrame* unsafe_arena_release_keep_alive(); - - // optional .location.nearby.connections.DisconnectionFrame disconnection = 7; - bool has_disconnection() const; - private: - bool _internal_has_disconnection() const; - public: - void clear_disconnection(); - const ::location::nearby::connections::DisconnectionFrame& disconnection() const; - PROTOBUF_NODISCARD ::location::nearby::connections::DisconnectionFrame* release_disconnection(); - ::location::nearby::connections::DisconnectionFrame* mutable_disconnection(); - void set_allocated_disconnection(::location::nearby::connections::DisconnectionFrame* disconnection); - private: - const ::location::nearby::connections::DisconnectionFrame& _internal_disconnection() const; - ::location::nearby::connections::DisconnectionFrame* _internal_mutable_disconnection(); - public: - void unsafe_arena_set_allocated_disconnection( - ::location::nearby::connections::DisconnectionFrame* disconnection); - ::location::nearby::connections::DisconnectionFrame* unsafe_arena_release_disconnection(); - - // optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; - bool has_paired_key_encryption() const; - private: - bool _internal_has_paired_key_encryption() const; - public: - void clear_paired_key_encryption(); - const ::location::nearby::connections::PairedKeyEncryptionFrame& paired_key_encryption() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PairedKeyEncryptionFrame* release_paired_key_encryption(); - ::location::nearby::connections::PairedKeyEncryptionFrame* mutable_paired_key_encryption(); - void set_allocated_paired_key_encryption(::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption); - private: - const ::location::nearby::connections::PairedKeyEncryptionFrame& _internal_paired_key_encryption() const; - ::location::nearby::connections::PairedKeyEncryptionFrame* _internal_mutable_paired_key_encryption(); - public: - void unsafe_arena_set_allocated_paired_key_encryption( - ::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption); - ::location::nearby::connections::PairedKeyEncryptionFrame* unsafe_arena_release_paired_key_encryption(); - - // optional .location.nearby.connections.V1Frame.FrameType type = 1; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::location::nearby::connections::V1Frame_FrameType type() const; - void set_type(::location::nearby::connections::V1Frame_FrameType value); - private: - ::location::nearby::connections::V1Frame_FrameType _internal_type() const; - void _internal_set_type(::location::nearby::connections::V1Frame_FrameType value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.V1Frame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::connections::ConnectionRequestFrame* connection_request_; - ::location::nearby::connections::ConnectionResponseFrame* connection_response_; - ::location::nearby::connections::PayloadTransferFrame* payload_transfer_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation_; - ::location::nearby::connections::KeepAliveFrame* keep_alive_; - ::location::nearby::connections::DisconnectionFrame* disconnection_; - ::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption_; - int type_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionRequestFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionRequestFrame) */ { - public: - inline ConnectionRequestFrame() : ConnectionRequestFrame(nullptr) {} - ~ConnectionRequestFrame() override; - explicit constexpr ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionRequestFrame(const ConnectionRequestFrame& from); - ConnectionRequestFrame(ConnectionRequestFrame&& from) noexcept - : ConnectionRequestFrame() { - *this = ::std::move(from); - } - - inline ConnectionRequestFrame& operator=(const ConnectionRequestFrame& from) { - CopyFrom(from); - return *this; - } - inline ConnectionRequestFrame& operator=(ConnectionRequestFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionRequestFrame& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionRequestFrame* internal_default_instance() { - return reinterpret_cast( - &_ConnectionRequestFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(ConnectionRequestFrame& a, ConnectionRequestFrame& b) { - a.Swap(&b); - } - inline void Swap(ConnectionRequestFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionRequestFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionRequestFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionRequestFrame& from); - void MergeFrom(const ConnectionRequestFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionRequestFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.ConnectionRequestFrame"; - } - protected: - explicit ConnectionRequestFrame(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef ConnectionRequestFrame_Medium Medium; - static constexpr Medium UNKNOWN_MEDIUM = - ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM; - PROTOBUF_DEPRECATED_ENUM static constexpr Medium MDNS = - ConnectionRequestFrame_Medium_MDNS; - static constexpr Medium BLUETOOTH = - ConnectionRequestFrame_Medium_BLUETOOTH; - static constexpr Medium WIFI_HOTSPOT = - ConnectionRequestFrame_Medium_WIFI_HOTSPOT; - static constexpr Medium BLE = - ConnectionRequestFrame_Medium_BLE; - static constexpr Medium WIFI_LAN = - ConnectionRequestFrame_Medium_WIFI_LAN; - static constexpr Medium WIFI_AWARE = - ConnectionRequestFrame_Medium_WIFI_AWARE; - static constexpr Medium NFC = - ConnectionRequestFrame_Medium_NFC; - static constexpr Medium WIFI_DIRECT = - ConnectionRequestFrame_Medium_WIFI_DIRECT; - static constexpr Medium WEB_RTC = - ConnectionRequestFrame_Medium_WEB_RTC; - static constexpr Medium BLE_L2CAP = - ConnectionRequestFrame_Medium_BLE_L2CAP; - static constexpr Medium USB = - ConnectionRequestFrame_Medium_USB; - static inline bool Medium_IsValid(int value) { - return ConnectionRequestFrame_Medium_IsValid(value); - } - static constexpr Medium Medium_MIN = - ConnectionRequestFrame_Medium_Medium_MIN; - static constexpr Medium Medium_MAX = - ConnectionRequestFrame_Medium_Medium_MAX; - static constexpr int Medium_ARRAYSIZE = - ConnectionRequestFrame_Medium_Medium_ARRAYSIZE; - template - static inline const std::string& Medium_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Medium_Name."); - return ConnectionRequestFrame_Medium_Name(enum_t_value); - } - static inline bool Medium_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Medium* value) { - return ConnectionRequestFrame_Medium_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kMediumsFieldNumber = 5, - kEndpointIdFieldNumber = 1, - kEndpointNameFieldNumber = 2, - kHandshakeDataFieldNumber = 3, - kEndpointInfoFieldNumber = 6, - kDeviceInfoFieldNumber = 11, - kMediumMetadataFieldNumber = 7, - kNonceFieldNumber = 4, - kKeepAliveIntervalMillisFieldNumber = 8, - kKeepAliveTimeoutMillisFieldNumber = 9, - kDeviceTypeFieldNumber = 10, - }; - // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; - int mediums_size() const; - private: - int _internal_mediums_size() const; - public: - void clear_mediums(); - private: - ::location::nearby::connections::ConnectionRequestFrame_Medium _internal_mediums(int index) const; - void _internal_add_mediums(::location::nearby::connections::ConnectionRequestFrame_Medium value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_mediums(); - public: - ::location::nearby::connections::ConnectionRequestFrame_Medium mediums(int index) const; - void set_mediums(int index, ::location::nearby::connections::ConnectionRequestFrame_Medium value); - void add_mediums(::location::nearby::connections::ConnectionRequestFrame_Medium value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField& mediums() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_mediums(); - - // optional string endpoint_id = 1; - bool has_endpoint_id() const; - private: - bool _internal_has_endpoint_id() const; - public: - void clear_endpoint_id(); - const std::string& endpoint_id() const; - template - void set_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_endpoint_id(); - void set_allocated_endpoint_id(std::string* endpoint_id); - private: - const std::string& _internal_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const std::string& value); - std::string* _internal_mutable_endpoint_id(); - public: - - // optional string endpoint_name = 2; - bool has_endpoint_name() const; - private: - bool _internal_has_endpoint_name() const; - public: - void clear_endpoint_name(); - const std::string& endpoint_name() const; - template - void set_endpoint_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_name(); - PROTOBUF_NODISCARD std::string* release_endpoint_name(); - void set_allocated_endpoint_name(std::string* endpoint_name); - private: - const std::string& _internal_endpoint_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_name(const std::string& value); - std::string* _internal_mutable_endpoint_name(); - public: - - // optional bytes handshake_data = 3; - bool has_handshake_data() const; - private: - bool _internal_has_handshake_data() const; - public: - void clear_handshake_data(); - const std::string& handshake_data() const; - template - void set_handshake_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_handshake_data(); - PROTOBUF_NODISCARD std::string* release_handshake_data(); - void set_allocated_handshake_data(std::string* handshake_data); - private: - const std::string& _internal_handshake_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_handshake_data(const std::string& value); - std::string* _internal_mutable_handshake_data(); - public: - - // optional bytes endpoint_info = 6; - bool has_endpoint_info() const; - private: - bool _internal_has_endpoint_info() const; - public: - void clear_endpoint_info(); - const std::string& endpoint_info() const; - template - void set_endpoint_info(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_info(); - PROTOBUF_NODISCARD std::string* release_endpoint_info(); - void set_allocated_endpoint_info(std::string* endpoint_info); - private: - const std::string& _internal_endpoint_info() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_info(const std::string& value); - std::string* _internal_mutable_endpoint_info(); - public: - - // optional bytes device_info = 11; - bool has_device_info() const; - private: - bool _internal_has_device_info() const; - public: - void clear_device_info(); - const std::string& device_info() const; - template - void set_device_info(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_info(); - PROTOBUF_NODISCARD std::string* release_device_info(); - void set_allocated_device_info(std::string* device_info); - private: - const std::string& _internal_device_info() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_info(const std::string& value); - std::string* _internal_mutable_device_info(); - public: - - // optional .location.nearby.connections.MediumMetadata medium_metadata = 7; - bool has_medium_metadata() const; - private: - bool _internal_has_medium_metadata() const; - public: - void clear_medium_metadata(); - const ::location::nearby::connections::MediumMetadata& medium_metadata() const; - PROTOBUF_NODISCARD ::location::nearby::connections::MediumMetadata* release_medium_metadata(); - ::location::nearby::connections::MediumMetadata* mutable_medium_metadata(); - void set_allocated_medium_metadata(::location::nearby::connections::MediumMetadata* medium_metadata); - private: - const ::location::nearby::connections::MediumMetadata& _internal_medium_metadata() const; - ::location::nearby::connections::MediumMetadata* _internal_mutable_medium_metadata(); - public: - void unsafe_arena_set_allocated_medium_metadata( - ::location::nearby::connections::MediumMetadata* medium_metadata); - ::location::nearby::connections::MediumMetadata* unsafe_arena_release_medium_metadata(); - - // optional int32 nonce = 4; - bool has_nonce() const; - private: - bool _internal_has_nonce() const; - public: - void clear_nonce(); - int32_t nonce() const; - void set_nonce(int32_t value); - private: - int32_t _internal_nonce() const; - void _internal_set_nonce(int32_t value); - public: - - // optional int32 keep_alive_interval_millis = 8; - bool has_keep_alive_interval_millis() const; - private: - bool _internal_has_keep_alive_interval_millis() const; - public: - void clear_keep_alive_interval_millis(); - int32_t keep_alive_interval_millis() const; - void set_keep_alive_interval_millis(int32_t value); - private: - int32_t _internal_keep_alive_interval_millis() const; - void _internal_set_keep_alive_interval_millis(int32_t value); - public: - - // optional int32 keep_alive_timeout_millis = 9; - bool has_keep_alive_timeout_millis() const; - private: - bool _internal_has_keep_alive_timeout_millis() const; - public: - void clear_keep_alive_timeout_millis(); - int32_t keep_alive_timeout_millis() const; - void set_keep_alive_timeout_millis(int32_t value); - private: - int32_t _internal_keep_alive_timeout_millis() const; - void _internal_set_keep_alive_timeout_millis(int32_t value); - public: - - // optional int32 device_type = 10 [default = 0]; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - int32_t device_type() const; - void set_device_type(int32_t value); - private: - int32_t _internal_device_type() const; - void _internal_set_device_type(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionRequestFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField mediums_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr handshake_data_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_info_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_info_; - ::location::nearby::connections::MediumMetadata* medium_metadata_; - int32_t nonce_; - int32_t keep_alive_interval_millis_; - int32_t keep_alive_timeout_millis_; - int32_t device_type_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionResponseFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionResponseFrame) */ { - public: - inline ConnectionResponseFrame() : ConnectionResponseFrame(nullptr) {} - ~ConnectionResponseFrame() override; - explicit constexpr ConnectionResponseFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionResponseFrame(const ConnectionResponseFrame& from); - ConnectionResponseFrame(ConnectionResponseFrame&& from) noexcept - : ConnectionResponseFrame() { - *this = ::std::move(from); - } - - inline ConnectionResponseFrame& operator=(const ConnectionResponseFrame& from) { - CopyFrom(from); - return *this; - } - inline ConnectionResponseFrame& operator=(ConnectionResponseFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ConnectionResponseFrame& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionResponseFrame* internal_default_instance() { - return reinterpret_cast( - &_ConnectionResponseFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ConnectionResponseFrame& a, ConnectionResponseFrame& b) { - a.Swap(&b); - } - inline void Swap(ConnectionResponseFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionResponseFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionResponseFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ConnectionResponseFrame& from); - void MergeFrom(const ConnectionResponseFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ConnectionResponseFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.ConnectionResponseFrame"; - } - protected: - explicit ConnectionResponseFrame(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef ConnectionResponseFrame_ResponseStatus ResponseStatus; - static constexpr ResponseStatus UNKNOWN_RESPONSE_STATUS = - ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS; - static constexpr ResponseStatus ACCEPT = - ConnectionResponseFrame_ResponseStatus_ACCEPT; - static constexpr ResponseStatus REJECT = - ConnectionResponseFrame_ResponseStatus_REJECT; - static inline bool ResponseStatus_IsValid(int value) { - return ConnectionResponseFrame_ResponseStatus_IsValid(value); - } - static constexpr ResponseStatus ResponseStatus_MIN = - ConnectionResponseFrame_ResponseStatus_ResponseStatus_MIN; - static constexpr ResponseStatus ResponseStatus_MAX = - ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX; - static constexpr int ResponseStatus_ARRAYSIZE = - ConnectionResponseFrame_ResponseStatus_ResponseStatus_ARRAYSIZE; - template - static inline const std::string& ResponseStatus_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ResponseStatus_Name."); - return ConnectionResponseFrame_ResponseStatus_Name(enum_t_value); - } - static inline bool ResponseStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - ResponseStatus* value) { - return ConnectionResponseFrame_ResponseStatus_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kHandshakeDataFieldNumber = 2, - kStatusFieldNumber = 1, - kResponseFieldNumber = 3, - }; - // optional bytes handshake_data = 2; - bool has_handshake_data() const; - private: - bool _internal_has_handshake_data() const; - public: - void clear_handshake_data(); - const std::string& handshake_data() const; - template - void set_handshake_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_handshake_data(); - PROTOBUF_NODISCARD std::string* release_handshake_data(); - void set_allocated_handshake_data(std::string* handshake_data); - private: - const std::string& _internal_handshake_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_handshake_data(const std::string& value); - std::string* _internal_mutable_handshake_data(); - public: - - // optional int32 status = 1 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_status() const; - private: - bool _internal_has_status() const; - public: - PROTOBUF_DEPRECATED void clear_status(); - PROTOBUF_DEPRECATED int32_t status() const; - PROTOBUF_DEPRECATED void set_status(int32_t value); - private: - int32_t _internal_status() const; - void _internal_set_status(int32_t value); - public: - - // optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; - bool has_response() const; - private: - bool _internal_has_response() const; - public: - void clear_response(); - ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus response() const; - void set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value); - private: - ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus _internal_response() const; - void _internal_set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionResponseFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr handshake_data_; - int32_t status_; - int response_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class PayloadTransferFrame_PayloadHeader final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.PayloadHeader) */ { - public: - inline PayloadTransferFrame_PayloadHeader() : PayloadTransferFrame_PayloadHeader(nullptr) {} - ~PayloadTransferFrame_PayloadHeader() override; - explicit constexpr PayloadTransferFrame_PayloadHeader(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PayloadTransferFrame_PayloadHeader(const PayloadTransferFrame_PayloadHeader& from); - PayloadTransferFrame_PayloadHeader(PayloadTransferFrame_PayloadHeader&& from) noexcept - : PayloadTransferFrame_PayloadHeader() { - *this = ::std::move(from); - } - - inline PayloadTransferFrame_PayloadHeader& operator=(const PayloadTransferFrame_PayloadHeader& from) { - CopyFrom(from); - return *this; - } - inline PayloadTransferFrame_PayloadHeader& operator=(PayloadTransferFrame_PayloadHeader&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PayloadTransferFrame_PayloadHeader& default_instance() { - return *internal_default_instance(); - } - static inline const PayloadTransferFrame_PayloadHeader* internal_default_instance() { - return reinterpret_cast( - &_PayloadTransferFrame_PayloadHeader_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(PayloadTransferFrame_PayloadHeader& a, PayloadTransferFrame_PayloadHeader& b) { - a.Swap(&b); - } - inline void Swap(PayloadTransferFrame_PayloadHeader* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PayloadTransferFrame_PayloadHeader* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PayloadTransferFrame_PayloadHeader* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PayloadTransferFrame_PayloadHeader& from); - void MergeFrom(const PayloadTransferFrame_PayloadHeader& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PayloadTransferFrame_PayloadHeader* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PayloadTransferFrame.PayloadHeader"; - } - protected: - explicit PayloadTransferFrame_PayloadHeader(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef PayloadTransferFrame_PayloadHeader_PayloadType PayloadType; - static constexpr PayloadType UNKNOWN_PAYLOAD_TYPE = - PayloadTransferFrame_PayloadHeader_PayloadType_UNKNOWN_PAYLOAD_TYPE; - static constexpr PayloadType BYTES = - PayloadTransferFrame_PayloadHeader_PayloadType_BYTES; - static constexpr PayloadType FILE = - PayloadTransferFrame_PayloadHeader_PayloadType_FILE; - static constexpr PayloadType STREAM = - PayloadTransferFrame_PayloadHeader_PayloadType_STREAM; - static inline bool PayloadType_IsValid(int value) { - return PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(value); - } - static constexpr PayloadType PayloadType_MIN = - PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MIN; - static constexpr PayloadType PayloadType_MAX = - PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX; - static constexpr int PayloadType_ARRAYSIZE = - PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_ARRAYSIZE; - template - static inline const std::string& PayloadType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PayloadType_Name."); - return PayloadTransferFrame_PayloadHeader_PayloadType_Name(enum_t_value); - } - static inline bool PayloadType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - PayloadType* value) { - return PayloadTransferFrame_PayloadHeader_PayloadType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kFileNameFieldNumber = 5, - kParentFolderFieldNumber = 6, - kIdFieldNumber = 1, - kTotalSizeFieldNumber = 3, - kTypeFieldNumber = 2, - kIsSensitiveFieldNumber = 4, - }; - // optional string file_name = 5; - bool has_file_name() const; - private: - bool _internal_has_file_name() const; - public: - void clear_file_name(); - const std::string& file_name() const; - template - void set_file_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_file_name(); - PROTOBUF_NODISCARD std::string* release_file_name(); - void set_allocated_file_name(std::string* file_name); - private: - const std::string& _internal_file_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const std::string& value); - std::string* _internal_mutable_file_name(); - public: - - // optional string parent_folder = 6; - bool has_parent_folder() const; - private: - bool _internal_has_parent_folder() const; - public: - void clear_parent_folder(); - const std::string& parent_folder() const; - template - void set_parent_folder(ArgT0&& arg0, ArgT... args); - std::string* mutable_parent_folder(); - PROTOBUF_NODISCARD std::string* release_parent_folder(); - void set_allocated_parent_folder(std::string* parent_folder); - private: - const std::string& _internal_parent_folder() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_folder(const std::string& value); - std::string* _internal_mutable_parent_folder(); - public: - - // optional int64 id = 1; - bool has_id() const; - private: - bool _internal_has_id() const; - public: - void clear_id(); - int64_t id() const; - void set_id(int64_t value); - private: - int64_t _internal_id() const; - void _internal_set_id(int64_t value); - public: - - // optional int64 total_size = 3; - bool has_total_size() const; - private: - bool _internal_has_total_size() const; - public: - void clear_total_size(); - int64_t total_size() const; - void set_total_size(int64_t value); - private: - int64_t _internal_total_size() const; - void _internal_set_total_size(int64_t value); - public: - - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType type() const; - void set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value); - private: - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType _internal_type() const; - void _internal_set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value); - public: - - // optional bool is_sensitive = 4; - bool has_is_sensitive() const; - private: - bool _internal_has_is_sensitive() const; - public: - void clear_is_sensitive(); - bool is_sensitive() const; - void set_is_sensitive(bool value); - private: - bool _internal_is_sensitive() const; - void _internal_set_is_sensitive(bool value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.PayloadHeader) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_folder_; - int64_t id_; - int64_t total_size_; - int type_; - bool is_sensitive_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class PayloadTransferFrame_PayloadChunk final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.PayloadChunk) */ { - public: - inline PayloadTransferFrame_PayloadChunk() : PayloadTransferFrame_PayloadChunk(nullptr) {} - ~PayloadTransferFrame_PayloadChunk() override; - explicit constexpr PayloadTransferFrame_PayloadChunk(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PayloadTransferFrame_PayloadChunk(const PayloadTransferFrame_PayloadChunk& from); - PayloadTransferFrame_PayloadChunk(PayloadTransferFrame_PayloadChunk&& from) noexcept - : PayloadTransferFrame_PayloadChunk() { - *this = ::std::move(from); - } - - inline PayloadTransferFrame_PayloadChunk& operator=(const PayloadTransferFrame_PayloadChunk& from) { - CopyFrom(from); - return *this; - } - inline PayloadTransferFrame_PayloadChunk& operator=(PayloadTransferFrame_PayloadChunk&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PayloadTransferFrame_PayloadChunk& default_instance() { - return *internal_default_instance(); - } - static inline const PayloadTransferFrame_PayloadChunk* internal_default_instance() { - return reinterpret_cast( - &_PayloadTransferFrame_PayloadChunk_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(PayloadTransferFrame_PayloadChunk& a, PayloadTransferFrame_PayloadChunk& b) { - a.Swap(&b); - } - inline void Swap(PayloadTransferFrame_PayloadChunk* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PayloadTransferFrame_PayloadChunk* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PayloadTransferFrame_PayloadChunk* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PayloadTransferFrame_PayloadChunk& from); - void MergeFrom(const PayloadTransferFrame_PayloadChunk& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PayloadTransferFrame_PayloadChunk* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PayloadTransferFrame.PayloadChunk"; - } - protected: - explicit PayloadTransferFrame_PayloadChunk(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef PayloadTransferFrame_PayloadChunk_Flags Flags; - static constexpr Flags LAST_CHUNK = - PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK; - static inline bool Flags_IsValid(int value) { - return PayloadTransferFrame_PayloadChunk_Flags_IsValid(value); - } - static constexpr Flags Flags_MIN = - PayloadTransferFrame_PayloadChunk_Flags_Flags_MIN; - static constexpr Flags Flags_MAX = - PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX; - static constexpr int Flags_ARRAYSIZE = - PayloadTransferFrame_PayloadChunk_Flags_Flags_ARRAYSIZE; - template - static inline const std::string& Flags_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Flags_Name."); - return PayloadTransferFrame_PayloadChunk_Flags_Name(enum_t_value); - } - static inline bool Flags_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Flags* value) { - return PayloadTransferFrame_PayloadChunk_Flags_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kBodyFieldNumber = 3, - kOffsetFieldNumber = 2, - kFlagsFieldNumber = 1, - }; - // optional bytes body = 3; - bool has_body() const; - private: - bool _internal_has_body() const; - public: - void clear_body(); - const std::string& body() const; - template - void set_body(ArgT0&& arg0, ArgT... args); - std::string* mutable_body(); - PROTOBUF_NODISCARD std::string* release_body(); - void set_allocated_body(std::string* body); - private: - const std::string& _internal_body() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(const std::string& value); - std::string* _internal_mutable_body(); - public: - - // optional int64 offset = 2; - bool has_offset() const; - private: - bool _internal_has_offset() const; - public: - void clear_offset(); - int64_t offset() const; - void set_offset(int64_t value); - private: - int64_t _internal_offset() const; - void _internal_set_offset(int64_t value); - public: - - // optional int32 flags = 1; - bool has_flags() const; - private: - bool _internal_has_flags() const; - public: - void clear_flags(); - int32_t flags() const; - void set_flags(int32_t value); - private: - int32_t _internal_flags() const; - void _internal_set_flags(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.PayloadChunk) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_; - int64_t offset_; - int32_t flags_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class PayloadTransferFrame_ControlMessage final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.ControlMessage) */ { - public: - inline PayloadTransferFrame_ControlMessage() : PayloadTransferFrame_ControlMessage(nullptr) {} - ~PayloadTransferFrame_ControlMessage() override; - explicit constexpr PayloadTransferFrame_ControlMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PayloadTransferFrame_ControlMessage(const PayloadTransferFrame_ControlMessage& from); - PayloadTransferFrame_ControlMessage(PayloadTransferFrame_ControlMessage&& from) noexcept - : PayloadTransferFrame_ControlMessage() { - *this = ::std::move(from); - } - - inline PayloadTransferFrame_ControlMessage& operator=(const PayloadTransferFrame_ControlMessage& from) { - CopyFrom(from); - return *this; - } - inline PayloadTransferFrame_ControlMessage& operator=(PayloadTransferFrame_ControlMessage&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PayloadTransferFrame_ControlMessage& default_instance() { - return *internal_default_instance(); - } - static inline const PayloadTransferFrame_ControlMessage* internal_default_instance() { - return reinterpret_cast( - &_PayloadTransferFrame_ControlMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(PayloadTransferFrame_ControlMessage& a, PayloadTransferFrame_ControlMessage& b) { - a.Swap(&b); - } - inline void Swap(PayloadTransferFrame_ControlMessage* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PayloadTransferFrame_ControlMessage* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PayloadTransferFrame_ControlMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PayloadTransferFrame_ControlMessage& from); - void MergeFrom(const PayloadTransferFrame_ControlMessage& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PayloadTransferFrame_ControlMessage* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PayloadTransferFrame.ControlMessage"; - } - protected: - explicit PayloadTransferFrame_ControlMessage(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef PayloadTransferFrame_ControlMessage_EventType EventType; - static constexpr EventType UNKNOWN_EVENT_TYPE = - PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE; - static constexpr EventType PAYLOAD_ERROR = - PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_ERROR; - static constexpr EventType PAYLOAD_CANCELED = - PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED; - static inline bool EventType_IsValid(int value) { - return PayloadTransferFrame_ControlMessage_EventType_IsValid(value); - } - static constexpr EventType EventType_MIN = - PayloadTransferFrame_ControlMessage_EventType_EventType_MIN; - static constexpr EventType EventType_MAX = - PayloadTransferFrame_ControlMessage_EventType_EventType_MAX; - static constexpr int EventType_ARRAYSIZE = - PayloadTransferFrame_ControlMessage_EventType_EventType_ARRAYSIZE; - template - static inline const std::string& EventType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EventType_Name."); - return PayloadTransferFrame_ControlMessage_EventType_Name(enum_t_value); - } - static inline bool EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - EventType* value) { - return PayloadTransferFrame_ControlMessage_EventType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kOffsetFieldNumber = 2, - kEventFieldNumber = 1, - }; - // optional int64 offset = 2; - bool has_offset() const; - private: - bool _internal_has_offset() const; - public: - void clear_offset(); - int64_t offset() const; - void set_offset(int64_t value); - private: - int64_t _internal_offset() const; - void _internal_set_offset(int64_t value); - public: - - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; - bool has_event() const; - private: - bool _internal_has_event() const; - public: - void clear_event(); - ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType event() const; - void set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value); - private: - ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType _internal_event() const; - void _internal_set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.ControlMessage) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int64_t offset_; - int event_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class PayloadTransferFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame) */ { - public: - inline PayloadTransferFrame() : PayloadTransferFrame(nullptr) {} - ~PayloadTransferFrame() override; - explicit constexpr PayloadTransferFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PayloadTransferFrame(const PayloadTransferFrame& from); - PayloadTransferFrame(PayloadTransferFrame&& from) noexcept - : PayloadTransferFrame() { - *this = ::std::move(from); - } - - inline PayloadTransferFrame& operator=(const PayloadTransferFrame& from) { - CopyFrom(from); - return *this; - } - inline PayloadTransferFrame& operator=(PayloadTransferFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PayloadTransferFrame& default_instance() { - return *internal_default_instance(); - } - static inline const PayloadTransferFrame* internal_default_instance() { - return reinterpret_cast( - &_PayloadTransferFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(PayloadTransferFrame& a, PayloadTransferFrame& b) { - a.Swap(&b); - } - inline void Swap(PayloadTransferFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PayloadTransferFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PayloadTransferFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PayloadTransferFrame& from); - void MergeFrom(const PayloadTransferFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PayloadTransferFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PayloadTransferFrame"; - } - protected: - explicit PayloadTransferFrame(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef PayloadTransferFrame_PayloadHeader PayloadHeader; - typedef PayloadTransferFrame_PayloadChunk PayloadChunk; - typedef PayloadTransferFrame_ControlMessage ControlMessage; - - typedef PayloadTransferFrame_PacketType PacketType; - static constexpr PacketType UNKNOWN_PACKET_TYPE = - PayloadTransferFrame_PacketType_UNKNOWN_PACKET_TYPE; - static constexpr PacketType DATA = - PayloadTransferFrame_PacketType_DATA; - static constexpr PacketType CONTROL = - PayloadTransferFrame_PacketType_CONTROL; - static inline bool PacketType_IsValid(int value) { - return PayloadTransferFrame_PacketType_IsValid(value); - } - static constexpr PacketType PacketType_MIN = - PayloadTransferFrame_PacketType_PacketType_MIN; - static constexpr PacketType PacketType_MAX = - PayloadTransferFrame_PacketType_PacketType_MAX; - static constexpr int PacketType_ARRAYSIZE = - PayloadTransferFrame_PacketType_PacketType_ARRAYSIZE; - template - static inline const std::string& PacketType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PacketType_Name."); - return PayloadTransferFrame_PacketType_Name(enum_t_value); - } - static inline bool PacketType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - PacketType* value) { - return PayloadTransferFrame_PacketType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kPayloadHeaderFieldNumber = 2, - kPayloadChunkFieldNumber = 3, - kControlMessageFieldNumber = 4, - kPacketTypeFieldNumber = 1, - }; - // optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; - bool has_payload_header() const; - private: - bool _internal_has_payload_header() const; - public: - void clear_payload_header(); - const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& payload_header() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* release_payload_header(); - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* mutable_payload_header(); - void set_allocated_payload_header(::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header); - private: - const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& _internal_payload_header() const; - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* _internal_mutable_payload_header(); - public: - void unsafe_arena_set_allocated_payload_header( - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header); - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* unsafe_arena_release_payload_header(); - - // optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; - bool has_payload_chunk() const; - private: - bool _internal_has_payload_chunk() const; - public: - void clear_payload_chunk(); - const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& payload_chunk() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* release_payload_chunk(); - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* mutable_payload_chunk(); - void set_allocated_payload_chunk(::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk); - private: - const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& _internal_payload_chunk() const; - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* _internal_mutable_payload_chunk(); - public: - void unsafe_arena_set_allocated_payload_chunk( - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk); - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* unsafe_arena_release_payload_chunk(); - - // optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; - bool has_control_message() const; - private: - bool _internal_has_control_message() const; - public: - void clear_control_message(); - const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& control_message() const; - PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame_ControlMessage* release_control_message(); - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* mutable_control_message(); - void set_allocated_control_message(::location::nearby::connections::PayloadTransferFrame_ControlMessage* control_message); - private: - const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& _internal_control_message() const; - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* _internal_mutable_control_message(); - public: - void unsafe_arena_set_allocated_control_message( - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* control_message); - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* unsafe_arena_release_control_message(); - - // optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; - bool has_packet_type() const; - private: - bool _internal_has_packet_type() const; - public: - void clear_packet_type(); - ::location::nearby::connections::PayloadTransferFrame_PacketType packet_type() const; - void set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value); - private: - ::location::nearby::connections::PayloadTransferFrame_PacketType _internal_packet_type() const; - void _internal_set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header_; - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk_; - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* control_message_; - int packet_type_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSsidFieldNumber = 1, - kPasswordFieldNumber = 2, - kGatewayFieldNumber = 4, - kPortFieldNumber = 3, - kFrequencyFieldNumber = 5, - }; - // optional string ssid = 1; - bool has_ssid() const; - private: - bool _internal_has_ssid() const; - public: - void clear_ssid(); - const std::string& ssid() const; - template - void set_ssid(ArgT0&& arg0, ArgT... args); - std::string* mutable_ssid(); - PROTOBUF_NODISCARD std::string* release_ssid(); - void set_allocated_ssid(std::string* ssid); - private: - const std::string& _internal_ssid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ssid(const std::string& value); - std::string* _internal_mutable_ssid(); - public: - - // optional string password = 2; - bool has_password() const; - private: - bool _internal_has_password() const; - public: - void clear_password(); - const std::string& password() const; - template - void set_password(ArgT0&& arg0, ArgT... args); - std::string* mutable_password(); - PROTOBUF_NODISCARD std::string* release_password(); - void set_allocated_password(std::string* password); - private: - const std::string& _internal_password() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(const std::string& value); - std::string* _internal_mutable_password(); - public: - - // optional string gateway = 4 [default = "0.0.0.0"]; - bool has_gateway() const; - private: - bool _internal_has_gateway() const; - public: - void clear_gateway(); - const std::string& gateway() const; - template - void set_gateway(ArgT0&& arg0, ArgT... args); - std::string* mutable_gateway(); - PROTOBUF_NODISCARD std::string* release_gateway(); - void set_allocated_gateway(std::string* gateway); - private: - const std::string& _internal_gateway() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_gateway(const std::string& value); - std::string* _internal_mutable_gateway(); - public: - - // optional int32 port = 3; - bool has_port() const; - private: - bool _internal_has_port() const; - public: - void clear_port(); - int32_t port() const; - void set_port(int32_t value); - private: - int32_t _internal_port() const; - void _internal_set_port(int32_t value); - public: - - // optional int32 frequency = 5 [default = -1]; - bool has_frequency() const; - private: - bool _internal_has_frequency() const; - public: - void clear_frequency(); - int32_t frequency() const; - void set_frequency(int32_t value); - private: - int32_t _internal_frequency() const; - void _internal_set_frequency(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ssid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; - static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_gateway_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gateway_; - int32_t port_; - int32_t frequency_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kIpAddressFieldNumber = 1, - kWifiPortFieldNumber = 2, - }; - // optional bytes ip_address = 1; - bool has_ip_address() const; - private: - bool _internal_has_ip_address() const; - public: - void clear_ip_address(); - const std::string& ip_address() const; - template - void set_ip_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_ip_address(); - PROTOBUF_NODISCARD std::string* release_ip_address(); - void set_allocated_ip_address(std::string* ip_address); - private: - const std::string& _internal_ip_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip_address(const std::string& value); - std::string* _internal_mutable_ip_address(); - public: - - // optional int32 wifi_port = 2; - bool has_wifi_port() const; - private: - bool _internal_has_wifi_port() const; - public: - void clear_wifi_port(); - int32_t wifi_port() const; - void set_wifi_port(int32_t value); - private: - int32_t _internal_wifi_port() const; - void _internal_set_wifi_port(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_; - int32_t wifi_port_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kServiceNameFieldNumber = 1, - kMacAddressFieldNumber = 2, - }; - // optional string service_name = 1; - bool has_service_name() const; - private: - bool _internal_has_service_name() const; - public: - void clear_service_name(); - const std::string& service_name() const; - template - void set_service_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_name(); - PROTOBUF_NODISCARD std::string* release_service_name(); - void set_allocated_service_name(std::string* service_name); - private: - const std::string& _internal_service_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_name(const std::string& value); - std::string* _internal_mutable_service_name(); - public: - - // optional string mac_address = 2; - bool has_mac_address() const; - private: - bool _internal_has_mac_address() const; - public: - void clear_mac_address(); - const std::string& mac_address() const; - template - void set_mac_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_mac_address(); - PROTOBUF_NODISCARD std::string* release_mac_address(); - void set_allocated_mac_address(std::string* mac_address); - private: - const std::string& _internal_mac_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_mac_address(const std::string& value); - std::string* _internal_mutable_mac_address(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr mac_address_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kServiceIdFieldNumber = 1, - kServiceInfoFieldNumber = 2, - kPasswordFieldNumber = 3, - }; - // optional string service_id = 1; - bool has_service_id() const; - private: - bool _internal_has_service_id() const; - public: - void clear_service_id(); - const std::string& service_id() const; - template - void set_service_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_id(); - PROTOBUF_NODISCARD std::string* release_service_id(); - void set_allocated_service_id(std::string* service_id); - private: - const std::string& _internal_service_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_id(const std::string& value); - std::string* _internal_mutable_service_id(); - public: - - // optional bytes service_info = 2; - bool has_service_info() const; - private: - bool _internal_has_service_info() const; - public: - void clear_service_info(); - const std::string& service_info() const; - template - void set_service_info(ArgT0&& arg0, ArgT... args); - std::string* mutable_service_info(); - PROTOBUF_NODISCARD std::string* release_service_info(); - void set_allocated_service_info(std::string* service_info); - private: - const std::string& _internal_service_info() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_info(const std::string& value); - std::string* _internal_mutable_service_info(); - public: - - // optional string password = 3; - bool has_password() const; - private: - bool _internal_has_password() const; - public: - void clear_password(); - const std::string& password() const; - template - void set_password(ArgT0&& arg0, ArgT... args); - std::string* mutable_password(); - PROTOBUF_NODISCARD std::string* release_password(); - void set_allocated_password(std::string* password); - private: - const std::string& _internal_password() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(const std::string& value); - std::string* _internal_mutable_password(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr service_info_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSsidFieldNumber = 1, - kPasswordFieldNumber = 2, - kGatewayFieldNumber = 5, - kPortFieldNumber = 3, - kFrequencyFieldNumber = 4, - }; - // optional string ssid = 1; - bool has_ssid() const; - private: - bool _internal_has_ssid() const; - public: - void clear_ssid(); - const std::string& ssid() const; - template - void set_ssid(ArgT0&& arg0, ArgT... args); - std::string* mutable_ssid(); - PROTOBUF_NODISCARD std::string* release_ssid(); - void set_allocated_ssid(std::string* ssid); - private: - const std::string& _internal_ssid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ssid(const std::string& value); - std::string* _internal_mutable_ssid(); - public: - - // optional string password = 2; - bool has_password() const; - private: - bool _internal_has_password() const; - public: - void clear_password(); - const std::string& password() const; - template - void set_password(ArgT0&& arg0, ArgT... args); - std::string* mutable_password(); - PROTOBUF_NODISCARD std::string* release_password(); - void set_allocated_password(std::string* password); - private: - const std::string& _internal_password() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_password(const std::string& value); - std::string* _internal_mutable_password(); - public: - - // optional string gateway = 5 [default = "0.0.0.0"]; - bool has_gateway() const; - private: - bool _internal_has_gateway() const; - public: - void clear_gateway(); - const std::string& gateway() const; - template - void set_gateway(ArgT0&& arg0, ArgT... args); - std::string* mutable_gateway(); - PROTOBUF_NODISCARD std::string* release_gateway(); - void set_allocated_gateway(std::string* gateway); - private: - const std::string& _internal_gateway() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_gateway(const std::string& value); - std::string* _internal_mutable_gateway(); - public: - - // optional int32 port = 3; - bool has_port() const; - private: - bool _internal_has_port() const; - public: - void clear_port(); - int32_t port() const; - void set_port(int32_t value); - private: - int32_t _internal_port() const; - void _internal_set_port(int32_t value); - public: - - // optional int32 frequency = 4; - bool has_frequency() const; - private: - bool _internal_has_frequency() const; - public: - void clear_frequency(); - int32_t frequency() const; - void set_frequency(int32_t value); - private: - int32_t _internal_frequency() const; - void _internal_set_frequency(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ssid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_; - static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_gateway_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gateway_; - int32_t port_; - int32_t frequency_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPeerIdFieldNumber = 1, - kLocationHintFieldNumber = 2, - }; - // optional string peer_id = 1; - bool has_peer_id() const; - private: - bool _internal_has_peer_id() const; - public: - void clear_peer_id(); - const std::string& peer_id() const; - template - void set_peer_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_peer_id(); - PROTOBUF_NODISCARD std::string* release_peer_id(); - void set_allocated_peer_id(std::string* peer_id); - private: - const std::string& _internal_peer_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_peer_id(const std::string& value); - std::string* _internal_mutable_peer_id(); - public: - - // optional .location.nearby.connections.LocationHint location_hint = 2; - bool has_location_hint() const; - private: - bool _internal_has_location_hint() const; - public: - void clear_location_hint(); - const ::location::nearby::connections::LocationHint& location_hint() const; - PROTOBUF_NODISCARD ::location::nearby::connections::LocationHint* release_location_hint(); - ::location::nearby::connections::LocationHint* mutable_location_hint(); - void set_allocated_location_hint(::location::nearby::connections::LocationHint* location_hint); - private: - const ::location::nearby::connections::LocationHint& _internal_location_hint() const; - ::location::nearby::connections::LocationHint* _internal_mutable_location_hint(); - public: - void unsafe_arena_set_allocated_location_hint( - ::location::nearby::connections::LocationHint* location_hint); - ::location::nearby::connections::LocationHint* unsafe_arena_release_location_hint(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr peer_id_; - ::location::nearby::connections::LocationHint* location_hint_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) */ { - public: - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo() : BandwidthUpgradeNegotiationFrame_UpgradePathInfo(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_UpgradePathInfo() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from); - BandwidthUpgradeNegotiationFrame_UpgradePathInfo(BandwidthUpgradeNegotiationFrame_UpgradePathInfo&& from) noexcept - : BandwidthUpgradeNegotiationFrame_UpgradePathInfo() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo& operator=(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_UpgradePathInfo& operator=(BandwidthUpgradeNegotiationFrame_UpgradePathInfo&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_UpgradePathInfo* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - friend void swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo& a, BandwidthUpgradeNegotiationFrame_UpgradePathInfo& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_UpgradePathInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_UpgradePathInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_UpgradePathInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_UpgradePathInfo(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials WifiHotspotCredentials; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket WifiLanSocket; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials BluetoothCredentials; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials WifiAwareCredentials; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials WifiDirectCredentials; - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials WebRtcCredentials; - - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium Medium; - static constexpr Medium UNKNOWN_MEDIUM = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_UNKNOWN_MEDIUM; - PROTOBUF_DEPRECATED_ENUM static constexpr Medium MDNS = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_MDNS; - static constexpr Medium BLUETOOTH = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLUETOOTH; - static constexpr Medium WIFI_HOTSPOT = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_HOTSPOT; - static constexpr Medium BLE = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLE; - static constexpr Medium WIFI_LAN = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_LAN; - static constexpr Medium WIFI_AWARE = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_AWARE; - static constexpr Medium NFC = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_NFC; - static constexpr Medium WIFI_DIRECT = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_DIRECT; - static constexpr Medium WEB_RTC = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC; - static constexpr Medium USB = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB; - static inline bool Medium_IsValid(int value) { - return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(value); - } - static constexpr Medium Medium_MIN = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MIN; - static constexpr Medium Medium_MAX = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX; - static constexpr int Medium_ARRAYSIZE = - BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_ARRAYSIZE; - template - static inline const std::string& Medium_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Medium_Name."); - return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(enum_t_value); - } - static inline bool Medium_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Medium* value) { - return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kWifiHotspotCredentialsFieldNumber = 2, - kWifiLanSocketFieldNumber = 3, - kBluetoothCredentialsFieldNumber = 4, - kWifiAwareCredentialsFieldNumber = 5, - kWifiDirectCredentialsFieldNumber = 6, - kWebRtcCredentialsFieldNumber = 8, - kMediumFieldNumber = 1, - kSupportsDisablingEncryptionFieldNumber = 7, - kSupportsClientIntroductionAckFieldNumber = 9, - }; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; - bool has_wifi_hotspot_credentials() const; - private: - bool _internal_has_wifi_hotspot_credentials() const; - public: - void clear_wifi_hotspot_credentials(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& wifi_hotspot_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* release_wifi_hotspot_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* mutable_wifi_hotspot_credentials(); - void set_allocated_wifi_hotspot_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* wifi_hotspot_credentials); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& _internal_wifi_hotspot_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* _internal_mutable_wifi_hotspot_credentials(); - public: - void unsafe_arena_set_allocated_wifi_hotspot_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* wifi_hotspot_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* unsafe_arena_release_wifi_hotspot_credentials(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; - bool has_wifi_lan_socket() const; - private: - bool _internal_has_wifi_lan_socket() const; - public: - void clear_wifi_lan_socket(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& wifi_lan_socket() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* release_wifi_lan_socket(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* mutable_wifi_lan_socket(); - void set_allocated_wifi_lan_socket(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* wifi_lan_socket); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& _internal_wifi_lan_socket() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* _internal_mutable_wifi_lan_socket(); - public: - void unsafe_arena_set_allocated_wifi_lan_socket( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* wifi_lan_socket); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* unsafe_arena_release_wifi_lan_socket(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; - bool has_bluetooth_credentials() const; - private: - bool _internal_has_bluetooth_credentials() const; - public: - void clear_bluetooth_credentials(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& bluetooth_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* release_bluetooth_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* mutable_bluetooth_credentials(); - void set_allocated_bluetooth_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* bluetooth_credentials); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& _internal_bluetooth_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* _internal_mutable_bluetooth_credentials(); - public: - void unsafe_arena_set_allocated_bluetooth_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* bluetooth_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* unsafe_arena_release_bluetooth_credentials(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; - bool has_wifi_aware_credentials() const; - private: - bool _internal_has_wifi_aware_credentials() const; - public: - void clear_wifi_aware_credentials(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& wifi_aware_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* release_wifi_aware_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* mutable_wifi_aware_credentials(); - void set_allocated_wifi_aware_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* wifi_aware_credentials); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& _internal_wifi_aware_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* _internal_mutable_wifi_aware_credentials(); - public: - void unsafe_arena_set_allocated_wifi_aware_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* wifi_aware_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* unsafe_arena_release_wifi_aware_credentials(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; - bool has_wifi_direct_credentials() const; - private: - bool _internal_has_wifi_direct_credentials() const; - public: - void clear_wifi_direct_credentials(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& wifi_direct_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* release_wifi_direct_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* mutable_wifi_direct_credentials(); - void set_allocated_wifi_direct_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* wifi_direct_credentials); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& _internal_wifi_direct_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* _internal_mutable_wifi_direct_credentials(); - public: - void unsafe_arena_set_allocated_wifi_direct_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* wifi_direct_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* unsafe_arena_release_wifi_direct_credentials(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; - bool has_web_rtc_credentials() const; - private: - bool _internal_has_web_rtc_credentials() const; - public: - void clear_web_rtc_credentials(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& web_rtc_credentials() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* release_web_rtc_credentials(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* mutable_web_rtc_credentials(); - void set_allocated_web_rtc_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* web_rtc_credentials); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& _internal_web_rtc_credentials() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* _internal_mutable_web_rtc_credentials(); - public: - void unsafe_arena_set_allocated_web_rtc_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* web_rtc_credentials); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* unsafe_arena_release_web_rtc_credentials(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; - bool has_medium() const; - private: - bool _internal_has_medium() const; - public: - void clear_medium(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium medium() const; - void set_medium(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value); - private: - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium _internal_medium() const; - void _internal_set_medium(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value); - public: - - // optional bool supports_disabling_encryption = 7; - bool has_supports_disabling_encryption() const; - private: - bool _internal_has_supports_disabling_encryption() const; - public: - void clear_supports_disabling_encryption(); - bool supports_disabling_encryption() const; - void set_supports_disabling_encryption(bool value); - private: - bool _internal_supports_disabling_encryption() const; - void _internal_set_supports_disabling_encryption(bool value); - public: - - // optional bool supports_client_introduction_ack = 9; - bool has_supports_client_introduction_ack() const; - private: - bool _internal_has_supports_client_introduction_ack() const; - public: - void clear_supports_client_introduction_ack(); - bool supports_client_introduction_ack() const; - void set_supports_client_introduction_ack(bool value); - private: - bool _internal_supports_client_introduction_ack() const; - void _internal_set_supports_client_introduction_ack(bool value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* wifi_hotspot_credentials_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* wifi_lan_socket_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* bluetooth_credentials_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* wifi_aware_credentials_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* wifi_direct_credentials_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* web_rtc_credentials_; - int medium_; - bool supports_disabling_encryption_; - bool supports_client_introduction_ack_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_ClientIntroduction final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) */ { - public: - inline BandwidthUpgradeNegotiationFrame_ClientIntroduction() : BandwidthUpgradeNegotiationFrame_ClientIntroduction(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_ClientIntroduction() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_ClientIntroduction(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_ClientIntroduction(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from); - BandwidthUpgradeNegotiationFrame_ClientIntroduction(BandwidthUpgradeNegotiationFrame_ClientIntroduction&& from) noexcept - : BandwidthUpgradeNegotiationFrame_ClientIntroduction() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_ClientIntroduction& operator=(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_ClientIntroduction& operator=(BandwidthUpgradeNegotiationFrame_ClientIntroduction&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_ClientIntroduction& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_ClientIntroduction* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroduction& a, BandwidthUpgradeNegotiationFrame_ClientIntroduction& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_ClientIntroduction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroduction& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroduction* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_ClientIntroduction(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kEndpointIdFieldNumber = 1, - kSupportsDisablingEncryptionFieldNumber = 2, - }; - // optional string endpoint_id = 1; - bool has_endpoint_id() const; - private: - bool _internal_has_endpoint_id() const; - public: - void clear_endpoint_id(); - const std::string& endpoint_id() const; - template - void set_endpoint_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_endpoint_id(); - PROTOBUF_NODISCARD std::string* release_endpoint_id(); - void set_allocated_endpoint_id(std::string* endpoint_id); - private: - const std::string& _internal_endpoint_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const std::string& value); - std::string* _internal_mutable_endpoint_id(); - public: - - // optional bool supports_disabling_encryption = 2; - bool has_supports_disabling_encryption() const; - private: - bool _internal_has_supports_disabling_encryption() const; - public: - void clear_supports_disabling_encryption(); - bool supports_disabling_encryption() const; - void set_supports_disabling_encryption(bool value); - private: - bool _internal_supports_disabling_encryption() const; - void _internal_set_supports_disabling_encryption(bool value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; - bool supports_disabling_encryption_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) */ { - public: - inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck() : BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(nullptr) {} - ~BandwidthUpgradeNegotiationFrame_ClientIntroductionAck() override; - explicit constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from); - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck&& from) noexcept - : BandwidthUpgradeNegotiationFrame_ClientIntroductionAck() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& operator=(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& operator=(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& a, BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class BandwidthUpgradeNegotiationFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame) */ { - public: - inline BandwidthUpgradeNegotiationFrame() : BandwidthUpgradeNegotiationFrame(nullptr) {} - ~BandwidthUpgradeNegotiationFrame() override; - explicit constexpr BandwidthUpgradeNegotiationFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - BandwidthUpgradeNegotiationFrame(const BandwidthUpgradeNegotiationFrame& from); - BandwidthUpgradeNegotiationFrame(BandwidthUpgradeNegotiationFrame&& from) noexcept - : BandwidthUpgradeNegotiationFrame() { - *this = ::std::move(from); - } - - inline BandwidthUpgradeNegotiationFrame& operator=(const BandwidthUpgradeNegotiationFrame& from) { - CopyFrom(from); - return *this; - } - inline BandwidthUpgradeNegotiationFrame& operator=(BandwidthUpgradeNegotiationFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const BandwidthUpgradeNegotiationFrame& default_instance() { - return *internal_default_instance(); - } - static inline const BandwidthUpgradeNegotiationFrame* internal_default_instance() { - return reinterpret_cast( - &_BandwidthUpgradeNegotiationFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - friend void swap(BandwidthUpgradeNegotiationFrame& a, BandwidthUpgradeNegotiationFrame& b) { - a.Swap(&b); - } - inline void Swap(BandwidthUpgradeNegotiationFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - BandwidthUpgradeNegotiationFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const BandwidthUpgradeNegotiationFrame& from); - void MergeFrom(const BandwidthUpgradeNegotiationFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(BandwidthUpgradeNegotiationFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.BandwidthUpgradeNegotiationFrame"; - } - protected: - explicit BandwidthUpgradeNegotiationFrame(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo UpgradePathInfo; - typedef BandwidthUpgradeNegotiationFrame_ClientIntroduction ClientIntroduction; - typedef BandwidthUpgradeNegotiationFrame_ClientIntroductionAck ClientIntroductionAck; - - typedef BandwidthUpgradeNegotiationFrame_EventType EventType; - static constexpr EventType UNKNOWN_EVENT_TYPE = - BandwidthUpgradeNegotiationFrame_EventType_UNKNOWN_EVENT_TYPE; - static constexpr EventType UPGRADE_PATH_AVAILABLE = - BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_AVAILABLE; - static constexpr EventType LAST_WRITE_TO_PRIOR_CHANNEL = - BandwidthUpgradeNegotiationFrame_EventType_LAST_WRITE_TO_PRIOR_CHANNEL; - static constexpr EventType SAFE_TO_CLOSE_PRIOR_CHANNEL = - BandwidthUpgradeNegotiationFrame_EventType_SAFE_TO_CLOSE_PRIOR_CHANNEL; - static constexpr EventType CLIENT_INTRODUCTION = - BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION; - static constexpr EventType UPGRADE_FAILURE = - BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_FAILURE; - static constexpr EventType CLIENT_INTRODUCTION_ACK = - BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION_ACK; - static inline bool EventType_IsValid(int value) { - return BandwidthUpgradeNegotiationFrame_EventType_IsValid(value); - } - static constexpr EventType EventType_MIN = - BandwidthUpgradeNegotiationFrame_EventType_EventType_MIN; - static constexpr EventType EventType_MAX = - BandwidthUpgradeNegotiationFrame_EventType_EventType_MAX; - static constexpr int EventType_ARRAYSIZE = - BandwidthUpgradeNegotiationFrame_EventType_EventType_ARRAYSIZE; - template - static inline const std::string& EventType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function EventType_Name."); - return BandwidthUpgradeNegotiationFrame_EventType_Name(enum_t_value); - } - static inline bool EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - EventType* value) { - return BandwidthUpgradeNegotiationFrame_EventType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kUpgradePathInfoFieldNumber = 2, - kClientIntroductionFieldNumber = 3, - kClientIntroductionAckFieldNumber = 4, - kEventTypeFieldNumber = 1, - }; - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; - bool has_upgrade_path_info() const; - private: - bool _internal_has_upgrade_path_info() const; - public: - void clear_upgrade_path_info(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& upgrade_path_info() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* release_upgrade_path_info(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* mutable_upgrade_path_info(); - void set_allocated_upgrade_path_info(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& _internal_upgrade_path_info() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* _internal_mutable_upgrade_path_info(); - public: - void unsafe_arena_set_allocated_upgrade_path_info( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* unsafe_arena_release_upgrade_path_info(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; - bool has_client_introduction() const; - private: - bool _internal_has_client_introduction() const; - public: - void clear_client_introduction(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& client_introduction() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* release_client_introduction(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* mutable_client_introduction(); - void set_allocated_client_introduction(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& _internal_client_introduction() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* _internal_mutable_client_introduction(); - public: - void unsafe_arena_set_allocated_client_introduction( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* unsafe_arena_release_client_introduction(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; - bool has_client_introduction_ack() const; - private: - bool _internal_has_client_introduction_ack() const; - public: - void clear_client_introduction_ack(); - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& client_introduction_ack() const; - PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* release_client_introduction_ack(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* mutable_client_introduction_ack(); - void set_allocated_client_introduction_ack(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack); - private: - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& _internal_client_introduction_ack() const; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* _internal_mutable_client_introduction_ack(); - public: - void unsafe_arena_set_allocated_client_introduction_ack( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* unsafe_arena_release_client_introduction_ack(); - - // optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; - bool has_event_type() const; - private: - bool _internal_has_event_type() const; - public: - void clear_event_type(); - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType event_type() const; - void set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value); - private: - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType _internal_event_type() const; - void _internal_set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction_; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack_; - int event_type_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class KeepAliveFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.KeepAliveFrame) */ { - public: - inline KeepAliveFrame() : KeepAliveFrame(nullptr) {} - ~KeepAliveFrame() override; - explicit constexpr KeepAliveFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - KeepAliveFrame(const KeepAliveFrame& from); - KeepAliveFrame(KeepAliveFrame&& from) noexcept - : KeepAliveFrame() { - *this = ::std::move(from); - } - - inline KeepAliveFrame& operator=(const KeepAliveFrame& from) { - CopyFrom(from); - return *this; - } - inline KeepAliveFrame& operator=(KeepAliveFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const KeepAliveFrame& default_instance() { - return *internal_default_instance(); - } - static inline const KeepAliveFrame* internal_default_instance() { - return reinterpret_cast( - &_KeepAliveFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - friend void swap(KeepAliveFrame& a, KeepAliveFrame& b) { - a.Swap(&b); - } - inline void Swap(KeepAliveFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(KeepAliveFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - KeepAliveFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const KeepAliveFrame& from); - void MergeFrom(const KeepAliveFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(KeepAliveFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.KeepAliveFrame"; - } - protected: - explicit KeepAliveFrame(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kAckFieldNumber = 1, - }; - // optional bool ack = 1; - bool has_ack() const; - private: - bool _internal_has_ack() const; - public: - void clear_ack(); - bool ack() const; - void set_ack(bool value); - private: - bool _internal_ack() const; - void _internal_set_ack(bool value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.KeepAliveFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - bool ack_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class DisconnectionFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.DisconnectionFrame) */ { - public: - inline DisconnectionFrame() : DisconnectionFrame(nullptr) {} - ~DisconnectionFrame() override; - explicit constexpr DisconnectionFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DisconnectionFrame(const DisconnectionFrame& from); - DisconnectionFrame(DisconnectionFrame&& from) noexcept - : DisconnectionFrame() { - *this = ::std::move(from); - } - - inline DisconnectionFrame& operator=(const DisconnectionFrame& from) { - CopyFrom(from); - return *this; - } - inline DisconnectionFrame& operator=(DisconnectionFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const DisconnectionFrame& default_instance() { - return *internal_default_instance(); - } - static inline const DisconnectionFrame* internal_default_instance() { - return reinterpret_cast( - &_DisconnectionFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - friend void swap(DisconnectionFrame& a, DisconnectionFrame& b) { - a.Swap(&b); - } - inline void Swap(DisconnectionFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DisconnectionFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DisconnectionFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const DisconnectionFrame& from); - void MergeFrom(const DisconnectionFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DisconnectionFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.DisconnectionFrame"; - } - protected: - explicit DisconnectionFrame(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:location.nearby.connections.DisconnectionFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class PairedKeyEncryptionFrame final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PairedKeyEncryptionFrame) */ { - public: - inline PairedKeyEncryptionFrame() : PairedKeyEncryptionFrame(nullptr) {} - ~PairedKeyEncryptionFrame() override; - explicit constexpr PairedKeyEncryptionFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PairedKeyEncryptionFrame(const PairedKeyEncryptionFrame& from); - PairedKeyEncryptionFrame(PairedKeyEncryptionFrame&& from) noexcept - : PairedKeyEncryptionFrame() { - *this = ::std::move(from); - } - - inline PairedKeyEncryptionFrame& operator=(const PairedKeyEncryptionFrame& from) { - CopyFrom(from); - return *this; - } - inline PairedKeyEncryptionFrame& operator=(PairedKeyEncryptionFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const PairedKeyEncryptionFrame& default_instance() { - return *internal_default_instance(); - } - static inline const PairedKeyEncryptionFrame* internal_default_instance() { - return reinterpret_cast( - &_PairedKeyEncryptionFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - friend void swap(PairedKeyEncryptionFrame& a, PairedKeyEncryptionFrame& b) { - a.Swap(&b); - } - inline void Swap(PairedKeyEncryptionFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PairedKeyEncryptionFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PairedKeyEncryptionFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const PairedKeyEncryptionFrame& from); - void MergeFrom(const PairedKeyEncryptionFrame& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(PairedKeyEncryptionFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.PairedKeyEncryptionFrame"; - } - protected: - explicit PairedKeyEncryptionFrame(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSignedDataFieldNumber = 1, - }; - // optional bytes signed_data = 1; - bool has_signed_data() const; - private: - bool _internal_has_signed_data() const; - public: - void clear_signed_data(); - const std::string& signed_data() const; - template - void set_signed_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_signed_data(); - PROTOBUF_NODISCARD std::string* release_signed_data(); - void set_allocated_signed_data(std::string* signed_data); - private: - const std::string& _internal_signed_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_signed_data(const std::string& value); - std::string* _internal_mutable_signed_data(); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.PairedKeyEncryptionFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signed_data_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class MediumMetadata final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.MediumMetadata) */ { - public: - inline MediumMetadata() : MediumMetadata(nullptr) {} - ~MediumMetadata() override; - explicit constexpr MediumMetadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - MediumMetadata(const MediumMetadata& from); - MediumMetadata(MediumMetadata&& from) noexcept - : MediumMetadata() { - *this = ::std::move(from); - } - - inline MediumMetadata& operator=(const MediumMetadata& from) { - CopyFrom(from); - return *this; - } - inline MediumMetadata& operator=(MediumMetadata&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const MediumMetadata& default_instance() { - return *internal_default_instance(); - } - static inline const MediumMetadata* internal_default_instance() { - return reinterpret_cast( - &_MediumMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - friend void swap(MediumMetadata& a, MediumMetadata& b) { - a.Swap(&b); - } - inline void Swap(MediumMetadata* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(MediumMetadata* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - MediumMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const MediumMetadata& from); - void MergeFrom(const MediumMetadata& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(MediumMetadata* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.MediumMetadata"; - } - protected: - explicit MediumMetadata(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBssidFieldNumber = 2, - kIpAddressFieldNumber = 3, - kAvailableChannelsFieldNumber = 7, - kWifiDirectCliUsableChannelsFieldNumber = 8, - kWifiLanUsableChannelsFieldNumber = 9, - kWifiAwareUsableChannelsFieldNumber = 10, - kWifiHotspotStaUsableChannelsFieldNumber = 11, - kSupports5GhzFieldNumber = 1, - kSupports6GhzFieldNumber = 4, - kMobileRadioFieldNumber = 5, - kApFrequencyFieldNumber = 6, - }; - // optional string bssid = 2; - bool has_bssid() const; - private: - bool _internal_has_bssid() const; - public: - void clear_bssid(); - const std::string& bssid() const; - template - void set_bssid(ArgT0&& arg0, ArgT... args); - std::string* mutable_bssid(); - PROTOBUF_NODISCARD std::string* release_bssid(); - void set_allocated_bssid(std::string* bssid); - private: - const std::string& _internal_bssid() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bssid(const std::string& value); - std::string* _internal_mutable_bssid(); - public: - - // optional bytes ip_address = 3; - bool has_ip_address() const; - private: - bool _internal_has_ip_address() const; - public: - void clear_ip_address(); - const std::string& ip_address() const; - template - void set_ip_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_ip_address(); - PROTOBUF_NODISCARD std::string* release_ip_address(); - void set_allocated_ip_address(std::string* ip_address); - private: - const std::string& _internal_ip_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip_address(const std::string& value); - std::string* _internal_mutable_ip_address(); - public: - - // optional .location.nearby.connections.AvailableChannels available_channels = 7; - bool has_available_channels() const; - private: - bool _internal_has_available_channels() const; - public: - void clear_available_channels(); - const ::location::nearby::connections::AvailableChannels& available_channels() const; - PROTOBUF_NODISCARD ::location::nearby::connections::AvailableChannels* release_available_channels(); - ::location::nearby::connections::AvailableChannels* mutable_available_channels(); - void set_allocated_available_channels(::location::nearby::connections::AvailableChannels* available_channels); - private: - const ::location::nearby::connections::AvailableChannels& _internal_available_channels() const; - ::location::nearby::connections::AvailableChannels* _internal_mutable_available_channels(); - public: - void unsafe_arena_set_allocated_available_channels( - ::location::nearby::connections::AvailableChannels* available_channels); - ::location::nearby::connections::AvailableChannels* unsafe_arena_release_available_channels(); - - // optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; - bool has_wifi_direct_cli_usable_channels() const; - private: - bool _internal_has_wifi_direct_cli_usable_channels() const; - public: - void clear_wifi_direct_cli_usable_channels(); - const ::location::nearby::connections::WifiDirectCliUsableChannels& wifi_direct_cli_usable_channels() const; - PROTOBUF_NODISCARD ::location::nearby::connections::WifiDirectCliUsableChannels* release_wifi_direct_cli_usable_channels(); - ::location::nearby::connections::WifiDirectCliUsableChannels* mutable_wifi_direct_cli_usable_channels(); - void set_allocated_wifi_direct_cli_usable_channels(::location::nearby::connections::WifiDirectCliUsableChannels* wifi_direct_cli_usable_channels); - private: - const ::location::nearby::connections::WifiDirectCliUsableChannels& _internal_wifi_direct_cli_usable_channels() const; - ::location::nearby::connections::WifiDirectCliUsableChannels* _internal_mutable_wifi_direct_cli_usable_channels(); - public: - void unsafe_arena_set_allocated_wifi_direct_cli_usable_channels( - ::location::nearby::connections::WifiDirectCliUsableChannels* wifi_direct_cli_usable_channels); - ::location::nearby::connections::WifiDirectCliUsableChannels* unsafe_arena_release_wifi_direct_cli_usable_channels(); - - // optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; - bool has_wifi_lan_usable_channels() const; - private: - bool _internal_has_wifi_lan_usable_channels() const; - public: - void clear_wifi_lan_usable_channels(); - const ::location::nearby::connections::WifiLanUsableChannels& wifi_lan_usable_channels() const; - PROTOBUF_NODISCARD ::location::nearby::connections::WifiLanUsableChannels* release_wifi_lan_usable_channels(); - ::location::nearby::connections::WifiLanUsableChannels* mutable_wifi_lan_usable_channels(); - void set_allocated_wifi_lan_usable_channels(::location::nearby::connections::WifiLanUsableChannels* wifi_lan_usable_channels); - private: - const ::location::nearby::connections::WifiLanUsableChannels& _internal_wifi_lan_usable_channels() const; - ::location::nearby::connections::WifiLanUsableChannels* _internal_mutable_wifi_lan_usable_channels(); - public: - void unsafe_arena_set_allocated_wifi_lan_usable_channels( - ::location::nearby::connections::WifiLanUsableChannels* wifi_lan_usable_channels); - ::location::nearby::connections::WifiLanUsableChannels* unsafe_arena_release_wifi_lan_usable_channels(); - - // optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; - bool has_wifi_aware_usable_channels() const; - private: - bool _internal_has_wifi_aware_usable_channels() const; - public: - void clear_wifi_aware_usable_channels(); - const ::location::nearby::connections::WifiAwareUsableChannels& wifi_aware_usable_channels() const; - PROTOBUF_NODISCARD ::location::nearby::connections::WifiAwareUsableChannels* release_wifi_aware_usable_channels(); - ::location::nearby::connections::WifiAwareUsableChannels* mutable_wifi_aware_usable_channels(); - void set_allocated_wifi_aware_usable_channels(::location::nearby::connections::WifiAwareUsableChannels* wifi_aware_usable_channels); - private: - const ::location::nearby::connections::WifiAwareUsableChannels& _internal_wifi_aware_usable_channels() const; - ::location::nearby::connections::WifiAwareUsableChannels* _internal_mutable_wifi_aware_usable_channels(); - public: - void unsafe_arena_set_allocated_wifi_aware_usable_channels( - ::location::nearby::connections::WifiAwareUsableChannels* wifi_aware_usable_channels); - ::location::nearby::connections::WifiAwareUsableChannels* unsafe_arena_release_wifi_aware_usable_channels(); - - // optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; - bool has_wifi_hotspot_sta_usable_channels() const; - private: - bool _internal_has_wifi_hotspot_sta_usable_channels() const; - public: - void clear_wifi_hotspot_sta_usable_channels(); - const ::location::nearby::connections::WifiHotspotStaUsableChannels& wifi_hotspot_sta_usable_channels() const; - PROTOBUF_NODISCARD ::location::nearby::connections::WifiHotspotStaUsableChannels* release_wifi_hotspot_sta_usable_channels(); - ::location::nearby::connections::WifiHotspotStaUsableChannels* mutable_wifi_hotspot_sta_usable_channels(); - void set_allocated_wifi_hotspot_sta_usable_channels(::location::nearby::connections::WifiHotspotStaUsableChannels* wifi_hotspot_sta_usable_channels); - private: - const ::location::nearby::connections::WifiHotspotStaUsableChannels& _internal_wifi_hotspot_sta_usable_channels() const; - ::location::nearby::connections::WifiHotspotStaUsableChannels* _internal_mutable_wifi_hotspot_sta_usable_channels(); - public: - void unsafe_arena_set_allocated_wifi_hotspot_sta_usable_channels( - ::location::nearby::connections::WifiHotspotStaUsableChannels* wifi_hotspot_sta_usable_channels); - ::location::nearby::connections::WifiHotspotStaUsableChannels* unsafe_arena_release_wifi_hotspot_sta_usable_channels(); - - // optional bool supports_5_ghz = 1; - bool has_supports_5_ghz() const; - private: - bool _internal_has_supports_5_ghz() const; - public: - void clear_supports_5_ghz(); - bool supports_5_ghz() const; - void set_supports_5_ghz(bool value); - private: - bool _internal_supports_5_ghz() const; - void _internal_set_supports_5_ghz(bool value); - public: - - // optional bool supports_6_ghz = 4; - bool has_supports_6_ghz() const; - private: - bool _internal_has_supports_6_ghz() const; - public: - void clear_supports_6_ghz(); - bool supports_6_ghz() const; - void set_supports_6_ghz(bool value); - private: - bool _internal_supports_6_ghz() const; - void _internal_set_supports_6_ghz(bool value); - public: - - // optional bool mobile_radio = 5; - bool has_mobile_radio() const; - private: - bool _internal_has_mobile_radio() const; - public: - void clear_mobile_radio(); - bool mobile_radio() const; - void set_mobile_radio(bool value); - private: - bool _internal_mobile_radio() const; - void _internal_set_mobile_radio(bool value); - public: - - // optional int32 ap_frequency = 6 [default = -1]; - bool has_ap_frequency() const; - private: - bool _internal_has_ap_frequency() const; - public: - void clear_ap_frequency(); - int32_t ap_frequency() const; - void set_ap_frequency(int32_t value); - private: - int32_t _internal_ap_frequency() const; - void _internal_set_ap_frequency(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.MediumMetadata) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bssid_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_address_; - ::location::nearby::connections::AvailableChannels* available_channels_; - ::location::nearby::connections::WifiDirectCliUsableChannels* wifi_direct_cli_usable_channels_; - ::location::nearby::connections::WifiLanUsableChannels* wifi_lan_usable_channels_; - ::location::nearby::connections::WifiAwareUsableChannels* wifi_aware_usable_channels_; - ::location::nearby::connections::WifiHotspotStaUsableChannels* wifi_hotspot_sta_usable_channels_; - bool supports_5_ghz_; - bool supports_6_ghz_; - bool mobile_radio_; - int32_t ap_frequency_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class AvailableChannels final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.AvailableChannels) */ { - public: - inline AvailableChannels() : AvailableChannels(nullptr) {} - ~AvailableChannels() override; - explicit constexpr AvailableChannels(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AvailableChannels(const AvailableChannels& from); - AvailableChannels(AvailableChannels&& from) noexcept - : AvailableChannels() { - *this = ::std::move(from); - } - - inline AvailableChannels& operator=(const AvailableChannels& from) { - CopyFrom(from); - return *this; - } - inline AvailableChannels& operator=(AvailableChannels&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const AvailableChannels& default_instance() { - return *internal_default_instance(); - } - static inline const AvailableChannels* internal_default_instance() { - return reinterpret_cast( - &_AvailableChannels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(AvailableChannels& a, AvailableChannels& b) { - a.Swap(&b); - } - inline void Swap(AvailableChannels* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(AvailableChannels* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AvailableChannels* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const AvailableChannels& from); - void MergeFrom(const AvailableChannels& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(AvailableChannels* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.AvailableChannels"; - } - protected: - explicit AvailableChannels(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kChannelsFieldNumber = 1, - }; - // repeated int32 channels = 1 [packed = true]; - int channels_size() const; - private: - int _internal_channels_size() const; - public: - void clear_channels(); - private: - int32_t _internal_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_channels() const; - void _internal_add_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_channels(); - public: - int32_t channels(int index) const; - void set_channels(int index, int32_t value); - void add_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_channels(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.AvailableChannels) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > channels_; - mutable std::atomic _channels_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class WifiDirectCliUsableChannels final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiDirectCliUsableChannels) */ { - public: - inline WifiDirectCliUsableChannels() : WifiDirectCliUsableChannels(nullptr) {} - ~WifiDirectCliUsableChannels() override; - explicit constexpr WifiDirectCliUsableChannels(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WifiDirectCliUsableChannels(const WifiDirectCliUsableChannels& from); - WifiDirectCliUsableChannels(WifiDirectCliUsableChannels&& from) noexcept - : WifiDirectCliUsableChannels() { - *this = ::std::move(from); - } - - inline WifiDirectCliUsableChannels& operator=(const WifiDirectCliUsableChannels& from) { - CopyFrom(from); - return *this; - } - inline WifiDirectCliUsableChannels& operator=(WifiDirectCliUsableChannels&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const WifiDirectCliUsableChannels& default_instance() { - return *internal_default_instance(); - } - static inline const WifiDirectCliUsableChannels* internal_default_instance() { - return reinterpret_cast( - &_WifiDirectCliUsableChannels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - friend void swap(WifiDirectCliUsableChannels& a, WifiDirectCliUsableChannels& b) { - a.Swap(&b); - } - inline void Swap(WifiDirectCliUsableChannels* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WifiDirectCliUsableChannels* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WifiDirectCliUsableChannels* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const WifiDirectCliUsableChannels& from); - void MergeFrom(const WifiDirectCliUsableChannels& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(WifiDirectCliUsableChannels* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.WifiDirectCliUsableChannels"; - } - protected: - explicit WifiDirectCliUsableChannels(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kChannelsFieldNumber = 1, - }; - // repeated int32 channels = 1 [packed = true]; - int channels_size() const; - private: - int _internal_channels_size() const; - public: - void clear_channels(); - private: - int32_t _internal_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_channels() const; - void _internal_add_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_channels(); - public: - int32_t channels(int index) const; - void set_channels(int index, int32_t value); - void add_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_channels(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiDirectCliUsableChannels) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > channels_; - mutable std::atomic _channels_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class WifiLanUsableChannels final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiLanUsableChannels) */ { - public: - inline WifiLanUsableChannels() : WifiLanUsableChannels(nullptr) {} - ~WifiLanUsableChannels() override; - explicit constexpr WifiLanUsableChannels(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WifiLanUsableChannels(const WifiLanUsableChannels& from); - WifiLanUsableChannels(WifiLanUsableChannels&& from) noexcept - : WifiLanUsableChannels() { - *this = ::std::move(from); - } - - inline WifiLanUsableChannels& operator=(const WifiLanUsableChannels& from) { - CopyFrom(from); - return *this; - } - inline WifiLanUsableChannels& operator=(WifiLanUsableChannels&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const WifiLanUsableChannels& default_instance() { - return *internal_default_instance(); - } - static inline const WifiLanUsableChannels* internal_default_instance() { - return reinterpret_cast( - &_WifiLanUsableChannels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - friend void swap(WifiLanUsableChannels& a, WifiLanUsableChannels& b) { - a.Swap(&b); - } - inline void Swap(WifiLanUsableChannels* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WifiLanUsableChannels* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WifiLanUsableChannels* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const WifiLanUsableChannels& from); - void MergeFrom(const WifiLanUsableChannels& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(WifiLanUsableChannels* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.WifiLanUsableChannels"; - } - protected: - explicit WifiLanUsableChannels(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kChannelsFieldNumber = 1, - }; - // repeated int32 channels = 1 [packed = true]; - int channels_size() const; - private: - int _internal_channels_size() const; - public: - void clear_channels(); - private: - int32_t _internal_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_channels() const; - void _internal_add_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_channels(); - public: - int32_t channels(int index) const; - void set_channels(int index, int32_t value); - void add_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_channels(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiLanUsableChannels) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > channels_; - mutable std::atomic _channels_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class WifiAwareUsableChannels final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiAwareUsableChannels) */ { - public: - inline WifiAwareUsableChannels() : WifiAwareUsableChannels(nullptr) {} - ~WifiAwareUsableChannels() override; - explicit constexpr WifiAwareUsableChannels(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WifiAwareUsableChannels(const WifiAwareUsableChannels& from); - WifiAwareUsableChannels(WifiAwareUsableChannels&& from) noexcept - : WifiAwareUsableChannels() { - *this = ::std::move(from); - } - - inline WifiAwareUsableChannels& operator=(const WifiAwareUsableChannels& from) { - CopyFrom(from); - return *this; - } - inline WifiAwareUsableChannels& operator=(WifiAwareUsableChannels&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const WifiAwareUsableChannels& default_instance() { - return *internal_default_instance(); - } - static inline const WifiAwareUsableChannels* internal_default_instance() { - return reinterpret_cast( - &_WifiAwareUsableChannels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - friend void swap(WifiAwareUsableChannels& a, WifiAwareUsableChannels& b) { - a.Swap(&b); - } - inline void Swap(WifiAwareUsableChannels* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WifiAwareUsableChannels* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WifiAwareUsableChannels* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const WifiAwareUsableChannels& from); - void MergeFrom(const WifiAwareUsableChannels& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(WifiAwareUsableChannels* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.WifiAwareUsableChannels"; - } - protected: - explicit WifiAwareUsableChannels(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kChannelsFieldNumber = 1, - }; - // repeated int32 channels = 1 [packed = true]; - int channels_size() const; - private: - int _internal_channels_size() const; - public: - void clear_channels(); - private: - int32_t _internal_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_channels() const; - void _internal_add_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_channels(); - public: - int32_t channels(int index) const; - void set_channels(int index, int32_t value); - void add_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_channels(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiAwareUsableChannels) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > channels_; - mutable std::atomic _channels_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class WifiHotspotStaUsableChannels final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.WifiHotspotStaUsableChannels) */ { - public: - inline WifiHotspotStaUsableChannels() : WifiHotspotStaUsableChannels(nullptr) {} - ~WifiHotspotStaUsableChannels() override; - explicit constexpr WifiHotspotStaUsableChannels(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - WifiHotspotStaUsableChannels(const WifiHotspotStaUsableChannels& from); - WifiHotspotStaUsableChannels(WifiHotspotStaUsableChannels&& from) noexcept - : WifiHotspotStaUsableChannels() { - *this = ::std::move(from); - } - - inline WifiHotspotStaUsableChannels& operator=(const WifiHotspotStaUsableChannels& from) { - CopyFrom(from); - return *this; - } - inline WifiHotspotStaUsableChannels& operator=(WifiHotspotStaUsableChannels&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const WifiHotspotStaUsableChannels& default_instance() { - return *internal_default_instance(); - } - static inline const WifiHotspotStaUsableChannels* internal_default_instance() { - return reinterpret_cast( - &_WifiHotspotStaUsableChannels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(WifiHotspotStaUsableChannels& a, WifiHotspotStaUsableChannels& b) { - a.Swap(&b); - } - inline void Swap(WifiHotspotStaUsableChannels* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(WifiHotspotStaUsableChannels* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - WifiHotspotStaUsableChannels* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const WifiHotspotStaUsableChannels& from); - void MergeFrom(const WifiHotspotStaUsableChannels& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(WifiHotspotStaUsableChannels* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.WifiHotspotStaUsableChannels"; - } - protected: - explicit WifiHotspotStaUsableChannels(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kChannelsFieldNumber = 1, - }; - // repeated int32 channels = 1 [packed = true]; - int channels_size() const; - private: - int _internal_channels_size() const; - public: - void clear_channels(); - private: - int32_t _internal_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_channels() const; - void _internal_add_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_channels(); - public: - int32_t channels(int index) const; - void set_channels(int index, int32_t value); - void add_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_channels(); - - // @@protoc_insertion_point(class_scope:location.nearby.connections.WifiHotspotStaUsableChannels) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > channels_; - mutable std::atomic _channels_cached_byte_size_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class LocationHint final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.LocationHint) */ { - public: - inline LocationHint() : LocationHint(nullptr) {} - ~LocationHint() override; - explicit constexpr LocationHint(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - LocationHint(const LocationHint& from); - LocationHint(LocationHint&& from) noexcept - : LocationHint() { - *this = ::std::move(from); - } - - inline LocationHint& operator=(const LocationHint& from) { - CopyFrom(from); - return *this; - } - inline LocationHint& operator=(LocationHint&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const LocationHint& default_instance() { - return *internal_default_instance(); - } - static inline const LocationHint* internal_default_instance() { - return reinterpret_cast( - &_LocationHint_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - friend void swap(LocationHint& a, LocationHint& b) { - a.Swap(&b); - } - inline void Swap(LocationHint* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LocationHint* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LocationHint* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const LocationHint& from); - void MergeFrom(const LocationHint& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(LocationHint* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.LocationHint"; - } - protected: - explicit LocationHint(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kLocationFieldNumber = 1, - kFormatFieldNumber = 2, - }; - // optional string location = 1; - bool has_location() const; - private: - bool _internal_has_location() const; - public: - void clear_location(); - const std::string& location() const; - template - void set_location(ArgT0&& arg0, ArgT... args); - std::string* mutable_location(); - PROTOBUF_NODISCARD std::string* release_location(); - void set_allocated_location(std::string* location); - private: - const std::string& _internal_location() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_location(const std::string& value); - std::string* _internal_mutable_location(); - public: - - // optional .location.nearby.connections.LocationStandard.Format format = 2; - bool has_format() const; - private: - bool _internal_has_format() const; - public: - void clear_format(); - ::location::nearby::connections::LocationStandard_Format format() const; - void set_format(::location::nearby::connections::LocationStandard_Format value); - private: - ::location::nearby::connections::LocationStandard_Format _internal_format() const; - void _internal_set_format(::location::nearby::connections::LocationStandard_Format value); - public: - - // @@protoc_insertion_point(class_scope:location.nearby.connections.LocationHint) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr location_; - int format_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// ------------------------------------------------------------------- - -class LocationStandard final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.LocationStandard) */ { - public: - inline LocationStandard() : LocationStandard(nullptr) {} - ~LocationStandard() override; - explicit constexpr LocationStandard(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - LocationStandard(const LocationStandard& from); - LocationStandard(LocationStandard&& from) noexcept - : LocationStandard() { - *this = ::std::move(from); - } - - inline LocationStandard& operator=(const LocationStandard& from) { - CopyFrom(from); - return *this; - } - inline LocationStandard& operator=(LocationStandard&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const LocationStandard& default_instance() { - return *internal_default_instance(); - } - static inline const LocationStandard* internal_default_instance() { - return reinterpret_cast( - &_LocationStandard_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - friend void swap(LocationStandard& a, LocationStandard& b) { - a.Swap(&b); - } - inline void Swap(LocationStandard* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LocationStandard* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LocationStandard* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const LocationStandard& from); - void MergeFrom(const LocationStandard& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(LocationStandard* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "location.nearby.connections.LocationStandard"; - } - protected: - explicit LocationStandard(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef LocationStandard_Format Format; - static constexpr Format UNKNOWN = - LocationStandard_Format_UNKNOWN; - static constexpr Format E164_CALLING = - LocationStandard_Format_E164_CALLING; - static constexpr Format ISO_3166_1_ALPHA_2 = - LocationStandard_Format_ISO_3166_1_ALPHA_2; - static inline bool Format_IsValid(int value) { - return LocationStandard_Format_IsValid(value); - } - static constexpr Format Format_MIN = - LocationStandard_Format_Format_MIN; - static constexpr Format Format_MAX = - LocationStandard_Format_Format_MAX; - static constexpr int Format_ARRAYSIZE = - LocationStandard_Format_Format_ARRAYSIZE; - template - static inline const std::string& Format_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Format_Name."); - return LocationStandard_Format_Name(enum_t_value); - } - static inline bool Format_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Format* value) { - return LocationStandard_Format_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:location.nearby.connections.LocationStandard) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// OfflineFrame - -// optional .location.nearby.connections.OfflineFrame.Version version = 1; -inline bool OfflineFrame::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool OfflineFrame::has_version() const { - return _internal_has_version(); -} -inline void OfflineFrame::clear_version() { - version_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::connections::OfflineFrame_Version OfflineFrame::_internal_version() const { - return static_cast< ::location::nearby::connections::OfflineFrame_Version >(version_); -} -inline ::location::nearby::connections::OfflineFrame_Version OfflineFrame::version() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.OfflineFrame.version) - return _internal_version(); -} -inline void OfflineFrame::_internal_set_version(::location::nearby::connections::OfflineFrame_Version value) { - assert(::location::nearby::connections::OfflineFrame_Version_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - version_ = value; -} -inline void OfflineFrame::set_version(::location::nearby::connections::OfflineFrame_Version value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.OfflineFrame.version) -} - -// optional .location.nearby.connections.V1Frame v1 = 2; -inline bool OfflineFrame::_internal_has_v1() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || v1_ != nullptr); - return value; -} -inline bool OfflineFrame::has_v1() const { - return _internal_has_v1(); -} -inline void OfflineFrame::clear_v1() { - if (v1_ != nullptr) v1_->Clear(); - _has_bits_[0] &= ~0x00000001u; -} -inline const ::location::nearby::connections::V1Frame& OfflineFrame::_internal_v1() const { - const ::location::nearby::connections::V1Frame* p = v1_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_V1Frame_default_instance_); -} -inline const ::location::nearby::connections::V1Frame& OfflineFrame::v1() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.OfflineFrame.v1) - return _internal_v1(); -} -inline void OfflineFrame::unsafe_arena_set_allocated_v1( - ::location::nearby::connections::V1Frame* v1) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(v1_); - } - v1_ = v1; - if (v1) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.OfflineFrame.v1) -} -inline ::location::nearby::connections::V1Frame* OfflineFrame::release_v1() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::V1Frame* temp = v1_; - v1_ = 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 ::location::nearby::connections::V1Frame* OfflineFrame::unsafe_arena_release_v1() { - // @@protoc_insertion_point(field_release:location.nearby.connections.OfflineFrame.v1) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::V1Frame* temp = v1_; - v1_ = nullptr; - return temp; -} -inline ::location::nearby::connections::V1Frame* OfflineFrame::_internal_mutable_v1() { - _has_bits_[0] |= 0x00000001u; - if (v1_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::V1Frame>(GetArenaForAllocation()); - v1_ = p; - } - return v1_; -} -inline ::location::nearby::connections::V1Frame* OfflineFrame::mutable_v1() { - ::location::nearby::connections::V1Frame* _msg = _internal_mutable_v1(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.OfflineFrame.v1) - return _msg; -} -inline void OfflineFrame::set_allocated_v1(::location::nearby::connections::V1Frame* v1) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete v1_; - } - if (v1) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::V1Frame>::GetOwningArena(v1); - if (message_arena != submessage_arena) { - v1 = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, v1, submessage_arena); - } - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - v1_ = v1; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.OfflineFrame.v1) -} - -// ------------------------------------------------------------------- - -// V1Frame - -// optional .location.nearby.connections.V1Frame.FrameType type = 1; -inline bool V1Frame::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - return value; -} -inline bool V1Frame::has_type() const { - return _internal_has_type(); -} -inline void V1Frame::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000080u; -} -inline ::location::nearby::connections::V1Frame_FrameType V1Frame::_internal_type() const { - return static_cast< ::location::nearby::connections::V1Frame_FrameType >(type_); -} -inline ::location::nearby::connections::V1Frame_FrameType V1Frame::type() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.type) - return _internal_type(); -} -inline void V1Frame::_internal_set_type(::location::nearby::connections::V1Frame_FrameType value) { - assert(::location::nearby::connections::V1Frame_FrameType_IsValid(value)); - _has_bits_[0] |= 0x00000080u; - type_ = value; -} -inline void V1Frame::set_type(::location::nearby::connections::V1Frame_FrameType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.V1Frame.type) -} - -// optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; -inline bool V1Frame::_internal_has_connection_request() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || connection_request_ != nullptr); - return value; -} -inline bool V1Frame::has_connection_request() const { - return _internal_has_connection_request(); -} -inline void V1Frame::clear_connection_request() { - if (connection_request_ != nullptr) connection_request_->Clear(); - _has_bits_[0] &= ~0x00000001u; -} -inline const ::location::nearby::connections::ConnectionRequestFrame& V1Frame::_internal_connection_request() const { - const ::location::nearby::connections::ConnectionRequestFrame* p = connection_request_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_ConnectionRequestFrame_default_instance_); -} -inline const ::location::nearby::connections::ConnectionRequestFrame& V1Frame::connection_request() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.connection_request) - return _internal_connection_request(); -} -inline void V1Frame::unsafe_arena_set_allocated_connection_request( - ::location::nearby::connections::ConnectionRequestFrame* connection_request) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(connection_request_); - } - connection_request_ = connection_request; - if (connection_request) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.connection_request) -} -inline ::location::nearby::connections::ConnectionRequestFrame* V1Frame::release_connection_request() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::ConnectionRequestFrame* temp = connection_request_; - connection_request_ = 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 ::location::nearby::connections::ConnectionRequestFrame* V1Frame::unsafe_arena_release_connection_request() { - // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.connection_request) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::ConnectionRequestFrame* temp = connection_request_; - connection_request_ = nullptr; - return temp; -} -inline ::location::nearby::connections::ConnectionRequestFrame* V1Frame::_internal_mutable_connection_request() { - _has_bits_[0] |= 0x00000001u; - if (connection_request_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::ConnectionRequestFrame>(GetArenaForAllocation()); - connection_request_ = p; - } - return connection_request_; -} -inline ::location::nearby::connections::ConnectionRequestFrame* V1Frame::mutable_connection_request() { - ::location::nearby::connections::ConnectionRequestFrame* _msg = _internal_mutable_connection_request(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.connection_request) - return _msg; -} -inline void V1Frame::set_allocated_connection_request(::location::nearby::connections::ConnectionRequestFrame* connection_request) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete connection_request_; - } - if (connection_request) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::ConnectionRequestFrame>::GetOwningArena(connection_request); - if (message_arena != submessage_arena) { - connection_request = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connection_request, submessage_arena); - } - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - connection_request_ = connection_request; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.connection_request) -} - -// optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3; -inline bool V1Frame::_internal_has_connection_response() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || connection_response_ != nullptr); - return value; -} -inline bool V1Frame::has_connection_response() const { - return _internal_has_connection_response(); -} -inline void V1Frame::clear_connection_response() { - if (connection_response_ != nullptr) connection_response_->Clear(); - _has_bits_[0] &= ~0x00000002u; -} -inline const ::location::nearby::connections::ConnectionResponseFrame& V1Frame::_internal_connection_response() const { - const ::location::nearby::connections::ConnectionResponseFrame* p = connection_response_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_ConnectionResponseFrame_default_instance_); -} -inline const ::location::nearby::connections::ConnectionResponseFrame& V1Frame::connection_response() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.connection_response) - return _internal_connection_response(); -} -inline void V1Frame::unsafe_arena_set_allocated_connection_response( - ::location::nearby::connections::ConnectionResponseFrame* connection_response) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(connection_response_); - } - connection_response_ = connection_response; - if (connection_response) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.connection_response) -} -inline ::location::nearby::connections::ConnectionResponseFrame* V1Frame::release_connection_response() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::ConnectionResponseFrame* temp = connection_response_; - connection_response_ = 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 ::location::nearby::connections::ConnectionResponseFrame* V1Frame::unsafe_arena_release_connection_response() { - // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.connection_response) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::ConnectionResponseFrame* temp = connection_response_; - connection_response_ = nullptr; - return temp; -} -inline ::location::nearby::connections::ConnectionResponseFrame* V1Frame::_internal_mutable_connection_response() { - _has_bits_[0] |= 0x00000002u; - if (connection_response_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::ConnectionResponseFrame>(GetArenaForAllocation()); - connection_response_ = p; - } - return connection_response_; -} -inline ::location::nearby::connections::ConnectionResponseFrame* V1Frame::mutable_connection_response() { - ::location::nearby::connections::ConnectionResponseFrame* _msg = _internal_mutable_connection_response(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.connection_response) - return _msg; -} -inline void V1Frame::set_allocated_connection_response(::location::nearby::connections::ConnectionResponseFrame* connection_response) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete connection_response_; - } - if (connection_response) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::ConnectionResponseFrame>::GetOwningArena(connection_response); - if (message_arena != submessage_arena) { - connection_response = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connection_response, submessage_arena); - } - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - connection_response_ = connection_response; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.connection_response) -} - -// optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4; -inline bool V1Frame::_internal_has_payload_transfer() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || payload_transfer_ != nullptr); - return value; -} -inline bool V1Frame::has_payload_transfer() const { - return _internal_has_payload_transfer(); -} -inline void V1Frame::clear_payload_transfer() { - if (payload_transfer_ != nullptr) payload_transfer_->Clear(); - _has_bits_[0] &= ~0x00000004u; -} -inline const ::location::nearby::connections::PayloadTransferFrame& V1Frame::_internal_payload_transfer() const { - const ::location::nearby::connections::PayloadTransferFrame* p = payload_transfer_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_PayloadTransferFrame_default_instance_); -} -inline const ::location::nearby::connections::PayloadTransferFrame& V1Frame::payload_transfer() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.payload_transfer) - return _internal_payload_transfer(); -} -inline void V1Frame::unsafe_arena_set_allocated_payload_transfer( - ::location::nearby::connections::PayloadTransferFrame* payload_transfer) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payload_transfer_); - } - payload_transfer_ = payload_transfer; - if (payload_transfer) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.payload_transfer) -} -inline ::location::nearby::connections::PayloadTransferFrame* V1Frame::release_payload_transfer() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::PayloadTransferFrame* temp = payload_transfer_; - payload_transfer_ = 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 ::location::nearby::connections::PayloadTransferFrame* V1Frame::unsafe_arena_release_payload_transfer() { - // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.payload_transfer) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::PayloadTransferFrame* temp = payload_transfer_; - payload_transfer_ = nullptr; - return temp; -} -inline ::location::nearby::connections::PayloadTransferFrame* V1Frame::_internal_mutable_payload_transfer() { - _has_bits_[0] |= 0x00000004u; - if (payload_transfer_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame>(GetArenaForAllocation()); - payload_transfer_ = p; - } - return payload_transfer_; -} -inline ::location::nearby::connections::PayloadTransferFrame* V1Frame::mutable_payload_transfer() { - ::location::nearby::connections::PayloadTransferFrame* _msg = _internal_mutable_payload_transfer(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.payload_transfer) - return _msg; -} -inline void V1Frame::set_allocated_payload_transfer(::location::nearby::connections::PayloadTransferFrame* payload_transfer) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete payload_transfer_; - } - if (payload_transfer) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PayloadTransferFrame>::GetOwningArena(payload_transfer); - if (message_arena != submessage_arena) { - payload_transfer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payload_transfer, submessage_arena); - } - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - payload_transfer_ = payload_transfer; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.payload_transfer) -} - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5; -inline bool V1Frame::_internal_has_bandwidth_upgrade_negotiation() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || bandwidth_upgrade_negotiation_ != nullptr); - return value; -} -inline bool V1Frame::has_bandwidth_upgrade_negotiation() const { - return _internal_has_bandwidth_upgrade_negotiation(); -} -inline void V1Frame::clear_bandwidth_upgrade_negotiation() { - if (bandwidth_upgrade_negotiation_ != nullptr) bandwidth_upgrade_negotiation_->Clear(); - _has_bits_[0] &= ~0x00000008u; -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& V1Frame::_internal_bandwidth_upgrade_negotiation() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* p = bandwidth_upgrade_negotiation_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_default_instance_); -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& V1Frame::bandwidth_upgrade_negotiation() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.bandwidth_upgrade_negotiation) - return _internal_bandwidth_upgrade_negotiation(); -} -inline void V1Frame::unsafe_arena_set_allocated_bandwidth_upgrade_negotiation( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(bandwidth_upgrade_negotiation_); - } - bandwidth_upgrade_negotiation_ = bandwidth_upgrade_negotiation; - if (bandwidth_upgrade_negotiation) { - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.bandwidth_upgrade_negotiation) -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* V1Frame::release_bandwidth_upgrade_negotiation() { - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* temp = bandwidth_upgrade_negotiation_; - bandwidth_upgrade_negotiation_ = 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 ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* V1Frame::unsafe_arena_release_bandwidth_upgrade_negotiation() { - // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.bandwidth_upgrade_negotiation) - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* temp = bandwidth_upgrade_negotiation_; - bandwidth_upgrade_negotiation_ = nullptr; - return temp; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* V1Frame::_internal_mutable_bandwidth_upgrade_negotiation() { - _has_bits_[0] |= 0x00000008u; - if (bandwidth_upgrade_negotiation_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>(GetArenaForAllocation()); - bandwidth_upgrade_negotiation_ = p; - } - return bandwidth_upgrade_negotiation_; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* V1Frame::mutable_bandwidth_upgrade_negotiation() { - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* _msg = _internal_mutable_bandwidth_upgrade_negotiation(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.bandwidth_upgrade_negotiation) - return _msg; -} -inline void V1Frame::set_allocated_bandwidth_upgrade_negotiation(::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete bandwidth_upgrade_negotiation_; - } - if (bandwidth_upgrade_negotiation) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>::GetOwningArena(bandwidth_upgrade_negotiation); - if (message_arena != submessage_arena) { - bandwidth_upgrade_negotiation = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, bandwidth_upgrade_negotiation, submessage_arena); - } - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - bandwidth_upgrade_negotiation_ = bandwidth_upgrade_negotiation; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.bandwidth_upgrade_negotiation) -} - -// optional .location.nearby.connections.KeepAliveFrame keep_alive = 6; -inline bool V1Frame::_internal_has_keep_alive() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || keep_alive_ != nullptr); - return value; -} -inline bool V1Frame::has_keep_alive() const { - return _internal_has_keep_alive(); -} -inline void V1Frame::clear_keep_alive() { - if (keep_alive_ != nullptr) keep_alive_->Clear(); - _has_bits_[0] &= ~0x00000010u; -} -inline const ::location::nearby::connections::KeepAliveFrame& V1Frame::_internal_keep_alive() const { - const ::location::nearby::connections::KeepAliveFrame* p = keep_alive_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_KeepAliveFrame_default_instance_); -} -inline const ::location::nearby::connections::KeepAliveFrame& V1Frame::keep_alive() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.keep_alive) - return _internal_keep_alive(); -} -inline void V1Frame::unsafe_arena_set_allocated_keep_alive( - ::location::nearby::connections::KeepAliveFrame* keep_alive) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(keep_alive_); - } - keep_alive_ = keep_alive; - if (keep_alive) { - _has_bits_[0] |= 0x00000010u; - } else { - _has_bits_[0] &= ~0x00000010u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.keep_alive) -} -inline ::location::nearby::connections::KeepAliveFrame* V1Frame::release_keep_alive() { - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::KeepAliveFrame* temp = keep_alive_; - keep_alive_ = 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 ::location::nearby::connections::KeepAliveFrame* V1Frame::unsafe_arena_release_keep_alive() { - // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.keep_alive) - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::KeepAliveFrame* temp = keep_alive_; - keep_alive_ = nullptr; - return temp; -} -inline ::location::nearby::connections::KeepAliveFrame* V1Frame::_internal_mutable_keep_alive() { - _has_bits_[0] |= 0x00000010u; - if (keep_alive_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::KeepAliveFrame>(GetArenaForAllocation()); - keep_alive_ = p; - } - return keep_alive_; -} -inline ::location::nearby::connections::KeepAliveFrame* V1Frame::mutable_keep_alive() { - ::location::nearby::connections::KeepAliveFrame* _msg = _internal_mutable_keep_alive(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.keep_alive) - return _msg; -} -inline void V1Frame::set_allocated_keep_alive(::location::nearby::connections::KeepAliveFrame* keep_alive) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete keep_alive_; - } - if (keep_alive) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::KeepAliveFrame>::GetOwningArena(keep_alive); - if (message_arena != submessage_arena) { - keep_alive = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, keep_alive, submessage_arena); - } - _has_bits_[0] |= 0x00000010u; - } else { - _has_bits_[0] &= ~0x00000010u; - } - keep_alive_ = keep_alive; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.keep_alive) -} - -// optional .location.nearby.connections.DisconnectionFrame disconnection = 7; -inline bool V1Frame::_internal_has_disconnection() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || disconnection_ != nullptr); - return value; -} -inline bool V1Frame::has_disconnection() const { - return _internal_has_disconnection(); -} -inline void V1Frame::clear_disconnection() { - if (disconnection_ != nullptr) disconnection_->Clear(); - _has_bits_[0] &= ~0x00000020u; -} -inline const ::location::nearby::connections::DisconnectionFrame& V1Frame::_internal_disconnection() const { - const ::location::nearby::connections::DisconnectionFrame* p = disconnection_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_DisconnectionFrame_default_instance_); -} -inline const ::location::nearby::connections::DisconnectionFrame& V1Frame::disconnection() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.disconnection) - return _internal_disconnection(); -} -inline void V1Frame::unsafe_arena_set_allocated_disconnection( - ::location::nearby::connections::DisconnectionFrame* disconnection) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(disconnection_); - } - disconnection_ = disconnection; - if (disconnection) { - _has_bits_[0] |= 0x00000020u; - } else { - _has_bits_[0] &= ~0x00000020u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.disconnection) -} -inline ::location::nearby::connections::DisconnectionFrame* V1Frame::release_disconnection() { - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::DisconnectionFrame* temp = disconnection_; - disconnection_ = 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 ::location::nearby::connections::DisconnectionFrame* V1Frame::unsafe_arena_release_disconnection() { - // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.disconnection) - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::DisconnectionFrame* temp = disconnection_; - disconnection_ = nullptr; - return temp; -} -inline ::location::nearby::connections::DisconnectionFrame* V1Frame::_internal_mutable_disconnection() { - _has_bits_[0] |= 0x00000020u; - if (disconnection_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::DisconnectionFrame>(GetArenaForAllocation()); - disconnection_ = p; - } - return disconnection_; -} -inline ::location::nearby::connections::DisconnectionFrame* V1Frame::mutable_disconnection() { - ::location::nearby::connections::DisconnectionFrame* _msg = _internal_mutable_disconnection(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.disconnection) - return _msg; -} -inline void V1Frame::set_allocated_disconnection(::location::nearby::connections::DisconnectionFrame* disconnection) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete disconnection_; - } - if (disconnection) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::DisconnectionFrame>::GetOwningArena(disconnection); - if (message_arena != submessage_arena) { - disconnection = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, disconnection, submessage_arena); - } - _has_bits_[0] |= 0x00000020u; - } else { - _has_bits_[0] &= ~0x00000020u; - } - disconnection_ = disconnection; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.disconnection) -} - -// optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8; -inline bool V1Frame::_internal_has_paired_key_encryption() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || paired_key_encryption_ != nullptr); - return value; -} -inline bool V1Frame::has_paired_key_encryption() const { - return _internal_has_paired_key_encryption(); -} -inline void V1Frame::clear_paired_key_encryption() { - if (paired_key_encryption_ != nullptr) paired_key_encryption_->Clear(); - _has_bits_[0] &= ~0x00000040u; -} -inline const ::location::nearby::connections::PairedKeyEncryptionFrame& V1Frame::_internal_paired_key_encryption() const { - const ::location::nearby::connections::PairedKeyEncryptionFrame* p = paired_key_encryption_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_PairedKeyEncryptionFrame_default_instance_); -} -inline const ::location::nearby::connections::PairedKeyEncryptionFrame& V1Frame::paired_key_encryption() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.paired_key_encryption) - return _internal_paired_key_encryption(); -} -inline void V1Frame::unsafe_arena_set_allocated_paired_key_encryption( - ::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(paired_key_encryption_); - } - paired_key_encryption_ = paired_key_encryption; - if (paired_key_encryption) { - _has_bits_[0] |= 0x00000040u; - } else { - _has_bits_[0] &= ~0x00000040u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.paired_key_encryption) -} -inline ::location::nearby::connections::PairedKeyEncryptionFrame* V1Frame::release_paired_key_encryption() { - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::PairedKeyEncryptionFrame* temp = paired_key_encryption_; - paired_key_encryption_ = 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 ::location::nearby::connections::PairedKeyEncryptionFrame* V1Frame::unsafe_arena_release_paired_key_encryption() { - // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.paired_key_encryption) - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::PairedKeyEncryptionFrame* temp = paired_key_encryption_; - paired_key_encryption_ = nullptr; - return temp; -} -inline ::location::nearby::connections::PairedKeyEncryptionFrame* V1Frame::_internal_mutable_paired_key_encryption() { - _has_bits_[0] |= 0x00000040u; - if (paired_key_encryption_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::PairedKeyEncryptionFrame>(GetArenaForAllocation()); - paired_key_encryption_ = p; - } - return paired_key_encryption_; -} -inline ::location::nearby::connections::PairedKeyEncryptionFrame* V1Frame::mutable_paired_key_encryption() { - ::location::nearby::connections::PairedKeyEncryptionFrame* _msg = _internal_mutable_paired_key_encryption(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.paired_key_encryption) - return _msg; -} -inline void V1Frame::set_allocated_paired_key_encryption(::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete paired_key_encryption_; - } - if (paired_key_encryption) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PairedKeyEncryptionFrame>::GetOwningArena(paired_key_encryption); - if (message_arena != submessage_arena) { - paired_key_encryption = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, paired_key_encryption, submessage_arena); - } - _has_bits_[0] |= 0x00000040u; - } else { - _has_bits_[0] &= ~0x00000040u; - } - paired_key_encryption_ = paired_key_encryption; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.paired_key_encryption) -} - -// ------------------------------------------------------------------- - -// ConnectionRequestFrame - -// optional string endpoint_id = 1; -inline bool ConnectionRequestFrame::_internal_has_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool ConnectionRequestFrame::has_endpoint_id() const { - return _internal_has_endpoint_id(); -} -inline void ConnectionRequestFrame::clear_endpoint_id() { - endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& ConnectionRequestFrame::endpoint_id() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.endpoint_id) - return _internal_endpoint_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionRequestFrame::set_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.endpoint_id) -} -inline std::string* ConnectionRequestFrame::mutable_endpoint_id() { - std::string* _s = _internal_mutable_endpoint_id(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.endpoint_id) - return _s; -} -inline const std::string& ConnectionRequestFrame::_internal_endpoint_id() const { - return endpoint_id_.Get(); -} -inline void ConnectionRequestFrame::_internal_set_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* ConnectionRequestFrame::_internal_mutable_endpoint_id() { - _has_bits_[0] |= 0x00000001u; - return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* ConnectionRequestFrame::release_endpoint_id() { - // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.endpoint_id) - if (!_internal_has_endpoint_id()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void ConnectionRequestFrame::set_allocated_endpoint_id(std::string* endpoint_id) { - if (endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.endpoint_id) -} - -// optional string endpoint_name = 2; -inline bool ConnectionRequestFrame::_internal_has_endpoint_name() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool ConnectionRequestFrame::has_endpoint_name() const { - return _internal_has_endpoint_name(); -} -inline void ConnectionRequestFrame::clear_endpoint_name() { - endpoint_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& ConnectionRequestFrame::endpoint_name() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.endpoint_name) - return _internal_endpoint_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionRequestFrame::set_endpoint_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - endpoint_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.endpoint_name) -} -inline std::string* ConnectionRequestFrame::mutable_endpoint_name() { - std::string* _s = _internal_mutable_endpoint_name(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.endpoint_name) - return _s; -} -inline const std::string& ConnectionRequestFrame::_internal_endpoint_name() const { - return endpoint_name_.Get(); -} -inline void ConnectionRequestFrame::_internal_set_endpoint_name(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - endpoint_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* ConnectionRequestFrame::_internal_mutable_endpoint_name() { - _has_bits_[0] |= 0x00000002u; - return endpoint_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* ConnectionRequestFrame::release_endpoint_name() { - // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.endpoint_name) - if (!_internal_has_endpoint_name()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = endpoint_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void ConnectionRequestFrame::set_allocated_endpoint_name(std::string* endpoint_name) { - if (endpoint_name != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - endpoint_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.endpoint_name) -} - -// optional bytes handshake_data = 3; -inline bool ConnectionRequestFrame::_internal_has_handshake_data() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool ConnectionRequestFrame::has_handshake_data() const { - return _internal_has_handshake_data(); -} -inline void ConnectionRequestFrame::clear_handshake_data() { - handshake_data_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; -} -inline const std::string& ConnectionRequestFrame::handshake_data() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.handshake_data) - return _internal_handshake_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionRequestFrame::set_handshake_data(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - handshake_data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.handshake_data) -} -inline std::string* ConnectionRequestFrame::mutable_handshake_data() { - std::string* _s = _internal_mutable_handshake_data(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.handshake_data) - return _s; -} -inline const std::string& ConnectionRequestFrame::_internal_handshake_data() const { - return handshake_data_.Get(); -} -inline void ConnectionRequestFrame::_internal_set_handshake_data(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - handshake_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* ConnectionRequestFrame::_internal_mutable_handshake_data() { - _has_bits_[0] |= 0x00000004u; - return handshake_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* ConnectionRequestFrame::release_handshake_data() { - // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.handshake_data) - if (!_internal_has_handshake_data()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - auto* p = handshake_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (handshake_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void ConnectionRequestFrame::set_allocated_handshake_data(std::string* handshake_data) { - if (handshake_data != nullptr) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - handshake_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), handshake_data, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (handshake_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.handshake_data) -} - -// optional int32 nonce = 4; -inline bool ConnectionRequestFrame::_internal_has_nonce() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - return value; -} -inline bool ConnectionRequestFrame::has_nonce() const { - return _internal_has_nonce(); -} -inline void ConnectionRequestFrame::clear_nonce() { - nonce_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline int32_t ConnectionRequestFrame::_internal_nonce() const { - return nonce_; -} -inline int32_t ConnectionRequestFrame::nonce() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.nonce) - return _internal_nonce(); -} -inline void ConnectionRequestFrame::_internal_set_nonce(int32_t value) { - _has_bits_[0] |= 0x00000040u; - nonce_ = value; -} -inline void ConnectionRequestFrame::set_nonce(int32_t value) { - _internal_set_nonce(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.nonce) -} - -// repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; -inline int ConnectionRequestFrame::_internal_mediums_size() const { - return mediums_.size(); -} -inline int ConnectionRequestFrame::mediums_size() const { - return _internal_mediums_size(); -} -inline void ConnectionRequestFrame::clear_mediums() { - mediums_.Clear(); -} -inline ::location::nearby::connections::ConnectionRequestFrame_Medium ConnectionRequestFrame::_internal_mediums(int index) const { - return static_cast< ::location::nearby::connections::ConnectionRequestFrame_Medium >(mediums_.Get(index)); -} -inline ::location::nearby::connections::ConnectionRequestFrame_Medium ConnectionRequestFrame::mediums(int index) const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.mediums) - return _internal_mediums(index); -} -inline void ConnectionRequestFrame::set_mediums(int index, ::location::nearby::connections::ConnectionRequestFrame_Medium value) { - assert(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(value)); - mediums_.Set(index, value); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.mediums) -} -inline void ConnectionRequestFrame::_internal_add_mediums(::location::nearby::connections::ConnectionRequestFrame_Medium value) { - assert(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(value)); - mediums_.Add(value); -} -inline void ConnectionRequestFrame::add_mediums(::location::nearby::connections::ConnectionRequestFrame_Medium value) { - _internal_add_mediums(value); - // @@protoc_insertion_point(field_add:location.nearby.connections.ConnectionRequestFrame.mediums) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& -ConnectionRequestFrame::mediums() const { - // @@protoc_insertion_point(field_list:location.nearby.connections.ConnectionRequestFrame.mediums) - return mediums_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ConnectionRequestFrame::_internal_mutable_mediums() { - return &mediums_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* -ConnectionRequestFrame::mutable_mediums() { - // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.ConnectionRequestFrame.mediums) - return _internal_mutable_mediums(); -} - -// optional bytes endpoint_info = 6; -inline bool ConnectionRequestFrame::_internal_has_endpoint_info() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool ConnectionRequestFrame::has_endpoint_info() const { - return _internal_has_endpoint_info(); -} -inline void ConnectionRequestFrame::clear_endpoint_info() { - endpoint_info_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; -} -inline const std::string& ConnectionRequestFrame::endpoint_info() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.endpoint_info) - return _internal_endpoint_info(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionRequestFrame::set_endpoint_info(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - endpoint_info_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.endpoint_info) -} -inline std::string* ConnectionRequestFrame::mutable_endpoint_info() { - std::string* _s = _internal_mutable_endpoint_info(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.endpoint_info) - return _s; -} -inline const std::string& ConnectionRequestFrame::_internal_endpoint_info() const { - return endpoint_info_.Get(); -} -inline void ConnectionRequestFrame::_internal_set_endpoint_info(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - endpoint_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* ConnectionRequestFrame::_internal_mutable_endpoint_info() { - _has_bits_[0] |= 0x00000008u; - return endpoint_info_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* ConnectionRequestFrame::release_endpoint_info() { - // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.endpoint_info) - if (!_internal_has_endpoint_info()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000008u; - auto* p = endpoint_info_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void ConnectionRequestFrame::set_allocated_endpoint_info(std::string* endpoint_info) { - if (endpoint_info != nullptr) { - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - endpoint_info_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_info, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.endpoint_info) -} - -// optional .location.nearby.connections.MediumMetadata medium_metadata = 7; -inline bool ConnectionRequestFrame::_internal_has_medium_metadata() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || medium_metadata_ != nullptr); - return value; -} -inline bool ConnectionRequestFrame::has_medium_metadata() const { - return _internal_has_medium_metadata(); -} -inline void ConnectionRequestFrame::clear_medium_metadata() { - if (medium_metadata_ != nullptr) medium_metadata_->Clear(); - _has_bits_[0] &= ~0x00000020u; -} -inline const ::location::nearby::connections::MediumMetadata& ConnectionRequestFrame::_internal_medium_metadata() const { - const ::location::nearby::connections::MediumMetadata* p = medium_metadata_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_MediumMetadata_default_instance_); -} -inline const ::location::nearby::connections::MediumMetadata& ConnectionRequestFrame::medium_metadata() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.medium_metadata) - return _internal_medium_metadata(); -} -inline void ConnectionRequestFrame::unsafe_arena_set_allocated_medium_metadata( - ::location::nearby::connections::MediumMetadata* medium_metadata) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(medium_metadata_); - } - medium_metadata_ = medium_metadata; - if (medium_metadata) { - _has_bits_[0] |= 0x00000020u; - } else { - _has_bits_[0] &= ~0x00000020u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionRequestFrame.medium_metadata) -} -inline ::location::nearby::connections::MediumMetadata* ConnectionRequestFrame::release_medium_metadata() { - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::MediumMetadata* temp = medium_metadata_; - medium_metadata_ = 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 ::location::nearby::connections::MediumMetadata* ConnectionRequestFrame::unsafe_arena_release_medium_metadata() { - // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.medium_metadata) - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::MediumMetadata* temp = medium_metadata_; - medium_metadata_ = nullptr; - return temp; -} -inline ::location::nearby::connections::MediumMetadata* ConnectionRequestFrame::_internal_mutable_medium_metadata() { - _has_bits_[0] |= 0x00000020u; - if (medium_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::MediumMetadata>(GetArenaForAllocation()); - medium_metadata_ = p; - } - return medium_metadata_; -} -inline ::location::nearby::connections::MediumMetadata* ConnectionRequestFrame::mutable_medium_metadata() { - ::location::nearby::connections::MediumMetadata* _msg = _internal_mutable_medium_metadata(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.medium_metadata) - return _msg; -} -inline void ConnectionRequestFrame::set_allocated_medium_metadata(::location::nearby::connections::MediumMetadata* medium_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete medium_metadata_; - } - if (medium_metadata) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::MediumMetadata>::GetOwningArena(medium_metadata); - if (message_arena != submessage_arena) { - medium_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, medium_metadata, submessage_arena); - } - _has_bits_[0] |= 0x00000020u; - } else { - _has_bits_[0] &= ~0x00000020u; - } - medium_metadata_ = medium_metadata; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.medium_metadata) -} - -// optional int32 keep_alive_interval_millis = 8; -inline bool ConnectionRequestFrame::_internal_has_keep_alive_interval_millis() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - return value; -} -inline bool ConnectionRequestFrame::has_keep_alive_interval_millis() const { - return _internal_has_keep_alive_interval_millis(); -} -inline void ConnectionRequestFrame::clear_keep_alive_interval_millis() { - keep_alive_interval_millis_ = 0; - _has_bits_[0] &= ~0x00000080u; -} -inline int32_t ConnectionRequestFrame::_internal_keep_alive_interval_millis() const { - return keep_alive_interval_millis_; -} -inline int32_t ConnectionRequestFrame::keep_alive_interval_millis() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.keep_alive_interval_millis) - return _internal_keep_alive_interval_millis(); -} -inline void ConnectionRequestFrame::_internal_set_keep_alive_interval_millis(int32_t value) { - _has_bits_[0] |= 0x00000080u; - keep_alive_interval_millis_ = value; -} -inline void ConnectionRequestFrame::set_keep_alive_interval_millis(int32_t value) { - _internal_set_keep_alive_interval_millis(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.keep_alive_interval_millis) -} - -// optional int32 keep_alive_timeout_millis = 9; -inline bool ConnectionRequestFrame::_internal_has_keep_alive_timeout_millis() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; - return value; -} -inline bool ConnectionRequestFrame::has_keep_alive_timeout_millis() const { - return _internal_has_keep_alive_timeout_millis(); -} -inline void ConnectionRequestFrame::clear_keep_alive_timeout_millis() { - keep_alive_timeout_millis_ = 0; - _has_bits_[0] &= ~0x00000100u; -} -inline int32_t ConnectionRequestFrame::_internal_keep_alive_timeout_millis() const { - return keep_alive_timeout_millis_; -} -inline int32_t ConnectionRequestFrame::keep_alive_timeout_millis() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.keep_alive_timeout_millis) - return _internal_keep_alive_timeout_millis(); -} -inline void ConnectionRequestFrame::_internal_set_keep_alive_timeout_millis(int32_t value) { - _has_bits_[0] |= 0x00000100u; - keep_alive_timeout_millis_ = value; -} -inline void ConnectionRequestFrame::set_keep_alive_timeout_millis(int32_t value) { - _internal_set_keep_alive_timeout_millis(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.keep_alive_timeout_millis) -} - -// optional int32 device_type = 10 [default = 0]; -inline bool ConnectionRequestFrame::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; - return value; -} -inline bool ConnectionRequestFrame::has_device_type() const { - return _internal_has_device_type(); -} -inline void ConnectionRequestFrame::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000200u; -} -inline int32_t ConnectionRequestFrame::_internal_device_type() const { - return device_type_; -} -inline int32_t ConnectionRequestFrame::device_type() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.device_type) - return _internal_device_type(); -} -inline void ConnectionRequestFrame::_internal_set_device_type(int32_t value) { - _has_bits_[0] |= 0x00000200u; - device_type_ = value; -} -inline void ConnectionRequestFrame::set_device_type(int32_t value) { - _internal_set_device_type(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.device_type) -} - -// optional bytes device_info = 11; -inline bool ConnectionRequestFrame::_internal_has_device_info() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline bool ConnectionRequestFrame::has_device_info() const { - return _internal_has_device_info(); -} -inline void ConnectionRequestFrame::clear_device_info() { - device_info_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000010u; -} -inline const std::string& ConnectionRequestFrame::device_info() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.device_info) - return _internal_device_info(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionRequestFrame::set_device_info(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000010u; - device_info_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.device_info) -} -inline std::string* ConnectionRequestFrame::mutable_device_info() { - std::string* _s = _internal_mutable_device_info(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.device_info) - return _s; -} -inline const std::string& ConnectionRequestFrame::_internal_device_info() const { - return device_info_.Get(); -} -inline void ConnectionRequestFrame::_internal_set_device_info(const std::string& value) { - _has_bits_[0] |= 0x00000010u; - device_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* ConnectionRequestFrame::_internal_mutable_device_info() { - _has_bits_[0] |= 0x00000010u; - return device_info_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* ConnectionRequestFrame::release_device_info() { - // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.device_info) - if (!_internal_has_device_info()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000010u; - auto* p = device_info_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void ConnectionRequestFrame::set_allocated_device_info(std::string* device_info) { - if (device_info != nullptr) { - _has_bits_[0] |= 0x00000010u; - } else { - _has_bits_[0] &= ~0x00000010u; - } - device_info_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_info, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.device_info) -} - -// ------------------------------------------------------------------- - -// ConnectionResponseFrame - -// optional int32 status = 1 [deprecated = true]; -inline bool ConnectionResponseFrame::_internal_has_status() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool ConnectionResponseFrame::has_status() const { - return _internal_has_status(); -} -inline void ConnectionResponseFrame::clear_status() { - status_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline int32_t ConnectionResponseFrame::_internal_status() const { - return status_; -} -inline int32_t ConnectionResponseFrame::status() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.status) - return _internal_status(); -} -inline void ConnectionResponseFrame::_internal_set_status(int32_t value) { - _has_bits_[0] |= 0x00000002u; - status_ = value; -} -inline void ConnectionResponseFrame::set_status(int32_t value) { - _internal_set_status(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.status) -} - -// optional bytes handshake_data = 2; -inline bool ConnectionResponseFrame::_internal_has_handshake_data() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool ConnectionResponseFrame::has_handshake_data() const { - return _internal_has_handshake_data(); -} -inline void ConnectionResponseFrame::clear_handshake_data() { - handshake_data_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& ConnectionResponseFrame::handshake_data() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.handshake_data) - return _internal_handshake_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ConnectionResponseFrame::set_handshake_data(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - handshake_data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.handshake_data) -} -inline std::string* ConnectionResponseFrame::mutable_handshake_data() { - std::string* _s = _internal_mutable_handshake_data(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionResponseFrame.handshake_data) - return _s; -} -inline const std::string& ConnectionResponseFrame::_internal_handshake_data() const { - return handshake_data_.Get(); -} -inline void ConnectionResponseFrame::_internal_set_handshake_data(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - handshake_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* ConnectionResponseFrame::_internal_mutable_handshake_data() { - _has_bits_[0] |= 0x00000001u; - return handshake_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* ConnectionResponseFrame::release_handshake_data() { - // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionResponseFrame.handshake_data) - if (!_internal_has_handshake_data()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = handshake_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (handshake_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void ConnectionResponseFrame::set_allocated_handshake_data(std::string* handshake_data) { - if (handshake_data != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - handshake_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), handshake_data, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (handshake_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionResponseFrame.handshake_data) -} - -// optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3; -inline bool ConnectionResponseFrame::_internal_has_response() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool ConnectionResponseFrame::has_response() const { - return _internal_has_response(); -} -inline void ConnectionResponseFrame::clear_response() { - response_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::_internal_response() const { - return static_cast< ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus >(response_); -} -inline ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::response() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.response) - return _internal_response(); -} -inline void ConnectionResponseFrame::_internal_set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value) { - assert(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus_IsValid(value)); - _has_bits_[0] |= 0x00000004u; - response_ = value; -} -inline void ConnectionResponseFrame::set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value) { - _internal_set_response(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.response) -} - -// ------------------------------------------------------------------- - -// PayloadTransferFrame_PayloadHeader - -// optional int64 id = 1; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool PayloadTransferFrame_PayloadHeader::has_id() const { - return _internal_has_id(); -} -inline void PayloadTransferFrame_PayloadHeader::clear_id() { - id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; -} -inline int64_t PayloadTransferFrame_PayloadHeader::_internal_id() const { - return id_; -} -inline int64_t PayloadTransferFrame_PayloadHeader::id() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.id) - return _internal_id(); -} -inline void PayloadTransferFrame_PayloadHeader::_internal_set_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - id_ = value; -} -inline void PayloadTransferFrame_PayloadHeader::set_id(int64_t value) { - _internal_set_id(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.id) -} - -// optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline bool PayloadTransferFrame_PayloadHeader::has_type() const { - return _internal_has_type(); -} -inline void PayloadTransferFrame_PayloadHeader::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::_internal_type() const { - return static_cast< ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType >(type_); -} -inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::type() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.type) - return _internal_type(); -} -inline void PayloadTransferFrame_PayloadHeader::_internal_set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value) { - assert(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(value)); - _has_bits_[0] |= 0x00000010u; - type_ = value; -} -inline void PayloadTransferFrame_PayloadHeader::set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.type) -} - -// optional int64 total_size = 3; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_total_size() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool PayloadTransferFrame_PayloadHeader::has_total_size() const { - return _internal_has_total_size(); -} -inline void PayloadTransferFrame_PayloadHeader::clear_total_size() { - total_size_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; -} -inline int64_t PayloadTransferFrame_PayloadHeader::_internal_total_size() const { - return total_size_; -} -inline int64_t PayloadTransferFrame_PayloadHeader::total_size() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.total_size) - return _internal_total_size(); -} -inline void PayloadTransferFrame_PayloadHeader::_internal_set_total_size(int64_t value) { - _has_bits_[0] |= 0x00000008u; - total_size_ = value; -} -inline void PayloadTransferFrame_PayloadHeader::set_total_size(int64_t value) { - _internal_set_total_size(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.total_size) -} - -// optional bool is_sensitive = 4; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_is_sensitive() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline bool PayloadTransferFrame_PayloadHeader::has_is_sensitive() const { - return _internal_has_is_sensitive(); -} -inline void PayloadTransferFrame_PayloadHeader::clear_is_sensitive() { - is_sensitive_ = false; - _has_bits_[0] &= ~0x00000020u; -} -inline bool PayloadTransferFrame_PayloadHeader::_internal_is_sensitive() const { - return is_sensitive_; -} -inline bool PayloadTransferFrame_PayloadHeader::is_sensitive() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.is_sensitive) - return _internal_is_sensitive(); -} -inline void PayloadTransferFrame_PayloadHeader::_internal_set_is_sensitive(bool value) { - _has_bits_[0] |= 0x00000020u; - is_sensitive_ = value; -} -inline void PayloadTransferFrame_PayloadHeader::set_is_sensitive(bool value) { - _internal_set_is_sensitive(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.is_sensitive) -} - -// optional string file_name = 5; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_file_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool PayloadTransferFrame_PayloadHeader::has_file_name() const { - return _internal_has_file_name(); -} -inline void PayloadTransferFrame_PayloadHeader::clear_file_name() { - file_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& PayloadTransferFrame_PayloadHeader::file_name() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.file_name) - return _internal_file_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PayloadTransferFrame_PayloadHeader::set_file_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.file_name) -} -inline std::string* PayloadTransferFrame_PayloadHeader::mutable_file_name() { - std::string* _s = _internal_mutable_file_name(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.PayloadHeader.file_name) - return _s; -} -inline const std::string& PayloadTransferFrame_PayloadHeader::_internal_file_name() const { - return file_name_.Get(); -} -inline void PayloadTransferFrame_PayloadHeader::_internal_set_file_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* PayloadTransferFrame_PayloadHeader::_internal_mutable_file_name() { - _has_bits_[0] |= 0x00000001u; - return file_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* PayloadTransferFrame_PayloadHeader::release_file_name() { - // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.PayloadHeader.file_name) - if (!_internal_has_file_name()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = file_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (file_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void PayloadTransferFrame_PayloadHeader::set_allocated_file_name(std::string* file_name) { - if (file_name != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - file_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), file_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (file_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - file_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.PayloadHeader.file_name) -} - -// optional string parent_folder = 6; -inline bool PayloadTransferFrame_PayloadHeader::_internal_has_parent_folder() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool PayloadTransferFrame_PayloadHeader::has_parent_folder() const { - return _internal_has_parent_folder(); -} -inline void PayloadTransferFrame_PayloadHeader::clear_parent_folder() { - parent_folder_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& PayloadTransferFrame_PayloadHeader::parent_folder() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadHeader.parent_folder) - return _internal_parent_folder(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PayloadTransferFrame_PayloadHeader::set_parent_folder(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - parent_folder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadHeader.parent_folder) -} -inline std::string* PayloadTransferFrame_PayloadHeader::mutable_parent_folder() { - std::string* _s = _internal_mutable_parent_folder(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.PayloadHeader.parent_folder) - return _s; -} -inline const std::string& PayloadTransferFrame_PayloadHeader::_internal_parent_folder() const { - return parent_folder_.Get(); -} -inline void PayloadTransferFrame_PayloadHeader::_internal_set_parent_folder(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - parent_folder_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* PayloadTransferFrame_PayloadHeader::_internal_mutable_parent_folder() { - _has_bits_[0] |= 0x00000002u; - return parent_folder_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* PayloadTransferFrame_PayloadHeader::release_parent_folder() { - // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.PayloadHeader.parent_folder) - if (!_internal_has_parent_folder()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = parent_folder_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (parent_folder_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - parent_folder_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void PayloadTransferFrame_PayloadHeader::set_allocated_parent_folder(std::string* parent_folder) { - if (parent_folder != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - parent_folder_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent_folder, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (parent_folder_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - parent_folder_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.PayloadHeader.parent_folder) -} - -// ------------------------------------------------------------------- - -// PayloadTransferFrame_PayloadChunk - -// optional int32 flags = 1; -inline bool PayloadTransferFrame_PayloadChunk::_internal_has_flags() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool PayloadTransferFrame_PayloadChunk::has_flags() const { - return _internal_has_flags(); -} -inline void PayloadTransferFrame_PayloadChunk::clear_flags() { - flags_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline int32_t PayloadTransferFrame_PayloadChunk::_internal_flags() const { - return flags_; -} -inline int32_t PayloadTransferFrame_PayloadChunk::flags() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadChunk.flags) - return _internal_flags(); -} -inline void PayloadTransferFrame_PayloadChunk::_internal_set_flags(int32_t value) { - _has_bits_[0] |= 0x00000004u; - flags_ = value; -} -inline void PayloadTransferFrame_PayloadChunk::set_flags(int32_t value) { - _internal_set_flags(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadChunk.flags) -} - -// optional int64 offset = 2; -inline bool PayloadTransferFrame_PayloadChunk::_internal_has_offset() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool PayloadTransferFrame_PayloadChunk::has_offset() const { - return _internal_has_offset(); -} -inline void PayloadTransferFrame_PayloadChunk::clear_offset() { - offset_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; -} -inline int64_t PayloadTransferFrame_PayloadChunk::_internal_offset() const { - return offset_; -} -inline int64_t PayloadTransferFrame_PayloadChunk::offset() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadChunk.offset) - return _internal_offset(); -} -inline void PayloadTransferFrame_PayloadChunk::_internal_set_offset(int64_t value) { - _has_bits_[0] |= 0x00000002u; - offset_ = value; -} -inline void PayloadTransferFrame_PayloadChunk::set_offset(int64_t value) { - _internal_set_offset(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadChunk.offset) -} - -// optional bytes body = 3; -inline bool PayloadTransferFrame_PayloadChunk::_internal_has_body() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool PayloadTransferFrame_PayloadChunk::has_body() const { - return _internal_has_body(); -} -inline void PayloadTransferFrame_PayloadChunk::clear_body() { - body_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& PayloadTransferFrame_PayloadChunk::body() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.PayloadChunk.body) - return _internal_body(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PayloadTransferFrame_PayloadChunk::set_body(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - body_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.PayloadChunk.body) -} -inline std::string* PayloadTransferFrame_PayloadChunk::mutable_body() { - std::string* _s = _internal_mutable_body(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.PayloadChunk.body) - return _s; -} -inline const std::string& PayloadTransferFrame_PayloadChunk::_internal_body() const { - return body_.Get(); -} -inline void PayloadTransferFrame_PayloadChunk::_internal_set_body(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - body_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* PayloadTransferFrame_PayloadChunk::_internal_mutable_body() { - _has_bits_[0] |= 0x00000001u; - return body_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* PayloadTransferFrame_PayloadChunk::release_body() { - // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.PayloadChunk.body) - if (!_internal_has_body()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = body_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (body_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void PayloadTransferFrame_PayloadChunk::set_allocated_body(std::string* body) { - if (body != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (body_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.PayloadChunk.body) -} - -// ------------------------------------------------------------------- - -// PayloadTransferFrame_ControlMessage - -// optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1; -inline bool PayloadTransferFrame_ControlMessage::_internal_has_event() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool PayloadTransferFrame_ControlMessage::has_event() const { - return _internal_has_event(); -} -inline void PayloadTransferFrame_ControlMessage::clear_event() { - event_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::_internal_event() const { - return static_cast< ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType >(event_); -} -inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::event() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.ControlMessage.event) - return _internal_event(); -} -inline void PayloadTransferFrame_ControlMessage::_internal_set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value) { - assert(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - event_ = value; -} -inline void PayloadTransferFrame_ControlMessage::set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value) { - _internal_set_event(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.ControlMessage.event) -} - -// optional int64 offset = 2; -inline bool PayloadTransferFrame_ControlMessage::_internal_has_offset() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool PayloadTransferFrame_ControlMessage::has_offset() const { - return _internal_has_offset(); -} -inline void PayloadTransferFrame_ControlMessage::clear_offset() { - offset_ = int64_t{0}; - _has_bits_[0] &= ~0x00000001u; -} -inline int64_t PayloadTransferFrame_ControlMessage::_internal_offset() const { - return offset_; -} -inline int64_t PayloadTransferFrame_ControlMessage::offset() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.ControlMessage.offset) - return _internal_offset(); -} -inline void PayloadTransferFrame_ControlMessage::_internal_set_offset(int64_t value) { - _has_bits_[0] |= 0x00000001u; - offset_ = value; -} -inline void PayloadTransferFrame_ControlMessage::set_offset(int64_t value) { - _internal_set_offset(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.ControlMessage.offset) -} - -// ------------------------------------------------------------------- - -// PayloadTransferFrame - -// optional .location.nearby.connections.PayloadTransferFrame.PacketType packet_type = 1; -inline bool PayloadTransferFrame::_internal_has_packet_type() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool PayloadTransferFrame::has_packet_type() const { - return _internal_has_packet_type(); -} -inline void PayloadTransferFrame::clear_packet_type() { - packet_type_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::connections::PayloadTransferFrame_PacketType PayloadTransferFrame::_internal_packet_type() const { - return static_cast< ::location::nearby::connections::PayloadTransferFrame_PacketType >(packet_type_); -} -inline ::location::nearby::connections::PayloadTransferFrame_PacketType PayloadTransferFrame::packet_type() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.packet_type) - return _internal_packet_type(); -} -inline void PayloadTransferFrame::_internal_set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value) { - assert(::location::nearby::connections::PayloadTransferFrame_PacketType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - packet_type_ = value; -} -inline void PayloadTransferFrame::set_packet_type(::location::nearby::connections::PayloadTransferFrame_PacketType value) { - _internal_set_packet_type(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.PayloadTransferFrame.packet_type) -} - -// optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2; -inline bool PayloadTransferFrame::_internal_has_payload_header() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || payload_header_ != nullptr); - return value; -} -inline bool PayloadTransferFrame::has_payload_header() const { - return _internal_has_payload_header(); -} -inline void PayloadTransferFrame::clear_payload_header() { - if (payload_header_ != nullptr) payload_header_->Clear(); - _has_bits_[0] &= ~0x00000001u; -} -inline const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& PayloadTransferFrame::_internal_payload_header() const { - const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* p = payload_header_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_PayloadTransferFrame_PayloadHeader_default_instance_); -} -inline const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& PayloadTransferFrame::payload_header() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.payload_header) - return _internal_payload_header(); -} -inline void PayloadTransferFrame::unsafe_arena_set_allocated_payload_header( - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payload_header_); - } - payload_header_ = payload_header; - if (payload_header) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.PayloadTransferFrame.payload_header) -} -inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PayloadTransferFrame::release_payload_header() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* temp = payload_header_; - payload_header_ = 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 ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PayloadTransferFrame::unsafe_arena_release_payload_header() { - // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.payload_header) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* temp = payload_header_; - payload_header_ = nullptr; - return temp; -} -inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PayloadTransferFrame::_internal_mutable_payload_header() { - _has_bits_[0] |= 0x00000001u; - if (payload_header_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>(GetArenaForAllocation()); - payload_header_ = p; - } - return payload_header_; -} -inline ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* PayloadTransferFrame::mutable_payload_header() { - ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* _msg = _internal_mutable_payload_header(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.payload_header) - return _msg; -} -inline void PayloadTransferFrame::set_allocated_payload_header(::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete payload_header_; - } - if (payload_header) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>::GetOwningArena(payload_header); - if (message_arena != submessage_arena) { - payload_header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payload_header, submessage_arena); - } - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - payload_header_ = payload_header; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.payload_header) -} - -// optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3; -inline bool PayloadTransferFrame::_internal_has_payload_chunk() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || payload_chunk_ != nullptr); - return value; -} -inline bool PayloadTransferFrame::has_payload_chunk() const { - return _internal_has_payload_chunk(); -} -inline void PayloadTransferFrame::clear_payload_chunk() { - if (payload_chunk_ != nullptr) payload_chunk_->Clear(); - _has_bits_[0] &= ~0x00000002u; -} -inline const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& PayloadTransferFrame::_internal_payload_chunk() const { - const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* p = payload_chunk_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_PayloadTransferFrame_PayloadChunk_default_instance_); -} -inline const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& PayloadTransferFrame::payload_chunk() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.payload_chunk) - return _internal_payload_chunk(); -} -inline void PayloadTransferFrame::unsafe_arena_set_allocated_payload_chunk( - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(payload_chunk_); - } - payload_chunk_ = payload_chunk; - if (payload_chunk) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.PayloadTransferFrame.payload_chunk) -} -inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PayloadTransferFrame::release_payload_chunk() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* temp = payload_chunk_; - payload_chunk_ = 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 ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PayloadTransferFrame::unsafe_arena_release_payload_chunk() { - // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.payload_chunk) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* temp = payload_chunk_; - payload_chunk_ = nullptr; - return temp; -} -inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PayloadTransferFrame::_internal_mutable_payload_chunk() { - _has_bits_[0] |= 0x00000002u; - if (payload_chunk_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>(GetArenaForAllocation()); - payload_chunk_ = p; - } - return payload_chunk_; -} -inline ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* PayloadTransferFrame::mutable_payload_chunk() { - ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* _msg = _internal_mutable_payload_chunk(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.payload_chunk) - return _msg; -} -inline void PayloadTransferFrame::set_allocated_payload_chunk(::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete payload_chunk_; - } - if (payload_chunk) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>::GetOwningArena(payload_chunk); - if (message_arena != submessage_arena) { - payload_chunk = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, payload_chunk, submessage_arena); - } - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - payload_chunk_ = payload_chunk; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.payload_chunk) -} - -// optional .location.nearby.connections.PayloadTransferFrame.ControlMessage control_message = 4; -inline bool PayloadTransferFrame::_internal_has_control_message() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || control_message_ != nullptr); - return value; -} -inline bool PayloadTransferFrame::has_control_message() const { - return _internal_has_control_message(); -} -inline void PayloadTransferFrame::clear_control_message() { - if (control_message_ != nullptr) control_message_->Clear(); - _has_bits_[0] &= ~0x00000004u; -} -inline const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& PayloadTransferFrame::_internal_control_message() const { - const ::location::nearby::connections::PayloadTransferFrame_ControlMessage* p = control_message_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_PayloadTransferFrame_ControlMessage_default_instance_); -} -inline const ::location::nearby::connections::PayloadTransferFrame_ControlMessage& PayloadTransferFrame::control_message() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PayloadTransferFrame.control_message) - return _internal_control_message(); -} -inline void PayloadTransferFrame::unsafe_arena_set_allocated_control_message( - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* control_message) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(control_message_); - } - control_message_ = control_message; - if (control_message) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.PayloadTransferFrame.control_message) -} -inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PayloadTransferFrame::release_control_message() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* temp = control_message_; - control_message_ = 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 ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PayloadTransferFrame::unsafe_arena_release_control_message() { - // @@protoc_insertion_point(field_release:location.nearby.connections.PayloadTransferFrame.control_message) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* temp = control_message_; - control_message_ = nullptr; - return temp; -} -inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PayloadTransferFrame::_internal_mutable_control_message() { - _has_bits_[0] |= 0x00000004u; - if (control_message_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_ControlMessage>(GetArenaForAllocation()); - control_message_ = p; - } - return control_message_; -} -inline ::location::nearby::connections::PayloadTransferFrame_ControlMessage* PayloadTransferFrame::mutable_control_message() { - ::location::nearby::connections::PayloadTransferFrame_ControlMessage* _msg = _internal_mutable_control_message(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.PayloadTransferFrame.control_message) - return _msg; -} -inline void PayloadTransferFrame::set_allocated_control_message(::location::nearby::connections::PayloadTransferFrame_ControlMessage* control_message) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete control_message_; - } - if (control_message) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PayloadTransferFrame_ControlMessage>::GetOwningArena(control_message); - if (message_arena != submessage_arena) { - control_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, control_message, submessage_arena); - } - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - control_message_ = control_message; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PayloadTransferFrame.control_message) -} - -// ------------------------------------------------------------------- - -// BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials - -// optional string ssid = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_has_ssid() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_ssid() const { - return _internal_has_ssid(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_ssid() { - ssid_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::ssid() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.ssid) - return _internal_ssid(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_ssid(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.ssid) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_ssid() { - std::string* _s = _internal_mutable_ssid(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.ssid) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_ssid() const { - return ssid_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_ssid(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_mutable_ssid() { - _has_bits_[0] |= 0x00000001u; - return ssid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::release_ssid() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.ssid) - if (!_internal_has_ssid()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = ssid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_allocated_ssid(std::string* ssid) { - if (ssid != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - ssid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ssid, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.ssid) -} - -// optional string password = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_has_password() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_password() const { - return _internal_has_password(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_password() { - password_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::password() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.password) - return _internal_password(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_password(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.password) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_password() { - std::string* _s = _internal_mutable_password(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.password) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_password() const { - return password_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_password(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_mutable_password() { - _has_bits_[0] |= 0x00000002u; - return password_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::release_password() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.password) - if (!_internal_has_password()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_allocated_password(std::string* password) { - if (password != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.password) -} - -// optional int32 port = 3; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_has_port() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_port() const { - return _internal_has_port(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_port() { - port_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_port() const { - return port_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::port() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.port) - return _internal_port(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_port(int32_t value) { - _has_bits_[0] |= 0x00000008u; - port_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_port(int32_t value) { - _internal_set_port(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.port) -} - -// optional string gateway = 4 [default = "0.0.0.0"]; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_has_gateway() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_gateway() const { - return _internal_has_gateway(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_gateway() { - gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); - _has_bits_[0] &= ~0x00000004u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::gateway() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.gateway) - if (gateway_.IsDefault(nullptr)) return _i_give_permission_to_break_this_code_default_gateway_.get(); - return _internal_gateway(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_gateway(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.gateway) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::mutable_gateway() { - std::string* _s = _internal_mutable_gateway(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.gateway) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_gateway() const { - return gateway_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_gateway(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_mutable_gateway() { - _has_bits_[0] |= 0x00000004u; - return gateway_.Mutable(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::release_gateway() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.gateway) - if (!_internal_has_gateway()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - auto* p = gateway_.ReleaseNonDefault(nullptr, GetArenaForAllocation()); - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_allocated_gateway(std::string* gateway) { - if (gateway != nullptr) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - gateway_.SetAllocated(nullptr, gateway, - GetArenaForAllocation()); - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.gateway) -} - -// optional int32 frequency = 5 [default = -1]; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_has_frequency() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::has_frequency() const { - return _internal_has_frequency(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::clear_frequency() { - frequency_ = -1; - _has_bits_[0] &= ~0x00000010u; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_frequency() const { - return frequency_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::frequency() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.frequency) - return _internal_frequency(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::_internal_set_frequency(int32_t value) { - _has_bits_[0] |= 0x00000010u; - frequency_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::set_frequency(int32_t value) { - _internal_set_frequency(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials.frequency) -} - -// ------------------------------------------------------------------- - -// BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket - -// optional bytes ip_address = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_has_ip_address() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::has_ip_address() const { - return _internal_has_ip_address(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::clear_ip_address() { - ip_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::ip_address() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.ip_address) - return _internal_ip_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::set_ip_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - ip_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.ip_address) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::mutable_ip_address() { - std::string* _s = _internal_mutable_ip_address(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.ip_address) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_ip_address() const { - return ip_address_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_set_ip_address(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_mutable_ip_address() { - _has_bits_[0] |= 0x00000001u; - return ip_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::release_ip_address() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.ip_address) - if (!_internal_has_ip_address()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = ip_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::set_allocated_ip_address(std::string* ip_address) { - if (ip_address != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - ip_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.ip_address) -} - -// optional int32 wifi_port = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_has_wifi_port() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::has_wifi_port() const { - return _internal_has_wifi_port(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::clear_wifi_port() { - wifi_port_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_wifi_port() const { - return wifi_port_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::wifi_port() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.wifi_port) - return _internal_wifi_port(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::_internal_set_wifi_port(int32_t value) { - _has_bits_[0] |= 0x00000002u; - wifi_port_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::set_wifi_port(int32_t value) { - _internal_set_wifi_port(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket.wifi_port) -} - -// ------------------------------------------------------------------- - -// BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials - -// optional string service_name = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_has_service_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::has_service_name() const { - return _internal_has_service_name(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::clear_service_name() { - service_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::service_name() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.service_name) - return _internal_service_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_service_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.service_name) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::mutable_service_name() { - std::string* _s = _internal_mutable_service_name(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.service_name) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_service_name() const { - return service_name_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_set_service_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - service_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_mutable_service_name() { - _has_bits_[0] |= 0x00000001u; - return service_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::release_service_name() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.service_name) - if (!_internal_has_service_name()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = service_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_allocated_service_name(std::string* service_name) { - if (service_name != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - service_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.service_name) -} - -// optional string mac_address = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_has_mac_address() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::has_mac_address() const { - return _internal_has_mac_address(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::clear_mac_address() { - mac_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::mac_address() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.mac_address) - return _internal_mac_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_mac_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.mac_address) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::mutable_mac_address() { - std::string* _s = _internal_mutable_mac_address(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.mac_address) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_mac_address() const { - return mac_address_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_set_mac_address(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::_internal_mutable_mac_address() { - _has_bits_[0] |= 0x00000002u; - return mac_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::release_mac_address() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.mac_address) - if (!_internal_has_mac_address()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = mac_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::set_allocated_mac_address(std::string* mac_address) { - if (mac_address != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - mac_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), mac_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials.mac_address) -} - -// ------------------------------------------------------------------- - -// BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials - -// optional string service_id = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_has_service_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::has_service_id() const { - return _internal_has_service_id(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::clear_service_id() { - service_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::service_id() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_id) - return _internal_service_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_service_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_id) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::mutable_service_id() { - std::string* _s = _internal_mutable_service_id(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_id) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_service_id() const { - return service_id_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_set_service_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_mutable_service_id() { - _has_bits_[0] |= 0x00000001u; - return service_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::release_service_id() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_id) - if (!_internal_has_service_id()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = service_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_allocated_service_id(std::string* service_id) { - if (service_id != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - service_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_id) -} - -// optional bytes service_info = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_has_service_info() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::has_service_info() const { - return _internal_has_service_info(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::clear_service_info() { - service_info_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::service_info() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_info) - return _internal_service_info(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_service_info(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - service_info_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_info) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::mutable_service_info() { - std::string* _s = _internal_mutable_service_info(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_info) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_service_info() const { - return service_info_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_set_service_info(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - service_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_mutable_service_info() { - _has_bits_[0] |= 0x00000002u; - return service_info_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::release_service_info() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_info) - if (!_internal_has_service_info()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = service_info_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_allocated_service_info(std::string* service_info) { - if (service_info != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - service_info_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_info, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (service_info_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - service_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.service_info) -} - -// optional string password = 3; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_has_password() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::has_password() const { - return _internal_has_password(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::clear_password() { - password_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::password() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.password) - return _internal_password(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_password(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.password) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::mutable_password() { - std::string* _s = _internal_mutable_password(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.password) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_password() const { - return password_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_set_password(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::_internal_mutable_password() { - _has_bits_[0] |= 0x00000004u; - return password_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::release_password() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.password) - if (!_internal_has_password()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - auto* p = password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::set_allocated_password(std::string* password) { - if (password != nullptr) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials.password) -} - -// ------------------------------------------------------------------- - -// BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials - -// optional string ssid = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_ssid() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_ssid() const { - return _internal_has_ssid(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_ssid() { - ssid_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ssid() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ssid) - return _internal_ssid(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_ssid(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ssid) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_ssid() { - std::string* _s = _internal_mutable_ssid(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ssid) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_ssid() const { - return ssid_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_ssid(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - ssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_ssid() { - _has_bits_[0] |= 0x00000001u; - return ssid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_ssid() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ssid) - if (!_internal_has_ssid()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = ssid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_ssid(std::string* ssid) { - if (ssid != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - ssid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ssid, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ssid) -} - -// optional string password = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_password() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_password() const { - return _internal_has_password(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_password() { - password_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::password() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.password) - return _internal_password(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_password(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.password) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_password() { - std::string* _s = _internal_mutable_password(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.password) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_password() const { - return password_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_password(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_password() { - _has_bits_[0] |= 0x00000002u; - return password_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_password() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.password) - if (!_internal_has_password()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = password_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_password(std::string* password) { - if (password != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - password_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), password, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (password_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.password) -} - -// optional int32 port = 3; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_port() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_port() const { - return _internal_has_port(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_port() { - port_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_port() const { - return port_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::port() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.port) - return _internal_port(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_port(int32_t value) { - _has_bits_[0] |= 0x00000008u; - port_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_port(int32_t value) { - _internal_set_port(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.port) -} - -// optional int32 frequency = 4; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_frequency() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_frequency() const { - return _internal_has_frequency(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_frequency() { - frequency_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_frequency() const { - return frequency_; -} -inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::frequency() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.frequency) - return _internal_frequency(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_frequency(int32_t value) { - _has_bits_[0] |= 0x00000010u; - frequency_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_frequency(int32_t value) { - _internal_set_frequency(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.frequency) -} - -// optional string gateway = 5 [default = "0.0.0.0"]; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_gateway() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_gateway() const { - return _internal_has_gateway(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_gateway() { - gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); - _has_bits_[0] &= ~0x00000004u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::gateway() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) - if (gateway_.IsDefault(nullptr)) return _i_give_permission_to_break_this_code_default_gateway_.get(); - return _internal_gateway(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_gateway(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_gateway() { - std::string* _s = _internal_mutable_gateway(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_gateway() const { - return gateway_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_gateway(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_gateway() { - _has_bits_[0] |= 0x00000004u; - return gateway_.Mutable(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_gateway() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) - if (!_internal_has_gateway()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - auto* p = gateway_.ReleaseNonDefault(nullptr, GetArenaForAllocation()); - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_gateway(std::string* gateway) { - if (gateway != nullptr) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - gateway_.SetAllocated(nullptr, gateway, - GetArenaForAllocation()); - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) -} - -// ------------------------------------------------------------------- - -// BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials - -// optional string peer_id = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_has_peer_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::has_peer_id() const { - return _internal_has_peer_id(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::clear_peer_id() { - peer_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::peer_id() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.peer_id) - return _internal_peer_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::set_peer_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - peer_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.peer_id) -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::mutable_peer_id() { - std::string* _s = _internal_mutable_peer_id(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.peer_id) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_peer_id() const { - return peer_id_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_set_peer_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - peer_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_mutable_peer_id() { - _has_bits_[0] |= 0x00000001u; - return peer_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::release_peer_id() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.peer_id) - if (!_internal_has_peer_id()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = peer_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (peer_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - peer_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::set_allocated_peer_id(std::string* peer_id) { - if (peer_id != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - peer_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), peer_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (peer_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - peer_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.peer_id) -} - -// optional .location.nearby.connections.LocationHint location_hint = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_has_location_hint() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || location_hint_ != nullptr); - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::has_location_hint() const { - return _internal_has_location_hint(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::clear_location_hint() { - if (location_hint_ != nullptr) location_hint_->Clear(); - _has_bits_[0] &= ~0x00000002u; -} -inline const ::location::nearby::connections::LocationHint& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_location_hint() const { - const ::location::nearby::connections::LocationHint* p = location_hint_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_LocationHint_default_instance_); -} -inline const ::location::nearby::connections::LocationHint& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::location_hint() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.location_hint) - return _internal_location_hint(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::unsafe_arena_set_allocated_location_hint( - ::location::nearby::connections::LocationHint* location_hint) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(location_hint_); - } - location_hint_ = location_hint; - if (location_hint) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.location_hint) -} -inline ::location::nearby::connections::LocationHint* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::release_location_hint() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::LocationHint* temp = location_hint_; - location_hint_ = 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 ::location::nearby::connections::LocationHint* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::unsafe_arena_release_location_hint() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.location_hint) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::LocationHint* temp = location_hint_; - location_hint_ = nullptr; - return temp; -} -inline ::location::nearby::connections::LocationHint* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::_internal_mutable_location_hint() { - _has_bits_[0] |= 0x00000002u; - if (location_hint_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::LocationHint>(GetArenaForAllocation()); - location_hint_ = p; - } - return location_hint_; -} -inline ::location::nearby::connections::LocationHint* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::mutable_location_hint() { - ::location::nearby::connections::LocationHint* _msg = _internal_mutable_location_hint(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.location_hint) - return _msg; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::set_allocated_location_hint(::location::nearby::connections::LocationHint* location_hint) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete location_hint_; - } - if (location_hint) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::LocationHint>::GetOwningArena(location_hint); - if (message_arena != submessage_arena) { - location_hint = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, location_hint, submessage_arena); - } - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - location_hint_ = location_hint; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials.location_hint) -} - -// ------------------------------------------------------------------- - -// BandwidthUpgradeNegotiationFrame_UpgradePathInfo - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.Medium medium = 1; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_medium() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_medium() const { - return _internal_has_medium(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_medium() { - medium_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_medium() const { - return static_cast< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium >(medium_); -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::medium() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.medium) - return _internal_medium(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_medium(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { - assert(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(value)); - _has_bits_[0] |= 0x00000040u; - medium_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_medium(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) { - _internal_set_medium(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.medium) -} - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiHotspotCredentials wifi_hotspot_credentials = 2; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_wifi_hotspot_credentials() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || wifi_hotspot_credentials_ != nullptr); - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_hotspot_credentials() const { - return _internal_has_wifi_hotspot_credentials(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_wifi_hotspot_credentials() { - if (wifi_hotspot_credentials_ != nullptr) wifi_hotspot_credentials_->Clear(); - _has_bits_[0] &= ~0x00000001u; -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_wifi_hotspot_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* p = wifi_hotspot_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_); -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_hotspot_credentials() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_hotspot_credentials) - return _internal_wifi_hotspot_credentials(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_wifi_hotspot_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* wifi_hotspot_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_hotspot_credentials_); - } - wifi_hotspot_credentials_ = wifi_hotspot_credentials; - if (wifi_hotspot_credentials) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_hotspot_credentials) -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_hotspot_credentials() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* temp = wifi_hotspot_credentials_; - wifi_hotspot_credentials_ = 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 ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_hotspot_credentials() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_hotspot_credentials) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* temp = wifi_hotspot_credentials_; - wifi_hotspot_credentials_ = nullptr; - return temp; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_hotspot_credentials() { - _has_bits_[0] |= 0x00000001u; - if (wifi_hotspot_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials>(GetArenaForAllocation()); - wifi_hotspot_credentials_ = p; - } - return wifi_hotspot_credentials_; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_hotspot_credentials() { - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* _msg = _internal_mutable_wifi_hotspot_credentials(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_hotspot_credentials) - return _msg; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_hotspot_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* wifi_hotspot_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete wifi_hotspot_credentials_; - } - if (wifi_hotspot_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials>::GetOwningArena(wifi_hotspot_credentials); - if (message_arena != submessage_arena) { - wifi_hotspot_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_hotspot_credentials, submessage_arena); - } - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - wifi_hotspot_credentials_ = wifi_hotspot_credentials; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_hotspot_credentials) -} - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiLanSocket wifi_lan_socket = 3; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_wifi_lan_socket() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || wifi_lan_socket_ != nullptr); - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_lan_socket() const { - return _internal_has_wifi_lan_socket(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_wifi_lan_socket() { - if (wifi_lan_socket_ != nullptr) wifi_lan_socket_->Clear(); - _has_bits_[0] &= ~0x00000002u; -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_wifi_lan_socket() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* p = wifi_lan_socket_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_); -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_lan_socket() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_lan_socket) - return _internal_wifi_lan_socket(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_wifi_lan_socket( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* wifi_lan_socket) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_lan_socket_); - } - wifi_lan_socket_ = wifi_lan_socket; - if (wifi_lan_socket) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_lan_socket) -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_lan_socket() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* temp = wifi_lan_socket_; - wifi_lan_socket_ = 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 ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_lan_socket() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_lan_socket) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* temp = wifi_lan_socket_; - wifi_lan_socket_ = nullptr; - return temp; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_lan_socket() { - _has_bits_[0] |= 0x00000002u; - if (wifi_lan_socket_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket>(GetArenaForAllocation()); - wifi_lan_socket_ = p; - } - return wifi_lan_socket_; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_lan_socket() { - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* _msg = _internal_mutable_wifi_lan_socket(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_lan_socket) - return _msg; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_lan_socket(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* wifi_lan_socket) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete wifi_lan_socket_; - } - if (wifi_lan_socket) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket>::GetOwningArena(wifi_lan_socket); - if (message_arena != submessage_arena) { - wifi_lan_socket = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_lan_socket, submessage_arena); - } - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - wifi_lan_socket_ = wifi_lan_socket; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_lan_socket) -} - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.BluetoothCredentials bluetooth_credentials = 4; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_bluetooth_credentials() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || bluetooth_credentials_ != nullptr); - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_bluetooth_credentials() const { - return _internal_has_bluetooth_credentials(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_bluetooth_credentials() { - if (bluetooth_credentials_ != nullptr) bluetooth_credentials_->Clear(); - _has_bits_[0] &= ~0x00000004u; -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_bluetooth_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* p = bluetooth_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_); -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::bluetooth_credentials() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.bluetooth_credentials) - return _internal_bluetooth_credentials(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_bluetooth_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* bluetooth_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(bluetooth_credentials_); - } - bluetooth_credentials_ = bluetooth_credentials; - if (bluetooth_credentials) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.bluetooth_credentials) -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_bluetooth_credentials() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* temp = bluetooth_credentials_; - bluetooth_credentials_ = 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 ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_bluetooth_credentials() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.bluetooth_credentials) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* temp = bluetooth_credentials_; - bluetooth_credentials_ = nullptr; - return temp; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_bluetooth_credentials() { - _has_bits_[0] |= 0x00000004u; - if (bluetooth_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>(GetArenaForAllocation()); - bluetooth_credentials_ = p; - } - return bluetooth_credentials_; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_bluetooth_credentials() { - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* _msg = _internal_mutable_bluetooth_credentials(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.bluetooth_credentials) - return _msg; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_bluetooth_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* bluetooth_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete bluetooth_credentials_; - } - if (bluetooth_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>::GetOwningArena(bluetooth_credentials); - if (message_arena != submessage_arena) { - bluetooth_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, bluetooth_credentials, submessage_arena); - } - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - bluetooth_credentials_ = bluetooth_credentials; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.bluetooth_credentials) -} - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiAwareCredentials wifi_aware_credentials = 5; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_wifi_aware_credentials() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || wifi_aware_credentials_ != nullptr); - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_aware_credentials() const { - return _internal_has_wifi_aware_credentials(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_wifi_aware_credentials() { - if (wifi_aware_credentials_ != nullptr) wifi_aware_credentials_->Clear(); - _has_bits_[0] &= ~0x00000008u; -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_wifi_aware_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* p = wifi_aware_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_); -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_aware_credentials() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_aware_credentials) - return _internal_wifi_aware_credentials(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_wifi_aware_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* wifi_aware_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_aware_credentials_); - } - wifi_aware_credentials_ = wifi_aware_credentials; - if (wifi_aware_credentials) { - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_aware_credentials) -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_aware_credentials() { - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* temp = wifi_aware_credentials_; - wifi_aware_credentials_ = 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 ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_aware_credentials() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_aware_credentials) - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* temp = wifi_aware_credentials_; - wifi_aware_credentials_ = nullptr; - return temp; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_aware_credentials() { - _has_bits_[0] |= 0x00000008u; - if (wifi_aware_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials>(GetArenaForAllocation()); - wifi_aware_credentials_ = p; - } - return wifi_aware_credentials_; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_aware_credentials() { - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* _msg = _internal_mutable_wifi_aware_credentials(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_aware_credentials) - return _msg; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_aware_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* wifi_aware_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete wifi_aware_credentials_; - } - if (wifi_aware_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials>::GetOwningArena(wifi_aware_credentials); - if (message_arena != submessage_arena) { - wifi_aware_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_aware_credentials, submessage_arena); - } - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - wifi_aware_credentials_ = wifi_aware_credentials; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_aware_credentials) -} - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials wifi_direct_credentials = 6; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_wifi_direct_credentials() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || wifi_direct_credentials_ != nullptr); - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_wifi_direct_credentials() const { - return _internal_has_wifi_direct_credentials(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_wifi_direct_credentials() { - if (wifi_direct_credentials_ != nullptr) wifi_direct_credentials_->Clear(); - _has_bits_[0] &= ~0x00000010u; -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_wifi_direct_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* p = wifi_direct_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_); -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::wifi_direct_credentials() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_direct_credentials) - return _internal_wifi_direct_credentials(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_wifi_direct_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* wifi_direct_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_direct_credentials_); - } - wifi_direct_credentials_ = wifi_direct_credentials; - if (wifi_direct_credentials) { - _has_bits_[0] |= 0x00000010u; - } else { - _has_bits_[0] &= ~0x00000010u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_direct_credentials) -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_wifi_direct_credentials() { - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* temp = wifi_direct_credentials_; - wifi_direct_credentials_ = 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 ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_wifi_direct_credentials() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_direct_credentials) - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* temp = wifi_direct_credentials_; - wifi_direct_credentials_ = nullptr; - return temp; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_wifi_direct_credentials() { - _has_bits_[0] |= 0x00000010u; - if (wifi_direct_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials>(GetArenaForAllocation()); - wifi_direct_credentials_ = p; - } - return wifi_direct_credentials_; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_wifi_direct_credentials() { - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* _msg = _internal_mutable_wifi_direct_credentials(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_direct_credentials) - return _msg; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_wifi_direct_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* wifi_direct_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete wifi_direct_credentials_; - } - if (wifi_direct_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials>::GetOwningArena(wifi_direct_credentials); - if (message_arena != submessage_arena) { - wifi_direct_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_direct_credentials, submessage_arena); - } - _has_bits_[0] |= 0x00000010u; - } else { - _has_bits_[0] &= ~0x00000010u; - } - wifi_direct_credentials_ = wifi_direct_credentials; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.wifi_direct_credentials) -} - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WebRtcCredentials web_rtc_credentials = 8; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_web_rtc_credentials() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || web_rtc_credentials_ != nullptr); - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_web_rtc_credentials() const { - return _internal_has_web_rtc_credentials(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_web_rtc_credentials() { - if (web_rtc_credentials_ != nullptr) web_rtc_credentials_->Clear(); - _has_bits_[0] &= ~0x00000020u; -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_web_rtc_credentials() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* p = web_rtc_credentials_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_); -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials& BandwidthUpgradeNegotiationFrame_UpgradePathInfo::web_rtc_credentials() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.web_rtc_credentials) - return _internal_web_rtc_credentials(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_set_allocated_web_rtc_credentials( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* web_rtc_credentials) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(web_rtc_credentials_); - } - web_rtc_credentials_ = web_rtc_credentials; - if (web_rtc_credentials) { - _has_bits_[0] |= 0x00000020u; - } else { - _has_bits_[0] &= ~0x00000020u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.web_rtc_credentials) -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::release_web_rtc_credentials() { - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* temp = web_rtc_credentials_; - web_rtc_credentials_ = 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 ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::unsafe_arena_release_web_rtc_credentials() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.web_rtc_credentials) - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* temp = web_rtc_credentials_; - web_rtc_credentials_ = nullptr; - return temp; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_mutable_web_rtc_credentials() { - _has_bits_[0] |= 0x00000020u; - if (web_rtc_credentials_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>(GetArenaForAllocation()); - web_rtc_credentials_ = p; - } - return web_rtc_credentials_; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* BandwidthUpgradeNegotiationFrame_UpgradePathInfo::mutable_web_rtc_credentials() { - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* _msg = _internal_mutable_web_rtc_credentials(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.web_rtc_credentials) - return _msg; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_allocated_web_rtc_credentials(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* web_rtc_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete web_rtc_credentials_; - } - if (web_rtc_credentials) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>::GetOwningArena(web_rtc_credentials); - if (message_arena != submessage_arena) { - web_rtc_credentials = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, web_rtc_credentials, submessage_arena); - } - _has_bits_[0] |= 0x00000020u; - } else { - _has_bits_[0] &= ~0x00000020u; - } - web_rtc_credentials_ = web_rtc_credentials; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.web_rtc_credentials) -} - -// optional bool supports_disabling_encryption = 7; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_supports_disabling_encryption() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_supports_disabling_encryption() const { - return _internal_has_supports_disabling_encryption(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_supports_disabling_encryption() { - supports_disabling_encryption_ = false; - _has_bits_[0] &= ~0x00000080u; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_supports_disabling_encryption() const { - return supports_disabling_encryption_; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::supports_disabling_encryption() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.supports_disabling_encryption) - return _internal_supports_disabling_encryption(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_supports_disabling_encryption(bool value) { - _has_bits_[0] |= 0x00000080u; - supports_disabling_encryption_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_supports_disabling_encryption(bool value) { - _internal_set_supports_disabling_encryption(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.supports_disabling_encryption) -} - -// optional bool supports_client_introduction_ack = 9; -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_has_supports_client_introduction_ack() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::has_supports_client_introduction_ack() const { - return _internal_has_supports_client_introduction_ack(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::clear_supports_client_introduction_ack() { - supports_client_introduction_ack_ = false; - _has_bits_[0] &= ~0x00000100u; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_supports_client_introduction_ack() const { - return supports_client_introduction_ack_; -} -inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo::supports_client_introduction_ack() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.supports_client_introduction_ack) - return _internal_supports_client_introduction_ack(); -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::_internal_set_supports_client_introduction_ack(bool value) { - _has_bits_[0] |= 0x00000100u; - supports_client_introduction_ack_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_supports_client_introduction_ack(bool value) { - _internal_set_supports_client_introduction_ack(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.supports_client_introduction_ack) -} - -// ------------------------------------------------------------------- - -// BandwidthUpgradeNegotiationFrame_ClientIntroduction - -// optional string endpoint_id = 1; -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_has_endpoint_id() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_endpoint_id() const { - return _internal_has_endpoint_id(); -} -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::clear_endpoint_id() { - endpoint_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::endpoint_id() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.endpoint_id) - return _internal_endpoint_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_endpoint_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.endpoint_id) -} -inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::mutable_endpoint_id() { - std::string* _s = _internal_mutable_endpoint_id(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.endpoint_id) - return _s; -} -inline const std::string& BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_endpoint_id() const { - return endpoint_id_.Get(); -} -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_set_endpoint_id(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_mutable_endpoint_id() { - _has_bits_[0] |= 0x00000001u; - return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* BandwidthUpgradeNegotiationFrame_ClientIntroduction::release_endpoint_id() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.endpoint_id) - if (!_internal_has_endpoint_id()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_allocated_endpoint_id(std::string* endpoint_id) { - if (endpoint_id != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.endpoint_id) -} - -// optional bool supports_disabling_encryption = 2; -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_has_supports_disabling_encryption() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::has_supports_disabling_encryption() const { - return _internal_has_supports_disabling_encryption(); -} -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::clear_supports_disabling_encryption() { - supports_disabling_encryption_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_supports_disabling_encryption() const { - return supports_disabling_encryption_; -} -inline bool BandwidthUpgradeNegotiationFrame_ClientIntroduction::supports_disabling_encryption() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.supports_disabling_encryption) - return _internal_supports_disabling_encryption(); -} -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::_internal_set_supports_disabling_encryption(bool value) { - _has_bits_[0] |= 0x00000002u; - supports_disabling_encryption_ = value; -} -inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_supports_disabling_encryption(bool value) { - _internal_set_supports_disabling_encryption(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction.supports_disabling_encryption) -} - -// ------------------------------------------------------------------- - -// BandwidthUpgradeNegotiationFrame_ClientIntroductionAck - -// ------------------------------------------------------------------- - -// BandwidthUpgradeNegotiationFrame - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1; -inline bool BandwidthUpgradeNegotiationFrame::_internal_has_event_type() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool BandwidthUpgradeNegotiationFrame::has_event_type() const { - return _internal_has_event_type(); -} -inline void BandwidthUpgradeNegotiationFrame::clear_event_type() { - event_type_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::_internal_event_type() const { - return static_cast< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType >(event_type_); -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::event_type() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.event_type) - return _internal_event_type(); -} -inline void BandwidthUpgradeNegotiationFrame::_internal_set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value) { - assert(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - event_type_ = value; -} -inline void BandwidthUpgradeNegotiationFrame::set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value) { - _internal_set_event_type(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.event_type) -} - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2; -inline bool BandwidthUpgradeNegotiationFrame::_internal_has_upgrade_path_info() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || upgrade_path_info_ != nullptr); - return value; -} -inline bool BandwidthUpgradeNegotiationFrame::has_upgrade_path_info() const { - return _internal_has_upgrade_path_info(); -} -inline void BandwidthUpgradeNegotiationFrame::clear_upgrade_path_info() { - if (upgrade_path_info_ != nullptr) upgrade_path_info_->Clear(); - _has_bits_[0] &= ~0x00000001u; -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& BandwidthUpgradeNegotiationFrame::_internal_upgrade_path_info() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* p = upgrade_path_info_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_); -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& BandwidthUpgradeNegotiationFrame::upgrade_path_info() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.upgrade_path_info) - return _internal_upgrade_path_info(); -} -inline void BandwidthUpgradeNegotiationFrame::unsafe_arena_set_allocated_upgrade_path_info( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(upgrade_path_info_); - } - upgrade_path_info_ = upgrade_path_info; - if (upgrade_path_info) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.upgrade_path_info) -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* BandwidthUpgradeNegotiationFrame::release_upgrade_path_info() { - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* temp = upgrade_path_info_; - upgrade_path_info_ = 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 ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* BandwidthUpgradeNegotiationFrame::unsafe_arena_release_upgrade_path_info() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.upgrade_path_info) - _has_bits_[0] &= ~0x00000001u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* temp = upgrade_path_info_; - upgrade_path_info_ = nullptr; - return temp; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* BandwidthUpgradeNegotiationFrame::_internal_mutable_upgrade_path_info() { - _has_bits_[0] |= 0x00000001u; - if (upgrade_path_info_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>(GetArenaForAllocation()); - upgrade_path_info_ = p; - } - return upgrade_path_info_; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* BandwidthUpgradeNegotiationFrame::mutable_upgrade_path_info() { - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* _msg = _internal_mutable_upgrade_path_info(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.upgrade_path_info) - return _msg; -} -inline void BandwidthUpgradeNegotiationFrame::set_allocated_upgrade_path_info(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete upgrade_path_info_; - } - if (upgrade_path_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>::GetOwningArena(upgrade_path_info); - if (message_arena != submessage_arena) { - upgrade_path_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, upgrade_path_info, submessage_arena); - } - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - upgrade_path_info_ = upgrade_path_info; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.upgrade_path_info) -} - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction client_introduction = 3; -inline bool BandwidthUpgradeNegotiationFrame::_internal_has_client_introduction() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || client_introduction_ != nullptr); - return value; -} -inline bool BandwidthUpgradeNegotiationFrame::has_client_introduction() const { - return _internal_has_client_introduction(); -} -inline void BandwidthUpgradeNegotiationFrame::clear_client_introduction() { - if (client_introduction_ != nullptr) client_introduction_->Clear(); - _has_bits_[0] &= ~0x00000002u; -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& BandwidthUpgradeNegotiationFrame::_internal_client_introduction() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* p = client_introduction_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_); -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction& BandwidthUpgradeNegotiationFrame::client_introduction() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction) - return _internal_client_introduction(); -} -inline void BandwidthUpgradeNegotiationFrame::unsafe_arena_set_allocated_client_introduction( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(client_introduction_); - } - client_introduction_ = client_introduction; - if (client_introduction) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction) -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* BandwidthUpgradeNegotiationFrame::release_client_introduction() { - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* temp = client_introduction_; - client_introduction_ = 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 ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* BandwidthUpgradeNegotiationFrame::unsafe_arena_release_client_introduction() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction) - _has_bits_[0] &= ~0x00000002u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* temp = client_introduction_; - client_introduction_ = nullptr; - return temp; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* BandwidthUpgradeNegotiationFrame::_internal_mutable_client_introduction() { - _has_bits_[0] |= 0x00000002u; - if (client_introduction_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>(GetArenaForAllocation()); - client_introduction_ = p; - } - return client_introduction_; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* BandwidthUpgradeNegotiationFrame::mutable_client_introduction() { - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* _msg = _internal_mutable_client_introduction(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction) - return _msg; -} -inline void BandwidthUpgradeNegotiationFrame::set_allocated_client_introduction(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete client_introduction_; - } - if (client_introduction) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>::GetOwningArena(client_introduction); - if (message_arena != submessage_arena) { - client_introduction = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, client_introduction, submessage_arena); - } - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - client_introduction_ = client_introduction; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction) -} - -// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroductionAck client_introduction_ack = 4; -inline bool BandwidthUpgradeNegotiationFrame::_internal_has_client_introduction_ack() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || client_introduction_ack_ != nullptr); - return value; -} -inline bool BandwidthUpgradeNegotiationFrame::has_client_introduction_ack() const { - return _internal_has_client_introduction_ack(); -} -inline void BandwidthUpgradeNegotiationFrame::clear_client_introduction_ack() { - if (client_introduction_ack_ != nullptr) client_introduction_ack_->Clear(); - _has_bits_[0] &= ~0x00000004u; -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& BandwidthUpgradeNegotiationFrame::_internal_client_introduction_ack() const { - const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* p = client_introduction_ack_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_); -} -inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& BandwidthUpgradeNegotiationFrame::client_introduction_ack() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack) - return _internal_client_introduction_ack(); -} -inline void BandwidthUpgradeNegotiationFrame::unsafe_arena_set_allocated_client_introduction_ack( - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(client_introduction_ack_); - } - client_introduction_ack_ = client_introduction_ack; - if (client_introduction_ack) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack) -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* BandwidthUpgradeNegotiationFrame::release_client_introduction_ack() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* temp = client_introduction_ack_; - client_introduction_ack_ = 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 ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* BandwidthUpgradeNegotiationFrame::unsafe_arena_release_client_introduction_ack() { - // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* temp = client_introduction_ack_; - client_introduction_ack_ = nullptr; - return temp; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* BandwidthUpgradeNegotiationFrame::_internal_mutable_client_introduction_ack() { - _has_bits_[0] |= 0x00000004u; - if (client_introduction_ack_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>(GetArenaForAllocation()); - client_introduction_ack_ = p; - } - return client_introduction_ack_; -} -inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* BandwidthUpgradeNegotiationFrame::mutable_client_introduction_ack() { - ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* _msg = _internal_mutable_client_introduction_ack(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack) - return _msg; -} -inline void BandwidthUpgradeNegotiationFrame::set_allocated_client_introduction_ack(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete client_introduction_ack_; - } - if (client_introduction_ack) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>::GetOwningArena(client_introduction_ack); - if (message_arena != submessage_arena) { - client_introduction_ack = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, client_introduction_ack, submessage_arena); - } - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - client_introduction_ack_ = client_introduction_ack; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack) -} - -// ------------------------------------------------------------------- - -// KeepAliveFrame - -// optional bool ack = 1; -inline bool KeepAliveFrame::_internal_has_ack() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool KeepAliveFrame::has_ack() const { - return _internal_has_ack(); -} -inline void KeepAliveFrame::clear_ack() { - ack_ = false; - _has_bits_[0] &= ~0x00000001u; -} -inline bool KeepAliveFrame::_internal_ack() const { - return ack_; -} -inline bool KeepAliveFrame::ack() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.KeepAliveFrame.ack) - return _internal_ack(); -} -inline void KeepAliveFrame::_internal_set_ack(bool value) { - _has_bits_[0] |= 0x00000001u; - ack_ = value; -} -inline void KeepAliveFrame::set_ack(bool value) { - _internal_set_ack(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.KeepAliveFrame.ack) -} - -// ------------------------------------------------------------------- - -// DisconnectionFrame - -// ------------------------------------------------------------------- - -// PairedKeyEncryptionFrame - -// optional bytes signed_data = 1; -inline bool PairedKeyEncryptionFrame::_internal_has_signed_data() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool PairedKeyEncryptionFrame::has_signed_data() const { - return _internal_has_signed_data(); -} -inline void PairedKeyEncryptionFrame::clear_signed_data() { - signed_data_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& PairedKeyEncryptionFrame::signed_data() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.PairedKeyEncryptionFrame.signed_data) - return _internal_signed_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PairedKeyEncryptionFrame::set_signed_data(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - signed_data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.PairedKeyEncryptionFrame.signed_data) -} -inline std::string* PairedKeyEncryptionFrame::mutable_signed_data() { - std::string* _s = _internal_mutable_signed_data(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.PairedKeyEncryptionFrame.signed_data) - return _s; -} -inline const std::string& PairedKeyEncryptionFrame::_internal_signed_data() const { - return signed_data_.Get(); -} -inline void PairedKeyEncryptionFrame::_internal_set_signed_data(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - signed_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* PairedKeyEncryptionFrame::_internal_mutable_signed_data() { - _has_bits_[0] |= 0x00000001u; - return signed_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* PairedKeyEncryptionFrame::release_signed_data() { - // @@protoc_insertion_point(field_release:location.nearby.connections.PairedKeyEncryptionFrame.signed_data) - if (!_internal_has_signed_data()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = signed_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (signed_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - signed_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void PairedKeyEncryptionFrame::set_allocated_signed_data(std::string* signed_data) { - if (signed_data != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - signed_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signed_data, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (signed_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - signed_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PairedKeyEncryptionFrame.signed_data) -} - -// ------------------------------------------------------------------- - -// MediumMetadata - -// optional bool supports_5_ghz = 1; -inline bool MediumMetadata::_internal_has_supports_5_ghz() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - return value; -} -inline bool MediumMetadata::has_supports_5_ghz() const { - return _internal_has_supports_5_ghz(); -} -inline void MediumMetadata::clear_supports_5_ghz() { - supports_5_ghz_ = false; - _has_bits_[0] &= ~0x00000080u; -} -inline bool MediumMetadata::_internal_supports_5_ghz() const { - return supports_5_ghz_; -} -inline bool MediumMetadata::supports_5_ghz() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.supports_5_ghz) - return _internal_supports_5_ghz(); -} -inline void MediumMetadata::_internal_set_supports_5_ghz(bool value) { - _has_bits_[0] |= 0x00000080u; - supports_5_ghz_ = value; -} -inline void MediumMetadata::set_supports_5_ghz(bool value) { - _internal_set_supports_5_ghz(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.supports_5_ghz) -} - -// optional string bssid = 2; -inline bool MediumMetadata::_internal_has_bssid() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool MediumMetadata::has_bssid() const { - return _internal_has_bssid(); -} -inline void MediumMetadata::clear_bssid() { - bssid_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& MediumMetadata::bssid() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.bssid) - return _internal_bssid(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void MediumMetadata::set_bssid(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - bssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.bssid) -} -inline std::string* MediumMetadata::mutable_bssid() { - std::string* _s = _internal_mutable_bssid(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.bssid) - return _s; -} -inline const std::string& MediumMetadata::_internal_bssid() const { - return bssid_.Get(); -} -inline void MediumMetadata::_internal_set_bssid(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - bssid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* MediumMetadata::_internal_mutable_bssid() { - _has_bits_[0] |= 0x00000001u; - return bssid_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* MediumMetadata::release_bssid() { - // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.bssid) - if (!_internal_has_bssid()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = bssid_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (bssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - bssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void MediumMetadata::set_allocated_bssid(std::string* bssid) { - if (bssid != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - bssid_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bssid, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (bssid_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - bssid_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.bssid) -} - -// optional bytes ip_address = 3; -inline bool MediumMetadata::_internal_has_ip_address() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool MediumMetadata::has_ip_address() const { - return _internal_has_ip_address(); -} -inline void MediumMetadata::clear_ip_address() { - ip_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& MediumMetadata::ip_address() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.ip_address) - return _internal_ip_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void MediumMetadata::set_ip_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - ip_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.ip_address) -} -inline std::string* MediumMetadata::mutable_ip_address() { - std::string* _s = _internal_mutable_ip_address(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.ip_address) - return _s; -} -inline const std::string& MediumMetadata::_internal_ip_address() const { - return ip_address_.Get(); -} -inline void MediumMetadata::_internal_set_ip_address(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* MediumMetadata::_internal_mutable_ip_address() { - _has_bits_[0] |= 0x00000002u; - return ip_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* MediumMetadata::release_ip_address() { - // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.ip_address) - if (!_internal_has_ip_address()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = ip_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void MediumMetadata::set_allocated_ip_address(std::string* ip_address) { - if (ip_address != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - ip_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ip_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ip_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.ip_address) -} - -// optional bool supports_6_ghz = 4; -inline bool MediumMetadata::_internal_has_supports_6_ghz() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; - return value; -} -inline bool MediumMetadata::has_supports_6_ghz() const { - return _internal_has_supports_6_ghz(); -} -inline void MediumMetadata::clear_supports_6_ghz() { - supports_6_ghz_ = false; - _has_bits_[0] &= ~0x00000100u; -} -inline bool MediumMetadata::_internal_supports_6_ghz() const { - return supports_6_ghz_; -} -inline bool MediumMetadata::supports_6_ghz() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.supports_6_ghz) - return _internal_supports_6_ghz(); -} -inline void MediumMetadata::_internal_set_supports_6_ghz(bool value) { - _has_bits_[0] |= 0x00000100u; - supports_6_ghz_ = value; -} -inline void MediumMetadata::set_supports_6_ghz(bool value) { - _internal_set_supports_6_ghz(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.supports_6_ghz) -} - -// optional bool mobile_radio = 5; -inline bool MediumMetadata::_internal_has_mobile_radio() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; - return value; -} -inline bool MediumMetadata::has_mobile_radio() const { - return _internal_has_mobile_radio(); -} -inline void MediumMetadata::clear_mobile_radio() { - mobile_radio_ = false; - _has_bits_[0] &= ~0x00000200u; -} -inline bool MediumMetadata::_internal_mobile_radio() const { - return mobile_radio_; -} -inline bool MediumMetadata::mobile_radio() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.mobile_radio) - return _internal_mobile_radio(); -} -inline void MediumMetadata::_internal_set_mobile_radio(bool value) { - _has_bits_[0] |= 0x00000200u; - mobile_radio_ = value; -} -inline void MediumMetadata::set_mobile_radio(bool value) { - _internal_set_mobile_radio(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.mobile_radio) -} - -// optional int32 ap_frequency = 6 [default = -1]; -inline bool MediumMetadata::_internal_has_ap_frequency() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; - return value; -} -inline bool MediumMetadata::has_ap_frequency() const { - return _internal_has_ap_frequency(); -} -inline void MediumMetadata::clear_ap_frequency() { - ap_frequency_ = -1; - _has_bits_[0] &= ~0x00000400u; -} -inline int32_t MediumMetadata::_internal_ap_frequency() const { - return ap_frequency_; -} -inline int32_t MediumMetadata::ap_frequency() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.ap_frequency) - return _internal_ap_frequency(); -} -inline void MediumMetadata::_internal_set_ap_frequency(int32_t value) { - _has_bits_[0] |= 0x00000400u; - ap_frequency_ = value; -} -inline void MediumMetadata::set_ap_frequency(int32_t value) { - _internal_set_ap_frequency(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.MediumMetadata.ap_frequency) -} - -// optional .location.nearby.connections.AvailableChannels available_channels = 7; -inline bool MediumMetadata::_internal_has_available_channels() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || available_channels_ != nullptr); - return value; -} -inline bool MediumMetadata::has_available_channels() const { - return _internal_has_available_channels(); -} -inline void MediumMetadata::clear_available_channels() { - if (available_channels_ != nullptr) available_channels_->Clear(); - _has_bits_[0] &= ~0x00000004u; -} -inline const ::location::nearby::connections::AvailableChannels& MediumMetadata::_internal_available_channels() const { - const ::location::nearby::connections::AvailableChannels* p = available_channels_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_AvailableChannels_default_instance_); -} -inline const ::location::nearby::connections::AvailableChannels& MediumMetadata::available_channels() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.available_channels) - return _internal_available_channels(); -} -inline void MediumMetadata::unsafe_arena_set_allocated_available_channels( - ::location::nearby::connections::AvailableChannels* available_channels) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(available_channels_); - } - available_channels_ = available_channels; - if (available_channels) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.available_channels) -} -inline ::location::nearby::connections::AvailableChannels* MediumMetadata::release_available_channels() { - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::AvailableChannels* temp = available_channels_; - available_channels_ = 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 ::location::nearby::connections::AvailableChannels* MediumMetadata::unsafe_arena_release_available_channels() { - // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.available_channels) - _has_bits_[0] &= ~0x00000004u; - ::location::nearby::connections::AvailableChannels* temp = available_channels_; - available_channels_ = nullptr; - return temp; -} -inline ::location::nearby::connections::AvailableChannels* MediumMetadata::_internal_mutable_available_channels() { - _has_bits_[0] |= 0x00000004u; - if (available_channels_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::AvailableChannels>(GetArenaForAllocation()); - available_channels_ = p; - } - return available_channels_; -} -inline ::location::nearby::connections::AvailableChannels* MediumMetadata::mutable_available_channels() { - ::location::nearby::connections::AvailableChannels* _msg = _internal_mutable_available_channels(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.available_channels) - return _msg; -} -inline void MediumMetadata::set_allocated_available_channels(::location::nearby::connections::AvailableChannels* available_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete available_channels_; - } - if (available_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::AvailableChannels>::GetOwningArena(available_channels); - if (message_arena != submessage_arena) { - available_channels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, available_channels, submessage_arena); - } - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - available_channels_ = available_channels; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.available_channels) -} - -// optional .location.nearby.connections.WifiDirectCliUsableChannels wifi_direct_cli_usable_channels = 8; -inline bool MediumMetadata::_internal_has_wifi_direct_cli_usable_channels() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || wifi_direct_cli_usable_channels_ != nullptr); - return value; -} -inline bool MediumMetadata::has_wifi_direct_cli_usable_channels() const { - return _internal_has_wifi_direct_cli_usable_channels(); -} -inline void MediumMetadata::clear_wifi_direct_cli_usable_channels() { - if (wifi_direct_cli_usable_channels_ != nullptr) wifi_direct_cli_usable_channels_->Clear(); - _has_bits_[0] &= ~0x00000008u; -} -inline const ::location::nearby::connections::WifiDirectCliUsableChannels& MediumMetadata::_internal_wifi_direct_cli_usable_channels() const { - const ::location::nearby::connections::WifiDirectCliUsableChannels* p = wifi_direct_cli_usable_channels_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_WifiDirectCliUsableChannels_default_instance_); -} -inline const ::location::nearby::connections::WifiDirectCliUsableChannels& MediumMetadata::wifi_direct_cli_usable_channels() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.wifi_direct_cli_usable_channels) - return _internal_wifi_direct_cli_usable_channels(); -} -inline void MediumMetadata::unsafe_arena_set_allocated_wifi_direct_cli_usable_channels( - ::location::nearby::connections::WifiDirectCliUsableChannels* wifi_direct_cli_usable_channels) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_direct_cli_usable_channels_); - } - wifi_direct_cli_usable_channels_ = wifi_direct_cli_usable_channels; - if (wifi_direct_cli_usable_channels) { - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.wifi_direct_cli_usable_channels) -} -inline ::location::nearby::connections::WifiDirectCliUsableChannels* MediumMetadata::release_wifi_direct_cli_usable_channels() { - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::WifiDirectCliUsableChannels* temp = wifi_direct_cli_usable_channels_; - wifi_direct_cli_usable_channels_ = 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 ::location::nearby::connections::WifiDirectCliUsableChannels* MediumMetadata::unsafe_arena_release_wifi_direct_cli_usable_channels() { - // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.wifi_direct_cli_usable_channels) - _has_bits_[0] &= ~0x00000008u; - ::location::nearby::connections::WifiDirectCliUsableChannels* temp = wifi_direct_cli_usable_channels_; - wifi_direct_cli_usable_channels_ = nullptr; - return temp; -} -inline ::location::nearby::connections::WifiDirectCliUsableChannels* MediumMetadata::_internal_mutable_wifi_direct_cli_usable_channels() { - _has_bits_[0] |= 0x00000008u; - if (wifi_direct_cli_usable_channels_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::WifiDirectCliUsableChannels>(GetArenaForAllocation()); - wifi_direct_cli_usable_channels_ = p; - } - return wifi_direct_cli_usable_channels_; -} -inline ::location::nearby::connections::WifiDirectCliUsableChannels* MediumMetadata::mutable_wifi_direct_cli_usable_channels() { - ::location::nearby::connections::WifiDirectCliUsableChannels* _msg = _internal_mutable_wifi_direct_cli_usable_channels(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.wifi_direct_cli_usable_channels) - return _msg; -} -inline void MediumMetadata::set_allocated_wifi_direct_cli_usable_channels(::location::nearby::connections::WifiDirectCliUsableChannels* wifi_direct_cli_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete wifi_direct_cli_usable_channels_; - } - if (wifi_direct_cli_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::WifiDirectCliUsableChannels>::GetOwningArena(wifi_direct_cli_usable_channels); - if (message_arena != submessage_arena) { - wifi_direct_cli_usable_channels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_direct_cli_usable_channels, submessage_arena); - } - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - wifi_direct_cli_usable_channels_ = wifi_direct_cli_usable_channels; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.wifi_direct_cli_usable_channels) -} - -// optional .location.nearby.connections.WifiLanUsableChannels wifi_lan_usable_channels = 9; -inline bool MediumMetadata::_internal_has_wifi_lan_usable_channels() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || wifi_lan_usable_channels_ != nullptr); - return value; -} -inline bool MediumMetadata::has_wifi_lan_usable_channels() const { - return _internal_has_wifi_lan_usable_channels(); -} -inline void MediumMetadata::clear_wifi_lan_usable_channels() { - if (wifi_lan_usable_channels_ != nullptr) wifi_lan_usable_channels_->Clear(); - _has_bits_[0] &= ~0x00000010u; -} -inline const ::location::nearby::connections::WifiLanUsableChannels& MediumMetadata::_internal_wifi_lan_usable_channels() const { - const ::location::nearby::connections::WifiLanUsableChannels* p = wifi_lan_usable_channels_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_WifiLanUsableChannels_default_instance_); -} -inline const ::location::nearby::connections::WifiLanUsableChannels& MediumMetadata::wifi_lan_usable_channels() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.wifi_lan_usable_channels) - return _internal_wifi_lan_usable_channels(); -} -inline void MediumMetadata::unsafe_arena_set_allocated_wifi_lan_usable_channels( - ::location::nearby::connections::WifiLanUsableChannels* wifi_lan_usable_channels) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_lan_usable_channels_); - } - wifi_lan_usable_channels_ = wifi_lan_usable_channels; - if (wifi_lan_usable_channels) { - _has_bits_[0] |= 0x00000010u; - } else { - _has_bits_[0] &= ~0x00000010u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.wifi_lan_usable_channels) -} -inline ::location::nearby::connections::WifiLanUsableChannels* MediumMetadata::release_wifi_lan_usable_channels() { - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::WifiLanUsableChannels* temp = wifi_lan_usable_channels_; - wifi_lan_usable_channels_ = 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 ::location::nearby::connections::WifiLanUsableChannels* MediumMetadata::unsafe_arena_release_wifi_lan_usable_channels() { - // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.wifi_lan_usable_channels) - _has_bits_[0] &= ~0x00000010u; - ::location::nearby::connections::WifiLanUsableChannels* temp = wifi_lan_usable_channels_; - wifi_lan_usable_channels_ = nullptr; - return temp; -} -inline ::location::nearby::connections::WifiLanUsableChannels* MediumMetadata::_internal_mutable_wifi_lan_usable_channels() { - _has_bits_[0] |= 0x00000010u; - if (wifi_lan_usable_channels_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::WifiLanUsableChannels>(GetArenaForAllocation()); - wifi_lan_usable_channels_ = p; - } - return wifi_lan_usable_channels_; -} -inline ::location::nearby::connections::WifiLanUsableChannels* MediumMetadata::mutable_wifi_lan_usable_channels() { - ::location::nearby::connections::WifiLanUsableChannels* _msg = _internal_mutable_wifi_lan_usable_channels(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.wifi_lan_usable_channels) - return _msg; -} -inline void MediumMetadata::set_allocated_wifi_lan_usable_channels(::location::nearby::connections::WifiLanUsableChannels* wifi_lan_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete wifi_lan_usable_channels_; - } - if (wifi_lan_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::WifiLanUsableChannels>::GetOwningArena(wifi_lan_usable_channels); - if (message_arena != submessage_arena) { - wifi_lan_usable_channels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_lan_usable_channels, submessage_arena); - } - _has_bits_[0] |= 0x00000010u; - } else { - _has_bits_[0] &= ~0x00000010u; - } - wifi_lan_usable_channels_ = wifi_lan_usable_channels; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.wifi_lan_usable_channels) -} - -// optional .location.nearby.connections.WifiAwareUsableChannels wifi_aware_usable_channels = 10; -inline bool MediumMetadata::_internal_has_wifi_aware_usable_channels() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || wifi_aware_usable_channels_ != nullptr); - return value; -} -inline bool MediumMetadata::has_wifi_aware_usable_channels() const { - return _internal_has_wifi_aware_usable_channels(); -} -inline void MediumMetadata::clear_wifi_aware_usable_channels() { - if (wifi_aware_usable_channels_ != nullptr) wifi_aware_usable_channels_->Clear(); - _has_bits_[0] &= ~0x00000020u; -} -inline const ::location::nearby::connections::WifiAwareUsableChannels& MediumMetadata::_internal_wifi_aware_usable_channels() const { - const ::location::nearby::connections::WifiAwareUsableChannels* p = wifi_aware_usable_channels_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_WifiAwareUsableChannels_default_instance_); -} -inline const ::location::nearby::connections::WifiAwareUsableChannels& MediumMetadata::wifi_aware_usable_channels() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.wifi_aware_usable_channels) - return _internal_wifi_aware_usable_channels(); -} -inline void MediumMetadata::unsafe_arena_set_allocated_wifi_aware_usable_channels( - ::location::nearby::connections::WifiAwareUsableChannels* wifi_aware_usable_channels) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_aware_usable_channels_); - } - wifi_aware_usable_channels_ = wifi_aware_usable_channels; - if (wifi_aware_usable_channels) { - _has_bits_[0] |= 0x00000020u; - } else { - _has_bits_[0] &= ~0x00000020u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.wifi_aware_usable_channels) -} -inline ::location::nearby::connections::WifiAwareUsableChannels* MediumMetadata::release_wifi_aware_usable_channels() { - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::WifiAwareUsableChannels* temp = wifi_aware_usable_channels_; - wifi_aware_usable_channels_ = 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 ::location::nearby::connections::WifiAwareUsableChannels* MediumMetadata::unsafe_arena_release_wifi_aware_usable_channels() { - // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.wifi_aware_usable_channels) - _has_bits_[0] &= ~0x00000020u; - ::location::nearby::connections::WifiAwareUsableChannels* temp = wifi_aware_usable_channels_; - wifi_aware_usable_channels_ = nullptr; - return temp; -} -inline ::location::nearby::connections::WifiAwareUsableChannels* MediumMetadata::_internal_mutable_wifi_aware_usable_channels() { - _has_bits_[0] |= 0x00000020u; - if (wifi_aware_usable_channels_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::WifiAwareUsableChannels>(GetArenaForAllocation()); - wifi_aware_usable_channels_ = p; - } - return wifi_aware_usable_channels_; -} -inline ::location::nearby::connections::WifiAwareUsableChannels* MediumMetadata::mutable_wifi_aware_usable_channels() { - ::location::nearby::connections::WifiAwareUsableChannels* _msg = _internal_mutable_wifi_aware_usable_channels(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.wifi_aware_usable_channels) - return _msg; -} -inline void MediumMetadata::set_allocated_wifi_aware_usable_channels(::location::nearby::connections::WifiAwareUsableChannels* wifi_aware_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete wifi_aware_usable_channels_; - } - if (wifi_aware_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::WifiAwareUsableChannels>::GetOwningArena(wifi_aware_usable_channels); - if (message_arena != submessage_arena) { - wifi_aware_usable_channels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_aware_usable_channels, submessage_arena); - } - _has_bits_[0] |= 0x00000020u; - } else { - _has_bits_[0] &= ~0x00000020u; - } - wifi_aware_usable_channels_ = wifi_aware_usable_channels; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.wifi_aware_usable_channels) -} - -// optional .location.nearby.connections.WifiHotspotStaUsableChannels wifi_hotspot_sta_usable_channels = 11; -inline bool MediumMetadata::_internal_has_wifi_hotspot_sta_usable_channels() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || wifi_hotspot_sta_usable_channels_ != nullptr); - return value; -} -inline bool MediumMetadata::has_wifi_hotspot_sta_usable_channels() const { - return _internal_has_wifi_hotspot_sta_usable_channels(); -} -inline void MediumMetadata::clear_wifi_hotspot_sta_usable_channels() { - if (wifi_hotspot_sta_usable_channels_ != nullptr) wifi_hotspot_sta_usable_channels_->Clear(); - _has_bits_[0] &= ~0x00000040u; -} -inline const ::location::nearby::connections::WifiHotspotStaUsableChannels& MediumMetadata::_internal_wifi_hotspot_sta_usable_channels() const { - const ::location::nearby::connections::WifiHotspotStaUsableChannels* p = wifi_hotspot_sta_usable_channels_; - return p != nullptr ? *p : reinterpret_cast( - ::location::nearby::connections::_WifiHotspotStaUsableChannels_default_instance_); -} -inline const ::location::nearby::connections::WifiHotspotStaUsableChannels& MediumMetadata::wifi_hotspot_sta_usable_channels() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.MediumMetadata.wifi_hotspot_sta_usable_channels) - return _internal_wifi_hotspot_sta_usable_channels(); -} -inline void MediumMetadata::unsafe_arena_set_allocated_wifi_hotspot_sta_usable_channels( - ::location::nearby::connections::WifiHotspotStaUsableChannels* wifi_hotspot_sta_usable_channels) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(wifi_hotspot_sta_usable_channels_); - } - wifi_hotspot_sta_usable_channels_ = wifi_hotspot_sta_usable_channels; - if (wifi_hotspot_sta_usable_channels) { - _has_bits_[0] |= 0x00000040u; - } else { - _has_bits_[0] &= ~0x00000040u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.MediumMetadata.wifi_hotspot_sta_usable_channels) -} -inline ::location::nearby::connections::WifiHotspotStaUsableChannels* MediumMetadata::release_wifi_hotspot_sta_usable_channels() { - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::WifiHotspotStaUsableChannels* temp = wifi_hotspot_sta_usable_channels_; - wifi_hotspot_sta_usable_channels_ = 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 ::location::nearby::connections::WifiHotspotStaUsableChannels* MediumMetadata::unsafe_arena_release_wifi_hotspot_sta_usable_channels() { - // @@protoc_insertion_point(field_release:location.nearby.connections.MediumMetadata.wifi_hotspot_sta_usable_channels) - _has_bits_[0] &= ~0x00000040u; - ::location::nearby::connections::WifiHotspotStaUsableChannels* temp = wifi_hotspot_sta_usable_channels_; - wifi_hotspot_sta_usable_channels_ = nullptr; - return temp; -} -inline ::location::nearby::connections::WifiHotspotStaUsableChannels* MediumMetadata::_internal_mutable_wifi_hotspot_sta_usable_channels() { - _has_bits_[0] |= 0x00000040u; - if (wifi_hotspot_sta_usable_channels_ == nullptr) { - auto* p = CreateMaybeMessage<::location::nearby::connections::WifiHotspotStaUsableChannels>(GetArenaForAllocation()); - wifi_hotspot_sta_usable_channels_ = p; - } - return wifi_hotspot_sta_usable_channels_; -} -inline ::location::nearby::connections::WifiHotspotStaUsableChannels* MediumMetadata::mutable_wifi_hotspot_sta_usable_channels() { - ::location::nearby::connections::WifiHotspotStaUsableChannels* _msg = _internal_mutable_wifi_hotspot_sta_usable_channels(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.MediumMetadata.wifi_hotspot_sta_usable_channels) - return _msg; -} -inline void MediumMetadata::set_allocated_wifi_hotspot_sta_usable_channels(::location::nearby::connections::WifiHotspotStaUsableChannels* wifi_hotspot_sta_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete wifi_hotspot_sta_usable_channels_; - } - if (wifi_hotspot_sta_usable_channels) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::WifiHotspotStaUsableChannels>::GetOwningArena(wifi_hotspot_sta_usable_channels); - if (message_arena != submessage_arena) { - wifi_hotspot_sta_usable_channels = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, wifi_hotspot_sta_usable_channels, submessage_arena); - } - _has_bits_[0] |= 0x00000040u; - } else { - _has_bits_[0] &= ~0x00000040u; - } - wifi_hotspot_sta_usable_channels_ = wifi_hotspot_sta_usable_channels; - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.MediumMetadata.wifi_hotspot_sta_usable_channels) -} - -// ------------------------------------------------------------------- - -// AvailableChannels - -// repeated int32 channels = 1 [packed = true]; -inline int AvailableChannels::_internal_channels_size() const { - return channels_.size(); -} -inline int AvailableChannels::channels_size() const { - return _internal_channels_size(); -} -inline void AvailableChannels::clear_channels() { - channels_.Clear(); -} -inline int32_t AvailableChannels::_internal_channels(int index) const { - return channels_.Get(index); -} -inline int32_t AvailableChannels::channels(int index) const { - // @@protoc_insertion_point(field_get:location.nearby.connections.AvailableChannels.channels) - return _internal_channels(index); -} -inline void AvailableChannels::set_channels(int index, int32_t value) { - channels_.Set(index, value); - // @@protoc_insertion_point(field_set:location.nearby.connections.AvailableChannels.channels) -} -inline void AvailableChannels::_internal_add_channels(int32_t value) { - channels_.Add(value); -} -inline void AvailableChannels::add_channels(int32_t value) { - _internal_add_channels(value); - // @@protoc_insertion_point(field_add:location.nearby.connections.AvailableChannels.channels) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -AvailableChannels::_internal_channels() const { - return channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -AvailableChannels::channels() const { - // @@protoc_insertion_point(field_list:location.nearby.connections.AvailableChannels.channels) - return _internal_channels(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -AvailableChannels::_internal_mutable_channels() { - return &channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -AvailableChannels::mutable_channels() { - // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.AvailableChannels.channels) - return _internal_mutable_channels(); -} - -// ------------------------------------------------------------------- - -// WifiDirectCliUsableChannels - -// repeated int32 channels = 1 [packed = true]; -inline int WifiDirectCliUsableChannels::_internal_channels_size() const { - return channels_.size(); -} -inline int WifiDirectCliUsableChannels::channels_size() const { - return _internal_channels_size(); -} -inline void WifiDirectCliUsableChannels::clear_channels() { - channels_.Clear(); -} -inline int32_t WifiDirectCliUsableChannels::_internal_channels(int index) const { - return channels_.Get(index); -} -inline int32_t WifiDirectCliUsableChannels::channels(int index) const { - // @@protoc_insertion_point(field_get:location.nearby.connections.WifiDirectCliUsableChannels.channels) - return _internal_channels(index); -} -inline void WifiDirectCliUsableChannels::set_channels(int index, int32_t value) { - channels_.Set(index, value); - // @@protoc_insertion_point(field_set:location.nearby.connections.WifiDirectCliUsableChannels.channels) -} -inline void WifiDirectCliUsableChannels::_internal_add_channels(int32_t value) { - channels_.Add(value); -} -inline void WifiDirectCliUsableChannels::add_channels(int32_t value) { - _internal_add_channels(value); - // @@protoc_insertion_point(field_add:location.nearby.connections.WifiDirectCliUsableChannels.channels) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiDirectCliUsableChannels::_internal_channels() const { - return channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiDirectCliUsableChannels::channels() const { - // @@protoc_insertion_point(field_list:location.nearby.connections.WifiDirectCliUsableChannels.channels) - return _internal_channels(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiDirectCliUsableChannels::_internal_mutable_channels() { - return &channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiDirectCliUsableChannels::mutable_channels() { - // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.WifiDirectCliUsableChannels.channels) - return _internal_mutable_channels(); -} - -// ------------------------------------------------------------------- - -// WifiLanUsableChannels - -// repeated int32 channels = 1 [packed = true]; -inline int WifiLanUsableChannels::_internal_channels_size() const { - return channels_.size(); -} -inline int WifiLanUsableChannels::channels_size() const { - return _internal_channels_size(); -} -inline void WifiLanUsableChannels::clear_channels() { - channels_.Clear(); -} -inline int32_t WifiLanUsableChannels::_internal_channels(int index) const { - return channels_.Get(index); -} -inline int32_t WifiLanUsableChannels::channels(int index) const { - // @@protoc_insertion_point(field_get:location.nearby.connections.WifiLanUsableChannels.channels) - return _internal_channels(index); -} -inline void WifiLanUsableChannels::set_channels(int index, int32_t value) { - channels_.Set(index, value); - // @@protoc_insertion_point(field_set:location.nearby.connections.WifiLanUsableChannels.channels) -} -inline void WifiLanUsableChannels::_internal_add_channels(int32_t value) { - channels_.Add(value); -} -inline void WifiLanUsableChannels::add_channels(int32_t value) { - _internal_add_channels(value); - // @@protoc_insertion_point(field_add:location.nearby.connections.WifiLanUsableChannels.channels) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiLanUsableChannels::_internal_channels() const { - return channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiLanUsableChannels::channels() const { - // @@protoc_insertion_point(field_list:location.nearby.connections.WifiLanUsableChannels.channels) - return _internal_channels(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiLanUsableChannels::_internal_mutable_channels() { - return &channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiLanUsableChannels::mutable_channels() { - // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.WifiLanUsableChannels.channels) - return _internal_mutable_channels(); -} - -// ------------------------------------------------------------------- - -// WifiAwareUsableChannels - -// repeated int32 channels = 1 [packed = true]; -inline int WifiAwareUsableChannels::_internal_channels_size() const { - return channels_.size(); -} -inline int WifiAwareUsableChannels::channels_size() const { - return _internal_channels_size(); -} -inline void WifiAwareUsableChannels::clear_channels() { - channels_.Clear(); -} -inline int32_t WifiAwareUsableChannels::_internal_channels(int index) const { - return channels_.Get(index); -} -inline int32_t WifiAwareUsableChannels::channels(int index) const { - // @@protoc_insertion_point(field_get:location.nearby.connections.WifiAwareUsableChannels.channels) - return _internal_channels(index); -} -inline void WifiAwareUsableChannels::set_channels(int index, int32_t value) { - channels_.Set(index, value); - // @@protoc_insertion_point(field_set:location.nearby.connections.WifiAwareUsableChannels.channels) -} -inline void WifiAwareUsableChannels::_internal_add_channels(int32_t value) { - channels_.Add(value); -} -inline void WifiAwareUsableChannels::add_channels(int32_t value) { - _internal_add_channels(value); - // @@protoc_insertion_point(field_add:location.nearby.connections.WifiAwareUsableChannels.channels) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiAwareUsableChannels::_internal_channels() const { - return channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiAwareUsableChannels::channels() const { - // @@protoc_insertion_point(field_list:location.nearby.connections.WifiAwareUsableChannels.channels) - return _internal_channels(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiAwareUsableChannels::_internal_mutable_channels() { - return &channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiAwareUsableChannels::mutable_channels() { - // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.WifiAwareUsableChannels.channels) - return _internal_mutable_channels(); -} - -// ------------------------------------------------------------------- - -// WifiHotspotStaUsableChannels - -// repeated int32 channels = 1 [packed = true]; -inline int WifiHotspotStaUsableChannels::_internal_channels_size() const { - return channels_.size(); -} -inline int WifiHotspotStaUsableChannels::channels_size() const { - return _internal_channels_size(); -} -inline void WifiHotspotStaUsableChannels::clear_channels() { - channels_.Clear(); -} -inline int32_t WifiHotspotStaUsableChannels::_internal_channels(int index) const { - return channels_.Get(index); -} -inline int32_t WifiHotspotStaUsableChannels::channels(int index) const { - // @@protoc_insertion_point(field_get:location.nearby.connections.WifiHotspotStaUsableChannels.channels) - return _internal_channels(index); -} -inline void WifiHotspotStaUsableChannels::set_channels(int index, int32_t value) { - channels_.Set(index, value); - // @@protoc_insertion_point(field_set:location.nearby.connections.WifiHotspotStaUsableChannels.channels) -} -inline void WifiHotspotStaUsableChannels::_internal_add_channels(int32_t value) { - channels_.Add(value); -} -inline void WifiHotspotStaUsableChannels::add_channels(int32_t value) { - _internal_add_channels(value); - // @@protoc_insertion_point(field_add:location.nearby.connections.WifiHotspotStaUsableChannels.channels) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiHotspotStaUsableChannels::_internal_channels() const { - return channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -WifiHotspotStaUsableChannels::channels() const { - // @@protoc_insertion_point(field_list:location.nearby.connections.WifiHotspotStaUsableChannels.channels) - return _internal_channels(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiHotspotStaUsableChannels::_internal_mutable_channels() { - return &channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -WifiHotspotStaUsableChannels::mutable_channels() { - // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.WifiHotspotStaUsableChannels.channels) - return _internal_mutable_channels(); -} - -// ------------------------------------------------------------------- - -// LocationHint - -// optional string location = 1; -inline bool LocationHint::_internal_has_location() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool LocationHint::has_location() const { - return _internal_has_location(); -} -inline void LocationHint::clear_location() { - location_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& LocationHint::location() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.LocationHint.location) - return _internal_location(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void LocationHint::set_location(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - location_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:location.nearby.connections.LocationHint.location) -} -inline std::string* LocationHint::mutable_location() { - std::string* _s = _internal_mutable_location(); - // @@protoc_insertion_point(field_mutable:location.nearby.connections.LocationHint.location) - return _s; -} -inline const std::string& LocationHint::_internal_location() const { - return location_.Get(); -} -inline void LocationHint::_internal_set_location(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - location_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* LocationHint::_internal_mutable_location() { - _has_bits_[0] |= 0x00000001u; - return location_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* LocationHint::release_location() { - // @@protoc_insertion_point(field_release:location.nearby.connections.LocationHint.location) - if (!_internal_has_location()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = location_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (location_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - location_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void LocationHint::set_allocated_location(std::string* location) { - if (location != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - location_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), location, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (location_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - location_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.LocationHint.location) -} - -// optional .location.nearby.connections.LocationStandard.Format format = 2; -inline bool LocationHint::_internal_has_format() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool LocationHint::has_format() const { - return _internal_has_format(); -} -inline void LocationHint::clear_format() { - format_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::location::nearby::connections::LocationStandard_Format LocationHint::_internal_format() const { - return static_cast< ::location::nearby::connections::LocationStandard_Format >(format_); -} -inline ::location::nearby::connections::LocationStandard_Format LocationHint::format() const { - // @@protoc_insertion_point(field_get:location.nearby.connections.LocationHint.format) - return _internal_format(); -} -inline void LocationHint::_internal_set_format(::location::nearby::connections::LocationStandard_Format value) { - assert(::location::nearby::connections::LocationStandard_Format_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - format_ = value; -} -inline void LocationHint::set_format(::location::nearby::connections::LocationStandard_Format value) { - _internal_set_format(value); - // @@protoc_insertion_point(field_set:location.nearby.connections.LocationHint.format) -} - -// ------------------------------------------------------------------- - -// LocationStandard - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace connections -} // namespace nearby -} // namespace location - -PROTOBUF_NAMESPACE_OPEN - -template <> struct is_proto_enum< ::location::nearby::connections::OfflineFrame_Version> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::V1Frame_FrameType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::ConnectionRequestFrame_Medium> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::PayloadTransferFrame_PayloadChunk_Flags> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::PayloadTransferFrame_PacketType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType> : ::std::true_type {}; -template <> struct is_proto_enum< ::location::nearby::connections::LocationStandard_Format> : ::std::true_type {}; - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto diff --git a/compiled_proto/internal/proto/analytics/experiments_log.pb.cc b/compiled_proto/internal/proto/analytics/experiments_log.pb.cc deleted file mode 100644 index 41b744c7..00000000 --- a/compiled_proto/internal/proto/analytics/experiments_log.pb.cc +++ /dev/null @@ -1,311 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: internal/proto/analytics/experiments_log.proto - -#include "internal/proto/analytics/experiments_log.pb.h" - -#include - -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG -namespace nearby { -namespace experiments { -constexpr ExperimentsLog::ExperimentsLog( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : experiment_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , zwieback_cookie_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct ExperimentsLogDefaultTypeInternal { - constexpr ExperimentsLogDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ExperimentsLogDefaultTypeInternal() {} - union { - ExperimentsLog _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ExperimentsLogDefaultTypeInternal _ExperimentsLog_default_instance_; -} // namespace experiments -} // namespace nearby -namespace nearby { -namespace experiments { - -// =================================================================== - -class ExperimentsLog::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_experiment_token(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_zwieback_cookie(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -ExperimentsLog::ExperimentsLog(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.experiments.ExperimentsLog) -} -ExperimentsLog::ExperimentsLog(const ExperimentsLog& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - experiment_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - experiment_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_experiment_token()) { - experiment_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_experiment_token(), - GetArenaForAllocation()); - } - zwieback_cookie_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - zwieback_cookie_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_zwieback_cookie()) { - zwieback_cookie_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_zwieback_cookie(), - GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:nearby.experiments.ExperimentsLog) -} - -inline void ExperimentsLog::SharedCtor() { -experiment_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - experiment_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -zwieback_cookie_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - zwieback_cookie_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ExperimentsLog::~ExperimentsLog() { - // @@protoc_insertion_point(destructor:nearby.experiments.ExperimentsLog) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void ExperimentsLog::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - experiment_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - zwieback_cookie_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void ExperimentsLog::ArenaDtor(void* object) { - ExperimentsLog* _this = reinterpret_cast< ExperimentsLog* >(object); - (void)_this; -} -void ExperimentsLog::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ExperimentsLog::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void ExperimentsLog::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.experiments.ExperimentsLog) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - experiment_token_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - zwieback_cookie_.ClearNonDefaultToEmpty(); - } - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* ExperimentsLog::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes experiment_token = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_experiment_token(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string zwieback_cookie = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_zwieback_cookie(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ExperimentsLog::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.experiments.ExperimentsLog) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional bytes experiment_token = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_experiment_token(), target); - } - - // optional string zwieback_cookie = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_zwieback_cookie(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.experiments.ExperimentsLog) - return target; -} - -size_t ExperimentsLog::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.experiments.ExperimentsLog) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional bytes experiment_token = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_experiment_token()); - } - - // optional string zwieback_cookie = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_zwieback_cookie()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExperimentsLog::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void ExperimentsLog::MergeFrom(const ExperimentsLog& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.experiments.ExperimentsLog) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_experiment_token(from._internal_experiment_token()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_zwieback_cookie(from._internal_zwieback_cookie()); - } - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void ExperimentsLog::CopyFrom(const ExperimentsLog& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.experiments.ExperimentsLog) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExperimentsLog::IsInitialized() const { - return true; -} - -void ExperimentsLog::InternalSwap(ExperimentsLog* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &experiment_token_, lhs_arena, - &other->experiment_token_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &zwieback_cookie_, lhs_arena, - &other->zwieback_cookie_, rhs_arena - ); -} - -std::string ExperimentsLog::GetTypeName() const { - return "nearby.experiments.ExperimentsLog"; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace experiments -} // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::nearby::experiments::ExperimentsLog* Arena::CreateMaybeMessage< ::nearby::experiments::ExperimentsLog >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::experiments::ExperimentsLog >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/compiled_proto/internal/proto/analytics/experiments_log.pb.h b/compiled_proto/internal/proto/analytics/experiments_log.pb.h deleted file mode 100644 index 7c7d253e..00000000 --- a/compiled_proto/internal/proto/analytics/experiments_log.pb.h +++ /dev/null @@ -1,394 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: internal/proto/analytics/experiments_log.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2fexperiments_5flog_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2fexperiments_5flog_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3019000 -#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 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_internal_2fproto_2fanalytics_2fexperiments_5flog_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_internal_2fproto_2fanalytics_2fexperiments_5flog_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; -}; -namespace nearby { -namespace experiments { -class ExperimentsLog; -struct ExperimentsLogDefaultTypeInternal; -extern ExperimentsLogDefaultTypeInternal _ExperimentsLog_default_instance_; -} // namespace experiments -} // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> ::nearby::experiments::ExperimentsLog* Arena::CreateMaybeMessage<::nearby::experiments::ExperimentsLog>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace nearby { -namespace experiments { - -// =================================================================== - -class ExperimentsLog final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.experiments.ExperimentsLog) */ { - public: - inline ExperimentsLog() : ExperimentsLog(nullptr) {} - ~ExperimentsLog() override; - explicit constexpr ExperimentsLog(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ExperimentsLog(const ExperimentsLog& from); - ExperimentsLog(ExperimentsLog&& from) noexcept - : ExperimentsLog() { - *this = ::std::move(from); - } - - inline ExperimentsLog& operator=(const ExperimentsLog& from) { - CopyFrom(from); - return *this; - } - inline ExperimentsLog& operator=(ExperimentsLog&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const ExperimentsLog& default_instance() { - return *internal_default_instance(); - } - static inline const ExperimentsLog* internal_default_instance() { - return reinterpret_cast( - &_ExperimentsLog_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(ExperimentsLog& a, ExperimentsLog& b) { - a.Swap(&b); - } - inline void Swap(ExperimentsLog* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ExperimentsLog* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ExperimentsLog* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const ExperimentsLog& from); - void MergeFrom(const ExperimentsLog& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(ExperimentsLog* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.experiments.ExperimentsLog"; - } - protected: - explicit ExperimentsLog(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kExperimentTokenFieldNumber = 1, - kZwiebackCookieFieldNumber = 2, - }; - // optional bytes experiment_token = 1; - bool has_experiment_token() const; - private: - bool _internal_has_experiment_token() const; - public: - void clear_experiment_token(); - const std::string& experiment_token() const; - template - void set_experiment_token(ArgT0&& arg0, ArgT... args); - std::string* mutable_experiment_token(); - PROTOBUF_NODISCARD std::string* release_experiment_token(); - void set_allocated_experiment_token(std::string* experiment_token); - private: - const std::string& _internal_experiment_token() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_experiment_token(const std::string& value); - std::string* _internal_mutable_experiment_token(); - public: - - // optional string zwieback_cookie = 2; - bool has_zwieback_cookie() const; - private: - bool _internal_has_zwieback_cookie() const; - public: - void clear_zwieback_cookie(); - const std::string& zwieback_cookie() const; - template - void set_zwieback_cookie(ArgT0&& arg0, ArgT... args); - std::string* mutable_zwieback_cookie(); - PROTOBUF_NODISCARD std::string* release_zwieback_cookie(); - void set_allocated_zwieback_cookie(std::string* zwieback_cookie); - private: - const std::string& _internal_zwieback_cookie() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_zwieback_cookie(const std::string& value); - std::string* _internal_mutable_zwieback_cookie(); - public: - - // @@protoc_insertion_point(class_scope:nearby.experiments.ExperimentsLog) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr experiment_token_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr zwieback_cookie_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2fexperiments_5flog_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ExperimentsLog - -// optional bytes experiment_token = 1; -inline bool ExperimentsLog::_internal_has_experiment_token() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool ExperimentsLog::has_experiment_token() const { - return _internal_has_experiment_token(); -} -inline void ExperimentsLog::clear_experiment_token() { - experiment_token_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& ExperimentsLog::experiment_token() const { - // @@protoc_insertion_point(field_get:nearby.experiments.ExperimentsLog.experiment_token) - return _internal_experiment_token(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ExperimentsLog::set_experiment_token(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - experiment_token_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.experiments.ExperimentsLog.experiment_token) -} -inline std::string* ExperimentsLog::mutable_experiment_token() { - std::string* _s = _internal_mutable_experiment_token(); - // @@protoc_insertion_point(field_mutable:nearby.experiments.ExperimentsLog.experiment_token) - return _s; -} -inline const std::string& ExperimentsLog::_internal_experiment_token() const { - return experiment_token_.Get(); -} -inline void ExperimentsLog::_internal_set_experiment_token(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - experiment_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* ExperimentsLog::_internal_mutable_experiment_token() { - _has_bits_[0] |= 0x00000001u; - return experiment_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* ExperimentsLog::release_experiment_token() { - // @@protoc_insertion_point(field_release:nearby.experiments.ExperimentsLog.experiment_token) - if (!_internal_has_experiment_token()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = experiment_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (experiment_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - experiment_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void ExperimentsLog::set_allocated_experiment_token(std::string* experiment_token) { - if (experiment_token != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - experiment_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), experiment_token, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (experiment_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - experiment_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.experiments.ExperimentsLog.experiment_token) -} - -// optional string zwieback_cookie = 2; -inline bool ExperimentsLog::_internal_has_zwieback_cookie() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool ExperimentsLog::has_zwieback_cookie() const { - return _internal_has_zwieback_cookie(); -} -inline void ExperimentsLog::clear_zwieback_cookie() { - zwieback_cookie_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& ExperimentsLog::zwieback_cookie() const { - // @@protoc_insertion_point(field_get:nearby.experiments.ExperimentsLog.zwieback_cookie) - return _internal_zwieback_cookie(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ExperimentsLog::set_zwieback_cookie(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - zwieback_cookie_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.experiments.ExperimentsLog.zwieback_cookie) -} -inline std::string* ExperimentsLog::mutable_zwieback_cookie() { - std::string* _s = _internal_mutable_zwieback_cookie(); - // @@protoc_insertion_point(field_mutable:nearby.experiments.ExperimentsLog.zwieback_cookie) - return _s; -} -inline const std::string& ExperimentsLog::_internal_zwieback_cookie() const { - return zwieback_cookie_.Get(); -} -inline void ExperimentsLog::_internal_set_zwieback_cookie(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - zwieback_cookie_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* ExperimentsLog::_internal_mutable_zwieback_cookie() { - _has_bits_[0] |= 0x00000002u; - return zwieback_cookie_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* ExperimentsLog::release_zwieback_cookie() { - // @@protoc_insertion_point(field_release:nearby.experiments.ExperimentsLog.zwieback_cookie) - if (!_internal_has_zwieback_cookie()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = zwieback_cookie_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (zwieback_cookie_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - zwieback_cookie_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void ExperimentsLog::set_allocated_zwieback_cookie(std::string* zwieback_cookie) { - if (zwieback_cookie != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - zwieback_cookie_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), zwieback_cookie, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (zwieback_cookie_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - zwieback_cookie_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.experiments.ExperimentsLog.zwieback_cookie) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace experiments -} // namespace nearby - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2fexperiments_5flog_2eproto diff --git a/compiled_proto/internal/proto/analytics/fast_pair_log.pb.cc b/compiled_proto/internal/proto/analytics/fast_pair_log.pb.cc deleted file mode 100644 index 607bc1ce..00000000 --- a/compiled_proto/internal/proto/analytics/fast_pair_log.pb.cc +++ /dev/null @@ -1,2816 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: internal/proto/analytics/fast_pair_log.proto - -#include "internal/proto/analytics/fast_pair_log.pb.h" - -#include - -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG -namespace nearby { -namespace proto { -namespace fastpair { -constexpr FastPairLog_GattEvent::FastPairLog_GattEvent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : error_from_os_(0){} -struct FastPairLog_GattEventDefaultTypeInternal { - constexpr FastPairLog_GattEventDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FastPairLog_GattEventDefaultTypeInternal() {} - union { - FastPairLog_GattEvent _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FastPairLog_GattEventDefaultTypeInternal _FastPairLog_GattEvent_default_instance_; -constexpr FastPairLog_BrEdrHandoverEvent::FastPairLog_BrEdrHandoverEvent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : error_code_(0) -{} -struct FastPairLog_BrEdrHandoverEventDefaultTypeInternal { - constexpr FastPairLog_BrEdrHandoverEventDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FastPairLog_BrEdrHandoverEventDefaultTypeInternal() {} - union { - FastPairLog_BrEdrHandoverEvent _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FastPairLog_BrEdrHandoverEventDefaultTypeInternal _FastPairLog_BrEdrHandoverEvent_default_instance_; -constexpr FastPairLog_CreateBondEvent::FastPairLog_CreateBondEvent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : error_code_(0) - - , unbond_reason_(0){} -struct FastPairLog_CreateBondEventDefaultTypeInternal { - constexpr FastPairLog_CreateBondEventDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FastPairLog_CreateBondEventDefaultTypeInternal() {} - union { - FastPairLog_CreateBondEvent _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FastPairLog_CreateBondEventDefaultTypeInternal _FastPairLog_CreateBondEvent_default_instance_; -constexpr FastPairLog_ConnectEvent::FastPairLog_ConnectEvent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : error_code_(0) - - , profile_uuid_(0){} -struct FastPairLog_ConnectEventDefaultTypeInternal { - constexpr FastPairLog_ConnectEventDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FastPairLog_ConnectEventDefaultTypeInternal() {} - union { - FastPairLog_ConnectEvent _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FastPairLog_ConnectEventDefaultTypeInternal _FastPairLog_ConnectEvent_default_instance_; -constexpr FastPairLog_ProviderInfo::FastPairLog_ProviderInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : database_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , number_account_keys_on_provider_(0){} -struct FastPairLog_ProviderInfoDefaultTypeInternal { - constexpr FastPairLog_ProviderInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FastPairLog_ProviderInfoDefaultTypeInternal() {} - union { - FastPairLog_ProviderInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FastPairLog_ProviderInfoDefaultTypeInternal _FastPairLog_ProviderInfo_default_instance_; -constexpr FastPairLog_FootprintsInfo::FastPairLog_FootprintsInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : number_devices_on_footprints_(0){} -struct FastPairLog_FootprintsInfoDefaultTypeInternal { - constexpr FastPairLog_FootprintsInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FastPairLog_FootprintsInfoDefaultTypeInternal() {} - union { - FastPairLog_FootprintsInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FastPairLog_FootprintsInfoDefaultTypeInternal _FastPairLog_FootprintsInfo_default_instance_; -constexpr FastPairLog_KeyBasedPairingInfo::FastPairLog_KeyBasedPairingInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : request_flag_(0u) - , response_type_(0u) - , response_flag_(0u) - , response_device_count_(0u){} -struct FastPairLog_KeyBasedPairingInfoDefaultTypeInternal { - constexpr FastPairLog_KeyBasedPairingInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FastPairLog_KeyBasedPairingInfoDefaultTypeInternal() {} - union { - FastPairLog_KeyBasedPairingInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FastPairLog_KeyBasedPairingInfoDefaultTypeInternal _FastPairLog_KeyBasedPairingInfo_default_instance_; -constexpr FastPairLog::FastPairLog( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : gatt_event_(nullptr) - , br_edr_handover_event_(nullptr) - , bond_event_(nullptr) - , connect_event_(nullptr) - , provider_info_(nullptr) - , footprints_info_(nullptr) - , key_based_pairing_info_(nullptr) - , model_id_(0) - , bond_state_(0) - - , error_code_(0) - - , device_type_(0) - - , hashed_salted_device_address_(int64_t{0}) - , duration_(int64_t{0}) - , os_type_(0) - - , active_wifi_frequency_(0) - , number_connected_peripherals_(0) - , bonding_transport_(0u) - , is_scanned_by_offload_scanner_(false) - , is_first_day_new_user_(false) - , is_seven_days_new_user_(false) - , is_pair_triggered_by_settings_(false) - , bonded_device_count_(0u) - , nearby_mainline_tethering_version_(int64_t{0}) - , sass_connection_state_(0) - , is_in_paired_history_(false) - , nearby_nano_app_version_(int64_t{0}){} -struct FastPairLogDefaultTypeInternal { - constexpr FastPairLogDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FastPairLogDefaultTypeInternal() {} - union { - FastPairLog _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FastPairLogDefaultTypeInternal _FastPairLog_default_instance_; -} // namespace fastpair -} // namespace proto -} // namespace nearby -namespace nearby { -namespace proto { -namespace fastpair { - -// =================================================================== - -class FastPairLog_GattEvent::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_error_from_os(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -FastPairLog_GattEvent::FastPairLog_GattEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.proto.fastpair.FastPairLog.GattEvent) -} -FastPairLog_GattEvent::FastPairLog_GattEvent(const FastPairLog_GattEvent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - error_from_os_ = from.error_from_os_; - // @@protoc_insertion_point(copy_constructor:nearby.proto.fastpair.FastPairLog.GattEvent) -} - -inline void FastPairLog_GattEvent::SharedCtor() { -error_from_os_ = 0; -} - -FastPairLog_GattEvent::~FastPairLog_GattEvent() { - // @@protoc_insertion_point(destructor:nearby.proto.fastpair.FastPairLog.GattEvent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void FastPairLog_GattEvent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void FastPairLog_GattEvent::ArenaDtor(void* object) { - FastPairLog_GattEvent* _this = reinterpret_cast< FastPairLog_GattEvent* >(object); - (void)_this; -} -void FastPairLog_GattEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FastPairLog_GattEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FastPairLog_GattEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.proto.fastpair.FastPairLog.GattEvent) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - error_from_os_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* FastPairLog_GattEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 error_from_os = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_error_from_os(&has_bits); - error_from_os_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FastPairLog_GattEvent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.proto.fastpair.FastPairLog.GattEvent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional int32 error_from_os = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_error_from_os(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.proto.fastpair.FastPairLog.GattEvent) - return target; -} - -size_t FastPairLog_GattEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.proto.fastpair.FastPairLog.GattEvent) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional int32 error_from_os = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_error_from_os()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FastPairLog_GattEvent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void FastPairLog_GattEvent::MergeFrom(const FastPairLog_GattEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.proto.fastpair.FastPairLog.GattEvent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_error_from_os()) { - _internal_set_error_from_os(from._internal_error_from_os()); - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void FastPairLog_GattEvent::CopyFrom(const FastPairLog_GattEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.proto.fastpair.FastPairLog.GattEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FastPairLog_GattEvent::IsInitialized() const { - return true; -} - -void FastPairLog_GattEvent::InternalSwap(FastPairLog_GattEvent* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(error_from_os_, other->error_from_os_); -} - -std::string FastPairLog_GattEvent::GetTypeName() const { - return "nearby.proto.fastpair.FastPairLog.GattEvent"; -} - - -// =================================================================== - -class FastPairLog_BrEdrHandoverEvent::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_error_code(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -FastPairLog_BrEdrHandoverEvent::FastPairLog_BrEdrHandoverEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) -} -FastPairLog_BrEdrHandoverEvent::FastPairLog_BrEdrHandoverEvent(const FastPairLog_BrEdrHandoverEvent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - error_code_ = from.error_code_; - // @@protoc_insertion_point(copy_constructor:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) -} - -inline void FastPairLog_BrEdrHandoverEvent::SharedCtor() { -error_code_ = 0; -} - -FastPairLog_BrEdrHandoverEvent::~FastPairLog_BrEdrHandoverEvent() { - // @@protoc_insertion_point(destructor:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void FastPairLog_BrEdrHandoverEvent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void FastPairLog_BrEdrHandoverEvent::ArenaDtor(void* object) { - FastPairLog_BrEdrHandoverEvent* _this = reinterpret_cast< FastPairLog_BrEdrHandoverEvent* >(object); - (void)_this; -} -void FastPairLog_BrEdrHandoverEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FastPairLog_BrEdrHandoverEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FastPairLog_BrEdrHandoverEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - error_code_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* FastPairLog_BrEdrHandoverEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.proto.fastpair.FastPairEvent.BrEdrHandoverErrorCode error_code = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode_IsValid(val))) { - _internal_set_error_code(static_cast<::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FastPairLog_BrEdrHandoverEvent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .nearby.proto.fastpair.FastPairEvent.BrEdrHandoverErrorCode error_code = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_error_code(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) - return target; -} - -size_t FastPairLog_BrEdrHandoverEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional .nearby.proto.fastpair.FastPairEvent.BrEdrHandoverErrorCode error_code = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_error_code()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FastPairLog_BrEdrHandoverEvent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void FastPairLog_BrEdrHandoverEvent::MergeFrom(const FastPairLog_BrEdrHandoverEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_error_code()) { - _internal_set_error_code(from._internal_error_code()); - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void FastPairLog_BrEdrHandoverEvent::CopyFrom(const FastPairLog_BrEdrHandoverEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FastPairLog_BrEdrHandoverEvent::IsInitialized() const { - return true; -} - -void FastPairLog_BrEdrHandoverEvent::InternalSwap(FastPairLog_BrEdrHandoverEvent* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(error_code_, other->error_code_); -} - -std::string FastPairLog_BrEdrHandoverEvent::GetTypeName() const { - return "nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent"; -} - - -// =================================================================== - -class FastPairLog_CreateBondEvent::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_error_code(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_unbond_reason(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -FastPairLog_CreateBondEvent::FastPairLog_CreateBondEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.proto.fastpair.FastPairLog.CreateBondEvent) -} -FastPairLog_CreateBondEvent::FastPairLog_CreateBondEvent(const FastPairLog_CreateBondEvent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&error_code_, &from.error_code_, - static_cast(reinterpret_cast(&unbond_reason_) - - reinterpret_cast(&error_code_)) + sizeof(unbond_reason_)); - // @@protoc_insertion_point(copy_constructor:nearby.proto.fastpair.FastPairLog.CreateBondEvent) -} - -inline void FastPairLog_CreateBondEvent::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&error_code_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&unbond_reason_) - - reinterpret_cast(&error_code_)) + sizeof(unbond_reason_)); -} - -FastPairLog_CreateBondEvent::~FastPairLog_CreateBondEvent() { - // @@protoc_insertion_point(destructor:nearby.proto.fastpair.FastPairLog.CreateBondEvent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void FastPairLog_CreateBondEvent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void FastPairLog_CreateBondEvent::ArenaDtor(void* object) { - FastPairLog_CreateBondEvent* _this = reinterpret_cast< FastPairLog_CreateBondEvent* >(object); - (void)_this; -} -void FastPairLog_CreateBondEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FastPairLog_CreateBondEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FastPairLog_CreateBondEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.proto.fastpair.FastPairLog.CreateBondEvent) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&error_code_, 0, static_cast( - reinterpret_cast(&unbond_reason_) - - reinterpret_cast(&error_code_)) + sizeof(unbond_reason_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* FastPairLog_CreateBondEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.proto.fastpair.FastPairEvent.CreateBondErrorCode error_code = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode_IsValid(val))) { - _internal_set_error_code(static_cast<::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 unbond_reason = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_unbond_reason(&has_bits); - unbond_reason_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FastPairLog_CreateBondEvent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.proto.fastpair.FastPairLog.CreateBondEvent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .nearby.proto.fastpair.FastPairEvent.CreateBondErrorCode error_code = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_error_code(), target); - } - - // optional int32 unbond_reason = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_unbond_reason(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.proto.fastpair.FastPairLog.CreateBondEvent) - return target; -} - -size_t FastPairLog_CreateBondEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.proto.fastpair.FastPairLog.CreateBondEvent) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional .nearby.proto.fastpair.FastPairEvent.CreateBondErrorCode error_code = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_error_code()); - } - - // optional int32 unbond_reason = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_unbond_reason()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FastPairLog_CreateBondEvent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void FastPairLog_CreateBondEvent::MergeFrom(const FastPairLog_CreateBondEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.proto.fastpair.FastPairLog.CreateBondEvent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - error_code_ = from.error_code_; - } - if (cached_has_bits & 0x00000002u) { - unbond_reason_ = from.unbond_reason_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void FastPairLog_CreateBondEvent::CopyFrom(const FastPairLog_CreateBondEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.proto.fastpair.FastPairLog.CreateBondEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FastPairLog_CreateBondEvent::IsInitialized() const { - return true; -} - -void FastPairLog_CreateBondEvent::InternalSwap(FastPairLog_CreateBondEvent* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(FastPairLog_CreateBondEvent, unbond_reason_) - + sizeof(FastPairLog_CreateBondEvent::unbond_reason_) - - PROTOBUF_FIELD_OFFSET(FastPairLog_CreateBondEvent, error_code_)>( - reinterpret_cast(&error_code_), - reinterpret_cast(&other->error_code_)); -} - -std::string FastPairLog_CreateBondEvent::GetTypeName() const { - return "nearby.proto.fastpair.FastPairLog.CreateBondEvent"; -} - - -// =================================================================== - -class FastPairLog_ConnectEvent::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_error_code(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_profile_uuid(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -FastPairLog_ConnectEvent::FastPairLog_ConnectEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.proto.fastpair.FastPairLog.ConnectEvent) -} -FastPairLog_ConnectEvent::FastPairLog_ConnectEvent(const FastPairLog_ConnectEvent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&error_code_, &from.error_code_, - static_cast(reinterpret_cast(&profile_uuid_) - - reinterpret_cast(&error_code_)) + sizeof(profile_uuid_)); - // @@protoc_insertion_point(copy_constructor:nearby.proto.fastpair.FastPairLog.ConnectEvent) -} - -inline void FastPairLog_ConnectEvent::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&error_code_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&profile_uuid_) - - reinterpret_cast(&error_code_)) + sizeof(profile_uuid_)); -} - -FastPairLog_ConnectEvent::~FastPairLog_ConnectEvent() { - // @@protoc_insertion_point(destructor:nearby.proto.fastpair.FastPairLog.ConnectEvent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void FastPairLog_ConnectEvent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void FastPairLog_ConnectEvent::ArenaDtor(void* object) { - FastPairLog_ConnectEvent* _this = reinterpret_cast< FastPairLog_ConnectEvent* >(object); - (void)_this; -} -void FastPairLog_ConnectEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FastPairLog_ConnectEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FastPairLog_ConnectEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.proto.fastpair.FastPairLog.ConnectEvent) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - ::memset(&error_code_, 0, static_cast( - reinterpret_cast(&profile_uuid_) - - reinterpret_cast(&error_code_)) + sizeof(profile_uuid_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* FastPairLog_ConnectEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.proto.fastpair.FastPairEvent.ConnectErrorCode error_code = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode_IsValid(val))) { - _internal_set_error_code(static_cast<::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 profile_uuid = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_profile_uuid(&has_bits); - profile_uuid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FastPairLog_ConnectEvent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.proto.fastpair.FastPairLog.ConnectEvent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .nearby.proto.fastpair.FastPairEvent.ConnectErrorCode error_code = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_error_code(), target); - } - - // optional int32 profile_uuid = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_profile_uuid(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.proto.fastpair.FastPairLog.ConnectEvent) - return target; -} - -size_t FastPairLog_ConnectEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.proto.fastpair.FastPairLog.ConnectEvent) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional .nearby.proto.fastpair.FastPairEvent.ConnectErrorCode error_code = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_error_code()); - } - - // optional int32 profile_uuid = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_profile_uuid()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FastPairLog_ConnectEvent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void FastPairLog_ConnectEvent::MergeFrom(const FastPairLog_ConnectEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.proto.fastpair.FastPairLog.ConnectEvent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - error_code_ = from.error_code_; - } - if (cached_has_bits & 0x00000002u) { - profile_uuid_ = from.profile_uuid_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void FastPairLog_ConnectEvent::CopyFrom(const FastPairLog_ConnectEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.proto.fastpair.FastPairLog.ConnectEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FastPairLog_ConnectEvent::IsInitialized() const { - return true; -} - -void FastPairLog_ConnectEvent::InternalSwap(FastPairLog_ConnectEvent* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(FastPairLog_ConnectEvent, profile_uuid_) - + sizeof(FastPairLog_ConnectEvent::profile_uuid_) - - PROTOBUF_FIELD_OFFSET(FastPairLog_ConnectEvent, error_code_)>( - reinterpret_cast(&error_code_), - reinterpret_cast(&other->error_code_)); -} - -std::string FastPairLog_ConnectEvent::GetTypeName() const { - return "nearby.proto.fastpair.FastPairLog.ConnectEvent"; -} - - -// =================================================================== - -class FastPairLog_ProviderInfo::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_number_account_keys_on_provider(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_database_hash(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -FastPairLog_ProviderInfo::FastPairLog_ProviderInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.proto.fastpair.FastPairLog.ProviderInfo) -} -FastPairLog_ProviderInfo::FastPairLog_ProviderInfo(const FastPairLog_ProviderInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - database_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - database_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_database_hash()) { - database_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_database_hash(), - GetArenaForAllocation()); - } - number_account_keys_on_provider_ = from.number_account_keys_on_provider_; - // @@protoc_insertion_point(copy_constructor:nearby.proto.fastpair.FastPairLog.ProviderInfo) -} - -inline void FastPairLog_ProviderInfo::SharedCtor() { -database_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - database_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -number_account_keys_on_provider_ = 0; -} - -FastPairLog_ProviderInfo::~FastPairLog_ProviderInfo() { - // @@protoc_insertion_point(destructor:nearby.proto.fastpair.FastPairLog.ProviderInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void FastPairLog_ProviderInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - database_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void FastPairLog_ProviderInfo::ArenaDtor(void* object) { - FastPairLog_ProviderInfo* _this = reinterpret_cast< FastPairLog_ProviderInfo* >(object); - (void)_this; -} -void FastPairLog_ProviderInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FastPairLog_ProviderInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FastPairLog_ProviderInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.proto.fastpair.FastPairLog.ProviderInfo) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - database_hash_.ClearNonDefaultToEmpty(); - } - number_account_keys_on_provider_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* FastPairLog_ProviderInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 number_account_keys_on_provider = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_number_account_keys_on_provider(&has_bits); - number_account_keys_on_provider_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string database_hash = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_database_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FastPairLog_ProviderInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.proto.fastpair.FastPairLog.ProviderInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional int32 number_account_keys_on_provider = 1; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_number_account_keys_on_provider(), target); - } - - // optional string database_hash = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_database_hash(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.proto.fastpair.FastPairLog.ProviderInfo) - return target; -} - -size_t FastPairLog_ProviderInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.proto.fastpair.FastPairLog.ProviderInfo) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional string database_hash = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_database_hash()); - } - - // optional int32 number_account_keys_on_provider = 1; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_number_account_keys_on_provider()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FastPairLog_ProviderInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void FastPairLog_ProviderInfo::MergeFrom(const FastPairLog_ProviderInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.proto.fastpair.FastPairLog.ProviderInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_database_hash(from._internal_database_hash()); - } - if (cached_has_bits & 0x00000002u) { - number_account_keys_on_provider_ = from.number_account_keys_on_provider_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void FastPairLog_ProviderInfo::CopyFrom(const FastPairLog_ProviderInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.proto.fastpair.FastPairLog.ProviderInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FastPairLog_ProviderInfo::IsInitialized() const { - return true; -} - -void FastPairLog_ProviderInfo::InternalSwap(FastPairLog_ProviderInfo* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &database_hash_, lhs_arena, - &other->database_hash_, rhs_arena - ); - swap(number_account_keys_on_provider_, other->number_account_keys_on_provider_); -} - -std::string FastPairLog_ProviderInfo::GetTypeName() const { - return "nearby.proto.fastpair.FastPairLog.ProviderInfo"; -} - - -// =================================================================== - -class FastPairLog_FootprintsInfo::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_number_devices_on_footprints(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -FastPairLog_FootprintsInfo::FastPairLog_FootprintsInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.proto.fastpair.FastPairLog.FootprintsInfo) -} -FastPairLog_FootprintsInfo::FastPairLog_FootprintsInfo(const FastPairLog_FootprintsInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - number_devices_on_footprints_ = from.number_devices_on_footprints_; - // @@protoc_insertion_point(copy_constructor:nearby.proto.fastpair.FastPairLog.FootprintsInfo) -} - -inline void FastPairLog_FootprintsInfo::SharedCtor() { -number_devices_on_footprints_ = 0; -} - -FastPairLog_FootprintsInfo::~FastPairLog_FootprintsInfo() { - // @@protoc_insertion_point(destructor:nearby.proto.fastpair.FastPairLog.FootprintsInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void FastPairLog_FootprintsInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void FastPairLog_FootprintsInfo::ArenaDtor(void* object) { - FastPairLog_FootprintsInfo* _this = reinterpret_cast< FastPairLog_FootprintsInfo* >(object); - (void)_this; -} -void FastPairLog_FootprintsInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FastPairLog_FootprintsInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FastPairLog_FootprintsInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.proto.fastpair.FastPairLog.FootprintsInfo) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - number_devices_on_footprints_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* FastPairLog_FootprintsInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 number_devices_on_footprints = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_number_devices_on_footprints(&has_bits); - number_devices_on_footprints_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FastPairLog_FootprintsInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.proto.fastpair.FastPairLog.FootprintsInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional int32 number_devices_on_footprints = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_number_devices_on_footprints(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.proto.fastpair.FastPairLog.FootprintsInfo) - return target; -} - -size_t FastPairLog_FootprintsInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.proto.fastpair.FastPairLog.FootprintsInfo) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional int32 number_devices_on_footprints = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_number_devices_on_footprints()); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FastPairLog_FootprintsInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void FastPairLog_FootprintsInfo::MergeFrom(const FastPairLog_FootprintsInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.proto.fastpair.FastPairLog.FootprintsInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_number_devices_on_footprints()) { - _internal_set_number_devices_on_footprints(from._internal_number_devices_on_footprints()); - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void FastPairLog_FootprintsInfo::CopyFrom(const FastPairLog_FootprintsInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.proto.fastpair.FastPairLog.FootprintsInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FastPairLog_FootprintsInfo::IsInitialized() const { - return true; -} - -void FastPairLog_FootprintsInfo::InternalSwap(FastPairLog_FootprintsInfo* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(number_devices_on_footprints_, other->number_devices_on_footprints_); -} - -std::string FastPairLog_FootprintsInfo::GetTypeName() const { - return "nearby.proto.fastpair.FastPairLog.FootprintsInfo"; -} - - -// =================================================================== - -class FastPairLog_KeyBasedPairingInfo::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_request_flag(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_response_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_response_flag(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_response_device_count(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } -}; - -FastPairLog_KeyBasedPairingInfo::FastPairLog_KeyBasedPairingInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) -} -FastPairLog_KeyBasedPairingInfo::FastPairLog_KeyBasedPairingInfo(const FastPairLog_KeyBasedPairingInfo& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&request_flag_, &from.request_flag_, - static_cast(reinterpret_cast(&response_device_count_) - - reinterpret_cast(&request_flag_)) + sizeof(response_device_count_)); - // @@protoc_insertion_point(copy_constructor:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) -} - -inline void FastPairLog_KeyBasedPairingInfo::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&request_flag_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&response_device_count_) - - reinterpret_cast(&request_flag_)) + sizeof(response_device_count_)); -} - -FastPairLog_KeyBasedPairingInfo::~FastPairLog_KeyBasedPairingInfo() { - // @@protoc_insertion_point(destructor:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void FastPairLog_KeyBasedPairingInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void FastPairLog_KeyBasedPairingInfo::ArenaDtor(void* object) { - FastPairLog_KeyBasedPairingInfo* _this = reinterpret_cast< FastPairLog_KeyBasedPairingInfo* >(object); - (void)_this; -} -void FastPairLog_KeyBasedPairingInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FastPairLog_KeyBasedPairingInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FastPairLog_KeyBasedPairingInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - ::memset(&request_flag_, 0, static_cast( - reinterpret_cast(&response_device_count_) - - reinterpret_cast(&request_flag_)) + sizeof(response_device_count_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* FastPairLog_KeyBasedPairingInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional uint32 request_flag = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_request_flag(&has_bits); - request_flag_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 response_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_response_type(&has_bits); - response_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 response_flag = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_response_flag(&has_bits); - response_flag_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 response_device_count = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_response_device_count(&has_bits); - response_device_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FastPairLog_KeyBasedPairingInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional uint32 request_flag = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(1, this->_internal_request_flag(), target); - } - - // optional uint32 response_type = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(2, this->_internal_response_type(), target); - } - - // optional uint32 response_flag = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(3, this->_internal_response_flag(), target); - } - - // optional uint32 response_device_count = 4; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(4, this->_internal_response_device_count(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) - return target; -} - -size_t FastPairLog_KeyBasedPairingInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - // optional uint32 request_flag = 1; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_request_flag()); - } - - // optional uint32 response_type = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_response_type()); - } - - // optional uint32 response_flag = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_response_flag()); - } - - // optional uint32 response_device_count = 4; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32SizePlusOne(this->_internal_response_device_count()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FastPairLog_KeyBasedPairingInfo::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void FastPairLog_KeyBasedPairingInfo::MergeFrom(const FastPairLog_KeyBasedPairingInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - request_flag_ = from.request_flag_; - } - if (cached_has_bits & 0x00000002u) { - response_type_ = from.response_type_; - } - if (cached_has_bits & 0x00000004u) { - response_flag_ = from.response_flag_; - } - if (cached_has_bits & 0x00000008u) { - response_device_count_ = from.response_device_count_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void FastPairLog_KeyBasedPairingInfo::CopyFrom(const FastPairLog_KeyBasedPairingInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FastPairLog_KeyBasedPairingInfo::IsInitialized() const { - return true; -} - -void FastPairLog_KeyBasedPairingInfo::InternalSwap(FastPairLog_KeyBasedPairingInfo* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(FastPairLog_KeyBasedPairingInfo, response_device_count_) - + sizeof(FastPairLog_KeyBasedPairingInfo::response_device_count_) - - PROTOBUF_FIELD_OFFSET(FastPairLog_KeyBasedPairingInfo, request_flag_)>( - reinterpret_cast(&request_flag_), - reinterpret_cast(&other->request_flag_)); -} - -std::string FastPairLog_KeyBasedPairingInfo::GetTypeName() const { - return "nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo"; -} - - -// =================================================================== - -class FastPairLog::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_model_id(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_bond_state(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_error_code(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static const ::nearby::proto::fastpair::FastPairLog_GattEvent& gatt_event(const FastPairLog* msg); - static void set_has_gatt_event(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static const ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent& br_edr_handover_event(const FastPairLog* msg); - static void set_has_br_edr_handover_event(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static const ::nearby::proto::fastpair::FastPairLog_CreateBondEvent& bond_event(const FastPairLog* msg); - static void set_has_bond_event(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static const ::nearby::proto::fastpair::FastPairLog_ConnectEvent& connect_event(const FastPairLog* msg); - static void set_has_connect_event(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_hashed_salted_device_address(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static void set_has_duration(HasBits* has_bits) { - (*has_bits)[0] |= 4096u; - } - static const ::nearby::proto::fastpair::FastPairLog_ProviderInfo& provider_info(const FastPairLog* msg); - static void set_has_provider_info(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static const ::nearby::proto::fastpair::FastPairLog_FootprintsInfo& footprints_info(const FastPairLog* msg); - static void set_has_footprints_info(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_os_type(HasBits* has_bits) { - (*has_bits)[0] |= 8192u; - } - static void set_has_active_wifi_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 16384u; - } - static void set_has_number_connected_peripherals(HasBits* has_bits) { - (*has_bits)[0] |= 32768u; - } - static void set_has_is_scanned_by_offload_scanner(HasBits* has_bits) { - (*has_bits)[0] |= 131072u; - } - static const ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo& key_based_pairing_info(const FastPairLog* msg); - static void set_has_key_based_pairing_info(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_bonding_transport(HasBits* has_bits) { - (*has_bits)[0] |= 65536u; - } - static void set_has_is_first_day_new_user(HasBits* has_bits) { - (*has_bits)[0] |= 262144u; - } - static void set_has_is_seven_days_new_user(HasBits* has_bits) { - (*has_bits)[0] |= 524288u; - } - static void set_has_bonded_device_count(HasBits* has_bits) { - (*has_bits)[0] |= 2097152u; - } - static void set_has_sass_connection_state(HasBits* has_bits) { - (*has_bits)[0] |= 8388608u; - } - static void set_has_is_pair_triggered_by_settings(HasBits* has_bits) { - (*has_bits)[0] |= 1048576u; - } - static void set_has_nearby_mainline_tethering_version(HasBits* has_bits) { - (*has_bits)[0] |= 4194304u; - } - static void set_has_nearby_nano_app_version(HasBits* has_bits) { - (*has_bits)[0] |= 33554432u; - } - static void set_has_is_in_paired_history(HasBits* has_bits) { - (*has_bits)[0] |= 16777216u; - } -}; - -const ::nearby::proto::fastpair::FastPairLog_GattEvent& -FastPairLog::_Internal::gatt_event(const FastPairLog* msg) { - return *msg->gatt_event_; -} -const ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent& -FastPairLog::_Internal::br_edr_handover_event(const FastPairLog* msg) { - return *msg->br_edr_handover_event_; -} -const ::nearby::proto::fastpair::FastPairLog_CreateBondEvent& -FastPairLog::_Internal::bond_event(const FastPairLog* msg) { - return *msg->bond_event_; -} -const ::nearby::proto::fastpair::FastPairLog_ConnectEvent& -FastPairLog::_Internal::connect_event(const FastPairLog* msg) { - return *msg->connect_event_; -} -const ::nearby::proto::fastpair::FastPairLog_ProviderInfo& -FastPairLog::_Internal::provider_info(const FastPairLog* msg) { - return *msg->provider_info_; -} -const ::nearby::proto::fastpair::FastPairLog_FootprintsInfo& -FastPairLog::_Internal::footprints_info(const FastPairLog* msg) { - return *msg->footprints_info_; -} -const ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo& -FastPairLog::_Internal::key_based_pairing_info(const FastPairLog* msg) { - return *msg->key_based_pairing_info_; -} -FastPairLog::FastPairLog(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.proto.fastpair.FastPairLog) -} -FastPairLog::FastPairLog(const FastPairLog& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from._internal_has_gatt_event()) { - gatt_event_ = new ::nearby::proto::fastpair::FastPairLog_GattEvent(*from.gatt_event_); - } else { - gatt_event_ = nullptr; - } - if (from._internal_has_br_edr_handover_event()) { - br_edr_handover_event_ = new ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent(*from.br_edr_handover_event_); - } else { - br_edr_handover_event_ = nullptr; - } - if (from._internal_has_bond_event()) { - bond_event_ = new ::nearby::proto::fastpair::FastPairLog_CreateBondEvent(*from.bond_event_); - } else { - bond_event_ = nullptr; - } - if (from._internal_has_connect_event()) { - connect_event_ = new ::nearby::proto::fastpair::FastPairLog_ConnectEvent(*from.connect_event_); - } else { - connect_event_ = nullptr; - } - if (from._internal_has_provider_info()) { - provider_info_ = new ::nearby::proto::fastpair::FastPairLog_ProviderInfo(*from.provider_info_); - } else { - provider_info_ = nullptr; - } - if (from._internal_has_footprints_info()) { - footprints_info_ = new ::nearby::proto::fastpair::FastPairLog_FootprintsInfo(*from.footprints_info_); - } else { - footprints_info_ = nullptr; - } - if (from._internal_has_key_based_pairing_info()) { - key_based_pairing_info_ = new ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo(*from.key_based_pairing_info_); - } else { - key_based_pairing_info_ = nullptr; - } - ::memcpy(&model_id_, &from.model_id_, - static_cast(reinterpret_cast(&nearby_nano_app_version_) - - reinterpret_cast(&model_id_)) + sizeof(nearby_nano_app_version_)); - // @@protoc_insertion_point(copy_constructor:nearby.proto.fastpair.FastPairLog) -} - -inline void FastPairLog::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&gatt_event_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&nearby_nano_app_version_) - - reinterpret_cast(&gatt_event_)) + sizeof(nearby_nano_app_version_)); -} - -FastPairLog::~FastPairLog() { - // @@protoc_insertion_point(destructor:nearby.proto.fastpair.FastPairLog) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void FastPairLog::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete gatt_event_; - if (this != internal_default_instance()) delete br_edr_handover_event_; - if (this != internal_default_instance()) delete bond_event_; - if (this != internal_default_instance()) delete connect_event_; - if (this != internal_default_instance()) delete provider_info_; - if (this != internal_default_instance()) delete footprints_info_; - if (this != internal_default_instance()) delete key_based_pairing_info_; -} - -void FastPairLog::ArenaDtor(void* object) { - FastPairLog* _this = reinterpret_cast< FastPairLog* >(object); - (void)_this; -} -void FastPairLog::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FastPairLog::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FastPairLog::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.proto.fastpair.FastPairLog) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(gatt_event_ != nullptr); - gatt_event_->Clear(); - } - if (cached_has_bits & 0x00000002u) { - GOOGLE_DCHECK(br_edr_handover_event_ != nullptr); - br_edr_handover_event_->Clear(); - } - if (cached_has_bits & 0x00000004u) { - GOOGLE_DCHECK(bond_event_ != nullptr); - bond_event_->Clear(); - } - if (cached_has_bits & 0x00000008u) { - GOOGLE_DCHECK(connect_event_ != nullptr); - connect_event_->Clear(); - } - if (cached_has_bits & 0x00000010u) { - GOOGLE_DCHECK(provider_info_ != nullptr); - provider_info_->Clear(); - } - if (cached_has_bits & 0x00000020u) { - GOOGLE_DCHECK(footprints_info_ != nullptr); - footprints_info_->Clear(); - } - if (cached_has_bits & 0x00000040u) { - GOOGLE_DCHECK(key_based_pairing_info_ != nullptr); - key_based_pairing_info_->Clear(); - } - } - model_id_ = 0; - if (cached_has_bits & 0x0000ff00u) { - ::memset(&bond_state_, 0, static_cast( - reinterpret_cast(&number_connected_peripherals_) - - reinterpret_cast(&bond_state_)) + sizeof(number_connected_peripherals_)); - } - if (cached_has_bits & 0x00ff0000u) { - ::memset(&bonding_transport_, 0, static_cast( - reinterpret_cast(&sass_connection_state_) - - reinterpret_cast(&bonding_transport_)) + sizeof(sass_connection_state_)); - } - if (cached_has_bits & 0x03000000u) { - ::memset(&is_in_paired_history_, 0, static_cast( - reinterpret_cast(&nearby_nano_app_version_) - - reinterpret_cast(&is_in_paired_history_)) + sizeof(nearby_nano_app_version_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* FastPairLog::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 model_id = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_model_id(&has_bits); - model_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.FastPairEvent.BondState bond_state = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::proto::fastpair::FastPairEvent_BondState_IsValid(val))) { - _internal_set_bond_state(static_cast<::nearby::proto::fastpair::FastPairEvent_BondState>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.FastPairEvent.ErrorCode error_code = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::proto::fastpair::FastPairEvent_ErrorCode_IsValid(val))) { - _internal_set_error_code(static_cast<::nearby::proto::fastpair::FastPairEvent_ErrorCode>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.FastPairLog.GattEvent gatt_event = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_gatt_event(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent br_edr_handover_event = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_br_edr_handover_event(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.FastPairLog.CreateBondEvent bond_event = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_bond_event(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.FastPairLog.ConnectEvent connect_event = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_connect_event(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 hashed_salted_device_address = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_hashed_salted_device_address(&has_bits); - hashed_salted_device_address_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 duration = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_duration(&has_bits); - duration_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.FastPairLog.ProviderInfo provider_info = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_provider_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.FastPairLog.FootprintsInfo footprints_info = 11; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { - ptr = ctx->ParseMessage(_internal_mutable_footprints_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.DeviceType device_type = 12; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 96)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::proto::fastpair::DeviceType_IsValid(val))) { - _internal_set_device_type(static_cast<::nearby::proto::fastpair::DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(12, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.OsType os_type = 13; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::proto::fastpair::OsType_IsValid(val))) { - _internal_set_os_type(static_cast<::nearby::proto::fastpair::OsType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(13, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 active_wifi_frequency = 14; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - _Internal::set_has_active_wifi_frequency(&has_bits); - active_wifi_frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 number_connected_peripherals = 15; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { - _Internal::set_has_number_connected_peripherals(&has_bits); - number_connected_peripherals_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_scanned_by_offload_scanner = 16; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 128)) { - _Internal::set_has_is_scanned_by_offload_scanner(&has_bits); - is_scanned_by_offload_scanner_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo key_based_pairing_info = 17; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 138)) { - ptr = ctx->ParseMessage(_internal_mutable_key_based_pairing_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 bonding_transport = 18; - case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 144)) { - _Internal::set_has_bonding_transport(&has_bits); - bonding_transport_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_first_day_new_user = 19; - case 19: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 152)) { - _Internal::set_has_is_first_day_new_user(&has_bits); - is_first_day_new_user_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_seven_days_new_user = 20; - case 20: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 160)) { - _Internal::set_has_is_seven_days_new_user(&has_bits); - is_seven_days_new_user_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional uint32 bonded_device_count = 21; - case 21: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 168)) { - _Internal::set_has_bonded_device_count(&has_bits); - bonded_device_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 sass_connection_state = 22; - case 22: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 176)) { - _Internal::set_has_sass_connection_state(&has_bits); - sass_connection_state_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_pair_triggered_by_settings = 23; - case 23: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 184)) { - _Internal::set_has_is_pair_triggered_by_settings(&has_bits); - is_pair_triggered_by_settings_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 nearby_mainline_tethering_version = 24; - case 24: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 192)) { - _Internal::set_has_nearby_mainline_tethering_version(&has_bits); - nearby_mainline_tethering_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 nearby_nano_app_version = 25; - case 25: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 200)) { - _Internal::set_has_nearby_nano_app_version(&has_bits); - nearby_nano_app_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_in_paired_history = 26; - case 26: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 208)) { - _Internal::set_has_is_in_paired_history(&has_bits); - is_in_paired_history_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FastPairLog::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.proto.fastpair.FastPairLog) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional int32 model_id = 1; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_model_id(), target); - } - - // optional .nearby.proto.fastpair.FastPairEvent.BondState bond_state = 2; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_bond_state(), target); - } - - // optional .nearby.proto.fastpair.FastPairEvent.ErrorCode error_code = 3; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 3, this->_internal_error_code(), target); - } - - // optional .nearby.proto.fastpair.FastPairLog.GattEvent gatt_event = 4; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::gatt_event(this), target, stream); - } - - // optional .nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent br_edr_handover_event = 5; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::br_edr_handover_event(this), target, stream); - } - - // optional .nearby.proto.fastpair.FastPairLog.CreateBondEvent bond_event = 6; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::bond_event(this), target, stream); - } - - // optional .nearby.proto.fastpair.FastPairLog.ConnectEvent connect_event = 7; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 7, _Internal::connect_event(this), target, stream); - } - - // optional int64 hashed_salted_device_address = 8; - if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->_internal_hashed_salted_device_address(), target); - } - - // optional int64 duration = 9; - if (cached_has_bits & 0x00001000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_duration(), target); - } - - // optional .nearby.proto.fastpair.FastPairLog.ProviderInfo provider_info = 10; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 10, _Internal::provider_info(this), target, stream); - } - - // optional .nearby.proto.fastpair.FastPairLog.FootprintsInfo footprints_info = 11; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 11, _Internal::footprints_info(this), target, stream); - } - - // optional .nearby.proto.fastpair.DeviceType device_type = 12; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 12, this->_internal_device_type(), target); - } - - // optional .nearby.proto.fastpair.OsType os_type = 13; - if (cached_has_bits & 0x00002000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 13, this->_internal_os_type(), target); - } - - // optional int32 active_wifi_frequency = 14; - if (cached_has_bits & 0x00004000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_active_wifi_frequency(), target); - } - - // optional int32 number_connected_peripherals = 15; - if (cached_has_bits & 0x00008000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(15, this->_internal_number_connected_peripherals(), target); - } - - // optional bool is_scanned_by_offload_scanner = 16; - if (cached_has_bits & 0x00020000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(16, this->_internal_is_scanned_by_offload_scanner(), target); - } - - // optional .nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo key_based_pairing_info = 17; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 17, _Internal::key_based_pairing_info(this), target, stream); - } - - // optional uint32 bonding_transport = 18; - if (cached_has_bits & 0x00010000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(18, this->_internal_bonding_transport(), target); - } - - // optional bool is_first_day_new_user = 19; - if (cached_has_bits & 0x00040000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(19, this->_internal_is_first_day_new_user(), target); - } - - // optional bool is_seven_days_new_user = 20; - if (cached_has_bits & 0x00080000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(20, this->_internal_is_seven_days_new_user(), target); - } - - // optional uint32 bonded_device_count = 21; - if (cached_has_bits & 0x00200000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt32ToArray(21, this->_internal_bonded_device_count(), target); - } - - // optional int32 sass_connection_state = 22; - if (cached_has_bits & 0x00800000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(22, this->_internal_sass_connection_state(), target); - } - - // optional bool is_pair_triggered_by_settings = 23; - if (cached_has_bits & 0x00100000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(23, this->_internal_is_pair_triggered_by_settings(), target); - } - - // optional int64 nearby_mainline_tethering_version = 24; - if (cached_has_bits & 0x00400000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(24, this->_internal_nearby_mainline_tethering_version(), target); - } - - // optional int64 nearby_nano_app_version = 25; - if (cached_has_bits & 0x02000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(25, this->_internal_nearby_nano_app_version(), target); - } - - // optional bool is_in_paired_history = 26; - if (cached_has_bits & 0x01000000u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(26, this->_internal_is_in_paired_history(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.proto.fastpair.FastPairLog) - return target; -} - -size_t FastPairLog::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.proto.fastpair.FastPairLog) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional .nearby.proto.fastpair.FastPairLog.GattEvent gatt_event = 4; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *gatt_event_); - } - - // optional .nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent br_edr_handover_event = 5; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *br_edr_handover_event_); - } - - // optional .nearby.proto.fastpair.FastPairLog.CreateBondEvent bond_event = 6; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *bond_event_); - } - - // optional .nearby.proto.fastpair.FastPairLog.ConnectEvent connect_event = 7; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *connect_event_); - } - - // optional .nearby.proto.fastpair.FastPairLog.ProviderInfo provider_info = 10; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *provider_info_); - } - - // optional .nearby.proto.fastpair.FastPairLog.FootprintsInfo footprints_info = 11; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *footprints_info_); - } - - // optional .nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo key_based_pairing_info = 17; - if (cached_has_bits & 0x00000040u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *key_based_pairing_info_); - } - - // optional int32 model_id = 1; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_model_id()); - } - - } - if (cached_has_bits & 0x0000ff00u) { - // optional .nearby.proto.fastpair.FastPairEvent.BondState bond_state = 2; - if (cached_has_bits & 0x00000100u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_bond_state()); - } - - // optional .nearby.proto.fastpair.FastPairEvent.ErrorCode error_code = 3; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_error_code()); - } - - // optional .nearby.proto.fastpair.DeviceType device_type = 12; - if (cached_has_bits & 0x00000400u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_device_type()); - } - - // optional int64 hashed_salted_device_address = 8; - if (cached_has_bits & 0x00000800u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_hashed_salted_device_address()); - } - - // optional int64 duration = 9; - if (cached_has_bits & 0x00001000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_duration()); - } - - // optional .nearby.proto.fastpair.OsType os_type = 13; - if (cached_has_bits & 0x00002000u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_os_type()); - } - - // optional int32 active_wifi_frequency = 14; - if (cached_has_bits & 0x00004000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_active_wifi_frequency()); - } - - // optional int32 number_connected_peripherals = 15; - if (cached_has_bits & 0x00008000u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_number_connected_peripherals()); - } - - } - if (cached_has_bits & 0x00ff0000u) { - // optional uint32 bonding_transport = 18; - if (cached_has_bits & 0x00010000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_bonding_transport()); - } - - // optional bool is_scanned_by_offload_scanner = 16; - if (cached_has_bits & 0x00020000u) { - total_size += 2 + 1; - } - - // optional bool is_first_day_new_user = 19; - if (cached_has_bits & 0x00040000u) { - total_size += 2 + 1; - } - - // optional bool is_seven_days_new_user = 20; - if (cached_has_bits & 0x00080000u) { - total_size += 2 + 1; - } - - // optional bool is_pair_triggered_by_settings = 23; - if (cached_has_bits & 0x00100000u) { - total_size += 2 + 1; - } - - // optional uint32 bonded_device_count = 21; - if (cached_has_bits & 0x00200000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt32Size( - this->_internal_bonded_device_count()); - } - - // optional int64 nearby_mainline_tethering_version = 24; - if (cached_has_bits & 0x00400000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_nearby_mainline_tethering_version()); - } - - // optional int32 sass_connection_state = 22; - if (cached_has_bits & 0x00800000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_sass_connection_state()); - } - - } - if (cached_has_bits & 0x03000000u) { - // optional bool is_in_paired_history = 26; - if (cached_has_bits & 0x01000000u) { - total_size += 2 + 1; - } - - // optional int64 nearby_nano_app_version = 25; - if (cached_has_bits & 0x02000000u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( - this->_internal_nearby_nano_app_version()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FastPairLog::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void FastPairLog::MergeFrom(const FastPairLog& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.proto.fastpair.FastPairLog) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_mutable_gatt_event()->::nearby::proto::fastpair::FastPairLog_GattEvent::MergeFrom(from._internal_gatt_event()); - } - if (cached_has_bits & 0x00000002u) { - _internal_mutable_br_edr_handover_event()->::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent::MergeFrom(from._internal_br_edr_handover_event()); - } - if (cached_has_bits & 0x00000004u) { - _internal_mutable_bond_event()->::nearby::proto::fastpair::FastPairLog_CreateBondEvent::MergeFrom(from._internal_bond_event()); - } - if (cached_has_bits & 0x00000008u) { - _internal_mutable_connect_event()->::nearby::proto::fastpair::FastPairLog_ConnectEvent::MergeFrom(from._internal_connect_event()); - } - if (cached_has_bits & 0x00000010u) { - _internal_mutable_provider_info()->::nearby::proto::fastpair::FastPairLog_ProviderInfo::MergeFrom(from._internal_provider_info()); - } - if (cached_has_bits & 0x00000020u) { - _internal_mutable_footprints_info()->::nearby::proto::fastpair::FastPairLog_FootprintsInfo::MergeFrom(from._internal_footprints_info()); - } - if (cached_has_bits & 0x00000040u) { - _internal_mutable_key_based_pairing_info()->::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo::MergeFrom(from._internal_key_based_pairing_info()); - } - if (cached_has_bits & 0x00000080u) { - model_id_ = from.model_id_; - } - _has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x0000ff00u) { - if (cached_has_bits & 0x00000100u) { - bond_state_ = from.bond_state_; - } - if (cached_has_bits & 0x00000200u) { - error_code_ = from.error_code_; - } - if (cached_has_bits & 0x00000400u) { - device_type_ = from.device_type_; - } - if (cached_has_bits & 0x00000800u) { - hashed_salted_device_address_ = from.hashed_salted_device_address_; - } - if (cached_has_bits & 0x00001000u) { - duration_ = from.duration_; - } - if (cached_has_bits & 0x00002000u) { - os_type_ = from.os_type_; - } - if (cached_has_bits & 0x00004000u) { - active_wifi_frequency_ = from.active_wifi_frequency_; - } - if (cached_has_bits & 0x00008000u) { - number_connected_peripherals_ = from.number_connected_peripherals_; - } - _has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x00ff0000u) { - if (cached_has_bits & 0x00010000u) { - bonding_transport_ = from.bonding_transport_; - } - if (cached_has_bits & 0x00020000u) { - is_scanned_by_offload_scanner_ = from.is_scanned_by_offload_scanner_; - } - if (cached_has_bits & 0x00040000u) { - is_first_day_new_user_ = from.is_first_day_new_user_; - } - if (cached_has_bits & 0x00080000u) { - is_seven_days_new_user_ = from.is_seven_days_new_user_; - } - if (cached_has_bits & 0x00100000u) { - is_pair_triggered_by_settings_ = from.is_pair_triggered_by_settings_; - } - if (cached_has_bits & 0x00200000u) { - bonded_device_count_ = from.bonded_device_count_; - } - if (cached_has_bits & 0x00400000u) { - nearby_mainline_tethering_version_ = from.nearby_mainline_tethering_version_; - } - if (cached_has_bits & 0x00800000u) { - sass_connection_state_ = from.sass_connection_state_; - } - _has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x03000000u) { - if (cached_has_bits & 0x01000000u) { - is_in_paired_history_ = from.is_in_paired_history_; - } - if (cached_has_bits & 0x02000000u) { - nearby_nano_app_version_ = from.nearby_nano_app_version_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void FastPairLog::CopyFrom(const FastPairLog& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.proto.fastpair.FastPairLog) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FastPairLog::IsInitialized() const { - return true; -} - -void FastPairLog::InternalSwap(FastPairLog* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(FastPairLog, nearby_nano_app_version_) - + sizeof(FastPairLog::nearby_nano_app_version_) - - PROTOBUF_FIELD_OFFSET(FastPairLog, gatt_event_)>( - reinterpret_cast(&gatt_event_), - reinterpret_cast(&other->gatt_event_)); -} - -std::string FastPairLog::GetTypeName() const { - return "nearby.proto.fastpair.FastPairLog"; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace fastpair -} // namespace proto -} // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::nearby::proto::fastpair::FastPairLog_GattEvent* Arena::CreateMaybeMessage< ::nearby::proto::fastpair::FastPairLog_GattEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::proto::fastpair::FastPairLog_GattEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* Arena::CreateMaybeMessage< ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* Arena::CreateMaybeMessage< ::nearby::proto::fastpair::FastPairLog_CreateBondEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::proto::fastpair::FastPairLog_CreateBondEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::proto::fastpair::FastPairLog_ConnectEvent* Arena::CreateMaybeMessage< ::nearby::proto::fastpair::FastPairLog_ConnectEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::proto::fastpair::FastPairLog_ConnectEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::proto::fastpair::FastPairLog_ProviderInfo* Arena::CreateMaybeMessage< ::nearby::proto::fastpair::FastPairLog_ProviderInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::proto::fastpair::FastPairLog_ProviderInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* Arena::CreateMaybeMessage< ::nearby::proto::fastpair::FastPairLog_FootprintsInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::proto::fastpair::FastPairLog_FootprintsInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* Arena::CreateMaybeMessage< ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::proto::fastpair::FastPairLog* Arena::CreateMaybeMessage< ::nearby::proto::fastpair::FastPairLog >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::proto::fastpair::FastPairLog >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/compiled_proto/internal/proto/analytics/fast_pair_log.pb.h b/compiled_proto/internal/proto/analytics/fast_pair_log.pb.h deleted file mode 100644 index 8a2a06e1..00000000 --- a/compiled_proto/internal/proto/analytics/fast_pair_log.pb.h +++ /dev/null @@ -1,3387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: internal/proto/analytics/fast_pair_log.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3019000 -#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 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include "proto/fast_pair_enums.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[8] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; -}; -namespace nearby { -namespace proto { -namespace fastpair { -class FastPairLog; -struct FastPairLogDefaultTypeInternal; -extern FastPairLogDefaultTypeInternal _FastPairLog_default_instance_; -class FastPairLog_BrEdrHandoverEvent; -struct FastPairLog_BrEdrHandoverEventDefaultTypeInternal; -extern FastPairLog_BrEdrHandoverEventDefaultTypeInternal _FastPairLog_BrEdrHandoverEvent_default_instance_; -class FastPairLog_ConnectEvent; -struct FastPairLog_ConnectEventDefaultTypeInternal; -extern FastPairLog_ConnectEventDefaultTypeInternal _FastPairLog_ConnectEvent_default_instance_; -class FastPairLog_CreateBondEvent; -struct FastPairLog_CreateBondEventDefaultTypeInternal; -extern FastPairLog_CreateBondEventDefaultTypeInternal _FastPairLog_CreateBondEvent_default_instance_; -class FastPairLog_FootprintsInfo; -struct FastPairLog_FootprintsInfoDefaultTypeInternal; -extern FastPairLog_FootprintsInfoDefaultTypeInternal _FastPairLog_FootprintsInfo_default_instance_; -class FastPairLog_GattEvent; -struct FastPairLog_GattEventDefaultTypeInternal; -extern FastPairLog_GattEventDefaultTypeInternal _FastPairLog_GattEvent_default_instance_; -class FastPairLog_KeyBasedPairingInfo; -struct FastPairLog_KeyBasedPairingInfoDefaultTypeInternal; -extern FastPairLog_KeyBasedPairingInfoDefaultTypeInternal _FastPairLog_KeyBasedPairingInfo_default_instance_; -class FastPairLog_ProviderInfo; -struct FastPairLog_ProviderInfoDefaultTypeInternal; -extern FastPairLog_ProviderInfoDefaultTypeInternal _FastPairLog_ProviderInfo_default_instance_; -} // namespace fastpair -} // namespace proto -} // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> ::nearby::proto::fastpair::FastPairLog* Arena::CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog>(Arena*); -template<> ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* Arena::CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent>(Arena*); -template<> ::nearby::proto::fastpair::FastPairLog_ConnectEvent* Arena::CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_ConnectEvent>(Arena*); -template<> ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* Arena::CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_CreateBondEvent>(Arena*); -template<> ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* Arena::CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_FootprintsInfo>(Arena*); -template<> ::nearby::proto::fastpair::FastPairLog_GattEvent* Arena::CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_GattEvent>(Arena*); -template<> ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* Arena::CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo>(Arena*); -template<> ::nearby::proto::fastpair::FastPairLog_ProviderInfo* Arena::CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_ProviderInfo>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace nearby { -namespace proto { -namespace fastpair { - -// =================================================================== - -class FastPairLog_GattEvent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.proto.fastpair.FastPairLog.GattEvent) */ { - public: - inline FastPairLog_GattEvent() : FastPairLog_GattEvent(nullptr) {} - ~FastPairLog_GattEvent() override; - explicit constexpr FastPairLog_GattEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FastPairLog_GattEvent(const FastPairLog_GattEvent& from); - FastPairLog_GattEvent(FastPairLog_GattEvent&& from) noexcept - : FastPairLog_GattEvent() { - *this = ::std::move(from); - } - - inline FastPairLog_GattEvent& operator=(const FastPairLog_GattEvent& from) { - CopyFrom(from); - return *this; - } - inline FastPairLog_GattEvent& operator=(FastPairLog_GattEvent&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const FastPairLog_GattEvent& default_instance() { - return *internal_default_instance(); - } - static inline const FastPairLog_GattEvent* internal_default_instance() { - return reinterpret_cast( - &_FastPairLog_GattEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(FastPairLog_GattEvent& a, FastPairLog_GattEvent& b) { - a.Swap(&b); - } - inline void Swap(FastPairLog_GattEvent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FastPairLog_GattEvent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FastPairLog_GattEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const FastPairLog_GattEvent& from); - void MergeFrom(const FastPairLog_GattEvent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FastPairLog_GattEvent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.proto.fastpair.FastPairLog.GattEvent"; - } - protected: - explicit FastPairLog_GattEvent(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kErrorFromOsFieldNumber = 1, - }; - // optional int32 error_from_os = 1; - bool has_error_from_os() const; - private: - bool _internal_has_error_from_os() const; - public: - void clear_error_from_os(); - int32_t error_from_os() const; - void set_error_from_os(int32_t value); - private: - int32_t _internal_error_from_os() const; - void _internal_set_error_from_os(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.proto.fastpair.FastPairLog.GattEvent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int32_t error_from_os_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class FastPairLog_BrEdrHandoverEvent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) */ { - public: - inline FastPairLog_BrEdrHandoverEvent() : FastPairLog_BrEdrHandoverEvent(nullptr) {} - ~FastPairLog_BrEdrHandoverEvent() override; - explicit constexpr FastPairLog_BrEdrHandoverEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FastPairLog_BrEdrHandoverEvent(const FastPairLog_BrEdrHandoverEvent& from); - FastPairLog_BrEdrHandoverEvent(FastPairLog_BrEdrHandoverEvent&& from) noexcept - : FastPairLog_BrEdrHandoverEvent() { - *this = ::std::move(from); - } - - inline FastPairLog_BrEdrHandoverEvent& operator=(const FastPairLog_BrEdrHandoverEvent& from) { - CopyFrom(from); - return *this; - } - inline FastPairLog_BrEdrHandoverEvent& operator=(FastPairLog_BrEdrHandoverEvent&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const FastPairLog_BrEdrHandoverEvent& default_instance() { - return *internal_default_instance(); - } - static inline const FastPairLog_BrEdrHandoverEvent* internal_default_instance() { - return reinterpret_cast( - &_FastPairLog_BrEdrHandoverEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(FastPairLog_BrEdrHandoverEvent& a, FastPairLog_BrEdrHandoverEvent& b) { - a.Swap(&b); - } - inline void Swap(FastPairLog_BrEdrHandoverEvent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FastPairLog_BrEdrHandoverEvent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FastPairLog_BrEdrHandoverEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const FastPairLog_BrEdrHandoverEvent& from); - void MergeFrom(const FastPairLog_BrEdrHandoverEvent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FastPairLog_BrEdrHandoverEvent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent"; - } - protected: - explicit FastPairLog_BrEdrHandoverEvent(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kErrorCodeFieldNumber = 1, - }; - // optional .nearby.proto.fastpair.FastPairEvent.BrEdrHandoverErrorCode error_code = 1; - bool has_error_code() const; - private: - bool _internal_has_error_code() const; - public: - void clear_error_code(); - ::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode error_code() const; - void set_error_code(::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode value); - private: - ::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode _internal_error_code() const; - void _internal_set_error_code(::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode value); - public: - - // @@protoc_insertion_point(class_scope:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int error_code_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class FastPairLog_CreateBondEvent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.proto.fastpair.FastPairLog.CreateBondEvent) */ { - public: - inline FastPairLog_CreateBondEvent() : FastPairLog_CreateBondEvent(nullptr) {} - ~FastPairLog_CreateBondEvent() override; - explicit constexpr FastPairLog_CreateBondEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FastPairLog_CreateBondEvent(const FastPairLog_CreateBondEvent& from); - FastPairLog_CreateBondEvent(FastPairLog_CreateBondEvent&& from) noexcept - : FastPairLog_CreateBondEvent() { - *this = ::std::move(from); - } - - inline FastPairLog_CreateBondEvent& operator=(const FastPairLog_CreateBondEvent& from) { - CopyFrom(from); - return *this; - } - inline FastPairLog_CreateBondEvent& operator=(FastPairLog_CreateBondEvent&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const FastPairLog_CreateBondEvent& default_instance() { - return *internal_default_instance(); - } - static inline const FastPairLog_CreateBondEvent* internal_default_instance() { - return reinterpret_cast( - &_FastPairLog_CreateBondEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(FastPairLog_CreateBondEvent& a, FastPairLog_CreateBondEvent& b) { - a.Swap(&b); - } - inline void Swap(FastPairLog_CreateBondEvent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FastPairLog_CreateBondEvent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FastPairLog_CreateBondEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const FastPairLog_CreateBondEvent& from); - void MergeFrom(const FastPairLog_CreateBondEvent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FastPairLog_CreateBondEvent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.proto.fastpair.FastPairLog.CreateBondEvent"; - } - protected: - explicit FastPairLog_CreateBondEvent(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kErrorCodeFieldNumber = 1, - kUnbondReasonFieldNumber = 2, - }; - // optional .nearby.proto.fastpair.FastPairEvent.CreateBondErrorCode error_code = 1; - bool has_error_code() const; - private: - bool _internal_has_error_code() const; - public: - void clear_error_code(); - ::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode error_code() const; - void set_error_code(::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode value); - private: - ::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode _internal_error_code() const; - void _internal_set_error_code(::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode value); - public: - - // optional int32 unbond_reason = 2; - bool has_unbond_reason() const; - private: - bool _internal_has_unbond_reason() const; - public: - void clear_unbond_reason(); - int32_t unbond_reason() const; - void set_unbond_reason(int32_t value); - private: - int32_t _internal_unbond_reason() const; - void _internal_set_unbond_reason(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.proto.fastpair.FastPairLog.CreateBondEvent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int error_code_; - int32_t unbond_reason_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class FastPairLog_ConnectEvent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.proto.fastpair.FastPairLog.ConnectEvent) */ { - public: - inline FastPairLog_ConnectEvent() : FastPairLog_ConnectEvent(nullptr) {} - ~FastPairLog_ConnectEvent() override; - explicit constexpr FastPairLog_ConnectEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FastPairLog_ConnectEvent(const FastPairLog_ConnectEvent& from); - FastPairLog_ConnectEvent(FastPairLog_ConnectEvent&& from) noexcept - : FastPairLog_ConnectEvent() { - *this = ::std::move(from); - } - - inline FastPairLog_ConnectEvent& operator=(const FastPairLog_ConnectEvent& from) { - CopyFrom(from); - return *this; - } - inline FastPairLog_ConnectEvent& operator=(FastPairLog_ConnectEvent&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const FastPairLog_ConnectEvent& default_instance() { - return *internal_default_instance(); - } - static inline const FastPairLog_ConnectEvent* internal_default_instance() { - return reinterpret_cast( - &_FastPairLog_ConnectEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(FastPairLog_ConnectEvent& a, FastPairLog_ConnectEvent& b) { - a.Swap(&b); - } - inline void Swap(FastPairLog_ConnectEvent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FastPairLog_ConnectEvent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FastPairLog_ConnectEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const FastPairLog_ConnectEvent& from); - void MergeFrom(const FastPairLog_ConnectEvent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FastPairLog_ConnectEvent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.proto.fastpair.FastPairLog.ConnectEvent"; - } - protected: - explicit FastPairLog_ConnectEvent(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kErrorCodeFieldNumber = 1, - kProfileUuidFieldNumber = 2, - }; - // optional .nearby.proto.fastpair.FastPairEvent.ConnectErrorCode error_code = 1; - bool has_error_code() const; - private: - bool _internal_has_error_code() const; - public: - void clear_error_code(); - ::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode error_code() const; - void set_error_code(::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode value); - private: - ::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode _internal_error_code() const; - void _internal_set_error_code(::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode value); - public: - - // optional int32 profile_uuid = 2; - bool has_profile_uuid() const; - private: - bool _internal_has_profile_uuid() const; - public: - void clear_profile_uuid(); - int32_t profile_uuid() const; - void set_profile_uuid(int32_t value); - private: - int32_t _internal_profile_uuid() const; - void _internal_set_profile_uuid(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.proto.fastpair.FastPairLog.ConnectEvent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int error_code_; - int32_t profile_uuid_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class FastPairLog_ProviderInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.proto.fastpair.FastPairLog.ProviderInfo) */ { - public: - inline FastPairLog_ProviderInfo() : FastPairLog_ProviderInfo(nullptr) {} - ~FastPairLog_ProviderInfo() override; - explicit constexpr FastPairLog_ProviderInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FastPairLog_ProviderInfo(const FastPairLog_ProviderInfo& from); - FastPairLog_ProviderInfo(FastPairLog_ProviderInfo&& from) noexcept - : FastPairLog_ProviderInfo() { - *this = ::std::move(from); - } - - inline FastPairLog_ProviderInfo& operator=(const FastPairLog_ProviderInfo& from) { - CopyFrom(from); - return *this; - } - inline FastPairLog_ProviderInfo& operator=(FastPairLog_ProviderInfo&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const FastPairLog_ProviderInfo& default_instance() { - return *internal_default_instance(); - } - static inline const FastPairLog_ProviderInfo* internal_default_instance() { - return reinterpret_cast( - &_FastPairLog_ProviderInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(FastPairLog_ProviderInfo& a, FastPairLog_ProviderInfo& b) { - a.Swap(&b); - } - inline void Swap(FastPairLog_ProviderInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FastPairLog_ProviderInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FastPairLog_ProviderInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const FastPairLog_ProviderInfo& from); - void MergeFrom(const FastPairLog_ProviderInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FastPairLog_ProviderInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.proto.fastpair.FastPairLog.ProviderInfo"; - } - protected: - explicit FastPairLog_ProviderInfo(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kDatabaseHashFieldNumber = 2, - kNumberAccountKeysOnProviderFieldNumber = 1, - }; - // optional string database_hash = 2; - bool has_database_hash() const; - private: - bool _internal_has_database_hash() const; - public: - void clear_database_hash(); - const std::string& database_hash() const; - template - void set_database_hash(ArgT0&& arg0, ArgT... args); - std::string* mutable_database_hash(); - PROTOBUF_NODISCARD std::string* release_database_hash(); - void set_allocated_database_hash(std::string* database_hash); - private: - const std::string& _internal_database_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_database_hash(const std::string& value); - std::string* _internal_mutable_database_hash(); - public: - - // optional int32 number_account_keys_on_provider = 1; - bool has_number_account_keys_on_provider() const; - private: - bool _internal_has_number_account_keys_on_provider() const; - public: - void clear_number_account_keys_on_provider(); - int32_t number_account_keys_on_provider() const; - void set_number_account_keys_on_provider(int32_t value); - private: - int32_t _internal_number_account_keys_on_provider() const; - void _internal_set_number_account_keys_on_provider(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.proto.fastpair.FastPairLog.ProviderInfo) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr database_hash_; - int32_t number_account_keys_on_provider_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class FastPairLog_FootprintsInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.proto.fastpair.FastPairLog.FootprintsInfo) */ { - public: - inline FastPairLog_FootprintsInfo() : FastPairLog_FootprintsInfo(nullptr) {} - ~FastPairLog_FootprintsInfo() override; - explicit constexpr FastPairLog_FootprintsInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FastPairLog_FootprintsInfo(const FastPairLog_FootprintsInfo& from); - FastPairLog_FootprintsInfo(FastPairLog_FootprintsInfo&& from) noexcept - : FastPairLog_FootprintsInfo() { - *this = ::std::move(from); - } - - inline FastPairLog_FootprintsInfo& operator=(const FastPairLog_FootprintsInfo& from) { - CopyFrom(from); - return *this; - } - inline FastPairLog_FootprintsInfo& operator=(FastPairLog_FootprintsInfo&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const FastPairLog_FootprintsInfo& default_instance() { - return *internal_default_instance(); - } - static inline const FastPairLog_FootprintsInfo* internal_default_instance() { - return reinterpret_cast( - &_FastPairLog_FootprintsInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(FastPairLog_FootprintsInfo& a, FastPairLog_FootprintsInfo& b) { - a.Swap(&b); - } - inline void Swap(FastPairLog_FootprintsInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FastPairLog_FootprintsInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FastPairLog_FootprintsInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const FastPairLog_FootprintsInfo& from); - void MergeFrom(const FastPairLog_FootprintsInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FastPairLog_FootprintsInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.proto.fastpair.FastPairLog.FootprintsInfo"; - } - protected: - explicit FastPairLog_FootprintsInfo(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kNumberDevicesOnFootprintsFieldNumber = 1, - }; - // optional int32 number_devices_on_footprints = 1; - bool has_number_devices_on_footprints() const; - private: - bool _internal_has_number_devices_on_footprints() const; - public: - void clear_number_devices_on_footprints(); - int32_t number_devices_on_footprints() const; - void set_number_devices_on_footprints(int32_t value); - private: - int32_t _internal_number_devices_on_footprints() const; - void _internal_set_number_devices_on_footprints(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.proto.fastpair.FastPairLog.FootprintsInfo) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int32_t number_devices_on_footprints_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class FastPairLog_KeyBasedPairingInfo final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) */ { - public: - inline FastPairLog_KeyBasedPairingInfo() : FastPairLog_KeyBasedPairingInfo(nullptr) {} - ~FastPairLog_KeyBasedPairingInfo() override; - explicit constexpr FastPairLog_KeyBasedPairingInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FastPairLog_KeyBasedPairingInfo(const FastPairLog_KeyBasedPairingInfo& from); - FastPairLog_KeyBasedPairingInfo(FastPairLog_KeyBasedPairingInfo&& from) noexcept - : FastPairLog_KeyBasedPairingInfo() { - *this = ::std::move(from); - } - - inline FastPairLog_KeyBasedPairingInfo& operator=(const FastPairLog_KeyBasedPairingInfo& from) { - CopyFrom(from); - return *this; - } - inline FastPairLog_KeyBasedPairingInfo& operator=(FastPairLog_KeyBasedPairingInfo&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const FastPairLog_KeyBasedPairingInfo& default_instance() { - return *internal_default_instance(); - } - static inline const FastPairLog_KeyBasedPairingInfo* internal_default_instance() { - return reinterpret_cast( - &_FastPairLog_KeyBasedPairingInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(FastPairLog_KeyBasedPairingInfo& a, FastPairLog_KeyBasedPairingInfo& b) { - a.Swap(&b); - } - inline void Swap(FastPairLog_KeyBasedPairingInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FastPairLog_KeyBasedPairingInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FastPairLog_KeyBasedPairingInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const FastPairLog_KeyBasedPairingInfo& from); - void MergeFrom(const FastPairLog_KeyBasedPairingInfo& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FastPairLog_KeyBasedPairingInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo"; - } - protected: - explicit FastPairLog_KeyBasedPairingInfo(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRequestFlagFieldNumber = 1, - kResponseTypeFieldNumber = 2, - kResponseFlagFieldNumber = 3, - kResponseDeviceCountFieldNumber = 4, - }; - // optional uint32 request_flag = 1; - bool has_request_flag() const; - private: - bool _internal_has_request_flag() const; - public: - void clear_request_flag(); - uint32_t request_flag() const; - void set_request_flag(uint32_t value); - private: - uint32_t _internal_request_flag() const; - void _internal_set_request_flag(uint32_t value); - public: - - // optional uint32 response_type = 2; - bool has_response_type() const; - private: - bool _internal_has_response_type() const; - public: - void clear_response_type(); - uint32_t response_type() const; - void set_response_type(uint32_t value); - private: - uint32_t _internal_response_type() const; - void _internal_set_response_type(uint32_t value); - public: - - // optional uint32 response_flag = 3; - bool has_response_flag() const; - private: - bool _internal_has_response_flag() const; - public: - void clear_response_flag(); - uint32_t response_flag() const; - void set_response_flag(uint32_t value); - private: - uint32_t _internal_response_flag() const; - void _internal_set_response_flag(uint32_t value); - public: - - // optional uint32 response_device_count = 4; - bool has_response_device_count() const; - private: - bool _internal_has_response_device_count() const; - public: - void clear_response_device_count(); - uint32_t response_device_count() const; - void set_response_device_count(uint32_t value); - private: - uint32_t _internal_response_device_count() const; - void _internal_set_response_device_count(uint32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - uint32_t request_flag_; - uint32_t response_type_; - uint32_t response_flag_; - uint32_t response_device_count_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto; -}; -// ------------------------------------------------------------------- - -class FastPairLog final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.proto.fastpair.FastPairLog) */ { - public: - inline FastPairLog() : FastPairLog(nullptr) {} - ~FastPairLog() override; - explicit constexpr FastPairLog(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FastPairLog(const FastPairLog& from); - FastPairLog(FastPairLog&& from) noexcept - : FastPairLog() { - *this = ::std::move(from); - } - - inline FastPairLog& operator=(const FastPairLog& from) { - CopyFrom(from); - return *this; - } - inline FastPairLog& operator=(FastPairLog&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const FastPairLog& default_instance() { - return *internal_default_instance(); - } - static inline const FastPairLog* internal_default_instance() { - return reinterpret_cast( - &_FastPairLog_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(FastPairLog& a, FastPairLog& b) { - a.Swap(&b); - } - inline void Swap(FastPairLog* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FastPairLog* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FastPairLog* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const FastPairLog& from); - void MergeFrom(const FastPairLog& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FastPairLog* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.proto.fastpair.FastPairLog"; - } - protected: - explicit FastPairLog(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef FastPairLog_GattEvent GattEvent; - typedef FastPairLog_BrEdrHandoverEvent BrEdrHandoverEvent; - typedef FastPairLog_CreateBondEvent CreateBondEvent; - typedef FastPairLog_ConnectEvent ConnectEvent; - typedef FastPairLog_ProviderInfo ProviderInfo; - typedef FastPairLog_FootprintsInfo FootprintsInfo; - typedef FastPairLog_KeyBasedPairingInfo KeyBasedPairingInfo; - - // accessors ------------------------------------------------------- - - enum : int { - kGattEventFieldNumber = 4, - kBrEdrHandoverEventFieldNumber = 5, - kBondEventFieldNumber = 6, - kConnectEventFieldNumber = 7, - kProviderInfoFieldNumber = 10, - kFootprintsInfoFieldNumber = 11, - kKeyBasedPairingInfoFieldNumber = 17, - kModelIdFieldNumber = 1, - kBondStateFieldNumber = 2, - kErrorCodeFieldNumber = 3, - kDeviceTypeFieldNumber = 12, - kHashedSaltedDeviceAddressFieldNumber = 8, - kDurationFieldNumber = 9, - kOsTypeFieldNumber = 13, - kActiveWifiFrequencyFieldNumber = 14, - kNumberConnectedPeripheralsFieldNumber = 15, - kBondingTransportFieldNumber = 18, - kIsScannedByOffloadScannerFieldNumber = 16, - kIsFirstDayNewUserFieldNumber = 19, - kIsSevenDaysNewUserFieldNumber = 20, - kIsPairTriggeredBySettingsFieldNumber = 23, - kBondedDeviceCountFieldNumber = 21, - kNearbyMainlineTetheringVersionFieldNumber = 24, - kSassConnectionStateFieldNumber = 22, - kIsInPairedHistoryFieldNumber = 26, - kNearbyNanoAppVersionFieldNumber = 25, - }; - // optional .nearby.proto.fastpair.FastPairLog.GattEvent gatt_event = 4; - bool has_gatt_event() const; - private: - bool _internal_has_gatt_event() const; - public: - void clear_gatt_event(); - const ::nearby::proto::fastpair::FastPairLog_GattEvent& gatt_event() const; - PROTOBUF_NODISCARD ::nearby::proto::fastpair::FastPairLog_GattEvent* release_gatt_event(); - ::nearby::proto::fastpair::FastPairLog_GattEvent* mutable_gatt_event(); - void set_allocated_gatt_event(::nearby::proto::fastpair::FastPairLog_GattEvent* gatt_event); - private: - const ::nearby::proto::fastpair::FastPairLog_GattEvent& _internal_gatt_event() const; - ::nearby::proto::fastpair::FastPairLog_GattEvent* _internal_mutable_gatt_event(); - public: - void unsafe_arena_set_allocated_gatt_event( - ::nearby::proto::fastpair::FastPairLog_GattEvent* gatt_event); - ::nearby::proto::fastpair::FastPairLog_GattEvent* unsafe_arena_release_gatt_event(); - - // optional .nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent br_edr_handover_event = 5; - bool has_br_edr_handover_event() const; - private: - bool _internal_has_br_edr_handover_event() const; - public: - void clear_br_edr_handover_event(); - const ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent& br_edr_handover_event() const; - PROTOBUF_NODISCARD ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* release_br_edr_handover_event(); - ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* mutable_br_edr_handover_event(); - void set_allocated_br_edr_handover_event(::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* br_edr_handover_event); - private: - const ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent& _internal_br_edr_handover_event() const; - ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* _internal_mutable_br_edr_handover_event(); - public: - void unsafe_arena_set_allocated_br_edr_handover_event( - ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* br_edr_handover_event); - ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* unsafe_arena_release_br_edr_handover_event(); - - // optional .nearby.proto.fastpair.FastPairLog.CreateBondEvent bond_event = 6; - bool has_bond_event() const; - private: - bool _internal_has_bond_event() const; - public: - void clear_bond_event(); - const ::nearby::proto::fastpair::FastPairLog_CreateBondEvent& bond_event() const; - PROTOBUF_NODISCARD ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* release_bond_event(); - ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* mutable_bond_event(); - void set_allocated_bond_event(::nearby::proto::fastpair::FastPairLog_CreateBondEvent* bond_event); - private: - const ::nearby::proto::fastpair::FastPairLog_CreateBondEvent& _internal_bond_event() const; - ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* _internal_mutable_bond_event(); - public: - void unsafe_arena_set_allocated_bond_event( - ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* bond_event); - ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* unsafe_arena_release_bond_event(); - - // optional .nearby.proto.fastpair.FastPairLog.ConnectEvent connect_event = 7; - bool has_connect_event() const; - private: - bool _internal_has_connect_event() const; - public: - void clear_connect_event(); - const ::nearby::proto::fastpair::FastPairLog_ConnectEvent& connect_event() const; - PROTOBUF_NODISCARD ::nearby::proto::fastpair::FastPairLog_ConnectEvent* release_connect_event(); - ::nearby::proto::fastpair::FastPairLog_ConnectEvent* mutable_connect_event(); - void set_allocated_connect_event(::nearby::proto::fastpair::FastPairLog_ConnectEvent* connect_event); - private: - const ::nearby::proto::fastpair::FastPairLog_ConnectEvent& _internal_connect_event() const; - ::nearby::proto::fastpair::FastPairLog_ConnectEvent* _internal_mutable_connect_event(); - public: - void unsafe_arena_set_allocated_connect_event( - ::nearby::proto::fastpair::FastPairLog_ConnectEvent* connect_event); - ::nearby::proto::fastpair::FastPairLog_ConnectEvent* unsafe_arena_release_connect_event(); - - // optional .nearby.proto.fastpair.FastPairLog.ProviderInfo provider_info = 10; - bool has_provider_info() const; - private: - bool _internal_has_provider_info() const; - public: - void clear_provider_info(); - const ::nearby::proto::fastpair::FastPairLog_ProviderInfo& provider_info() const; - PROTOBUF_NODISCARD ::nearby::proto::fastpair::FastPairLog_ProviderInfo* release_provider_info(); - ::nearby::proto::fastpair::FastPairLog_ProviderInfo* mutable_provider_info(); - void set_allocated_provider_info(::nearby::proto::fastpair::FastPairLog_ProviderInfo* provider_info); - private: - const ::nearby::proto::fastpair::FastPairLog_ProviderInfo& _internal_provider_info() const; - ::nearby::proto::fastpair::FastPairLog_ProviderInfo* _internal_mutable_provider_info(); - public: - void unsafe_arena_set_allocated_provider_info( - ::nearby::proto::fastpair::FastPairLog_ProviderInfo* provider_info); - ::nearby::proto::fastpair::FastPairLog_ProviderInfo* unsafe_arena_release_provider_info(); - - // optional .nearby.proto.fastpair.FastPairLog.FootprintsInfo footprints_info = 11; - bool has_footprints_info() const; - private: - bool _internal_has_footprints_info() const; - public: - void clear_footprints_info(); - const ::nearby::proto::fastpair::FastPairLog_FootprintsInfo& footprints_info() const; - PROTOBUF_NODISCARD ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* release_footprints_info(); - ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* mutable_footprints_info(); - void set_allocated_footprints_info(::nearby::proto::fastpair::FastPairLog_FootprintsInfo* footprints_info); - private: - const ::nearby::proto::fastpair::FastPairLog_FootprintsInfo& _internal_footprints_info() const; - ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* _internal_mutable_footprints_info(); - public: - void unsafe_arena_set_allocated_footprints_info( - ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* footprints_info); - ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* unsafe_arena_release_footprints_info(); - - // optional .nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo key_based_pairing_info = 17; - bool has_key_based_pairing_info() const; - private: - bool _internal_has_key_based_pairing_info() const; - public: - void clear_key_based_pairing_info(); - const ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo& key_based_pairing_info() const; - PROTOBUF_NODISCARD ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* release_key_based_pairing_info(); - ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* mutable_key_based_pairing_info(); - void set_allocated_key_based_pairing_info(::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* key_based_pairing_info); - private: - const ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo& _internal_key_based_pairing_info() const; - ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* _internal_mutable_key_based_pairing_info(); - public: - void unsafe_arena_set_allocated_key_based_pairing_info( - ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* key_based_pairing_info); - ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* unsafe_arena_release_key_based_pairing_info(); - - // optional int32 model_id = 1; - bool has_model_id() const; - private: - bool _internal_has_model_id() const; - public: - void clear_model_id(); - int32_t model_id() const; - void set_model_id(int32_t value); - private: - int32_t _internal_model_id() const; - void _internal_set_model_id(int32_t value); - public: - - // optional .nearby.proto.fastpair.FastPairEvent.BondState bond_state = 2; - bool has_bond_state() const; - private: - bool _internal_has_bond_state() const; - public: - void clear_bond_state(); - ::nearby::proto::fastpair::FastPairEvent_BondState bond_state() const; - void set_bond_state(::nearby::proto::fastpair::FastPairEvent_BondState value); - private: - ::nearby::proto::fastpair::FastPairEvent_BondState _internal_bond_state() const; - void _internal_set_bond_state(::nearby::proto::fastpair::FastPairEvent_BondState value); - public: - - // optional .nearby.proto.fastpair.FastPairEvent.ErrorCode error_code = 3; - bool has_error_code() const; - private: - bool _internal_has_error_code() const; - public: - void clear_error_code(); - ::nearby::proto::fastpair::FastPairEvent_ErrorCode error_code() const; - void set_error_code(::nearby::proto::fastpair::FastPairEvent_ErrorCode value); - private: - ::nearby::proto::fastpair::FastPairEvent_ErrorCode _internal_error_code() const; - void _internal_set_error_code(::nearby::proto::fastpair::FastPairEvent_ErrorCode value); - public: - - // optional .nearby.proto.fastpair.DeviceType device_type = 12; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - ::nearby::proto::fastpair::DeviceType device_type() const; - void set_device_type(::nearby::proto::fastpair::DeviceType value); - private: - ::nearby::proto::fastpair::DeviceType _internal_device_type() const; - void _internal_set_device_type(::nearby::proto::fastpair::DeviceType value); - public: - - // optional int64 hashed_salted_device_address = 8; - bool has_hashed_salted_device_address() const; - private: - bool _internal_has_hashed_salted_device_address() const; - public: - void clear_hashed_salted_device_address(); - int64_t hashed_salted_device_address() const; - void set_hashed_salted_device_address(int64_t value); - private: - int64_t _internal_hashed_salted_device_address() const; - void _internal_set_hashed_salted_device_address(int64_t value); - public: - - // optional int64 duration = 9; - bool has_duration() const; - private: - bool _internal_has_duration() const; - public: - void clear_duration(); - int64_t duration() const; - void set_duration(int64_t value); - private: - int64_t _internal_duration() const; - void _internal_set_duration(int64_t value); - public: - - // optional .nearby.proto.fastpair.OsType os_type = 13; - bool has_os_type() const; - private: - bool _internal_has_os_type() const; - public: - void clear_os_type(); - ::nearby::proto::fastpair::OsType os_type() const; - void set_os_type(::nearby::proto::fastpair::OsType value); - private: - ::nearby::proto::fastpair::OsType _internal_os_type() const; - void _internal_set_os_type(::nearby::proto::fastpair::OsType value); - public: - - // optional int32 active_wifi_frequency = 14; - bool has_active_wifi_frequency() const; - private: - bool _internal_has_active_wifi_frequency() const; - public: - void clear_active_wifi_frequency(); - int32_t active_wifi_frequency() const; - void set_active_wifi_frequency(int32_t value); - private: - int32_t _internal_active_wifi_frequency() const; - void _internal_set_active_wifi_frequency(int32_t value); - public: - - // optional int32 number_connected_peripherals = 15; - bool has_number_connected_peripherals() const; - private: - bool _internal_has_number_connected_peripherals() const; - public: - void clear_number_connected_peripherals(); - int32_t number_connected_peripherals() const; - void set_number_connected_peripherals(int32_t value); - private: - int32_t _internal_number_connected_peripherals() const; - void _internal_set_number_connected_peripherals(int32_t value); - public: - - // optional uint32 bonding_transport = 18; - bool has_bonding_transport() const; - private: - bool _internal_has_bonding_transport() const; - public: - void clear_bonding_transport(); - uint32_t bonding_transport() const; - void set_bonding_transport(uint32_t value); - private: - uint32_t _internal_bonding_transport() const; - void _internal_set_bonding_transport(uint32_t value); - public: - - // optional bool is_scanned_by_offload_scanner = 16; - bool has_is_scanned_by_offload_scanner() const; - private: - bool _internal_has_is_scanned_by_offload_scanner() const; - public: - void clear_is_scanned_by_offload_scanner(); - bool is_scanned_by_offload_scanner() const; - void set_is_scanned_by_offload_scanner(bool value); - private: - bool _internal_is_scanned_by_offload_scanner() const; - void _internal_set_is_scanned_by_offload_scanner(bool value); - public: - - // optional bool is_first_day_new_user = 19; - bool has_is_first_day_new_user() const; - private: - bool _internal_has_is_first_day_new_user() const; - public: - void clear_is_first_day_new_user(); - bool is_first_day_new_user() const; - void set_is_first_day_new_user(bool value); - private: - bool _internal_is_first_day_new_user() const; - void _internal_set_is_first_day_new_user(bool value); - public: - - // optional bool is_seven_days_new_user = 20; - bool has_is_seven_days_new_user() const; - private: - bool _internal_has_is_seven_days_new_user() const; - public: - void clear_is_seven_days_new_user(); - bool is_seven_days_new_user() const; - void set_is_seven_days_new_user(bool value); - private: - bool _internal_is_seven_days_new_user() const; - void _internal_set_is_seven_days_new_user(bool value); - public: - - // optional bool is_pair_triggered_by_settings = 23; - bool has_is_pair_triggered_by_settings() const; - private: - bool _internal_has_is_pair_triggered_by_settings() const; - public: - void clear_is_pair_triggered_by_settings(); - bool is_pair_triggered_by_settings() const; - void set_is_pair_triggered_by_settings(bool value); - private: - bool _internal_is_pair_triggered_by_settings() const; - void _internal_set_is_pair_triggered_by_settings(bool value); - public: - - // optional uint32 bonded_device_count = 21; - bool has_bonded_device_count() const; - private: - bool _internal_has_bonded_device_count() const; - public: - void clear_bonded_device_count(); - uint32_t bonded_device_count() const; - void set_bonded_device_count(uint32_t value); - private: - uint32_t _internal_bonded_device_count() const; - void _internal_set_bonded_device_count(uint32_t value); - public: - - // optional int64 nearby_mainline_tethering_version = 24; - bool has_nearby_mainline_tethering_version() const; - private: - bool _internal_has_nearby_mainline_tethering_version() const; - public: - void clear_nearby_mainline_tethering_version(); - int64_t nearby_mainline_tethering_version() const; - void set_nearby_mainline_tethering_version(int64_t value); - private: - int64_t _internal_nearby_mainline_tethering_version() const; - void _internal_set_nearby_mainline_tethering_version(int64_t value); - public: - - // optional int32 sass_connection_state = 22; - bool has_sass_connection_state() const; - private: - bool _internal_has_sass_connection_state() const; - public: - void clear_sass_connection_state(); - int32_t sass_connection_state() const; - void set_sass_connection_state(int32_t value); - private: - int32_t _internal_sass_connection_state() const; - void _internal_set_sass_connection_state(int32_t value); - public: - - // optional bool is_in_paired_history = 26; - bool has_is_in_paired_history() const; - private: - bool _internal_has_is_in_paired_history() const; - public: - void clear_is_in_paired_history(); - bool is_in_paired_history() const; - void set_is_in_paired_history(bool value); - private: - bool _internal_is_in_paired_history() const; - void _internal_set_is_in_paired_history(bool value); - public: - - // optional int64 nearby_nano_app_version = 25; - bool has_nearby_nano_app_version() const; - private: - bool _internal_has_nearby_nano_app_version() const; - public: - void clear_nearby_nano_app_version(); - int64_t nearby_nano_app_version() const; - void set_nearby_nano_app_version(int64_t value); - private: - int64_t _internal_nearby_nano_app_version() const; - void _internal_set_nearby_nano_app_version(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.proto.fastpair.FastPairLog) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::proto::fastpair::FastPairLog_GattEvent* gatt_event_; - ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* br_edr_handover_event_; - ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* bond_event_; - ::nearby::proto::fastpair::FastPairLog_ConnectEvent* connect_event_; - ::nearby::proto::fastpair::FastPairLog_ProviderInfo* provider_info_; - ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* footprints_info_; - ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* key_based_pairing_info_; - int32_t model_id_; - int bond_state_; - int error_code_; - int device_type_; - int64_t hashed_salted_device_address_; - int64_t duration_; - int os_type_; - int32_t active_wifi_frequency_; - int32_t number_connected_peripherals_; - uint32_t bonding_transport_; - bool is_scanned_by_offload_scanner_; - bool is_first_day_new_user_; - bool is_seven_days_new_user_; - bool is_pair_triggered_by_settings_; - uint32_t bonded_device_count_; - int64_t nearby_mainline_tethering_version_; - int32_t sass_connection_state_; - bool is_in_paired_history_; - int64_t nearby_nano_app_version_; - friend struct ::TableStruct_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// FastPairLog_GattEvent - -// optional int32 error_from_os = 1; -inline bool FastPairLog_GattEvent::_internal_has_error_from_os() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool FastPairLog_GattEvent::has_error_from_os() const { - return _internal_has_error_from_os(); -} -inline void FastPairLog_GattEvent::clear_error_from_os() { - error_from_os_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline int32_t FastPairLog_GattEvent::_internal_error_from_os() const { - return error_from_os_; -} -inline int32_t FastPairLog_GattEvent::error_from_os() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.GattEvent.error_from_os) - return _internal_error_from_os(); -} -inline void FastPairLog_GattEvent::_internal_set_error_from_os(int32_t value) { - _has_bits_[0] |= 0x00000001u; - error_from_os_ = value; -} -inline void FastPairLog_GattEvent::set_error_from_os(int32_t value) { - _internal_set_error_from_os(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.GattEvent.error_from_os) -} - -// ------------------------------------------------------------------- - -// FastPairLog_BrEdrHandoverEvent - -// optional .nearby.proto.fastpair.FastPairEvent.BrEdrHandoverErrorCode error_code = 1; -inline bool FastPairLog_BrEdrHandoverEvent::_internal_has_error_code() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool FastPairLog_BrEdrHandoverEvent::has_error_code() const { - return _internal_has_error_code(); -} -inline void FastPairLog_BrEdrHandoverEvent::clear_error_code() { - error_code_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode FastPairLog_BrEdrHandoverEvent::_internal_error_code() const { - return static_cast< ::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode >(error_code_); -} -inline ::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode FastPairLog_BrEdrHandoverEvent::error_code() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent.error_code) - return _internal_error_code(); -} -inline void FastPairLog_BrEdrHandoverEvent::_internal_set_error_code(::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode value) { - assert(::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - error_code_ = value; -} -inline void FastPairLog_BrEdrHandoverEvent::set_error_code(::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode value) { - _internal_set_error_code(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent.error_code) -} - -// ------------------------------------------------------------------- - -// FastPairLog_CreateBondEvent - -// optional .nearby.proto.fastpair.FastPairEvent.CreateBondErrorCode error_code = 1; -inline bool FastPairLog_CreateBondEvent::_internal_has_error_code() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool FastPairLog_CreateBondEvent::has_error_code() const { - return _internal_has_error_code(); -} -inline void FastPairLog_CreateBondEvent::clear_error_code() { - error_code_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode FastPairLog_CreateBondEvent::_internal_error_code() const { - return static_cast< ::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode >(error_code_); -} -inline ::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode FastPairLog_CreateBondEvent::error_code() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.CreateBondEvent.error_code) - return _internal_error_code(); -} -inline void FastPairLog_CreateBondEvent::_internal_set_error_code(::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode value) { - assert(::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - error_code_ = value; -} -inline void FastPairLog_CreateBondEvent::set_error_code(::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode value) { - _internal_set_error_code(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.CreateBondEvent.error_code) -} - -// optional int32 unbond_reason = 2; -inline bool FastPairLog_CreateBondEvent::_internal_has_unbond_reason() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool FastPairLog_CreateBondEvent::has_unbond_reason() const { - return _internal_has_unbond_reason(); -} -inline void FastPairLog_CreateBondEvent::clear_unbond_reason() { - unbond_reason_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline int32_t FastPairLog_CreateBondEvent::_internal_unbond_reason() const { - return unbond_reason_; -} -inline int32_t FastPairLog_CreateBondEvent::unbond_reason() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.CreateBondEvent.unbond_reason) - return _internal_unbond_reason(); -} -inline void FastPairLog_CreateBondEvent::_internal_set_unbond_reason(int32_t value) { - _has_bits_[0] |= 0x00000002u; - unbond_reason_ = value; -} -inline void FastPairLog_CreateBondEvent::set_unbond_reason(int32_t value) { - _internal_set_unbond_reason(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.CreateBondEvent.unbond_reason) -} - -// ------------------------------------------------------------------- - -// FastPairLog_ConnectEvent - -// optional .nearby.proto.fastpair.FastPairEvent.ConnectErrorCode error_code = 1; -inline bool FastPairLog_ConnectEvent::_internal_has_error_code() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool FastPairLog_ConnectEvent::has_error_code() const { - return _internal_has_error_code(); -} -inline void FastPairLog_ConnectEvent::clear_error_code() { - error_code_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode FastPairLog_ConnectEvent::_internal_error_code() const { - return static_cast< ::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode >(error_code_); -} -inline ::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode FastPairLog_ConnectEvent::error_code() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.ConnectEvent.error_code) - return _internal_error_code(); -} -inline void FastPairLog_ConnectEvent::_internal_set_error_code(::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode value) { - assert(::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - error_code_ = value; -} -inline void FastPairLog_ConnectEvent::set_error_code(::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode value) { - _internal_set_error_code(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.ConnectEvent.error_code) -} - -// optional int32 profile_uuid = 2; -inline bool FastPairLog_ConnectEvent::_internal_has_profile_uuid() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool FastPairLog_ConnectEvent::has_profile_uuid() const { - return _internal_has_profile_uuid(); -} -inline void FastPairLog_ConnectEvent::clear_profile_uuid() { - profile_uuid_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline int32_t FastPairLog_ConnectEvent::_internal_profile_uuid() const { - return profile_uuid_; -} -inline int32_t FastPairLog_ConnectEvent::profile_uuid() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.ConnectEvent.profile_uuid) - return _internal_profile_uuid(); -} -inline void FastPairLog_ConnectEvent::_internal_set_profile_uuid(int32_t value) { - _has_bits_[0] |= 0x00000002u; - profile_uuid_ = value; -} -inline void FastPairLog_ConnectEvent::set_profile_uuid(int32_t value) { - _internal_set_profile_uuid(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.ConnectEvent.profile_uuid) -} - -// ------------------------------------------------------------------- - -// FastPairLog_ProviderInfo - -// optional int32 number_account_keys_on_provider = 1; -inline bool FastPairLog_ProviderInfo::_internal_has_number_account_keys_on_provider() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool FastPairLog_ProviderInfo::has_number_account_keys_on_provider() const { - return _internal_has_number_account_keys_on_provider(); -} -inline void FastPairLog_ProviderInfo::clear_number_account_keys_on_provider() { - number_account_keys_on_provider_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline int32_t FastPairLog_ProviderInfo::_internal_number_account_keys_on_provider() const { - return number_account_keys_on_provider_; -} -inline int32_t FastPairLog_ProviderInfo::number_account_keys_on_provider() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.ProviderInfo.number_account_keys_on_provider) - return _internal_number_account_keys_on_provider(); -} -inline void FastPairLog_ProviderInfo::_internal_set_number_account_keys_on_provider(int32_t value) { - _has_bits_[0] |= 0x00000002u; - number_account_keys_on_provider_ = value; -} -inline void FastPairLog_ProviderInfo::set_number_account_keys_on_provider(int32_t value) { - _internal_set_number_account_keys_on_provider(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.ProviderInfo.number_account_keys_on_provider) -} - -// optional string database_hash = 2; -inline bool FastPairLog_ProviderInfo::_internal_has_database_hash() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool FastPairLog_ProviderInfo::has_database_hash() const { - return _internal_has_database_hash(); -} -inline void FastPairLog_ProviderInfo::clear_database_hash() { - database_hash_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& FastPairLog_ProviderInfo::database_hash() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.ProviderInfo.database_hash) - return _internal_database_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void FastPairLog_ProviderInfo::set_database_hash(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - database_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.ProviderInfo.database_hash) -} -inline std::string* FastPairLog_ProviderInfo::mutable_database_hash() { - std::string* _s = _internal_mutable_database_hash(); - // @@protoc_insertion_point(field_mutable:nearby.proto.fastpair.FastPairLog.ProviderInfo.database_hash) - return _s; -} -inline const std::string& FastPairLog_ProviderInfo::_internal_database_hash() const { - return database_hash_.Get(); -} -inline void FastPairLog_ProviderInfo::_internal_set_database_hash(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - database_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* FastPairLog_ProviderInfo::_internal_mutable_database_hash() { - _has_bits_[0] |= 0x00000001u; - return database_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* FastPairLog_ProviderInfo::release_database_hash() { - // @@protoc_insertion_point(field_release:nearby.proto.fastpair.FastPairLog.ProviderInfo.database_hash) - if (!_internal_has_database_hash()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = database_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (database_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - database_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void FastPairLog_ProviderInfo::set_allocated_database_hash(std::string* database_hash) { - if (database_hash != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - database_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), database_hash, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (database_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - database_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.proto.fastpair.FastPairLog.ProviderInfo.database_hash) -} - -// ------------------------------------------------------------------- - -// FastPairLog_FootprintsInfo - -// optional int32 number_devices_on_footprints = 1; -inline bool FastPairLog_FootprintsInfo::_internal_has_number_devices_on_footprints() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool FastPairLog_FootprintsInfo::has_number_devices_on_footprints() const { - return _internal_has_number_devices_on_footprints(); -} -inline void FastPairLog_FootprintsInfo::clear_number_devices_on_footprints() { - number_devices_on_footprints_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline int32_t FastPairLog_FootprintsInfo::_internal_number_devices_on_footprints() const { - return number_devices_on_footprints_; -} -inline int32_t FastPairLog_FootprintsInfo::number_devices_on_footprints() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.FootprintsInfo.number_devices_on_footprints) - return _internal_number_devices_on_footprints(); -} -inline void FastPairLog_FootprintsInfo::_internal_set_number_devices_on_footprints(int32_t value) { - _has_bits_[0] |= 0x00000001u; - number_devices_on_footprints_ = value; -} -inline void FastPairLog_FootprintsInfo::set_number_devices_on_footprints(int32_t value) { - _internal_set_number_devices_on_footprints(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.FootprintsInfo.number_devices_on_footprints) -} - -// ------------------------------------------------------------------- - -// FastPairLog_KeyBasedPairingInfo - -// optional uint32 request_flag = 1; -inline bool FastPairLog_KeyBasedPairingInfo::_internal_has_request_flag() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool FastPairLog_KeyBasedPairingInfo::has_request_flag() const { - return _internal_has_request_flag(); -} -inline void FastPairLog_KeyBasedPairingInfo::clear_request_flag() { - request_flag_ = 0u; - _has_bits_[0] &= ~0x00000001u; -} -inline uint32_t FastPairLog_KeyBasedPairingInfo::_internal_request_flag() const { - return request_flag_; -} -inline uint32_t FastPairLog_KeyBasedPairingInfo::request_flag() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo.request_flag) - return _internal_request_flag(); -} -inline void FastPairLog_KeyBasedPairingInfo::_internal_set_request_flag(uint32_t value) { - _has_bits_[0] |= 0x00000001u; - request_flag_ = value; -} -inline void FastPairLog_KeyBasedPairingInfo::set_request_flag(uint32_t value) { - _internal_set_request_flag(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo.request_flag) -} - -// optional uint32 response_type = 2; -inline bool FastPairLog_KeyBasedPairingInfo::_internal_has_response_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool FastPairLog_KeyBasedPairingInfo::has_response_type() const { - return _internal_has_response_type(); -} -inline void FastPairLog_KeyBasedPairingInfo::clear_response_type() { - response_type_ = 0u; - _has_bits_[0] &= ~0x00000002u; -} -inline uint32_t FastPairLog_KeyBasedPairingInfo::_internal_response_type() const { - return response_type_; -} -inline uint32_t FastPairLog_KeyBasedPairingInfo::response_type() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo.response_type) - return _internal_response_type(); -} -inline void FastPairLog_KeyBasedPairingInfo::_internal_set_response_type(uint32_t value) { - _has_bits_[0] |= 0x00000002u; - response_type_ = value; -} -inline void FastPairLog_KeyBasedPairingInfo::set_response_type(uint32_t value) { - _internal_set_response_type(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo.response_type) -} - -// optional uint32 response_flag = 3; -inline bool FastPairLog_KeyBasedPairingInfo::_internal_has_response_flag() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool FastPairLog_KeyBasedPairingInfo::has_response_flag() const { - return _internal_has_response_flag(); -} -inline void FastPairLog_KeyBasedPairingInfo::clear_response_flag() { - response_flag_ = 0u; - _has_bits_[0] &= ~0x00000004u; -} -inline uint32_t FastPairLog_KeyBasedPairingInfo::_internal_response_flag() const { - return response_flag_; -} -inline uint32_t FastPairLog_KeyBasedPairingInfo::response_flag() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo.response_flag) - return _internal_response_flag(); -} -inline void FastPairLog_KeyBasedPairingInfo::_internal_set_response_flag(uint32_t value) { - _has_bits_[0] |= 0x00000004u; - response_flag_ = value; -} -inline void FastPairLog_KeyBasedPairingInfo::set_response_flag(uint32_t value) { - _internal_set_response_flag(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo.response_flag) -} - -// optional uint32 response_device_count = 4; -inline bool FastPairLog_KeyBasedPairingInfo::_internal_has_response_device_count() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool FastPairLog_KeyBasedPairingInfo::has_response_device_count() const { - return _internal_has_response_device_count(); -} -inline void FastPairLog_KeyBasedPairingInfo::clear_response_device_count() { - response_device_count_ = 0u; - _has_bits_[0] &= ~0x00000008u; -} -inline uint32_t FastPairLog_KeyBasedPairingInfo::_internal_response_device_count() const { - return response_device_count_; -} -inline uint32_t FastPairLog_KeyBasedPairingInfo::response_device_count() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo.response_device_count) - return _internal_response_device_count(); -} -inline void FastPairLog_KeyBasedPairingInfo::_internal_set_response_device_count(uint32_t value) { - _has_bits_[0] |= 0x00000008u; - response_device_count_ = value; -} -inline void FastPairLog_KeyBasedPairingInfo::set_response_device_count(uint32_t value) { - _internal_set_response_device_count(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo.response_device_count) -} - -// ------------------------------------------------------------------- - -// FastPairLog - -// optional int32 model_id = 1; -inline bool FastPairLog::_internal_has_model_id() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - return value; -} -inline bool FastPairLog::has_model_id() const { - return _internal_has_model_id(); -} -inline void FastPairLog::clear_model_id() { - model_id_ = 0; - _has_bits_[0] &= ~0x00000080u; -} -inline int32_t FastPairLog::_internal_model_id() const { - return model_id_; -} -inline int32_t FastPairLog::model_id() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.model_id) - return _internal_model_id(); -} -inline void FastPairLog::_internal_set_model_id(int32_t value) { - _has_bits_[0] |= 0x00000080u; - model_id_ = value; -} -inline void FastPairLog::set_model_id(int32_t value) { - _internal_set_model_id(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.model_id) -} - -// optional .nearby.proto.fastpair.FastPairEvent.BondState bond_state = 2; -inline bool FastPairLog::_internal_has_bond_state() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; - return value; -} -inline bool FastPairLog::has_bond_state() const { - return _internal_has_bond_state(); -} -inline void FastPairLog::clear_bond_state() { - bond_state_ = 0; - _has_bits_[0] &= ~0x00000100u; -} -inline ::nearby::proto::fastpair::FastPairEvent_BondState FastPairLog::_internal_bond_state() const { - return static_cast< ::nearby::proto::fastpair::FastPairEvent_BondState >(bond_state_); -} -inline ::nearby::proto::fastpair::FastPairEvent_BondState FastPairLog::bond_state() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.bond_state) - return _internal_bond_state(); -} -inline void FastPairLog::_internal_set_bond_state(::nearby::proto::fastpair::FastPairEvent_BondState value) { - assert(::nearby::proto::fastpair::FastPairEvent_BondState_IsValid(value)); - _has_bits_[0] |= 0x00000100u; - bond_state_ = value; -} -inline void FastPairLog::set_bond_state(::nearby::proto::fastpair::FastPairEvent_BondState value) { - _internal_set_bond_state(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.bond_state) -} - -// optional .nearby.proto.fastpair.FastPairEvent.ErrorCode error_code = 3; -inline bool FastPairLog::_internal_has_error_code() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; - return value; -} -inline bool FastPairLog::has_error_code() const { - return _internal_has_error_code(); -} -inline void FastPairLog::clear_error_code() { - error_code_ = 0; - _has_bits_[0] &= ~0x00000200u; -} -inline ::nearby::proto::fastpair::FastPairEvent_ErrorCode FastPairLog::_internal_error_code() const { - return static_cast< ::nearby::proto::fastpair::FastPairEvent_ErrorCode >(error_code_); -} -inline ::nearby::proto::fastpair::FastPairEvent_ErrorCode FastPairLog::error_code() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.error_code) - return _internal_error_code(); -} -inline void FastPairLog::_internal_set_error_code(::nearby::proto::fastpair::FastPairEvent_ErrorCode value) { - assert(::nearby::proto::fastpair::FastPairEvent_ErrorCode_IsValid(value)); - _has_bits_[0] |= 0x00000200u; - error_code_ = value; -} -inline void FastPairLog::set_error_code(::nearby::proto::fastpair::FastPairEvent_ErrorCode value) { - _internal_set_error_code(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.error_code) -} - -// optional .nearby.proto.fastpair.FastPairLog.GattEvent gatt_event = 4; -inline bool FastPairLog::_internal_has_gatt_event() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || gatt_event_ != nullptr); - return value; -} -inline bool FastPairLog::has_gatt_event() const { - return _internal_has_gatt_event(); -} -inline void FastPairLog::clear_gatt_event() { - if (gatt_event_ != nullptr) gatt_event_->Clear(); - _has_bits_[0] &= ~0x00000001u; -} -inline const ::nearby::proto::fastpair::FastPairLog_GattEvent& FastPairLog::_internal_gatt_event() const { - const ::nearby::proto::fastpair::FastPairLog_GattEvent* p = gatt_event_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::proto::fastpair::_FastPairLog_GattEvent_default_instance_); -} -inline const ::nearby::proto::fastpair::FastPairLog_GattEvent& FastPairLog::gatt_event() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.gatt_event) - return _internal_gatt_event(); -} -inline void FastPairLog::unsafe_arena_set_allocated_gatt_event( - ::nearby::proto::fastpair::FastPairLog_GattEvent* gatt_event) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(gatt_event_); - } - gatt_event_ = gatt_event; - if (gatt_event) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.proto.fastpair.FastPairLog.gatt_event) -} -inline ::nearby::proto::fastpair::FastPairLog_GattEvent* FastPairLog::release_gatt_event() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::proto::fastpair::FastPairLog_GattEvent* temp = gatt_event_; - gatt_event_ = 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 ::nearby::proto::fastpair::FastPairLog_GattEvent* FastPairLog::unsafe_arena_release_gatt_event() { - // @@protoc_insertion_point(field_release:nearby.proto.fastpair.FastPairLog.gatt_event) - _has_bits_[0] &= ~0x00000001u; - ::nearby::proto::fastpair::FastPairLog_GattEvent* temp = gatt_event_; - gatt_event_ = nullptr; - return temp; -} -inline ::nearby::proto::fastpair::FastPairLog_GattEvent* FastPairLog::_internal_mutable_gatt_event() { - _has_bits_[0] |= 0x00000001u; - if (gatt_event_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_GattEvent>(GetArenaForAllocation()); - gatt_event_ = p; - } - return gatt_event_; -} -inline ::nearby::proto::fastpair::FastPairLog_GattEvent* FastPairLog::mutable_gatt_event() { - ::nearby::proto::fastpair::FastPairLog_GattEvent* _msg = _internal_mutable_gatt_event(); - // @@protoc_insertion_point(field_mutable:nearby.proto.fastpair.FastPairLog.gatt_event) - return _msg; -} -inline void FastPairLog::set_allocated_gatt_event(::nearby::proto::fastpair::FastPairLog_GattEvent* gatt_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete gatt_event_; - } - if (gatt_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::proto::fastpair::FastPairLog_GattEvent>::GetOwningArena(gatt_event); - if (message_arena != submessage_arena) { - gatt_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, gatt_event, submessage_arena); - } - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - gatt_event_ = gatt_event; - // @@protoc_insertion_point(field_set_allocated:nearby.proto.fastpair.FastPairLog.gatt_event) -} - -// optional .nearby.proto.fastpair.FastPairLog.BrEdrHandoverEvent br_edr_handover_event = 5; -inline bool FastPairLog::_internal_has_br_edr_handover_event() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - PROTOBUF_ASSUME(!value || br_edr_handover_event_ != nullptr); - return value; -} -inline bool FastPairLog::has_br_edr_handover_event() const { - return _internal_has_br_edr_handover_event(); -} -inline void FastPairLog::clear_br_edr_handover_event() { - if (br_edr_handover_event_ != nullptr) br_edr_handover_event_->Clear(); - _has_bits_[0] &= ~0x00000002u; -} -inline const ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent& FastPairLog::_internal_br_edr_handover_event() const { - const ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* p = br_edr_handover_event_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::proto::fastpair::_FastPairLog_BrEdrHandoverEvent_default_instance_); -} -inline const ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent& FastPairLog::br_edr_handover_event() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.br_edr_handover_event) - return _internal_br_edr_handover_event(); -} -inline void FastPairLog::unsafe_arena_set_allocated_br_edr_handover_event( - ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* br_edr_handover_event) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(br_edr_handover_event_); - } - br_edr_handover_event_ = br_edr_handover_event; - if (br_edr_handover_event) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.proto.fastpair.FastPairLog.br_edr_handover_event) -} -inline ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* FastPairLog::release_br_edr_handover_event() { - _has_bits_[0] &= ~0x00000002u; - ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* temp = br_edr_handover_event_; - br_edr_handover_event_ = 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 ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* FastPairLog::unsafe_arena_release_br_edr_handover_event() { - // @@protoc_insertion_point(field_release:nearby.proto.fastpair.FastPairLog.br_edr_handover_event) - _has_bits_[0] &= ~0x00000002u; - ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* temp = br_edr_handover_event_; - br_edr_handover_event_ = nullptr; - return temp; -} -inline ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* FastPairLog::_internal_mutable_br_edr_handover_event() { - _has_bits_[0] |= 0x00000002u; - if (br_edr_handover_event_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent>(GetArenaForAllocation()); - br_edr_handover_event_ = p; - } - return br_edr_handover_event_; -} -inline ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* FastPairLog::mutable_br_edr_handover_event() { - ::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* _msg = _internal_mutable_br_edr_handover_event(); - // @@protoc_insertion_point(field_mutable:nearby.proto.fastpair.FastPairLog.br_edr_handover_event) - return _msg; -} -inline void FastPairLog::set_allocated_br_edr_handover_event(::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent* br_edr_handover_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete br_edr_handover_event_; - } - if (br_edr_handover_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::proto::fastpair::FastPairLog_BrEdrHandoverEvent>::GetOwningArena(br_edr_handover_event); - if (message_arena != submessage_arena) { - br_edr_handover_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, br_edr_handover_event, submessage_arena); - } - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - br_edr_handover_event_ = br_edr_handover_event; - // @@protoc_insertion_point(field_set_allocated:nearby.proto.fastpair.FastPairLog.br_edr_handover_event) -} - -// optional .nearby.proto.fastpair.FastPairLog.CreateBondEvent bond_event = 6; -inline bool FastPairLog::_internal_has_bond_event() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - PROTOBUF_ASSUME(!value || bond_event_ != nullptr); - return value; -} -inline bool FastPairLog::has_bond_event() const { - return _internal_has_bond_event(); -} -inline void FastPairLog::clear_bond_event() { - if (bond_event_ != nullptr) bond_event_->Clear(); - _has_bits_[0] &= ~0x00000004u; -} -inline const ::nearby::proto::fastpair::FastPairLog_CreateBondEvent& FastPairLog::_internal_bond_event() const { - const ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* p = bond_event_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::proto::fastpair::_FastPairLog_CreateBondEvent_default_instance_); -} -inline const ::nearby::proto::fastpair::FastPairLog_CreateBondEvent& FastPairLog::bond_event() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.bond_event) - return _internal_bond_event(); -} -inline void FastPairLog::unsafe_arena_set_allocated_bond_event( - ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* bond_event) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(bond_event_); - } - bond_event_ = bond_event; - if (bond_event) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.proto.fastpair.FastPairLog.bond_event) -} -inline ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* FastPairLog::release_bond_event() { - _has_bits_[0] &= ~0x00000004u; - ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* temp = bond_event_; - bond_event_ = 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 ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* FastPairLog::unsafe_arena_release_bond_event() { - // @@protoc_insertion_point(field_release:nearby.proto.fastpair.FastPairLog.bond_event) - _has_bits_[0] &= ~0x00000004u; - ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* temp = bond_event_; - bond_event_ = nullptr; - return temp; -} -inline ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* FastPairLog::_internal_mutable_bond_event() { - _has_bits_[0] |= 0x00000004u; - if (bond_event_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_CreateBondEvent>(GetArenaForAllocation()); - bond_event_ = p; - } - return bond_event_; -} -inline ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* FastPairLog::mutable_bond_event() { - ::nearby::proto::fastpair::FastPairLog_CreateBondEvent* _msg = _internal_mutable_bond_event(); - // @@protoc_insertion_point(field_mutable:nearby.proto.fastpair.FastPairLog.bond_event) - return _msg; -} -inline void FastPairLog::set_allocated_bond_event(::nearby::proto::fastpair::FastPairLog_CreateBondEvent* bond_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete bond_event_; - } - if (bond_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::proto::fastpair::FastPairLog_CreateBondEvent>::GetOwningArena(bond_event); - if (message_arena != submessage_arena) { - bond_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, bond_event, submessage_arena); - } - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - bond_event_ = bond_event; - // @@protoc_insertion_point(field_set_allocated:nearby.proto.fastpair.FastPairLog.bond_event) -} - -// optional .nearby.proto.fastpair.FastPairLog.ConnectEvent connect_event = 7; -inline bool FastPairLog::_internal_has_connect_event() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - PROTOBUF_ASSUME(!value || connect_event_ != nullptr); - return value; -} -inline bool FastPairLog::has_connect_event() const { - return _internal_has_connect_event(); -} -inline void FastPairLog::clear_connect_event() { - if (connect_event_ != nullptr) connect_event_->Clear(); - _has_bits_[0] &= ~0x00000008u; -} -inline const ::nearby::proto::fastpair::FastPairLog_ConnectEvent& FastPairLog::_internal_connect_event() const { - const ::nearby::proto::fastpair::FastPairLog_ConnectEvent* p = connect_event_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::proto::fastpair::_FastPairLog_ConnectEvent_default_instance_); -} -inline const ::nearby::proto::fastpair::FastPairLog_ConnectEvent& FastPairLog::connect_event() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.connect_event) - return _internal_connect_event(); -} -inline void FastPairLog::unsafe_arena_set_allocated_connect_event( - ::nearby::proto::fastpair::FastPairLog_ConnectEvent* connect_event) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(connect_event_); - } - connect_event_ = connect_event; - if (connect_event) { - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.proto.fastpair.FastPairLog.connect_event) -} -inline ::nearby::proto::fastpair::FastPairLog_ConnectEvent* FastPairLog::release_connect_event() { - _has_bits_[0] &= ~0x00000008u; - ::nearby::proto::fastpair::FastPairLog_ConnectEvent* temp = connect_event_; - connect_event_ = 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 ::nearby::proto::fastpair::FastPairLog_ConnectEvent* FastPairLog::unsafe_arena_release_connect_event() { - // @@protoc_insertion_point(field_release:nearby.proto.fastpair.FastPairLog.connect_event) - _has_bits_[0] &= ~0x00000008u; - ::nearby::proto::fastpair::FastPairLog_ConnectEvent* temp = connect_event_; - connect_event_ = nullptr; - return temp; -} -inline ::nearby::proto::fastpair::FastPairLog_ConnectEvent* FastPairLog::_internal_mutable_connect_event() { - _has_bits_[0] |= 0x00000008u; - if (connect_event_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_ConnectEvent>(GetArenaForAllocation()); - connect_event_ = p; - } - return connect_event_; -} -inline ::nearby::proto::fastpair::FastPairLog_ConnectEvent* FastPairLog::mutable_connect_event() { - ::nearby::proto::fastpair::FastPairLog_ConnectEvent* _msg = _internal_mutable_connect_event(); - // @@protoc_insertion_point(field_mutable:nearby.proto.fastpair.FastPairLog.connect_event) - return _msg; -} -inline void FastPairLog::set_allocated_connect_event(::nearby::proto::fastpair::FastPairLog_ConnectEvent* connect_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete connect_event_; - } - if (connect_event) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::proto::fastpair::FastPairLog_ConnectEvent>::GetOwningArena(connect_event); - if (message_arena != submessage_arena) { - connect_event = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connect_event, submessage_arena); - } - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - connect_event_ = connect_event; - // @@protoc_insertion_point(field_set_allocated:nearby.proto.fastpair.FastPairLog.connect_event) -} - -// optional int64 hashed_salted_device_address = 8; -inline bool FastPairLog::_internal_has_hashed_salted_device_address() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; - return value; -} -inline bool FastPairLog::has_hashed_salted_device_address() const { - return _internal_has_hashed_salted_device_address(); -} -inline void FastPairLog::clear_hashed_salted_device_address() { - hashed_salted_device_address_ = int64_t{0}; - _has_bits_[0] &= ~0x00000800u; -} -inline int64_t FastPairLog::_internal_hashed_salted_device_address() const { - return hashed_salted_device_address_; -} -inline int64_t FastPairLog::hashed_salted_device_address() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.hashed_salted_device_address) - return _internal_hashed_salted_device_address(); -} -inline void FastPairLog::_internal_set_hashed_salted_device_address(int64_t value) { - _has_bits_[0] |= 0x00000800u; - hashed_salted_device_address_ = value; -} -inline void FastPairLog::set_hashed_salted_device_address(int64_t value) { - _internal_set_hashed_salted_device_address(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.hashed_salted_device_address) -} - -// optional int64 duration = 9; -inline bool FastPairLog::_internal_has_duration() const { - bool value = (_has_bits_[0] & 0x00001000u) != 0; - return value; -} -inline bool FastPairLog::has_duration() const { - return _internal_has_duration(); -} -inline void FastPairLog::clear_duration() { - duration_ = int64_t{0}; - _has_bits_[0] &= ~0x00001000u; -} -inline int64_t FastPairLog::_internal_duration() const { - return duration_; -} -inline int64_t FastPairLog::duration() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.duration) - return _internal_duration(); -} -inline void FastPairLog::_internal_set_duration(int64_t value) { - _has_bits_[0] |= 0x00001000u; - duration_ = value; -} -inline void FastPairLog::set_duration(int64_t value) { - _internal_set_duration(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.duration) -} - -// optional .nearby.proto.fastpair.FastPairLog.ProviderInfo provider_info = 10; -inline bool FastPairLog::_internal_has_provider_info() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - PROTOBUF_ASSUME(!value || provider_info_ != nullptr); - return value; -} -inline bool FastPairLog::has_provider_info() const { - return _internal_has_provider_info(); -} -inline void FastPairLog::clear_provider_info() { - if (provider_info_ != nullptr) provider_info_->Clear(); - _has_bits_[0] &= ~0x00000010u; -} -inline const ::nearby::proto::fastpair::FastPairLog_ProviderInfo& FastPairLog::_internal_provider_info() const { - const ::nearby::proto::fastpair::FastPairLog_ProviderInfo* p = provider_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::proto::fastpair::_FastPairLog_ProviderInfo_default_instance_); -} -inline const ::nearby::proto::fastpair::FastPairLog_ProviderInfo& FastPairLog::provider_info() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.provider_info) - return _internal_provider_info(); -} -inline void FastPairLog::unsafe_arena_set_allocated_provider_info( - ::nearby::proto::fastpair::FastPairLog_ProviderInfo* provider_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(provider_info_); - } - provider_info_ = provider_info; - if (provider_info) { - _has_bits_[0] |= 0x00000010u; - } else { - _has_bits_[0] &= ~0x00000010u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.proto.fastpair.FastPairLog.provider_info) -} -inline ::nearby::proto::fastpair::FastPairLog_ProviderInfo* FastPairLog::release_provider_info() { - _has_bits_[0] &= ~0x00000010u; - ::nearby::proto::fastpair::FastPairLog_ProviderInfo* temp = provider_info_; - provider_info_ = 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 ::nearby::proto::fastpair::FastPairLog_ProviderInfo* FastPairLog::unsafe_arena_release_provider_info() { - // @@protoc_insertion_point(field_release:nearby.proto.fastpair.FastPairLog.provider_info) - _has_bits_[0] &= ~0x00000010u; - ::nearby::proto::fastpair::FastPairLog_ProviderInfo* temp = provider_info_; - provider_info_ = nullptr; - return temp; -} -inline ::nearby::proto::fastpair::FastPairLog_ProviderInfo* FastPairLog::_internal_mutable_provider_info() { - _has_bits_[0] |= 0x00000010u; - if (provider_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_ProviderInfo>(GetArenaForAllocation()); - provider_info_ = p; - } - return provider_info_; -} -inline ::nearby::proto::fastpair::FastPairLog_ProviderInfo* FastPairLog::mutable_provider_info() { - ::nearby::proto::fastpair::FastPairLog_ProviderInfo* _msg = _internal_mutable_provider_info(); - // @@protoc_insertion_point(field_mutable:nearby.proto.fastpair.FastPairLog.provider_info) - return _msg; -} -inline void FastPairLog::set_allocated_provider_info(::nearby::proto::fastpair::FastPairLog_ProviderInfo* provider_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete provider_info_; - } - if (provider_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::proto::fastpair::FastPairLog_ProviderInfo>::GetOwningArena(provider_info); - if (message_arena != submessage_arena) { - provider_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, provider_info, submessage_arena); - } - _has_bits_[0] |= 0x00000010u; - } else { - _has_bits_[0] &= ~0x00000010u; - } - provider_info_ = provider_info; - // @@protoc_insertion_point(field_set_allocated:nearby.proto.fastpair.FastPairLog.provider_info) -} - -// optional .nearby.proto.fastpair.FastPairLog.FootprintsInfo footprints_info = 11; -inline bool FastPairLog::_internal_has_footprints_info() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - PROTOBUF_ASSUME(!value || footprints_info_ != nullptr); - return value; -} -inline bool FastPairLog::has_footprints_info() const { - return _internal_has_footprints_info(); -} -inline void FastPairLog::clear_footprints_info() { - if (footprints_info_ != nullptr) footprints_info_->Clear(); - _has_bits_[0] &= ~0x00000020u; -} -inline const ::nearby::proto::fastpair::FastPairLog_FootprintsInfo& FastPairLog::_internal_footprints_info() const { - const ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* p = footprints_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::proto::fastpair::_FastPairLog_FootprintsInfo_default_instance_); -} -inline const ::nearby::proto::fastpair::FastPairLog_FootprintsInfo& FastPairLog::footprints_info() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.footprints_info) - return _internal_footprints_info(); -} -inline void FastPairLog::unsafe_arena_set_allocated_footprints_info( - ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* footprints_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(footprints_info_); - } - footprints_info_ = footprints_info; - if (footprints_info) { - _has_bits_[0] |= 0x00000020u; - } else { - _has_bits_[0] &= ~0x00000020u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.proto.fastpair.FastPairLog.footprints_info) -} -inline ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* FastPairLog::release_footprints_info() { - _has_bits_[0] &= ~0x00000020u; - ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* temp = footprints_info_; - footprints_info_ = 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 ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* FastPairLog::unsafe_arena_release_footprints_info() { - // @@protoc_insertion_point(field_release:nearby.proto.fastpair.FastPairLog.footprints_info) - _has_bits_[0] &= ~0x00000020u; - ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* temp = footprints_info_; - footprints_info_ = nullptr; - return temp; -} -inline ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* FastPairLog::_internal_mutable_footprints_info() { - _has_bits_[0] |= 0x00000020u; - if (footprints_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_FootprintsInfo>(GetArenaForAllocation()); - footprints_info_ = p; - } - return footprints_info_; -} -inline ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* FastPairLog::mutable_footprints_info() { - ::nearby::proto::fastpair::FastPairLog_FootprintsInfo* _msg = _internal_mutable_footprints_info(); - // @@protoc_insertion_point(field_mutable:nearby.proto.fastpair.FastPairLog.footprints_info) - return _msg; -} -inline void FastPairLog::set_allocated_footprints_info(::nearby::proto::fastpair::FastPairLog_FootprintsInfo* footprints_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete footprints_info_; - } - if (footprints_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::proto::fastpair::FastPairLog_FootprintsInfo>::GetOwningArena(footprints_info); - if (message_arena != submessage_arena) { - footprints_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, footprints_info, submessage_arena); - } - _has_bits_[0] |= 0x00000020u; - } else { - _has_bits_[0] &= ~0x00000020u; - } - footprints_info_ = footprints_info; - // @@protoc_insertion_point(field_set_allocated:nearby.proto.fastpair.FastPairLog.footprints_info) -} - -// optional .nearby.proto.fastpair.DeviceType device_type = 12; -inline bool FastPairLog::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; - return value; -} -inline bool FastPairLog::has_device_type() const { - return _internal_has_device_type(); -} -inline void FastPairLog::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000400u; -} -inline ::nearby::proto::fastpair::DeviceType FastPairLog::_internal_device_type() const { - return static_cast< ::nearby::proto::fastpair::DeviceType >(device_type_); -} -inline ::nearby::proto::fastpair::DeviceType FastPairLog::device_type() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.device_type) - return _internal_device_type(); -} -inline void FastPairLog::_internal_set_device_type(::nearby::proto::fastpair::DeviceType value) { - assert(::nearby::proto::fastpair::DeviceType_IsValid(value)); - _has_bits_[0] |= 0x00000400u; - device_type_ = value; -} -inline void FastPairLog::set_device_type(::nearby::proto::fastpair::DeviceType value) { - _internal_set_device_type(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.device_type) -} - -// optional .nearby.proto.fastpair.OsType os_type = 13; -inline bool FastPairLog::_internal_has_os_type() const { - bool value = (_has_bits_[0] & 0x00002000u) != 0; - return value; -} -inline bool FastPairLog::has_os_type() const { - return _internal_has_os_type(); -} -inline void FastPairLog::clear_os_type() { - os_type_ = 0; - _has_bits_[0] &= ~0x00002000u; -} -inline ::nearby::proto::fastpair::OsType FastPairLog::_internal_os_type() const { - return static_cast< ::nearby::proto::fastpair::OsType >(os_type_); -} -inline ::nearby::proto::fastpair::OsType FastPairLog::os_type() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.os_type) - return _internal_os_type(); -} -inline void FastPairLog::_internal_set_os_type(::nearby::proto::fastpair::OsType value) { - assert(::nearby::proto::fastpair::OsType_IsValid(value)); - _has_bits_[0] |= 0x00002000u; - os_type_ = value; -} -inline void FastPairLog::set_os_type(::nearby::proto::fastpair::OsType value) { - _internal_set_os_type(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.os_type) -} - -// optional int32 active_wifi_frequency = 14; -inline bool FastPairLog::_internal_has_active_wifi_frequency() const { - bool value = (_has_bits_[0] & 0x00004000u) != 0; - return value; -} -inline bool FastPairLog::has_active_wifi_frequency() const { - return _internal_has_active_wifi_frequency(); -} -inline void FastPairLog::clear_active_wifi_frequency() { - active_wifi_frequency_ = 0; - _has_bits_[0] &= ~0x00004000u; -} -inline int32_t FastPairLog::_internal_active_wifi_frequency() const { - return active_wifi_frequency_; -} -inline int32_t FastPairLog::active_wifi_frequency() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.active_wifi_frequency) - return _internal_active_wifi_frequency(); -} -inline void FastPairLog::_internal_set_active_wifi_frequency(int32_t value) { - _has_bits_[0] |= 0x00004000u; - active_wifi_frequency_ = value; -} -inline void FastPairLog::set_active_wifi_frequency(int32_t value) { - _internal_set_active_wifi_frequency(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.active_wifi_frequency) -} - -// optional int32 number_connected_peripherals = 15; -inline bool FastPairLog::_internal_has_number_connected_peripherals() const { - bool value = (_has_bits_[0] & 0x00008000u) != 0; - return value; -} -inline bool FastPairLog::has_number_connected_peripherals() const { - return _internal_has_number_connected_peripherals(); -} -inline void FastPairLog::clear_number_connected_peripherals() { - number_connected_peripherals_ = 0; - _has_bits_[0] &= ~0x00008000u; -} -inline int32_t FastPairLog::_internal_number_connected_peripherals() const { - return number_connected_peripherals_; -} -inline int32_t FastPairLog::number_connected_peripherals() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.number_connected_peripherals) - return _internal_number_connected_peripherals(); -} -inline void FastPairLog::_internal_set_number_connected_peripherals(int32_t value) { - _has_bits_[0] |= 0x00008000u; - number_connected_peripherals_ = value; -} -inline void FastPairLog::set_number_connected_peripherals(int32_t value) { - _internal_set_number_connected_peripherals(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.number_connected_peripherals) -} - -// optional bool is_scanned_by_offload_scanner = 16; -inline bool FastPairLog::_internal_has_is_scanned_by_offload_scanner() const { - bool value = (_has_bits_[0] & 0x00020000u) != 0; - return value; -} -inline bool FastPairLog::has_is_scanned_by_offload_scanner() const { - return _internal_has_is_scanned_by_offload_scanner(); -} -inline void FastPairLog::clear_is_scanned_by_offload_scanner() { - is_scanned_by_offload_scanner_ = false; - _has_bits_[0] &= ~0x00020000u; -} -inline bool FastPairLog::_internal_is_scanned_by_offload_scanner() const { - return is_scanned_by_offload_scanner_; -} -inline bool FastPairLog::is_scanned_by_offload_scanner() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.is_scanned_by_offload_scanner) - return _internal_is_scanned_by_offload_scanner(); -} -inline void FastPairLog::_internal_set_is_scanned_by_offload_scanner(bool value) { - _has_bits_[0] |= 0x00020000u; - is_scanned_by_offload_scanner_ = value; -} -inline void FastPairLog::set_is_scanned_by_offload_scanner(bool value) { - _internal_set_is_scanned_by_offload_scanner(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.is_scanned_by_offload_scanner) -} - -// optional .nearby.proto.fastpair.FastPairLog.KeyBasedPairingInfo key_based_pairing_info = 17; -inline bool FastPairLog::_internal_has_key_based_pairing_info() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - PROTOBUF_ASSUME(!value || key_based_pairing_info_ != nullptr); - return value; -} -inline bool FastPairLog::has_key_based_pairing_info() const { - return _internal_has_key_based_pairing_info(); -} -inline void FastPairLog::clear_key_based_pairing_info() { - if (key_based_pairing_info_ != nullptr) key_based_pairing_info_->Clear(); - _has_bits_[0] &= ~0x00000040u; -} -inline const ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo& FastPairLog::_internal_key_based_pairing_info() const { - const ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* p = key_based_pairing_info_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::proto::fastpair::_FastPairLog_KeyBasedPairingInfo_default_instance_); -} -inline const ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo& FastPairLog::key_based_pairing_info() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.key_based_pairing_info) - return _internal_key_based_pairing_info(); -} -inline void FastPairLog::unsafe_arena_set_allocated_key_based_pairing_info( - ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* key_based_pairing_info) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_based_pairing_info_); - } - key_based_pairing_info_ = key_based_pairing_info; - if (key_based_pairing_info) { - _has_bits_[0] |= 0x00000040u; - } else { - _has_bits_[0] &= ~0x00000040u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.proto.fastpair.FastPairLog.key_based_pairing_info) -} -inline ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* FastPairLog::release_key_based_pairing_info() { - _has_bits_[0] &= ~0x00000040u; - ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* temp = key_based_pairing_info_; - key_based_pairing_info_ = 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 ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* FastPairLog::unsafe_arena_release_key_based_pairing_info() { - // @@protoc_insertion_point(field_release:nearby.proto.fastpair.FastPairLog.key_based_pairing_info) - _has_bits_[0] &= ~0x00000040u; - ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* temp = key_based_pairing_info_; - key_based_pairing_info_ = nullptr; - return temp; -} -inline ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* FastPairLog::_internal_mutable_key_based_pairing_info() { - _has_bits_[0] |= 0x00000040u; - if (key_based_pairing_info_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo>(GetArenaForAllocation()); - key_based_pairing_info_ = p; - } - return key_based_pairing_info_; -} -inline ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* FastPairLog::mutable_key_based_pairing_info() { - ::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* _msg = _internal_mutable_key_based_pairing_info(); - // @@protoc_insertion_point(field_mutable:nearby.proto.fastpair.FastPairLog.key_based_pairing_info) - return _msg; -} -inline void FastPairLog::set_allocated_key_based_pairing_info(::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo* key_based_pairing_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete key_based_pairing_info_; - } - if (key_based_pairing_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::proto::fastpair::FastPairLog_KeyBasedPairingInfo>::GetOwningArena(key_based_pairing_info); - if (message_arena != submessage_arena) { - key_based_pairing_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, key_based_pairing_info, submessage_arena); - } - _has_bits_[0] |= 0x00000040u; - } else { - _has_bits_[0] &= ~0x00000040u; - } - key_based_pairing_info_ = key_based_pairing_info; - // @@protoc_insertion_point(field_set_allocated:nearby.proto.fastpair.FastPairLog.key_based_pairing_info) -} - -// optional uint32 bonding_transport = 18; -inline bool FastPairLog::_internal_has_bonding_transport() const { - bool value = (_has_bits_[0] & 0x00010000u) != 0; - return value; -} -inline bool FastPairLog::has_bonding_transport() const { - return _internal_has_bonding_transport(); -} -inline void FastPairLog::clear_bonding_transport() { - bonding_transport_ = 0u; - _has_bits_[0] &= ~0x00010000u; -} -inline uint32_t FastPairLog::_internal_bonding_transport() const { - return bonding_transport_; -} -inline uint32_t FastPairLog::bonding_transport() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.bonding_transport) - return _internal_bonding_transport(); -} -inline void FastPairLog::_internal_set_bonding_transport(uint32_t value) { - _has_bits_[0] |= 0x00010000u; - bonding_transport_ = value; -} -inline void FastPairLog::set_bonding_transport(uint32_t value) { - _internal_set_bonding_transport(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.bonding_transport) -} - -// optional bool is_first_day_new_user = 19; -inline bool FastPairLog::_internal_has_is_first_day_new_user() const { - bool value = (_has_bits_[0] & 0x00040000u) != 0; - return value; -} -inline bool FastPairLog::has_is_first_day_new_user() const { - return _internal_has_is_first_day_new_user(); -} -inline void FastPairLog::clear_is_first_day_new_user() { - is_first_day_new_user_ = false; - _has_bits_[0] &= ~0x00040000u; -} -inline bool FastPairLog::_internal_is_first_day_new_user() const { - return is_first_day_new_user_; -} -inline bool FastPairLog::is_first_day_new_user() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.is_first_day_new_user) - return _internal_is_first_day_new_user(); -} -inline void FastPairLog::_internal_set_is_first_day_new_user(bool value) { - _has_bits_[0] |= 0x00040000u; - is_first_day_new_user_ = value; -} -inline void FastPairLog::set_is_first_day_new_user(bool value) { - _internal_set_is_first_day_new_user(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.is_first_day_new_user) -} - -// optional bool is_seven_days_new_user = 20; -inline bool FastPairLog::_internal_has_is_seven_days_new_user() const { - bool value = (_has_bits_[0] & 0x00080000u) != 0; - return value; -} -inline bool FastPairLog::has_is_seven_days_new_user() const { - return _internal_has_is_seven_days_new_user(); -} -inline void FastPairLog::clear_is_seven_days_new_user() { - is_seven_days_new_user_ = false; - _has_bits_[0] &= ~0x00080000u; -} -inline bool FastPairLog::_internal_is_seven_days_new_user() const { - return is_seven_days_new_user_; -} -inline bool FastPairLog::is_seven_days_new_user() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.is_seven_days_new_user) - return _internal_is_seven_days_new_user(); -} -inline void FastPairLog::_internal_set_is_seven_days_new_user(bool value) { - _has_bits_[0] |= 0x00080000u; - is_seven_days_new_user_ = value; -} -inline void FastPairLog::set_is_seven_days_new_user(bool value) { - _internal_set_is_seven_days_new_user(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.is_seven_days_new_user) -} - -// optional uint32 bonded_device_count = 21; -inline bool FastPairLog::_internal_has_bonded_device_count() const { - bool value = (_has_bits_[0] & 0x00200000u) != 0; - return value; -} -inline bool FastPairLog::has_bonded_device_count() const { - return _internal_has_bonded_device_count(); -} -inline void FastPairLog::clear_bonded_device_count() { - bonded_device_count_ = 0u; - _has_bits_[0] &= ~0x00200000u; -} -inline uint32_t FastPairLog::_internal_bonded_device_count() const { - return bonded_device_count_; -} -inline uint32_t FastPairLog::bonded_device_count() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.bonded_device_count) - return _internal_bonded_device_count(); -} -inline void FastPairLog::_internal_set_bonded_device_count(uint32_t value) { - _has_bits_[0] |= 0x00200000u; - bonded_device_count_ = value; -} -inline void FastPairLog::set_bonded_device_count(uint32_t value) { - _internal_set_bonded_device_count(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.bonded_device_count) -} - -// optional int32 sass_connection_state = 22; -inline bool FastPairLog::_internal_has_sass_connection_state() const { - bool value = (_has_bits_[0] & 0x00800000u) != 0; - return value; -} -inline bool FastPairLog::has_sass_connection_state() const { - return _internal_has_sass_connection_state(); -} -inline void FastPairLog::clear_sass_connection_state() { - sass_connection_state_ = 0; - _has_bits_[0] &= ~0x00800000u; -} -inline int32_t FastPairLog::_internal_sass_connection_state() const { - return sass_connection_state_; -} -inline int32_t FastPairLog::sass_connection_state() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.sass_connection_state) - return _internal_sass_connection_state(); -} -inline void FastPairLog::_internal_set_sass_connection_state(int32_t value) { - _has_bits_[0] |= 0x00800000u; - sass_connection_state_ = value; -} -inline void FastPairLog::set_sass_connection_state(int32_t value) { - _internal_set_sass_connection_state(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.sass_connection_state) -} - -// optional bool is_pair_triggered_by_settings = 23; -inline bool FastPairLog::_internal_has_is_pair_triggered_by_settings() const { - bool value = (_has_bits_[0] & 0x00100000u) != 0; - return value; -} -inline bool FastPairLog::has_is_pair_triggered_by_settings() const { - return _internal_has_is_pair_triggered_by_settings(); -} -inline void FastPairLog::clear_is_pair_triggered_by_settings() { - is_pair_triggered_by_settings_ = false; - _has_bits_[0] &= ~0x00100000u; -} -inline bool FastPairLog::_internal_is_pair_triggered_by_settings() const { - return is_pair_triggered_by_settings_; -} -inline bool FastPairLog::is_pair_triggered_by_settings() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.is_pair_triggered_by_settings) - return _internal_is_pair_triggered_by_settings(); -} -inline void FastPairLog::_internal_set_is_pair_triggered_by_settings(bool value) { - _has_bits_[0] |= 0x00100000u; - is_pair_triggered_by_settings_ = value; -} -inline void FastPairLog::set_is_pair_triggered_by_settings(bool value) { - _internal_set_is_pair_triggered_by_settings(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.is_pair_triggered_by_settings) -} - -// optional int64 nearby_mainline_tethering_version = 24; -inline bool FastPairLog::_internal_has_nearby_mainline_tethering_version() const { - bool value = (_has_bits_[0] & 0x00400000u) != 0; - return value; -} -inline bool FastPairLog::has_nearby_mainline_tethering_version() const { - return _internal_has_nearby_mainline_tethering_version(); -} -inline void FastPairLog::clear_nearby_mainline_tethering_version() { - nearby_mainline_tethering_version_ = int64_t{0}; - _has_bits_[0] &= ~0x00400000u; -} -inline int64_t FastPairLog::_internal_nearby_mainline_tethering_version() const { - return nearby_mainline_tethering_version_; -} -inline int64_t FastPairLog::nearby_mainline_tethering_version() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.nearby_mainline_tethering_version) - return _internal_nearby_mainline_tethering_version(); -} -inline void FastPairLog::_internal_set_nearby_mainline_tethering_version(int64_t value) { - _has_bits_[0] |= 0x00400000u; - nearby_mainline_tethering_version_ = value; -} -inline void FastPairLog::set_nearby_mainline_tethering_version(int64_t value) { - _internal_set_nearby_mainline_tethering_version(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.nearby_mainline_tethering_version) -} - -// optional int64 nearby_nano_app_version = 25; -inline bool FastPairLog::_internal_has_nearby_nano_app_version() const { - bool value = (_has_bits_[0] & 0x02000000u) != 0; - return value; -} -inline bool FastPairLog::has_nearby_nano_app_version() const { - return _internal_has_nearby_nano_app_version(); -} -inline void FastPairLog::clear_nearby_nano_app_version() { - nearby_nano_app_version_ = int64_t{0}; - _has_bits_[0] &= ~0x02000000u; -} -inline int64_t FastPairLog::_internal_nearby_nano_app_version() const { - return nearby_nano_app_version_; -} -inline int64_t FastPairLog::nearby_nano_app_version() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.nearby_nano_app_version) - return _internal_nearby_nano_app_version(); -} -inline void FastPairLog::_internal_set_nearby_nano_app_version(int64_t value) { - _has_bits_[0] |= 0x02000000u; - nearby_nano_app_version_ = value; -} -inline void FastPairLog::set_nearby_nano_app_version(int64_t value) { - _internal_set_nearby_nano_app_version(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.nearby_nano_app_version) -} - -// optional bool is_in_paired_history = 26; -inline bool FastPairLog::_internal_has_is_in_paired_history() const { - bool value = (_has_bits_[0] & 0x01000000u) != 0; - return value; -} -inline bool FastPairLog::has_is_in_paired_history() const { - return _internal_has_is_in_paired_history(); -} -inline void FastPairLog::clear_is_in_paired_history() { - is_in_paired_history_ = false; - _has_bits_[0] &= ~0x01000000u; -} -inline bool FastPairLog::_internal_is_in_paired_history() const { - return is_in_paired_history_; -} -inline bool FastPairLog::is_in_paired_history() const { - // @@protoc_insertion_point(field_get:nearby.proto.fastpair.FastPairLog.is_in_paired_history) - return _internal_is_in_paired_history(); -} -inline void FastPairLog::_internal_set_is_in_paired_history(bool value) { - _has_bits_[0] |= 0x01000000u; - is_in_paired_history_ = value; -} -inline void FastPairLog::set_is_in_paired_history(bool value) { - _internal_set_is_in_paired_history(value); - // @@protoc_insertion_point(field_set:nearby.proto.fastpair.FastPairLog.is_in_paired_history) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace fastpair -} // namespace proto -} // namespace nearby - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2ffast_5fpair_5flog_2eproto diff --git a/compiled_proto/presence/proto/presence_frame.pb.cc b/compiled_proto/presence/proto/presence_frame.pb.cc deleted file mode 100644 index f1340dee..00000000 --- a/compiled_proto/presence/proto/presence_frame.pb.cc +++ /dev/null @@ -1,4258 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: presence/proto/presence_frame.proto - -#include "presence/proto/presence_frame.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG -namespace nearby { -namespace presence { -constexpr PresenceFrame::PresenceFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : v1_frame_(nullptr){} -struct PresenceFrameDefaultTypeInternal { - constexpr PresenceFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PresenceFrameDefaultTypeInternal() {} - union { - PresenceFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PresenceFrameDefaultTypeInternal _PresenceFrame_default_instance_; -constexpr V1Frame::V1Frame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : _oneof_case_{}{} -struct V1FrameDefaultTypeInternal { - constexpr V1FrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~V1FrameDefaultTypeInternal() {} - union { - V1Frame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT V1FrameDefaultTypeInternal _V1Frame_default_instance_; -constexpr DeviceIdentityFrame::DeviceIdentityFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : action_() - , _action_cached_byte_size_(0) - , device_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , bluetooth_mac_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_image_url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , model_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_model_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_type_(0){} -struct DeviceIdentityFrameDefaultTypeInternal { - constexpr DeviceIdentityFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~DeviceIdentityFrameDefaultTypeInternal() {} - union { - DeviceIdentityFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeviceIdentityFrameDefaultTypeInternal _DeviceIdentityFrame_default_instance_; -constexpr ConnectionInitFrame::ConnectionInitFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : actions_() - , _actions_cached_byte_size_(0) - , identity_type_(0) - , uwb_enable_(false) - , device_unique_id_(int64_t{0}){} -struct ConnectionInitFrameDefaultTypeInternal { - constexpr ConnectionInitFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ConnectionInitFrameDefaultTypeInternal() {} - union { - ConnectionInitFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionInitFrameDefaultTypeInternal _ConnectionInitFrame_default_instance_; -constexpr UwbControleeCapabilities::UwbControleeCapabilities( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : supported_config_ids_() - , _supported_config_ids_cached_byte_size_(0) - , supported_channels_() - , _supported_channels_cached_byte_size_(0) - , supported_ntf_configs_() - , _supported_ntf_configs_cached_byte_size_(0) - , supported_slot_durations_() - , _supported_slot_durations_cached_byte_size_(0) - , supported_ranging_update_rates_() - , _supported_ranging_update_rates_cached_byte_size_(0) - , multi_chip_info_() - , controlee_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , sub_session_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , sub_session_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , device_unique_id_(int64_t{0}) - , min_ranging_interval_ms_(0) - , ranging_disabled_(false) - , is_elevation_supported_(false) - , is_ranging_interval_reconfigure_supported_(false) - , chip_count_(1) - , is_distance_supported_(true) - , is_azimuth_supported_(true) - , min_slot_duration_ms_(2){} -struct UwbControleeCapabilitiesDefaultTypeInternal { - constexpr UwbControleeCapabilitiesDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~UwbControleeCapabilitiesDefaultTypeInternal() {} - union { - UwbControleeCapabilities _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UwbControleeCapabilitiesDefaultTypeInternal _UwbControleeCapabilities_default_instance_; -constexpr UwbMultiChipInfo::UwbMultiChipInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : controlee_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , chip_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct UwbMultiChipInfoDefaultTypeInternal { - constexpr UwbMultiChipInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~UwbMultiChipInfoDefaultTypeInternal() {} - union { - UwbMultiChipInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UwbMultiChipInfoDefaultTypeInternal _UwbMultiChipInfo_default_instance_; -constexpr UwbConnectionInfo::UwbConnectionInfo( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : controller_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , vendor_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , static_sts_iv_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , session_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , channel_(0) - , preamble_index_(0) - , config_id_(0) - , ranging_interval_ms_(0) - , session_id_(0) - , ranging_disabled_(false){} -struct UwbConnectionInfoDefaultTypeInternal { - constexpr UwbConnectionInfoDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~UwbConnectionInfoDefaultTypeInternal() {} - union { - UwbConnectionInfo _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UwbConnectionInfoDefaultTypeInternal _UwbConnectionInfo_default_instance_; -constexpr ControlFrame::ControlFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : type_(0) -{} -struct ControlFrameDefaultTypeInternal { - constexpr ControlFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~ControlFrameDefaultTypeInternal() {} - union { - ControlFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ControlFrameDefaultTypeInternal _ControlFrame_default_instance_; -constexpr PresenceAuthenticationFrame::PresenceAuthenticationFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : private_key_signature_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , shared_credential_id_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , credential_id_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , version_(0){} -struct PresenceAuthenticationFrameDefaultTypeInternal { - constexpr PresenceAuthenticationFrameDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~PresenceAuthenticationFrameDefaultTypeInternal() {} - union { - PresenceAuthenticationFrame _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PresenceAuthenticationFrameDefaultTypeInternal _PresenceAuthenticationFrame_default_instance_; -} // namespace presence -} // namespace nearby -static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto[9]; -static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_presence_2fproto_2fpresence_5fframe_2eproto[2]; -static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_presence_2fproto_2fpresence_5fframe_2eproto = nullptr; - -const uint32_t TableStruct_presence_2fproto_2fpresence_5fframe_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::nearby::presence::PresenceFrame, _has_bits_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::PresenceFrame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::presence::PresenceFrame, v1_frame_), - 0, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::nearby::presence::V1Frame, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::nearby::presence::V1Frame, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, - PROTOBUF_FIELD_OFFSET(::nearby::presence::V1Frame, Message_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::DeviceIdentityFrame, _has_bits_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::DeviceIdentityFrame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::presence::DeviceIdentityFrame, device_name_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::DeviceIdentityFrame, bluetooth_mac_address_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::DeviceIdentityFrame, device_image_url_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::DeviceIdentityFrame, model_id_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::DeviceIdentityFrame, action_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::DeviceIdentityFrame, device_model_name_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::DeviceIdentityFrame, device_type_), - 0, - 1, - 2, - 3, - ~0u, - 4, - 5, - PROTOBUF_FIELD_OFFSET(::nearby::presence::ConnectionInitFrame, _has_bits_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::ConnectionInitFrame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::presence::ConnectionInitFrame, actions_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::ConnectionInitFrame, identity_type_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::ConnectionInitFrame, uwb_enable_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::ConnectionInitFrame, device_unique_id_), - ~0u, - 0, - 1, - 2, - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, _has_bits_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, controlee_address_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, supported_config_ids_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, supported_channels_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, min_ranging_interval_ms_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, sub_session_id_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, sub_session_key_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, ranging_disabled_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, device_unique_id_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, is_distance_supported_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, is_azimuth_supported_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, is_elevation_supported_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, min_slot_duration_ms_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, supported_ntf_configs_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, is_ranging_interval_reconfigure_supported_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, supported_slot_durations_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, supported_ranging_update_rates_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, chip_count_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbControleeCapabilities, multi_chip_info_), - 0, - ~0u, - ~0u, - 4, - 1, - 2, - 5, - 3, - 9, - 10, - 6, - 11, - ~0u, - 7, - ~0u, - ~0u, - 8, - ~0u, - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbMultiChipInfo, _has_bits_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbMultiChipInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbMultiChipInfo, controlee_address_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbMultiChipInfo, chip_id_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, _has_bits_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, controller_address_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, channel_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, preamble_index_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, config_id_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, ranging_interval_ms_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, session_id_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, vendor_id_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, static_sts_iv_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, session_key_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::UwbConnectionInfo, ranging_disabled_), - 0, - 4, - 5, - 6, - 7, - 8, - 1, - 2, - 3, - 9, - PROTOBUF_FIELD_OFFSET(::nearby::presence::ControlFrame, _has_bits_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::ControlFrame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::presence::ControlFrame, type_), - 0, - PROTOBUF_FIELD_OFFSET(::nearby::presence::PresenceAuthenticationFrame, _has_bits_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::PresenceAuthenticationFrame, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::nearby::presence::PresenceAuthenticationFrame, version_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::PresenceAuthenticationFrame, private_key_signature_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::PresenceAuthenticationFrame, shared_credential_id_hash_), - PROTOBUF_FIELD_OFFSET(::nearby::presence::PresenceAuthenticationFrame, credential_id_hash_), - 3, - 0, - 1, - 2, -}; -static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 7, -1, sizeof(::nearby::presence::PresenceFrame)}, - { 8, -1, -1, sizeof(::nearby::presence::V1Frame)}, - { 21, 34, -1, sizeof(::nearby::presence::DeviceIdentityFrame)}, - { 41, 51, -1, sizeof(::nearby::presence::ConnectionInitFrame)}, - { 55, 79, -1, sizeof(::nearby::presence::UwbControleeCapabilities)}, - { 97, 105, -1, sizeof(::nearby::presence::UwbMultiChipInfo)}, - { 107, 123, -1, sizeof(::nearby::presence::UwbConnectionInfo)}, - { 133, 140, -1, sizeof(::nearby::presence::ControlFrame)}, - { 141, 151, -1, sizeof(::nearby::presence::PresenceAuthenticationFrame)}, -}; - -static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { - reinterpret_cast(&::nearby::presence::_PresenceFrame_default_instance_), - reinterpret_cast(&::nearby::presence::_V1Frame_default_instance_), - reinterpret_cast(&::nearby::presence::_DeviceIdentityFrame_default_instance_), - reinterpret_cast(&::nearby::presence::_ConnectionInitFrame_default_instance_), - reinterpret_cast(&::nearby::presence::_UwbControleeCapabilities_default_instance_), - reinterpret_cast(&::nearby::presence::_UwbMultiChipInfo_default_instance_), - reinterpret_cast(&::nearby::presence::_UwbConnectionInfo_default_instance_), - reinterpret_cast(&::nearby::presence::_ControlFrame_default_instance_), - reinterpret_cast(&::nearby::presence::_PresenceAuthenticationFrame_default_instance_), -}; - -const char descriptor_table_protodef_presence_2fproto_2fpresence_5fframe_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = - "\n#presence/proto/presence_frame.proto\022\017n" - "earby.presence\"j\n\rPresenceFrame\022*\n\010v1_fr" - "ame\030\001 \001(\0132\030.nearby.presence.V1Frame\"-\n\007V" - "ersion\022\023\n\017UNKNOWN_VERSION\020\000\022\r\n\tVERSION_1" - "\020\001\"\302\003\n\007V1Frame\0226\n\rcontrol_frame\030\001 \001(\0132\035." - "nearby.presence.ControlFrameH\000\022E\n\025device" - "_identity_frame\030\002 \001(\0132$.nearby.presence." - "DeviceIdentityFrameH\000\022E\n\025connection_init" - "_frame\030\003 \001(\0132$.nearby.presence.Connectio" - "nInitFrameH\000\022U\n uwb_controlee_capabiliti" - "es_frame\030\004 \001(\0132).nearby.presence.UwbCont" - "roleeCapabilitiesH\000\022A\n\023uwb_connection_in" - "fo\030\005 \001(\0132\".nearby.presence.UwbConnection" - "InfoH\000\022L\n\024authentication_frame\030\006 \001(\0132,.n" - "earby.presence.PresenceAuthenticationFra" - "meH\000B\t\n\007Message\"\271\001\n\023DeviceIdentityFrame\022" - "\023\n\013device_name\030\001 \001(\t\022\035\n\025bluetooth_mac_ad" - "dress\030\002 \001(\014\022\030\n\020device_image_url\030\003 \001(\t\022\020\n" - "\010model_id\030\004 \001(\t\022\022\n\006action\030\005 \003(\005B\002\020\001\022\031\n\021d" - "evice_model_name\030\006 \001(\t\022\023\n\013device_type\030\007 " - "\001(\005\"o\n\023ConnectionInitFrame\022\023\n\007actions\030\001 " - "\003(\005B\002\020\001\022\025\n\ridentity_type\030\002 \001(\005\022\022\n\nuwb_en" - "able\030\003 \001(\010\022\030\n\020device_unique_id\030\004 \001(\003\"\220\005\n" - "\030UwbControleeCapabilities\022\031\n\021controlee_a" - "ddress\030\001 \001(\014\022 \n\024supported_config_ids\030\002 \003" - "(\005B\002\020\001\022\036\n\022supported_channels\030\003 \003(\005B\002\020\001\022\037" - "\n\027min_ranging_interval_ms\030\004 \001(\005\022\026\n\016sub_s" - "ession_id\030\005 \001(\014\022\027\n\017sub_session_key\030\006 \001(\014" - "\022\030\n\020ranging_disabled\030\007 \001(\010\022\030\n\020device_uni" - "que_id\030\010 \001(\003\022#\n\025is_distance_supported\030\t " - "\001(\010:\004true\022\"\n\024is_azimuth_supported\030\n \001(\010:" - "\004true\022%\n\026is_elevation_supported\030\013 \001(\010:\005f" - "alse\022\037\n\024min_slot_duration_ms\030\014 \001(\002:\0012\022!\n" - "\025supported_ntf_configs\030\r \003(\005B\002\020\001\0228\n)is_r" - "anging_interval_reconfigure_supported\030\016 " - "\001(\010:\005false\022$\n\030supported_slot_durations\030\017" - " \003(\005B\002\020\001\022*\n\036supported_ranging_update_rat" - "es\030\020 \003(\005B\002\020\001\022\025\n\nchip_count\030\021 \001(\005:\0011\022:\n\017m" - "ulti_chip_info\030\022 \003(\0132!.nearby.presence.U" - "wbMultiChipInfo\">\n\020UwbMultiChipInfo\022\031\n\021c" - "ontrolee_address\030\001 \001(\014\022\017\n\007chip_id\030\002 \001(\t\"" - "\365\001\n\021UwbConnectionInfo\022\032\n\022controller_addr" - "ess\030\001 \001(\014\022\017\n\007channel\030\002 \001(\005\022\026\n\016preamble_i" - "ndex\030\003 \001(\005\022\021\n\tconfig_id\030\004 \001(\005\022\033\n\023ranging" - "_interval_ms\030\005 \001(\005\022\022\n\nsession_id\030\006 \001(\005\022\021" - "\n\tvendor_id\030\007 \001(\014\022\025\n\rstatic_sts_iv\030\010 \001(\014" - "\022\023\n\013session_key\030\t \001(\014\022\030\n\020ranging_disable" - "d\030\n \001(\010\"\210\001\n\014ControlFrame\0227\n\004type\030\001 \001(\0162)" - ".nearby.presence.ControlFrame.ControlTyp" - "e\"\?\n\013ControlType\022\020\n\014UNKNOWN_TYPE\020\000\022\016\n\nKE" - "EP_ALIVE\020\001\022\016\n\nDISCONNECT\020\002\"\220\001\n\033PresenceA" - "uthenticationFrame\022\017\n\007version\030\001 \001(\005\022\035\n\025p" - "rivate_key_signature\030\002 \001(\014\022!\n\031shared_cre" - "dential_id_hash\030\003 \001(\014\022\036\n\022credential_id_h" - "ash\030\004 \001(\014B\002\030\001B\?\n&com.google.android.gms." - "nearby.presenceB\025PresenceFrameProtocol" - ; -static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once; -const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto = { - false, false, 2238, descriptor_table_protodef_presence_2fproto_2fpresence_5fframe_2eproto, "presence/proto/presence_frame.proto", - &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once, nullptr, 0, 9, - schemas, file_default_instances, TableStruct_presence_2fproto_2fpresence_5fframe_2eproto::offsets, - file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto, file_level_enum_descriptors_presence_2fproto_2fpresence_5fframe_2eproto, file_level_service_descriptors_presence_2fproto_2fpresence_5fframe_2eproto, -}; -PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_getter() { - return &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto; -} - -// Force running AddDescriptors() at dynamic initialization time. -PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_presence_2fproto_2fpresence_5fframe_2eproto(&descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto); -namespace nearby { -namespace presence { -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PresenceFrame_Version_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto); - return file_level_enum_descriptors_presence_2fproto_2fpresence_5fframe_2eproto[0]; -} -bool PresenceFrame_Version_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr PresenceFrame_Version PresenceFrame::UNKNOWN_VERSION; -constexpr PresenceFrame_Version PresenceFrame::VERSION_1; -constexpr PresenceFrame_Version PresenceFrame::Version_MIN; -constexpr PresenceFrame_Version PresenceFrame::Version_MAX; -constexpr int PresenceFrame::Version_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ControlFrame_ControlType_descriptor() { - ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto); - return file_level_enum_descriptors_presence_2fproto_2fpresence_5fframe_2eproto[1]; -} -bool ControlFrame_ControlType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr ControlFrame_ControlType ControlFrame::UNKNOWN_TYPE; -constexpr ControlFrame_ControlType ControlFrame::KEEP_ALIVE; -constexpr ControlFrame_ControlType ControlFrame::DISCONNECT; -constexpr ControlFrame_ControlType ControlFrame::ControlType_MIN; -constexpr ControlFrame_ControlType ControlFrame::ControlType_MAX; -constexpr int ControlFrame::ControlType_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) - -// =================================================================== - -class PresenceFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static const ::nearby::presence::V1Frame& v1_frame(const PresenceFrame* msg); - static void set_has_v1_frame(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -const ::nearby::presence::V1Frame& -PresenceFrame::_Internal::v1_frame(const PresenceFrame* msg) { - return *msg->v1_frame_; -} -PresenceFrame::PresenceFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.presence.PresenceFrame) -} -PresenceFrame::PresenceFrame(const PresenceFrame& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_v1_frame()) { - v1_frame_ = new ::nearby::presence::V1Frame(*from.v1_frame_); - } else { - v1_frame_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:nearby.presence.PresenceFrame) -} - -inline void PresenceFrame::SharedCtor() { -v1_frame_ = nullptr; -} - -PresenceFrame::~PresenceFrame() { - // @@protoc_insertion_point(destructor:nearby.presence.PresenceFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -inline void PresenceFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete v1_frame_; -} - -void PresenceFrame::ArenaDtor(void* object) { - PresenceFrame* _this = reinterpret_cast< PresenceFrame* >(object); - (void)_this; -} -void PresenceFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PresenceFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PresenceFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.presence.PresenceFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - GOOGLE_DCHECK(v1_frame_ != nullptr); - v1_frame_->Clear(); - } - _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PresenceFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.presence.V1Frame v1_frame = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_v1_frame(), ptr); - CHK_(ptr); - } 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 -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PresenceFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.presence.PresenceFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .nearby.presence.V1Frame v1_frame = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::v1_frame(this), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.presence.PresenceFrame) - return target; -} - -size_t PresenceFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.presence.PresenceFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional .nearby.presence.V1Frame v1_frame = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *v1_frame_); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PresenceFrame::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - PresenceFrame::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PresenceFrame::GetClassData() const { return &_class_data_; } - -void PresenceFrame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void PresenceFrame::MergeFrom(const PresenceFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.presence.PresenceFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_v1_frame()) { - _internal_mutable_v1_frame()->::nearby::presence::V1Frame::MergeFrom(from._internal_v1_frame()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void PresenceFrame::CopyFrom(const PresenceFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.presence.PresenceFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PresenceFrame::IsInitialized() const { - return true; -} - -void PresenceFrame::InternalSwap(PresenceFrame* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(v1_frame_, other->v1_frame_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PresenceFrame::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_getter, &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once, - file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto[0]); -} - -// =================================================================== - -class V1Frame::_Internal { - public: - static const ::nearby::presence::ControlFrame& control_frame(const V1Frame* msg); - static const ::nearby::presence::DeviceIdentityFrame& device_identity_frame(const V1Frame* msg); - static const ::nearby::presence::ConnectionInitFrame& connection_init_frame(const V1Frame* msg); - static const ::nearby::presence::UwbControleeCapabilities& uwb_controlee_capabilities_frame(const V1Frame* msg); - static const ::nearby::presence::UwbConnectionInfo& uwb_connection_info(const V1Frame* msg); - static const ::nearby::presence::PresenceAuthenticationFrame& authentication_frame(const V1Frame* msg); -}; - -const ::nearby::presence::ControlFrame& -V1Frame::_Internal::control_frame(const V1Frame* msg) { - return *msg->Message_.control_frame_; -} -const ::nearby::presence::DeviceIdentityFrame& -V1Frame::_Internal::device_identity_frame(const V1Frame* msg) { - return *msg->Message_.device_identity_frame_; -} -const ::nearby::presence::ConnectionInitFrame& -V1Frame::_Internal::connection_init_frame(const V1Frame* msg) { - return *msg->Message_.connection_init_frame_; -} -const ::nearby::presence::UwbControleeCapabilities& -V1Frame::_Internal::uwb_controlee_capabilities_frame(const V1Frame* msg) { - return *msg->Message_.uwb_controlee_capabilities_frame_; -} -const ::nearby::presence::UwbConnectionInfo& -V1Frame::_Internal::uwb_connection_info(const V1Frame* msg) { - return *msg->Message_.uwb_connection_info_; -} -const ::nearby::presence::PresenceAuthenticationFrame& -V1Frame::_Internal::authentication_frame(const V1Frame* msg) { - return *msg->Message_.authentication_frame_; -} -void V1Frame::set_allocated_control_frame(::nearby::presence::ControlFrame* control_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - clear_Message(); - if (control_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::presence::ControlFrame>::GetOwningArena(control_frame); - if (message_arena != submessage_arena) { - control_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, control_frame, submessage_arena); - } - set_has_control_frame(); - Message_.control_frame_ = control_frame; - } - // @@protoc_insertion_point(field_set_allocated:nearby.presence.V1Frame.control_frame) -} -void V1Frame::set_allocated_device_identity_frame(::nearby::presence::DeviceIdentityFrame* device_identity_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - clear_Message(); - if (device_identity_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::presence::DeviceIdentityFrame>::GetOwningArena(device_identity_frame); - if (message_arena != submessage_arena) { - device_identity_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, device_identity_frame, submessage_arena); - } - set_has_device_identity_frame(); - Message_.device_identity_frame_ = device_identity_frame; - } - // @@protoc_insertion_point(field_set_allocated:nearby.presence.V1Frame.device_identity_frame) -} -void V1Frame::set_allocated_connection_init_frame(::nearby::presence::ConnectionInitFrame* connection_init_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - clear_Message(); - if (connection_init_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::presence::ConnectionInitFrame>::GetOwningArena(connection_init_frame); - if (message_arena != submessage_arena) { - connection_init_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, connection_init_frame, submessage_arena); - } - set_has_connection_init_frame(); - Message_.connection_init_frame_ = connection_init_frame; - } - // @@protoc_insertion_point(field_set_allocated:nearby.presence.V1Frame.connection_init_frame) -} -void V1Frame::set_allocated_uwb_controlee_capabilities_frame(::nearby::presence::UwbControleeCapabilities* uwb_controlee_capabilities_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - clear_Message(); - if (uwb_controlee_capabilities_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::presence::UwbControleeCapabilities>::GetOwningArena(uwb_controlee_capabilities_frame); - if (message_arena != submessage_arena) { - uwb_controlee_capabilities_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, uwb_controlee_capabilities_frame, submessage_arena); - } - set_has_uwb_controlee_capabilities_frame(); - Message_.uwb_controlee_capabilities_frame_ = uwb_controlee_capabilities_frame; - } - // @@protoc_insertion_point(field_set_allocated:nearby.presence.V1Frame.uwb_controlee_capabilities_frame) -} -void V1Frame::set_allocated_uwb_connection_info(::nearby::presence::UwbConnectionInfo* uwb_connection_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - clear_Message(); - if (uwb_connection_info) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::presence::UwbConnectionInfo>::GetOwningArena(uwb_connection_info); - if (message_arena != submessage_arena) { - uwb_connection_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, uwb_connection_info, submessage_arena); - } - set_has_uwb_connection_info(); - Message_.uwb_connection_info_ = uwb_connection_info; - } - // @@protoc_insertion_point(field_set_allocated:nearby.presence.V1Frame.uwb_connection_info) -} -void V1Frame::set_allocated_authentication_frame(::nearby::presence::PresenceAuthenticationFrame* authentication_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - clear_Message(); - if (authentication_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::presence::PresenceAuthenticationFrame>::GetOwningArena(authentication_frame); - if (message_arena != submessage_arena) { - authentication_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, authentication_frame, submessage_arena); - } - set_has_authentication_frame(); - Message_.authentication_frame_ = authentication_frame; - } - // @@protoc_insertion_point(field_set_allocated:nearby.presence.V1Frame.authentication_frame) -} -V1Frame::V1Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.presence.V1Frame) -} -V1Frame::V1Frame(const V1Frame& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - clear_has_Message(); - switch (from.Message_case()) { - case kControlFrame: { - _internal_mutable_control_frame()->::nearby::presence::ControlFrame::MergeFrom(from._internal_control_frame()); - break; - } - case kDeviceIdentityFrame: { - _internal_mutable_device_identity_frame()->::nearby::presence::DeviceIdentityFrame::MergeFrom(from._internal_device_identity_frame()); - break; - } - case kConnectionInitFrame: { - _internal_mutable_connection_init_frame()->::nearby::presence::ConnectionInitFrame::MergeFrom(from._internal_connection_init_frame()); - break; - } - case kUwbControleeCapabilitiesFrame: { - _internal_mutable_uwb_controlee_capabilities_frame()->::nearby::presence::UwbControleeCapabilities::MergeFrom(from._internal_uwb_controlee_capabilities_frame()); - break; - } - case kUwbConnectionInfo: { - _internal_mutable_uwb_connection_info()->::nearby::presence::UwbConnectionInfo::MergeFrom(from._internal_uwb_connection_info()); - break; - } - case kAuthenticationFrame: { - _internal_mutable_authentication_frame()->::nearby::presence::PresenceAuthenticationFrame::MergeFrom(from._internal_authentication_frame()); - break; - } - case MESSAGE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:nearby.presence.V1Frame) -} - -inline void V1Frame::SharedCtor() { -clear_has_Message(); -} - -V1Frame::~V1Frame() { - // @@protoc_insertion_point(destructor:nearby.presence.V1Frame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -inline void V1Frame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (has_Message()) { - clear_Message(); - } -} - -void V1Frame::ArenaDtor(void* object) { - V1Frame* _this = reinterpret_cast< V1Frame* >(object); - (void)_this; -} -void V1Frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void V1Frame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void V1Frame::clear_Message() { -// @@protoc_insertion_point(one_of_clear_start:nearby.presence.V1Frame) - switch (Message_case()) { - case kControlFrame: { - if (GetArenaForAllocation() == nullptr) { - delete Message_.control_frame_; - } - break; - } - case kDeviceIdentityFrame: { - if (GetArenaForAllocation() == nullptr) { - delete Message_.device_identity_frame_; - } - break; - } - case kConnectionInitFrame: { - if (GetArenaForAllocation() == nullptr) { - delete Message_.connection_init_frame_; - } - break; - } - case kUwbControleeCapabilitiesFrame: { - if (GetArenaForAllocation() == nullptr) { - delete Message_.uwb_controlee_capabilities_frame_; - } - break; - } - case kUwbConnectionInfo: { - if (GetArenaForAllocation() == nullptr) { - delete Message_.uwb_connection_info_; - } - break; - } - case kAuthenticationFrame: { - if (GetArenaForAllocation() == nullptr) { - delete Message_.authentication_frame_; - } - break; - } - case MESSAGE_NOT_SET: { - break; - } - } - _oneof_case_[0] = MESSAGE_NOT_SET; -} - - -void V1Frame::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.presence.V1Frame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_Message(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* V1Frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // .nearby.presence.ControlFrame control_frame = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_control_frame(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.presence.DeviceIdentityFrame device_identity_frame = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ctx->ParseMessage(_internal_mutable_device_identity_frame(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.presence.ConnectionInitFrame connection_init_frame = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_connection_init_frame(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.presence.UwbControleeCapabilities uwb_controlee_capabilities_frame = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_uwb_controlee_capabilities_frame(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.presence.UwbConnectionInfo uwb_connection_info = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ctx->ParseMessage(_internal_mutable_uwb_connection_info(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .nearby.presence.PresenceAuthenticationFrame authentication_frame = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_authentication_frame(), ptr); - CHK_(ptr); - } 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 -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* V1Frame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.presence.V1Frame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - switch (Message_case()) { - case kControlFrame: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 1, _Internal::control_frame(this), target, stream); - break; - } - case kDeviceIdentityFrame: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 2, _Internal::device_identity_frame(this), target, stream); - break; - } - case kConnectionInitFrame: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 3, _Internal::connection_init_frame(this), target, stream); - break; - } - case kUwbControleeCapabilitiesFrame: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 4, _Internal::uwb_controlee_capabilities_frame(this), target, stream); - break; - } - case kUwbConnectionInfo: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 5, _Internal::uwb_connection_info(this), target, stream); - break; - } - case kAuthenticationFrame: { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage( - 6, _Internal::authentication_frame(this), target, stream); - break; - } - default: ; - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.presence.V1Frame) - return target; -} - -size_t V1Frame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.presence.V1Frame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - switch (Message_case()) { - // .nearby.presence.ControlFrame control_frame = 1; - case kControlFrame: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Message_.control_frame_); - break; - } - // .nearby.presence.DeviceIdentityFrame device_identity_frame = 2; - case kDeviceIdentityFrame: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Message_.device_identity_frame_); - break; - } - // .nearby.presence.ConnectionInitFrame connection_init_frame = 3; - case kConnectionInitFrame: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Message_.connection_init_frame_); - break; - } - // .nearby.presence.UwbControleeCapabilities uwb_controlee_capabilities_frame = 4; - case kUwbControleeCapabilitiesFrame: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Message_.uwb_controlee_capabilities_frame_); - break; - } - // .nearby.presence.UwbConnectionInfo uwb_connection_info = 5; - case kUwbConnectionInfo: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Message_.uwb_connection_info_); - break; - } - // .nearby.presence.PresenceAuthenticationFrame authentication_frame = 6; - case kAuthenticationFrame: { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *Message_.authentication_frame_); - break; - } - case MESSAGE_NOT_SET: { - break; - } - } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData V1Frame::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - V1Frame::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*V1Frame::GetClassData() const { return &_class_data_; } - -void V1Frame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void V1Frame::MergeFrom(const V1Frame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.presence.V1Frame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.Message_case()) { - case kControlFrame: { - _internal_mutable_control_frame()->::nearby::presence::ControlFrame::MergeFrom(from._internal_control_frame()); - break; - } - case kDeviceIdentityFrame: { - _internal_mutable_device_identity_frame()->::nearby::presence::DeviceIdentityFrame::MergeFrom(from._internal_device_identity_frame()); - break; - } - case kConnectionInitFrame: { - _internal_mutable_connection_init_frame()->::nearby::presence::ConnectionInitFrame::MergeFrom(from._internal_connection_init_frame()); - break; - } - case kUwbControleeCapabilitiesFrame: { - _internal_mutable_uwb_controlee_capabilities_frame()->::nearby::presence::UwbControleeCapabilities::MergeFrom(from._internal_uwb_controlee_capabilities_frame()); - break; - } - case kUwbConnectionInfo: { - _internal_mutable_uwb_connection_info()->::nearby::presence::UwbConnectionInfo::MergeFrom(from._internal_uwb_connection_info()); - break; - } - case kAuthenticationFrame: { - _internal_mutable_authentication_frame()->::nearby::presence::PresenceAuthenticationFrame::MergeFrom(from._internal_authentication_frame()); - break; - } - case MESSAGE_NOT_SET: { - break; - } - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void V1Frame::CopyFrom(const V1Frame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.presence.V1Frame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool V1Frame::IsInitialized() const { - return true; -} - -void V1Frame::InternalSwap(V1Frame* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(Message_, other->Message_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::PROTOBUF_NAMESPACE_ID::Metadata V1Frame::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_getter, &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once, - file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto[1]); -} - -// =================================================================== - -class DeviceIdentityFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_device_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_bluetooth_mac_address(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_device_image_url(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_model_id(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_device_model_name(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } -}; - -DeviceIdentityFrame::DeviceIdentityFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - action_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.presence.DeviceIdentityFrame) -} -DeviceIdentityFrame::DeviceIdentityFrame(const DeviceIdentityFrame& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - action_(from.action_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_name()) { - device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_name(), - GetArenaForAllocation()); - } - bluetooth_mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_bluetooth_mac_address()) { - bluetooth_mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_bluetooth_mac_address(), - GetArenaForAllocation()); - } - device_image_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_image_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_image_url()) { - device_image_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_image_url(), - GetArenaForAllocation()); - } - model_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - model_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_model_id()) { - model_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_model_id(), - GetArenaForAllocation()); - } - device_model_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_model_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_device_model_name()) { - device_model_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_model_name(), - GetArenaForAllocation()); - } - device_type_ = from.device_type_; - // @@protoc_insertion_point(copy_constructor:nearby.presence.DeviceIdentityFrame) -} - -inline void DeviceIdentityFrame::SharedCtor() { -device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -bluetooth_mac_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_image_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_image_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -model_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - model_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_model_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - device_model_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -device_type_ = 0; -} - -DeviceIdentityFrame::~DeviceIdentityFrame() { - // @@protoc_insertion_point(destructor:nearby.presence.DeviceIdentityFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -inline void DeviceIdentityFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - bluetooth_mac_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_image_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - model_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - device_model_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void DeviceIdentityFrame::ArenaDtor(void* object) { - DeviceIdentityFrame* _this = reinterpret_cast< DeviceIdentityFrame* >(object); - (void)_this; -} -void DeviceIdentityFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void DeviceIdentityFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void DeviceIdentityFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.presence.DeviceIdentityFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - action_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { - if (cached_has_bits & 0x00000001u) { - device_name_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - bluetooth_mac_address_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - device_image_url_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000008u) { - model_id_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000010u) { - device_model_name_.ClearNonDefaultToEmpty(); - } - } - device_type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* DeviceIdentityFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string device_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_device_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "nearby.presence.DeviceIdentityFrame.device_name"); - #endif // !NDEBUG - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes bluetooth_mac_address = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_bluetooth_mac_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string device_image_url = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_device_image_url(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "nearby.presence.DeviceIdentityFrame.device_image_url"); - #endif // !NDEBUG - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string model_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_model_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "nearby.presence.DeviceIdentityFrame.model_id"); - #endif // !NDEBUG - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated int32 action = 5 [packed = true]; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_action(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 40) { - _internal_add_action(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string device_model_name = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_device_model_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "nearby.presence.DeviceIdentityFrame.device_model_name"); - #endif // !NDEBUG - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 device_type = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_device_type(&has_bits); - device_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } 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 -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* DeviceIdentityFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.presence.DeviceIdentityFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string device_name = 1; - if (cached_has_bits & 0x00000001u) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( - this->_internal_device_name().data(), static_cast(this->_internal_device_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, - "nearby.presence.DeviceIdentityFrame.device_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_device_name(), target); - } - - // optional bytes bluetooth_mac_address = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_bluetooth_mac_address(), target); - } - - // optional string device_image_url = 3; - if (cached_has_bits & 0x00000004u) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( - this->_internal_device_image_url().data(), static_cast(this->_internal_device_image_url().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, - "nearby.presence.DeviceIdentityFrame.device_image_url"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_device_image_url(), target); - } - - // optional string model_id = 4; - if (cached_has_bits & 0x00000008u) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( - this->_internal_model_id().data(), static_cast(this->_internal_model_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, - "nearby.presence.DeviceIdentityFrame.model_id"); - target = stream->WriteStringMaybeAliased( - 4, this->_internal_model_id(), target); - } - - // repeated int32 action = 5 [packed = true]; - { - int byte_size = _action_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 5, _internal_action(), byte_size, target); - } - } - - // optional string device_model_name = 6; - if (cached_has_bits & 0x00000010u) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( - this->_internal_device_model_name().data(), static_cast(this->_internal_device_model_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, - "nearby.presence.DeviceIdentityFrame.device_model_name"); - target = stream->WriteStringMaybeAliased( - 6, this->_internal_device_model_name(), target); - } - - // optional int32 device_type = 7; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_device_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.presence.DeviceIdentityFrame) - return target; -} - -size_t DeviceIdentityFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.presence.DeviceIdentityFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int32 action = 5 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->action_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _action_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - // optional string device_name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_name()); - } - - // optional bytes bluetooth_mac_address = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_bluetooth_mac_address()); - } - - // optional string device_image_url = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_image_url()); - } - - // optional string model_id = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_model_id()); - } - - // optional string device_model_name = 6; - if (cached_has_bits & 0x00000010u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_device_model_name()); - } - - // optional int32 device_type = 7; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_device_type()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DeviceIdentityFrame::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - DeviceIdentityFrame::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DeviceIdentityFrame::GetClassData() const { return &_class_data_; } - -void DeviceIdentityFrame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void DeviceIdentityFrame::MergeFrom(const DeviceIdentityFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.presence.DeviceIdentityFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - action_.MergeFrom(from.action_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000003fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_device_name(from._internal_device_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_bluetooth_mac_address(from._internal_bluetooth_mac_address()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_device_image_url(from._internal_device_image_url()); - } - if (cached_has_bits & 0x00000008u) { - _internal_set_model_id(from._internal_model_id()); - } - if (cached_has_bits & 0x00000010u) { - _internal_set_device_model_name(from._internal_device_model_name()); - } - if (cached_has_bits & 0x00000020u) { - device_type_ = from.device_type_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void DeviceIdentityFrame::CopyFrom(const DeviceIdentityFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.presence.DeviceIdentityFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeviceIdentityFrame::IsInitialized() const { - return true; -} - -void DeviceIdentityFrame::InternalSwap(DeviceIdentityFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - action_.InternalSwap(&other->action_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_name_, lhs_arena, - &other->device_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &bluetooth_mac_address_, lhs_arena, - &other->bluetooth_mac_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_image_url_, lhs_arena, - &other->device_image_url_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &model_id_, lhs_arena, - &other->model_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &device_model_name_, lhs_arena, - &other->device_model_name_, rhs_arena - ); - swap(device_type_, other->device_type_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata DeviceIdentityFrame::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_getter, &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once, - file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto[2]); -} - -// =================================================================== - -class ConnectionInitFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_identity_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_uwb_enable(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_device_unique_id(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -ConnectionInitFrame::ConnectionInitFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - actions_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.presence.ConnectionInitFrame) -} -ConnectionInitFrame::ConnectionInitFrame(const ConnectionInitFrame& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - actions_(from.actions_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - ::memcpy(&identity_type_, &from.identity_type_, - static_cast(reinterpret_cast(&device_unique_id_) - - reinterpret_cast(&identity_type_)) + sizeof(device_unique_id_)); - // @@protoc_insertion_point(copy_constructor:nearby.presence.ConnectionInitFrame) -} - -inline void ConnectionInitFrame::SharedCtor() { -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&identity_type_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&device_unique_id_) - - reinterpret_cast(&identity_type_)) + sizeof(device_unique_id_)); -} - -ConnectionInitFrame::~ConnectionInitFrame() { - // @@protoc_insertion_point(destructor:nearby.presence.ConnectionInitFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -inline void ConnectionInitFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void ConnectionInitFrame::ArenaDtor(void* object) { - ConnectionInitFrame* _this = reinterpret_cast< ConnectionInitFrame* >(object); - (void)_this; -} -void ConnectionInitFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ConnectionInitFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void ConnectionInitFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.presence.ConnectionInitFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - actions_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - ::memset(&identity_type_, 0, static_cast( - reinterpret_cast(&device_unique_id_) - - reinterpret_cast(&identity_type_)) + sizeof(device_unique_id_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ConnectionInitFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // repeated int32 actions = 1 [packed = true]; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_actions(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 8) { - _internal_add_actions(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 identity_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_identity_type(&has_bits); - identity_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool uwb_enable = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_uwb_enable(&has_bits); - uwb_enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 device_unique_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_device_unique_id(&has_bits); - device_unique_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } 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 -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ConnectionInitFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.presence.ConnectionInitFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // repeated int32 actions = 1 [packed = true]; - { - int byte_size = _actions_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 1, _internal_actions(), byte_size, target); - } - } - - cached_has_bits = _has_bits_[0]; - // optional int32 identity_type = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_identity_type(), target); - } - - // optional bool uwb_enable = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_uwb_enable(), target); - } - - // optional int64 device_unique_id = 4; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_device_unique_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.presence.ConnectionInitFrame) - return target; -} - -size_t ConnectionInitFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.presence.ConnectionInitFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int32 actions = 1 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->actions_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _actions_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional int32 identity_type = 2; - if (cached_has_bits & 0x00000001u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_identity_type()); - } - - // optional bool uwb_enable = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + 1; - } - - // optional int64 device_unique_id = 4; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_device_unique_id()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ConnectionInitFrame::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - ConnectionInitFrame::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ConnectionInitFrame::GetClassData() const { return &_class_data_; } - -void ConnectionInitFrame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void ConnectionInitFrame::MergeFrom(const ConnectionInitFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.presence.ConnectionInitFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - actions_.MergeFrom(from.actions_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - identity_type_ = from.identity_type_; - } - if (cached_has_bits & 0x00000002u) { - uwb_enable_ = from.uwb_enable_; - } - if (cached_has_bits & 0x00000004u) { - device_unique_id_ = from.device_unique_id_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void ConnectionInitFrame::CopyFrom(const ConnectionInitFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.presence.ConnectionInitFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConnectionInitFrame::IsInitialized() const { - return true; -} - -void ConnectionInitFrame::InternalSwap(ConnectionInitFrame* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - actions_.InternalSwap(&other->actions_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionInitFrame, device_unique_id_) - + sizeof(ConnectionInitFrame::device_unique_id_) - - PROTOBUF_FIELD_OFFSET(ConnectionInitFrame, identity_type_)>( - reinterpret_cast(&identity_type_), - reinterpret_cast(&other->identity_type_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ConnectionInitFrame::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_getter, &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once, - file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto[3]); -} - -// =================================================================== - -class UwbControleeCapabilities::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_controlee_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_min_ranging_interval_ms(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_sub_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_sub_session_key(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_ranging_disabled(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_device_unique_id(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_is_distance_supported(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } - static void set_has_is_azimuth_supported(HasBits* has_bits) { - (*has_bits)[0] |= 1024u; - } - static void set_has_is_elevation_supported(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_min_slot_duration_ms(HasBits* has_bits) { - (*has_bits)[0] |= 2048u; - } - static void set_has_is_ranging_interval_reconfigure_supported(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_chip_count(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } -}; - -UwbControleeCapabilities::UwbControleeCapabilities(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), - supported_config_ids_(arena), - supported_channels_(arena), - supported_ntf_configs_(arena), - supported_slot_durations_(arena), - supported_ranging_update_rates_(arena), - multi_chip_info_(arena) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.presence.UwbControleeCapabilities) -} -UwbControleeCapabilities::UwbControleeCapabilities(const UwbControleeCapabilities& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_), - supported_config_ids_(from.supported_config_ids_), - supported_channels_(from.supported_channels_), - supported_ntf_configs_(from.supported_ntf_configs_), - supported_slot_durations_(from.supported_slot_durations_), - supported_ranging_update_rates_(from.supported_ranging_update_rates_), - multi_chip_info_(from.multi_chip_info_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - controlee_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - controlee_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_controlee_address()) { - controlee_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_controlee_address(), - GetArenaForAllocation()); - } - sub_session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - sub_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_sub_session_id()) { - sub_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sub_session_id(), - GetArenaForAllocation()); - } - sub_session_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - sub_session_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_sub_session_key()) { - sub_session_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_sub_session_key(), - GetArenaForAllocation()); - } - ::memcpy(&device_unique_id_, &from.device_unique_id_, - static_cast(reinterpret_cast(&min_slot_duration_ms_) - - reinterpret_cast(&device_unique_id_)) + sizeof(min_slot_duration_ms_)); - // @@protoc_insertion_point(copy_constructor:nearby.presence.UwbControleeCapabilities) -} - -inline void UwbControleeCapabilities::SharedCtor() { -controlee_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - controlee_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -sub_session_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - sub_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -sub_session_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - sub_session_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&device_unique_id_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&is_ranging_interval_reconfigure_supported_) - - reinterpret_cast(&device_unique_id_)) + sizeof(is_ranging_interval_reconfigure_supported_)); -chip_count_ = 1; -is_distance_supported_ = true; -is_azimuth_supported_ = true; -min_slot_duration_ms_ = 2; -} - -UwbControleeCapabilities::~UwbControleeCapabilities() { - // @@protoc_insertion_point(destructor:nearby.presence.UwbControleeCapabilities) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -inline void UwbControleeCapabilities::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - controlee_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sub_session_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - sub_session_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void UwbControleeCapabilities::ArenaDtor(void* object) { - UwbControleeCapabilities* _this = reinterpret_cast< UwbControleeCapabilities* >(object); - (void)_this; -} -void UwbControleeCapabilities::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void UwbControleeCapabilities::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void UwbControleeCapabilities::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.presence.UwbControleeCapabilities) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - supported_config_ids_.Clear(); - supported_channels_.Clear(); - supported_ntf_configs_.Clear(); - supported_slot_durations_.Clear(); - supported_ranging_update_rates_.Clear(); - multi_chip_info_.Clear(); - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - controlee_address_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - sub_session_id_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - sub_session_key_.ClearNonDefaultToEmpty(); - } - } - if (cached_has_bits & 0x000000f8u) { - ::memset(&device_unique_id_, 0, static_cast( - reinterpret_cast(&is_ranging_interval_reconfigure_supported_) - - reinterpret_cast(&device_unique_id_)) + sizeof(is_ranging_interval_reconfigure_supported_)); - } - if (cached_has_bits & 0x00000f00u) { - chip_count_ = 1; - is_distance_supported_ = true; - is_azimuth_supported_ = true; - min_slot_duration_ms_ = 2; - } - _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* UwbControleeCapabilities::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes controlee_address = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_controlee_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated int32 supported_config_ids = 2 [packed = true]; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_supported_config_ids(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 16) { - _internal_add_supported_config_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated int32 supported_channels = 3 [packed = true]; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_supported_channels(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 24) { - _internal_add_supported_channels(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 min_ranging_interval_ms = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_min_ranging_interval_ms(&has_bits); - min_ranging_interval_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes sub_session_id = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { - auto str = _internal_mutable_sub_session_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes sub_session_key = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_sub_session_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool ranging_disabled = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { - _Internal::set_has_ranging_disabled(&has_bits); - ranging_disabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 device_unique_id = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { - _Internal::set_has_device_unique_id(&has_bits); - device_unique_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_distance_supported = 9 [default = true]; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { - _Internal::set_has_is_distance_supported(&has_bits); - is_distance_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_azimuth_supported = 10 [default = true]; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_is_azimuth_supported(&has_bits); - is_azimuth_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_elevation_supported = 11 [default = false]; - case 11: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { - _Internal::set_has_is_elevation_supported(&has_bits); - is_elevation_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional float min_slot_duration_ms = 12 [default = 2]; - case 12: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 101)) { - _Internal::set_has_min_slot_duration_ms(&has_bits); - min_slot_duration_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); - ptr += sizeof(float); - } else - goto handle_unusual; - continue; - // repeated int32 supported_ntf_configs = 13 [packed = true]; - case 13: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_supported_ntf_configs(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 104) { - _internal_add_supported_ntf_configs(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool is_ranging_interval_reconfigure_supported = 14 [default = false]; - case 14: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { - _Internal::set_has_is_ranging_interval_reconfigure_supported(&has_bits); - is_ranging_interval_reconfigure_supported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated int32 supported_slot_durations = 15 [packed = true]; - case 15: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 122)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_supported_slot_durations(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 120) { - _internal_add_supported_slot_durations(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated int32 supported_ranging_update_rates = 16 [packed = true]; - case 16: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { - ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_supported_ranging_update_rates(), ptr, ctx); - CHK_(ptr); - } else if (static_cast(tag) == 128) { - _internal_add_supported_ranging_update_rates(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 chip_count = 17 [default = 1]; - case 17: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 136)) { - _Internal::set_has_chip_count(&has_bits); - chip_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // repeated .nearby.presence.UwbMultiChipInfo multi_chip_info = 18; - case 18: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 146)) { - ptr -= 2; - do { - ptr += 2; - ptr = ctx->ParseMessage(_internal_add_multi_chip_info(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<146>(ptr)); - } 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 -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* UwbControleeCapabilities::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.presence.UwbControleeCapabilities) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional bytes controlee_address = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_controlee_address(), target); - } - - // repeated int32 supported_config_ids = 2 [packed = true]; - { - int byte_size = _supported_config_ids_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 2, _internal_supported_config_ids(), byte_size, target); - } - } - - // repeated int32 supported_channels = 3 [packed = true]; - { - int byte_size = _supported_channels_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 3, _internal_supported_channels(), byte_size, target); - } - } - - // optional int32 min_ranging_interval_ms = 4; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_min_ranging_interval_ms(), target); - } - - // optional bytes sub_session_id = 5; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 5, this->_internal_sub_session_id(), target); - } - - // optional bytes sub_session_key = 6; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteBytesMaybeAliased( - 6, this->_internal_sub_session_key(), target); - } - - // optional bool ranging_disabled = 7; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(7, this->_internal_ranging_disabled(), target); - } - - // optional int64 device_unique_id = 8; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->_internal_device_unique_id(), target); - } - - // optional bool is_distance_supported = 9 [default = true]; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(9, this->_internal_is_distance_supported(), target); - } - - // optional bool is_azimuth_supported = 10 [default = true]; - if (cached_has_bits & 0x00000400u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_is_azimuth_supported(), target); - } - - // optional bool is_elevation_supported = 11 [default = false]; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_is_elevation_supported(), target); - } - - // optional float min_slot_duration_ms = 12 [default = 2]; - if (cached_has_bits & 0x00000800u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteFloatToArray(12, this->_internal_min_slot_duration_ms(), target); - } - - // repeated int32 supported_ntf_configs = 13 [packed = true]; - { - int byte_size = _supported_ntf_configs_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 13, _internal_supported_ntf_configs(), byte_size, target); - } - } - - // optional bool is_ranging_interval_reconfigure_supported = 14 [default = false]; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(14, this->_internal_is_ranging_interval_reconfigure_supported(), target); - } - - // repeated int32 supported_slot_durations = 15 [packed = true]; - { - int byte_size = _supported_slot_durations_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 15, _internal_supported_slot_durations(), byte_size, target); - } - } - - // repeated int32 supported_ranging_update_rates = 16 [packed = true]; - { - int byte_size = _supported_ranging_update_rates_cached_byte_size_.load(std::memory_order_relaxed); - if (byte_size > 0) { - target = stream->WriteInt32Packed( - 16, _internal_supported_ranging_update_rates(), byte_size, target); - } - } - - // optional int32 chip_count = 17 [default = 1]; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(17, this->_internal_chip_count(), target); - } - - // repeated .nearby.presence.UwbMultiChipInfo multi_chip_info = 18; - for (unsigned int i = 0, - n = static_cast(this->_internal_multi_chip_info_size()); i < n; i++) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(18, this->_internal_multi_chip_info(i), target, stream); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.presence.UwbControleeCapabilities) - return target; -} - -size_t UwbControleeCapabilities::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.presence.UwbControleeCapabilities) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // repeated int32 supported_config_ids = 2 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->supported_config_ids_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _supported_config_ids_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated int32 supported_channels = 3 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->supported_channels_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _supported_channels_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated int32 supported_ntf_configs = 13 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->supported_ntf_configs_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _supported_ntf_configs_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated int32 supported_slot_durations = 15 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->supported_slot_durations_); - if (data_size > 0) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _supported_slot_durations_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated int32 supported_ranging_update_rates = 16 [packed = true]; - { - size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - Int32Size(this->supported_ranging_update_rates_); - if (data_size > 0) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - static_cast(data_size)); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); - _supported_ranging_update_rates_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - // repeated .nearby.presence.UwbMultiChipInfo multi_chip_info = 18; - total_size += 2UL * this->_internal_multi_chip_info_size(); - for (const auto& msg : this->multi_chip_info_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); - } - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional bytes controlee_address = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_controlee_address()); - } - - // optional bytes sub_session_id = 5; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_sub_session_id()); - } - - // optional bytes sub_session_key = 6; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_sub_session_key()); - } - - // optional int64 device_unique_id = 8; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_device_unique_id()); - } - - // optional int32 min_ranging_interval_ms = 4; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_min_ranging_interval_ms()); - } - - // optional bool ranging_disabled = 7; - if (cached_has_bits & 0x00000020u) { - total_size += 1 + 1; - } - - // optional bool is_elevation_supported = 11 [default = false]; - if (cached_has_bits & 0x00000040u) { - total_size += 1 + 1; - } - - // optional bool is_ranging_interval_reconfigure_supported = 14 [default = false]; - if (cached_has_bits & 0x00000080u) { - total_size += 1 + 1; - } - - } - if (cached_has_bits & 0x00000f00u) { - // optional int32 chip_count = 17 [default = 1]; - if (cached_has_bits & 0x00000100u) { - total_size += 2 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( - this->_internal_chip_count()); - } - - // optional bool is_distance_supported = 9 [default = true]; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 1; - } - - // optional bool is_azimuth_supported = 10 [default = true]; - if (cached_has_bits & 0x00000400u) { - total_size += 1 + 1; - } - - // optional float min_slot_duration_ms = 12 [default = 2]; - if (cached_has_bits & 0x00000800u) { - total_size += 1 + 4; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UwbControleeCapabilities::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - UwbControleeCapabilities::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UwbControleeCapabilities::GetClassData() const { return &_class_data_; } - -void UwbControleeCapabilities::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void UwbControleeCapabilities::MergeFrom(const UwbControleeCapabilities& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.presence.UwbControleeCapabilities) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - supported_config_ids_.MergeFrom(from.supported_config_ids_); - supported_channels_.MergeFrom(from.supported_channels_); - supported_ntf_configs_.MergeFrom(from.supported_ntf_configs_); - supported_slot_durations_.MergeFrom(from.supported_slot_durations_); - supported_ranging_update_rates_.MergeFrom(from.supported_ranging_update_rates_); - multi_chip_info_.MergeFrom(from.multi_chip_info_); - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_controlee_address(from._internal_controlee_address()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_sub_session_id(from._internal_sub_session_id()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_sub_session_key(from._internal_sub_session_key()); - } - if (cached_has_bits & 0x00000008u) { - device_unique_id_ = from.device_unique_id_; - } - if (cached_has_bits & 0x00000010u) { - min_ranging_interval_ms_ = from.min_ranging_interval_ms_; - } - if (cached_has_bits & 0x00000020u) { - ranging_disabled_ = from.ranging_disabled_; - } - if (cached_has_bits & 0x00000040u) { - is_elevation_supported_ = from.is_elevation_supported_; - } - if (cached_has_bits & 0x00000080u) { - is_ranging_interval_reconfigure_supported_ = from.is_ranging_interval_reconfigure_supported_; - } - _has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x00000f00u) { - if (cached_has_bits & 0x00000100u) { - chip_count_ = from.chip_count_; - } - if (cached_has_bits & 0x00000200u) { - is_distance_supported_ = from.is_distance_supported_; - } - if (cached_has_bits & 0x00000400u) { - is_azimuth_supported_ = from.is_azimuth_supported_; - } - if (cached_has_bits & 0x00000800u) { - min_slot_duration_ms_ = from.min_slot_duration_ms_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void UwbControleeCapabilities::CopyFrom(const UwbControleeCapabilities& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.presence.UwbControleeCapabilities) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UwbControleeCapabilities::IsInitialized() const { - return true; -} - -void UwbControleeCapabilities::InternalSwap(UwbControleeCapabilities* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - supported_config_ids_.InternalSwap(&other->supported_config_ids_); - supported_channels_.InternalSwap(&other->supported_channels_); - supported_ntf_configs_.InternalSwap(&other->supported_ntf_configs_); - supported_slot_durations_.InternalSwap(&other->supported_slot_durations_); - supported_ranging_update_rates_.InternalSwap(&other->supported_ranging_update_rates_); - multi_chip_info_.InternalSwap(&other->multi_chip_info_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &controlee_address_, lhs_arena, - &other->controlee_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &sub_session_id_, lhs_arena, - &other->sub_session_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &sub_session_key_, lhs_arena, - &other->sub_session_key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(UwbControleeCapabilities, is_ranging_interval_reconfigure_supported_) - + sizeof(UwbControleeCapabilities::is_ranging_interval_reconfigure_supported_) - - PROTOBUF_FIELD_OFFSET(UwbControleeCapabilities, device_unique_id_)>( - reinterpret_cast(&device_unique_id_), - reinterpret_cast(&other->device_unique_id_)); - swap(chip_count_, other->chip_count_); - swap(is_distance_supported_, other->is_distance_supported_); - swap(is_azimuth_supported_, other->is_azimuth_supported_); - swap(min_slot_duration_ms_, other->min_slot_duration_ms_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata UwbControleeCapabilities::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_getter, &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once, - file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto[4]); -} - -// =================================================================== - -class UwbMultiChipInfo::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_controlee_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_chip_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } -}; - -UwbMultiChipInfo::UwbMultiChipInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.presence.UwbMultiChipInfo) -} -UwbMultiChipInfo::UwbMultiChipInfo(const UwbMultiChipInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - controlee_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - controlee_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_controlee_address()) { - controlee_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_controlee_address(), - GetArenaForAllocation()); - } - chip_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - chip_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_chip_id()) { - chip_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_chip_id(), - GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:nearby.presence.UwbMultiChipInfo) -} - -inline void UwbMultiChipInfo::SharedCtor() { -controlee_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - controlee_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -chip_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - chip_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -UwbMultiChipInfo::~UwbMultiChipInfo() { - // @@protoc_insertion_point(destructor:nearby.presence.UwbMultiChipInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -inline void UwbMultiChipInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - controlee_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - chip_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void UwbMultiChipInfo::ArenaDtor(void* object) { - UwbMultiChipInfo* _this = reinterpret_cast< UwbMultiChipInfo* >(object); - (void)_this; -} -void UwbMultiChipInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void UwbMultiChipInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void UwbMultiChipInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.presence.UwbMultiChipInfo) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - controlee_address_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - chip_id_.ClearNonDefaultToEmpty(); - } - } - _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* UwbMultiChipInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes controlee_address = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_controlee_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string chip_id = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_chip_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - #ifndef NDEBUG - ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "nearby.presence.UwbMultiChipInfo.chip_id"); - #endif // !NDEBUG - CHK_(ptr); - } 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 -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* UwbMultiChipInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.presence.UwbMultiChipInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional bytes controlee_address = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_controlee_address(), target); - } - - // optional string chip_id = 2; - if (cached_has_bits & 0x00000002u) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( - this->_internal_chip_id().data(), static_cast(this->_internal_chip_id().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, - "nearby.presence.UwbMultiChipInfo.chip_id"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_chip_id(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.presence.UwbMultiChipInfo) - return target; -} - -size_t UwbMultiChipInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.presence.UwbMultiChipInfo) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - // optional bytes controlee_address = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_controlee_address()); - } - - // optional string chip_id = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_chip_id()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UwbMultiChipInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - UwbMultiChipInfo::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UwbMultiChipInfo::GetClassData() const { return &_class_data_; } - -void UwbMultiChipInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void UwbMultiChipInfo::MergeFrom(const UwbMultiChipInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.presence.UwbMultiChipInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000003u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_controlee_address(from._internal_controlee_address()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_chip_id(from._internal_chip_id()); - } - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void UwbMultiChipInfo::CopyFrom(const UwbMultiChipInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.presence.UwbMultiChipInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UwbMultiChipInfo::IsInitialized() const { - return true; -} - -void UwbMultiChipInfo::InternalSwap(UwbMultiChipInfo* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &controlee_address_, lhs_arena, - &other->controlee_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &chip_id_, lhs_arena, - &other->chip_id_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata UwbMultiChipInfo::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_getter, &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once, - file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto[5]); -} - -// =================================================================== - -class UwbConnectionInfo::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_controller_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_channel(HasBits* has_bits) { - (*has_bits)[0] |= 16u; - } - static void set_has_preamble_index(HasBits* has_bits) { - (*has_bits)[0] |= 32u; - } - static void set_has_config_id(HasBits* has_bits) { - (*has_bits)[0] |= 64u; - } - static void set_has_ranging_interval_ms(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_session_id(HasBits* has_bits) { - (*has_bits)[0] |= 256u; - } - static void set_has_vendor_id(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_static_sts_iv(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_session_key(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_ranging_disabled(HasBits* has_bits) { - (*has_bits)[0] |= 512u; - } -}; - -UwbConnectionInfo::UwbConnectionInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.presence.UwbConnectionInfo) -} -UwbConnectionInfo::UwbConnectionInfo(const UwbConnectionInfo& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - controller_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - controller_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_controller_address()) { - controller_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_controller_address(), - GetArenaForAllocation()); - } - vendor_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - vendor_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_vendor_id()) { - vendor_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_vendor_id(), - GetArenaForAllocation()); - } - static_sts_iv_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - static_sts_iv_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_static_sts_iv()) { - static_sts_iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_static_sts_iv(), - GetArenaForAllocation()); - } - session_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - session_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_session_key()) { - session_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_session_key(), - GetArenaForAllocation()); - } - ::memcpy(&channel_, &from.channel_, - static_cast(reinterpret_cast(&ranging_disabled_) - - reinterpret_cast(&channel_)) + sizeof(ranging_disabled_)); - // @@protoc_insertion_point(copy_constructor:nearby.presence.UwbConnectionInfo) -} - -inline void UwbConnectionInfo::SharedCtor() { -controller_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - controller_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -vendor_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - vendor_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -static_sts_iv_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - static_sts_iv_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -session_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - session_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&channel_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&ranging_disabled_) - - reinterpret_cast(&channel_)) + sizeof(ranging_disabled_)); -} - -UwbConnectionInfo::~UwbConnectionInfo() { - // @@protoc_insertion_point(destructor:nearby.presence.UwbConnectionInfo) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -inline void UwbConnectionInfo::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - controller_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - vendor_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - static_sts_iv_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - session_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void UwbConnectionInfo::ArenaDtor(void* object) { - UwbConnectionInfo* _this = reinterpret_cast< UwbConnectionInfo* >(object); - (void)_this; -} -void UwbConnectionInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void UwbConnectionInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void UwbConnectionInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.presence.UwbConnectionInfo) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - controller_address_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - vendor_id_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - static_sts_iv_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000008u) { - session_key_.ClearNonDefaultToEmpty(); - } - } - if (cached_has_bits & 0x000000f0u) { - ::memset(&channel_, 0, static_cast( - reinterpret_cast(&ranging_interval_ms_) - - reinterpret_cast(&channel_)) + sizeof(ranging_interval_ms_)); - } - if (cached_has_bits & 0x00000300u) { - ::memset(&session_id_, 0, static_cast( - reinterpret_cast(&ranging_disabled_) - - reinterpret_cast(&session_id_)) + sizeof(ranging_disabled_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* UwbConnectionInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes controller_address = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_controller_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 channel = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_channel(&has_bits); - channel_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 preamble_index = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_preamble_index(&has_bits); - preamble_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 config_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _Internal::set_has_config_id(&has_bits); - config_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 ranging_interval_ms = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _Internal::set_has_ranging_interval_ms(&has_bits); - ranging_interval_ms_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 session_id = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { - _Internal::set_has_session_id(&has_bits); - session_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes vendor_id = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - auto str = _internal_mutable_vendor_id(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes static_sts_iv = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - auto str = _internal_mutable_static_sts_iv(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes session_key = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - auto str = _internal_mutable_session_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bool ranging_disabled = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { - _Internal::set_has_ranging_disabled(&has_bits); - ranging_disabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } 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 -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* UwbConnectionInfo::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.presence.UwbConnectionInfo) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional bytes controller_address = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_controller_address(), target); - } - - // optional int32 channel = 2; - if (cached_has_bits & 0x00000010u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_channel(), target); - } - - // optional int32 preamble_index = 3; - if (cached_has_bits & 0x00000020u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_preamble_index(), target); - } - - // optional int32 config_id = 4; - if (cached_has_bits & 0x00000040u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_config_id(), target); - } - - // optional int32 ranging_interval_ms = 5; - if (cached_has_bits & 0x00000080u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_ranging_interval_ms(), target); - } - - // optional int32 session_id = 6; - if (cached_has_bits & 0x00000100u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_session_id(), target); - } - - // optional bytes vendor_id = 7; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 7, this->_internal_vendor_id(), target); - } - - // optional bytes static_sts_iv = 8; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteBytesMaybeAliased( - 8, this->_internal_static_sts_iv(), target); - } - - // optional bytes session_key = 9; - if (cached_has_bits & 0x00000008u) { - target = stream->WriteBytesMaybeAliased( - 9, this->_internal_session_key(), target); - } - - // optional bool ranging_disabled = 10; - if (cached_has_bits & 0x00000200u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_ranging_disabled(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.presence.UwbConnectionInfo) - return target; -} - -size_t UwbConnectionInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.presence.UwbConnectionInfo) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - // optional bytes controller_address = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_controller_address()); - } - - // optional bytes vendor_id = 7; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_vendor_id()); - } - - // optional bytes static_sts_iv = 8; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_static_sts_iv()); - } - - // optional bytes session_key = 9; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_session_key()); - } - - // optional int32 channel = 2; - if (cached_has_bits & 0x00000010u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_channel()); - } - - // optional int32 preamble_index = 3; - if (cached_has_bits & 0x00000020u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_preamble_index()); - } - - // optional int32 config_id = 4; - if (cached_has_bits & 0x00000040u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_config_id()); - } - - // optional int32 ranging_interval_ms = 5; - if (cached_has_bits & 0x00000080u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_ranging_interval_ms()); - } - - } - if (cached_has_bits & 0x00000300u) { - // optional int32 session_id = 6; - if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_session_id()); - } - - // optional bool ranging_disabled = 10; - if (cached_has_bits & 0x00000200u) { - total_size += 1 + 1; - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UwbConnectionInfo::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - UwbConnectionInfo::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UwbConnectionInfo::GetClassData() const { return &_class_data_; } - -void UwbConnectionInfo::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void UwbConnectionInfo::MergeFrom(const UwbConnectionInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.presence.UwbConnectionInfo) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x000000ffu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_controller_address(from._internal_controller_address()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_vendor_id(from._internal_vendor_id()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_static_sts_iv(from._internal_static_sts_iv()); - } - if (cached_has_bits & 0x00000008u) { - _internal_set_session_key(from._internal_session_key()); - } - if (cached_has_bits & 0x00000010u) { - channel_ = from.channel_; - } - if (cached_has_bits & 0x00000020u) { - preamble_index_ = from.preamble_index_; - } - if (cached_has_bits & 0x00000040u) { - config_id_ = from.config_id_; - } - if (cached_has_bits & 0x00000080u) { - ranging_interval_ms_ = from.ranging_interval_ms_; - } - _has_bits_[0] |= cached_has_bits; - } - if (cached_has_bits & 0x00000300u) { - if (cached_has_bits & 0x00000100u) { - session_id_ = from.session_id_; - } - if (cached_has_bits & 0x00000200u) { - ranging_disabled_ = from.ranging_disabled_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void UwbConnectionInfo::CopyFrom(const UwbConnectionInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.presence.UwbConnectionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UwbConnectionInfo::IsInitialized() const { - return true; -} - -void UwbConnectionInfo::InternalSwap(UwbConnectionInfo* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &controller_address_, lhs_arena, - &other->controller_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &vendor_id_, lhs_arena, - &other->vendor_id_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &static_sts_iv_, lhs_arena, - &other->static_sts_iv_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &session_key_, lhs_arena, - &other->session_key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(UwbConnectionInfo, ranging_disabled_) - + sizeof(UwbConnectionInfo::ranging_disabled_) - - PROTOBUF_FIELD_OFFSET(UwbConnectionInfo, channel_)>( - reinterpret_cast(&channel_), - reinterpret_cast(&other->channel_)); -} - -::PROTOBUF_NAMESPACE_ID::Metadata UwbConnectionInfo::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_getter, &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once, - file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto[6]); -} - -// =================================================================== - -class ControlFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } -}; - -ControlFrame::ControlFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.presence.ControlFrame) -} -ControlFrame::ControlFrame(const ControlFrame& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:nearby.presence.ControlFrame) -} - -inline void ControlFrame::SharedCtor() { -type_ = 0; -} - -ControlFrame::~ControlFrame() { - // @@protoc_insertion_point(destructor:nearby.presence.ControlFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -inline void ControlFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void ControlFrame::ArenaDtor(void* object) { - ControlFrame* _this = reinterpret_cast< ControlFrame* >(object); - (void)_this; -} -void ControlFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void ControlFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void ControlFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.presence.ControlFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - type_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ControlFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional .nearby.presence.ControlFrame.ControlType type = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::nearby::presence::ControlFrame_ControlType_IsValid(val))) { - _internal_set_type(static_cast<::nearby::presence::ControlFrame_ControlType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); - } - } 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 -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* ControlFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.presence.ControlFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional .nearby.presence.ControlFrame.ControlType type = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 1, this->_internal_type(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.presence.ControlFrame) - return target; -} - -size_t ControlFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.presence.ControlFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // optional .nearby.presence.ControlFrame.ControlType type = 1; - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ControlFrame::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - ControlFrame::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ControlFrame::GetClassData() const { return &_class_data_; } - -void ControlFrame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void ControlFrame::MergeFrom(const ControlFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.presence.ControlFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (from._internal_has_type()) { - _internal_set_type(from._internal_type()); - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void ControlFrame::CopyFrom(const ControlFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.presence.ControlFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ControlFrame::IsInitialized() const { - return true; -} - -void ControlFrame::InternalSwap(ControlFrame* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - swap(type_, other->type_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ControlFrame::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_getter, &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once, - file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto[7]); -} - -// =================================================================== - -class PresenceAuthenticationFrame::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_version(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } - static void set_has_private_key_signature(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_shared_credential_id_hash(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_credential_id_hash(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -PresenceAuthenticationFrame::PresenceAuthenticationFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.presence.PresenceAuthenticationFrame) -} -PresenceAuthenticationFrame::PresenceAuthenticationFrame(const PresenceAuthenticationFrame& from) - : ::PROTOBUF_NAMESPACE_ID::Message(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - private_key_signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - private_key_signature_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_private_key_signature()) { - private_key_signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_private_key_signature(), - GetArenaForAllocation()); - } - shared_credential_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - shared_credential_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_shared_credential_id_hash()) { - shared_credential_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_shared_credential_id_hash(), - GetArenaForAllocation()); - } - credential_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - credential_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_credential_id_hash()) { - credential_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_credential_id_hash(), - GetArenaForAllocation()); - } - version_ = from.version_; - // @@protoc_insertion_point(copy_constructor:nearby.presence.PresenceAuthenticationFrame) -} - -inline void PresenceAuthenticationFrame::SharedCtor() { -private_key_signature_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - private_key_signature_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -shared_credential_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - shared_credential_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -credential_id_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - credential_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -version_ = 0; -} - -PresenceAuthenticationFrame::~PresenceAuthenticationFrame() { - // @@protoc_insertion_point(destructor:nearby.presence.PresenceAuthenticationFrame) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -inline void PresenceAuthenticationFrame::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - private_key_signature_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - shared_credential_id_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - credential_id_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void PresenceAuthenticationFrame::ArenaDtor(void* object) { - PresenceAuthenticationFrame* _this = reinterpret_cast< PresenceAuthenticationFrame* >(object); - (void)_this; -} -void PresenceAuthenticationFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void PresenceAuthenticationFrame::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void PresenceAuthenticationFrame::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.presence.PresenceAuthenticationFrame) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - private_key_signature_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - shared_credential_id_hash_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - credential_id_hash_.ClearNonDefaultToEmpty(); - } - } - version_ = 0; - _has_bits_.Clear(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* PresenceAuthenticationFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional int32 version = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _Internal::set_has_version(&has_bits); - version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes private_key_signature = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_private_key_signature(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes shared_credential_id_hash = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_shared_credential_id_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes credential_id_hash = 4 [deprecated = true]; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_credential_id_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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 -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* PresenceAuthenticationFrame::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.presence.PresenceAuthenticationFrame) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional int32 version = 1; - if (cached_has_bits & 0x00000008u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_version(), target); - } - - // optional bytes private_key_signature = 2; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 2, this->_internal_private_key_signature(), target); - } - - // optional bytes shared_credential_id_hash = 3; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_shared_credential_id_hash(), target); - } - - // optional bytes credential_id_hash = 4 [deprecated = true]; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_credential_id_hash(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.presence.PresenceAuthenticationFrame) - return target; -} - -size_t PresenceAuthenticationFrame::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.presence.PresenceAuthenticationFrame) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - // optional bytes private_key_signature = 2; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_private_key_signature()); - } - - // optional bytes shared_credential_id_hash = 3; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_shared_credential_id_hash()); - } - - // optional bytes credential_id_hash = 4 [deprecated = true]; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_credential_id_hash()); - } - - // optional int32 version = 1; - if (cached_has_bits & 0x00000008u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_version()); - } - - } - return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PresenceAuthenticationFrame::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, - PresenceAuthenticationFrame::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PresenceAuthenticationFrame::GetClassData() const { return &_class_data_; } - -void PresenceAuthenticationFrame::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, - const ::PROTOBUF_NAMESPACE_ID::Message& from) { - static_cast(to)->MergeFrom( - static_cast(from)); -} - - -void PresenceAuthenticationFrame::MergeFrom(const PresenceAuthenticationFrame& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.presence.PresenceAuthenticationFrame) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_private_key_signature(from._internal_private_key_signature()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_shared_credential_id_hash(from._internal_shared_credential_id_hash()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_credential_id_hash(from._internal_credential_id_hash()); - } - if (cached_has_bits & 0x00000008u) { - version_ = from.version_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void PresenceAuthenticationFrame::CopyFrom(const PresenceAuthenticationFrame& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.presence.PresenceAuthenticationFrame) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PresenceAuthenticationFrame::IsInitialized() const { - return true; -} - -void PresenceAuthenticationFrame::InternalSwap(PresenceAuthenticationFrame* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &private_key_signature_, lhs_arena, - &other->private_key_signature_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &shared_credential_id_hash_, lhs_arena, - &other->shared_credential_id_hash_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &credential_id_hash_, lhs_arena, - &other->credential_id_hash_, rhs_arena - ); - swap(version_, other->version_); -} - -::PROTOBUF_NAMESPACE_ID::Metadata PresenceAuthenticationFrame::GetMetadata() const { - return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( - &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_getter, &descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto_once, - file_level_metadata_presence_2fproto_2fpresence_5fframe_2eproto[8]); -} - -// @@protoc_insertion_point(namespace_scope) -} // namespace presence -} // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::nearby::presence::PresenceFrame* Arena::CreateMaybeMessage< ::nearby::presence::PresenceFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::presence::PresenceFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::presence::V1Frame* Arena::CreateMaybeMessage< ::nearby::presence::V1Frame >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::presence::V1Frame >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::presence::DeviceIdentityFrame* Arena::CreateMaybeMessage< ::nearby::presence::DeviceIdentityFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::presence::DeviceIdentityFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::presence::ConnectionInitFrame* Arena::CreateMaybeMessage< ::nearby::presence::ConnectionInitFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::presence::ConnectionInitFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::presence::UwbControleeCapabilities* Arena::CreateMaybeMessage< ::nearby::presence::UwbControleeCapabilities >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::presence::UwbControleeCapabilities >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::presence::UwbMultiChipInfo* Arena::CreateMaybeMessage< ::nearby::presence::UwbMultiChipInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::presence::UwbMultiChipInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::presence::UwbConnectionInfo* Arena::CreateMaybeMessage< ::nearby::presence::UwbConnectionInfo >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::presence::UwbConnectionInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::presence::ControlFrame* Arena::CreateMaybeMessage< ::nearby::presence::ControlFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::presence::ControlFrame >(arena); -} -template<> PROTOBUF_NOINLINE ::nearby::presence::PresenceAuthenticationFrame* Arena::CreateMaybeMessage< ::nearby::presence::PresenceAuthenticationFrame >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::presence::PresenceAuthenticationFrame >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/compiled_proto/presence/proto/presence_frame.pb.h b/compiled_proto/presence/proto/presence_frame.pb.h deleted file mode 100644 index ce177b23..00000000 --- a/compiled_proto/presence/proto/presence_frame.pb.h +++ /dev/null @@ -1,5274 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: presence/proto/presence_frame.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_presence_2fproto_2fpresence_5fframe_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_presence_2fproto_2fpresence_5fframe_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3019000 -#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 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_presence_2fproto_2fpresence_5fframe_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_presence_2fproto_2fpresence_5fframe_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[9] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; -}; -extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_presence_2fproto_2fpresence_5fframe_2eproto; -namespace nearby { -namespace presence { -class ConnectionInitFrame; -struct ConnectionInitFrameDefaultTypeInternal; -extern ConnectionInitFrameDefaultTypeInternal _ConnectionInitFrame_default_instance_; -class ControlFrame; -struct ControlFrameDefaultTypeInternal; -extern ControlFrameDefaultTypeInternal _ControlFrame_default_instance_; -class DeviceIdentityFrame; -struct DeviceIdentityFrameDefaultTypeInternal; -extern DeviceIdentityFrameDefaultTypeInternal _DeviceIdentityFrame_default_instance_; -class PresenceAuthenticationFrame; -struct PresenceAuthenticationFrameDefaultTypeInternal; -extern PresenceAuthenticationFrameDefaultTypeInternal _PresenceAuthenticationFrame_default_instance_; -class PresenceFrame; -struct PresenceFrameDefaultTypeInternal; -extern PresenceFrameDefaultTypeInternal _PresenceFrame_default_instance_; -class UwbConnectionInfo; -struct UwbConnectionInfoDefaultTypeInternal; -extern UwbConnectionInfoDefaultTypeInternal _UwbConnectionInfo_default_instance_; -class UwbControleeCapabilities; -struct UwbControleeCapabilitiesDefaultTypeInternal; -extern UwbControleeCapabilitiesDefaultTypeInternal _UwbControleeCapabilities_default_instance_; -class UwbMultiChipInfo; -struct UwbMultiChipInfoDefaultTypeInternal; -extern UwbMultiChipInfoDefaultTypeInternal _UwbMultiChipInfo_default_instance_; -class V1Frame; -struct V1FrameDefaultTypeInternal; -extern V1FrameDefaultTypeInternal _V1Frame_default_instance_; -} // namespace presence -} // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> ::nearby::presence::ConnectionInitFrame* Arena::CreateMaybeMessage<::nearby::presence::ConnectionInitFrame>(Arena*); -template<> ::nearby::presence::ControlFrame* Arena::CreateMaybeMessage<::nearby::presence::ControlFrame>(Arena*); -template<> ::nearby::presence::DeviceIdentityFrame* Arena::CreateMaybeMessage<::nearby::presence::DeviceIdentityFrame>(Arena*); -template<> ::nearby::presence::PresenceAuthenticationFrame* Arena::CreateMaybeMessage<::nearby::presence::PresenceAuthenticationFrame>(Arena*); -template<> ::nearby::presence::PresenceFrame* Arena::CreateMaybeMessage<::nearby::presence::PresenceFrame>(Arena*); -template<> ::nearby::presence::UwbConnectionInfo* Arena::CreateMaybeMessage<::nearby::presence::UwbConnectionInfo>(Arena*); -template<> ::nearby::presence::UwbControleeCapabilities* Arena::CreateMaybeMessage<::nearby::presence::UwbControleeCapabilities>(Arena*); -template<> ::nearby::presence::UwbMultiChipInfo* Arena::CreateMaybeMessage<::nearby::presence::UwbMultiChipInfo>(Arena*); -template<> ::nearby::presence::V1Frame* Arena::CreateMaybeMessage<::nearby::presence::V1Frame>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace nearby { -namespace presence { - -enum PresenceFrame_Version : int { - PresenceFrame_Version_UNKNOWN_VERSION = 0, - PresenceFrame_Version_VERSION_1 = 1 -}; -bool PresenceFrame_Version_IsValid(int value); -constexpr PresenceFrame_Version PresenceFrame_Version_Version_MIN = PresenceFrame_Version_UNKNOWN_VERSION; -constexpr PresenceFrame_Version PresenceFrame_Version_Version_MAX = PresenceFrame_Version_VERSION_1; -constexpr int PresenceFrame_Version_Version_ARRAYSIZE = PresenceFrame_Version_Version_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PresenceFrame_Version_descriptor(); -template -inline const std::string& PresenceFrame_Version_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function PresenceFrame_Version_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - PresenceFrame_Version_descriptor(), enum_t_value); -} -inline bool PresenceFrame_Version_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PresenceFrame_Version* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - PresenceFrame_Version_descriptor(), name, value); -} -enum ControlFrame_ControlType : int { - ControlFrame_ControlType_UNKNOWN_TYPE = 0, - ControlFrame_ControlType_KEEP_ALIVE = 1, - ControlFrame_ControlType_DISCONNECT = 2 -}; -bool ControlFrame_ControlType_IsValid(int value); -constexpr ControlFrame_ControlType ControlFrame_ControlType_ControlType_MIN = ControlFrame_ControlType_UNKNOWN_TYPE; -constexpr ControlFrame_ControlType ControlFrame_ControlType_ControlType_MAX = ControlFrame_ControlType_DISCONNECT; -constexpr int ControlFrame_ControlType_ControlType_ARRAYSIZE = ControlFrame_ControlType_ControlType_MAX + 1; - -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ControlFrame_ControlType_descriptor(); -template -inline const std::string& ControlFrame_ControlType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ControlFrame_ControlType_Name."); - return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( - ControlFrame_ControlType_descriptor(), enum_t_value); -} -inline bool ControlFrame_ControlType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ControlFrame_ControlType* value) { - return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( - ControlFrame_ControlType_descriptor(), name, value); -} -// =================================================================== - -class PresenceFrame final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.presence.PresenceFrame) */ { - public: - inline PresenceFrame() : PresenceFrame(nullptr) {} - ~PresenceFrame() override; - explicit constexpr PresenceFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PresenceFrame(const PresenceFrame& from); - PresenceFrame(PresenceFrame&& from) noexcept - : PresenceFrame() { - *this = ::std::move(from); - } - - inline PresenceFrame& operator=(const PresenceFrame& from) { - CopyFrom(from); - return *this; - } - inline PresenceFrame& operator=(PresenceFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PresenceFrame& default_instance() { - return *internal_default_instance(); - } - static inline const PresenceFrame* internal_default_instance() { - return reinterpret_cast( - &_PresenceFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(PresenceFrame& a, PresenceFrame& b) { - a.Swap(&b); - } - inline void Swap(PresenceFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PresenceFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PresenceFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PresenceFrame& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PresenceFrame& 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; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PresenceFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.presence.PresenceFrame"; - } - protected: - explicit PresenceFrame(::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: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef PresenceFrame_Version Version; - static constexpr Version UNKNOWN_VERSION = - PresenceFrame_Version_UNKNOWN_VERSION; - static constexpr Version VERSION_1 = - PresenceFrame_Version_VERSION_1; - static inline bool Version_IsValid(int value) { - return PresenceFrame_Version_IsValid(value); - } - static constexpr Version Version_MIN = - PresenceFrame_Version_Version_MIN; - static constexpr Version Version_MAX = - PresenceFrame_Version_Version_MAX; - static constexpr int Version_ARRAYSIZE = - PresenceFrame_Version_Version_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - Version_descriptor() { - return PresenceFrame_Version_descriptor(); - } - template - static inline const std::string& Version_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Version_Name."); - return PresenceFrame_Version_Name(enum_t_value); - } - static inline bool Version_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Version* value) { - return PresenceFrame_Version_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kV1FrameFieldNumber = 1, - }; - // optional .nearby.presence.V1Frame v1_frame = 1; - bool has_v1_frame() const; - private: - bool _internal_has_v1_frame() const; - public: - void clear_v1_frame(); - const ::nearby::presence::V1Frame& v1_frame() const; - PROTOBUF_NODISCARD ::nearby::presence::V1Frame* release_v1_frame(); - ::nearby::presence::V1Frame* mutable_v1_frame(); - void set_allocated_v1_frame(::nearby::presence::V1Frame* v1_frame); - private: - const ::nearby::presence::V1Frame& _internal_v1_frame() const; - ::nearby::presence::V1Frame* _internal_mutable_v1_frame(); - public: - void unsafe_arena_set_allocated_v1_frame( - ::nearby::presence::V1Frame* v1_frame); - ::nearby::presence::V1Frame* unsafe_arena_release_v1_frame(); - - // @@protoc_insertion_point(class_scope:nearby.presence.PresenceFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::nearby::presence::V1Frame* v1_frame_; - friend struct ::TableStruct_presence_2fproto_2fpresence_5fframe_2eproto; -}; -// ------------------------------------------------------------------- - -class V1Frame final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.presence.V1Frame) */ { - public: - inline V1Frame() : V1Frame(nullptr) {} - ~V1Frame() override; - explicit constexpr V1Frame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - V1Frame(const V1Frame& from); - V1Frame(V1Frame&& from) noexcept - : V1Frame() { - *this = ::std::move(from); - } - - inline V1Frame& operator=(const V1Frame& from) { - CopyFrom(from); - return *this; - } - inline V1Frame& operator=(V1Frame&& from) noexcept { - 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); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const V1Frame& default_instance() { - return *internal_default_instance(); - } - enum MessageCase { - kControlFrame = 1, - kDeviceIdentityFrame = 2, - kConnectionInitFrame = 3, - kUwbControleeCapabilitiesFrame = 4, - kUwbConnectionInfo = 5, - kAuthenticationFrame = 6, - MESSAGE_NOT_SET = 0, - }; - - static inline const V1Frame* internal_default_instance() { - return reinterpret_cast( - &_V1Frame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(V1Frame& a, V1Frame& b) { - a.Swap(&b); - } - inline void Swap(V1Frame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(V1Frame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - V1Frame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const V1Frame& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const V1Frame& 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; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(V1Frame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.presence.V1Frame"; - } - protected: - explicit V1Frame(::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: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kControlFrameFieldNumber = 1, - kDeviceIdentityFrameFieldNumber = 2, - kConnectionInitFrameFieldNumber = 3, - kUwbControleeCapabilitiesFrameFieldNumber = 4, - kUwbConnectionInfoFieldNumber = 5, - kAuthenticationFrameFieldNumber = 6, - }; - // .nearby.presence.ControlFrame control_frame = 1; - bool has_control_frame() const; - private: - bool _internal_has_control_frame() const; - public: - void clear_control_frame(); - const ::nearby::presence::ControlFrame& control_frame() const; - PROTOBUF_NODISCARD ::nearby::presence::ControlFrame* release_control_frame(); - ::nearby::presence::ControlFrame* mutable_control_frame(); - void set_allocated_control_frame(::nearby::presence::ControlFrame* control_frame); - private: - const ::nearby::presence::ControlFrame& _internal_control_frame() const; - ::nearby::presence::ControlFrame* _internal_mutable_control_frame(); - public: - void unsafe_arena_set_allocated_control_frame( - ::nearby::presence::ControlFrame* control_frame); - ::nearby::presence::ControlFrame* unsafe_arena_release_control_frame(); - - // .nearby.presence.DeviceIdentityFrame device_identity_frame = 2; - bool has_device_identity_frame() const; - private: - bool _internal_has_device_identity_frame() const; - public: - void clear_device_identity_frame(); - const ::nearby::presence::DeviceIdentityFrame& device_identity_frame() const; - PROTOBUF_NODISCARD ::nearby::presence::DeviceIdentityFrame* release_device_identity_frame(); - ::nearby::presence::DeviceIdentityFrame* mutable_device_identity_frame(); - void set_allocated_device_identity_frame(::nearby::presence::DeviceIdentityFrame* device_identity_frame); - private: - const ::nearby::presence::DeviceIdentityFrame& _internal_device_identity_frame() const; - ::nearby::presence::DeviceIdentityFrame* _internal_mutable_device_identity_frame(); - public: - void unsafe_arena_set_allocated_device_identity_frame( - ::nearby::presence::DeviceIdentityFrame* device_identity_frame); - ::nearby::presence::DeviceIdentityFrame* unsafe_arena_release_device_identity_frame(); - - // .nearby.presence.ConnectionInitFrame connection_init_frame = 3; - bool has_connection_init_frame() const; - private: - bool _internal_has_connection_init_frame() const; - public: - void clear_connection_init_frame(); - const ::nearby::presence::ConnectionInitFrame& connection_init_frame() const; - PROTOBUF_NODISCARD ::nearby::presence::ConnectionInitFrame* release_connection_init_frame(); - ::nearby::presence::ConnectionInitFrame* mutable_connection_init_frame(); - void set_allocated_connection_init_frame(::nearby::presence::ConnectionInitFrame* connection_init_frame); - private: - const ::nearby::presence::ConnectionInitFrame& _internal_connection_init_frame() const; - ::nearby::presence::ConnectionInitFrame* _internal_mutable_connection_init_frame(); - public: - void unsafe_arena_set_allocated_connection_init_frame( - ::nearby::presence::ConnectionInitFrame* connection_init_frame); - ::nearby::presence::ConnectionInitFrame* unsafe_arena_release_connection_init_frame(); - - // .nearby.presence.UwbControleeCapabilities uwb_controlee_capabilities_frame = 4; - bool has_uwb_controlee_capabilities_frame() const; - private: - bool _internal_has_uwb_controlee_capabilities_frame() const; - public: - void clear_uwb_controlee_capabilities_frame(); - const ::nearby::presence::UwbControleeCapabilities& uwb_controlee_capabilities_frame() const; - PROTOBUF_NODISCARD ::nearby::presence::UwbControleeCapabilities* release_uwb_controlee_capabilities_frame(); - ::nearby::presence::UwbControleeCapabilities* mutable_uwb_controlee_capabilities_frame(); - void set_allocated_uwb_controlee_capabilities_frame(::nearby::presence::UwbControleeCapabilities* uwb_controlee_capabilities_frame); - private: - const ::nearby::presence::UwbControleeCapabilities& _internal_uwb_controlee_capabilities_frame() const; - ::nearby::presence::UwbControleeCapabilities* _internal_mutable_uwb_controlee_capabilities_frame(); - public: - void unsafe_arena_set_allocated_uwb_controlee_capabilities_frame( - ::nearby::presence::UwbControleeCapabilities* uwb_controlee_capabilities_frame); - ::nearby::presence::UwbControleeCapabilities* unsafe_arena_release_uwb_controlee_capabilities_frame(); - - // .nearby.presence.UwbConnectionInfo uwb_connection_info = 5; - bool has_uwb_connection_info() const; - private: - bool _internal_has_uwb_connection_info() const; - public: - void clear_uwb_connection_info(); - const ::nearby::presence::UwbConnectionInfo& uwb_connection_info() const; - PROTOBUF_NODISCARD ::nearby::presence::UwbConnectionInfo* release_uwb_connection_info(); - ::nearby::presence::UwbConnectionInfo* mutable_uwb_connection_info(); - void set_allocated_uwb_connection_info(::nearby::presence::UwbConnectionInfo* uwb_connection_info); - private: - const ::nearby::presence::UwbConnectionInfo& _internal_uwb_connection_info() const; - ::nearby::presence::UwbConnectionInfo* _internal_mutable_uwb_connection_info(); - public: - void unsafe_arena_set_allocated_uwb_connection_info( - ::nearby::presence::UwbConnectionInfo* uwb_connection_info); - ::nearby::presence::UwbConnectionInfo* unsafe_arena_release_uwb_connection_info(); - - // .nearby.presence.PresenceAuthenticationFrame authentication_frame = 6; - bool has_authentication_frame() const; - private: - bool _internal_has_authentication_frame() const; - public: - void clear_authentication_frame(); - const ::nearby::presence::PresenceAuthenticationFrame& authentication_frame() const; - PROTOBUF_NODISCARD ::nearby::presence::PresenceAuthenticationFrame* release_authentication_frame(); - ::nearby::presence::PresenceAuthenticationFrame* mutable_authentication_frame(); - void set_allocated_authentication_frame(::nearby::presence::PresenceAuthenticationFrame* authentication_frame); - private: - const ::nearby::presence::PresenceAuthenticationFrame& _internal_authentication_frame() const; - ::nearby::presence::PresenceAuthenticationFrame* _internal_mutable_authentication_frame(); - public: - void unsafe_arena_set_allocated_authentication_frame( - ::nearby::presence::PresenceAuthenticationFrame* authentication_frame); - ::nearby::presence::PresenceAuthenticationFrame* unsafe_arena_release_authentication_frame(); - - void clear_Message(); - MessageCase Message_case() const; - // @@protoc_insertion_point(class_scope:nearby.presence.V1Frame) - private: - class _Internal; - void set_has_control_frame(); - void set_has_device_identity_frame(); - void set_has_connection_init_frame(); - void set_has_uwb_controlee_capabilities_frame(); - void set_has_uwb_connection_info(); - void set_has_authentication_frame(); - - inline bool has_Message() const; - inline void clear_has_Message(); - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - union MessageUnion { - constexpr MessageUnion() : _constinit_{} {} - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; - ::nearby::presence::ControlFrame* control_frame_; - ::nearby::presence::DeviceIdentityFrame* device_identity_frame_; - ::nearby::presence::ConnectionInitFrame* connection_init_frame_; - ::nearby::presence::UwbControleeCapabilities* uwb_controlee_capabilities_frame_; - ::nearby::presence::UwbConnectionInfo* uwb_connection_info_; - ::nearby::presence::PresenceAuthenticationFrame* authentication_frame_; - } Message_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - uint32_t _oneof_case_[1]; - - friend struct ::TableStruct_presence_2fproto_2fpresence_5fframe_2eproto; -}; -// ------------------------------------------------------------------- - -class DeviceIdentityFrame final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.presence.DeviceIdentityFrame) */ { - public: - inline DeviceIdentityFrame() : DeviceIdentityFrame(nullptr) {} - ~DeviceIdentityFrame() override; - explicit constexpr DeviceIdentityFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DeviceIdentityFrame(const DeviceIdentityFrame& from); - DeviceIdentityFrame(DeviceIdentityFrame&& from) noexcept - : DeviceIdentityFrame() { - *this = ::std::move(from); - } - - inline DeviceIdentityFrame& operator=(const DeviceIdentityFrame& from) { - CopyFrom(from); - return *this; - } - inline DeviceIdentityFrame& operator=(DeviceIdentityFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const DeviceIdentityFrame& default_instance() { - return *internal_default_instance(); - } - static inline const DeviceIdentityFrame* internal_default_instance() { - return reinterpret_cast( - &_DeviceIdentityFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(DeviceIdentityFrame& a, DeviceIdentityFrame& b) { - a.Swap(&b); - } - inline void Swap(DeviceIdentityFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DeviceIdentityFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DeviceIdentityFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DeviceIdentityFrame& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const DeviceIdentityFrame& 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; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeviceIdentityFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.presence.DeviceIdentityFrame"; - } - protected: - explicit DeviceIdentityFrame(::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: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionFieldNumber = 5, - kDeviceNameFieldNumber = 1, - kBluetoothMacAddressFieldNumber = 2, - kDeviceImageUrlFieldNumber = 3, - kModelIdFieldNumber = 4, - kDeviceModelNameFieldNumber = 6, - kDeviceTypeFieldNumber = 7, - }; - // repeated int32 action = 5 [packed = true]; - int action_size() const; - private: - int _internal_action_size() const; - public: - void clear_action(); - private: - int32_t _internal_action(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_action() const; - void _internal_add_action(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_action(); - public: - int32_t action(int index) const; - void set_action(int index, int32_t value); - void add_action(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - action() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_action(); - - // optional string device_name = 1; - bool has_device_name() const; - private: - bool _internal_has_device_name() const; - public: - void clear_device_name(); - const std::string& device_name() const; - template - void set_device_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_name(); - PROTOBUF_NODISCARD std::string* release_device_name(); - void set_allocated_device_name(std::string* device_name); - private: - const std::string& _internal_device_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_name(const std::string& value); - std::string* _internal_mutable_device_name(); - public: - - // optional bytes bluetooth_mac_address = 2; - bool has_bluetooth_mac_address() const; - private: - bool _internal_has_bluetooth_mac_address() const; - public: - void clear_bluetooth_mac_address(); - const std::string& bluetooth_mac_address() const; - template - void set_bluetooth_mac_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_bluetooth_mac_address(); - PROTOBUF_NODISCARD std::string* release_bluetooth_mac_address(); - void set_allocated_bluetooth_mac_address(std::string* bluetooth_mac_address); - private: - const std::string& _internal_bluetooth_mac_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_bluetooth_mac_address(const std::string& value); - std::string* _internal_mutable_bluetooth_mac_address(); - public: - - // optional string device_image_url = 3; - bool has_device_image_url() const; - private: - bool _internal_has_device_image_url() const; - public: - void clear_device_image_url(); - const std::string& device_image_url() const; - template - void set_device_image_url(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_image_url(); - PROTOBUF_NODISCARD std::string* release_device_image_url(); - void set_allocated_device_image_url(std::string* device_image_url); - private: - const std::string& _internal_device_image_url() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_image_url(const std::string& value); - std::string* _internal_mutable_device_image_url(); - public: - - // optional string model_id = 4; - bool has_model_id() const; - private: - bool _internal_has_model_id() const; - public: - void clear_model_id(); - const std::string& model_id() const; - template - void set_model_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_model_id(); - PROTOBUF_NODISCARD std::string* release_model_id(); - void set_allocated_model_id(std::string* model_id); - private: - const std::string& _internal_model_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_model_id(const std::string& value); - std::string* _internal_mutable_model_id(); - public: - - // optional string device_model_name = 6; - bool has_device_model_name() const; - private: - bool _internal_has_device_model_name() const; - public: - void clear_device_model_name(); - const std::string& device_model_name() const; - template - void set_device_model_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_device_model_name(); - PROTOBUF_NODISCARD std::string* release_device_model_name(); - void set_allocated_device_model_name(std::string* device_model_name); - private: - const std::string& _internal_device_model_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_model_name(const std::string& value); - std::string* _internal_mutable_device_model_name(); - public: - - // optional int32 device_type = 7; - bool has_device_type() const; - private: - bool _internal_has_device_type() const; - public: - void clear_device_type(); - int32_t device_type() const; - void set_device_type(int32_t value); - private: - int32_t _internal_device_type() const; - void _internal_set_device_type(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.presence.DeviceIdentityFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > action_; - mutable std::atomic _action_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bluetooth_mac_address_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_image_url_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_model_name_; - int32_t device_type_; - friend struct ::TableStruct_presence_2fproto_2fpresence_5fframe_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionInitFrame final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.presence.ConnectionInitFrame) */ { - public: - inline ConnectionInitFrame() : ConnectionInitFrame(nullptr) {} - ~ConnectionInitFrame() override; - explicit constexpr ConnectionInitFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ConnectionInitFrame(const ConnectionInitFrame& from); - ConnectionInitFrame(ConnectionInitFrame&& from) noexcept - : ConnectionInitFrame() { - *this = ::std::move(from); - } - - inline ConnectionInitFrame& operator=(const ConnectionInitFrame& from) { - CopyFrom(from); - return *this; - } - inline ConnectionInitFrame& operator=(ConnectionInitFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ConnectionInitFrame& default_instance() { - return *internal_default_instance(); - } - static inline const ConnectionInitFrame* internal_default_instance() { - return reinterpret_cast( - &_ConnectionInitFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(ConnectionInitFrame& a, ConnectionInitFrame& b) { - a.Swap(&b); - } - inline void Swap(ConnectionInitFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ConnectionInitFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ConnectionInitFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ConnectionInitFrame& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ConnectionInitFrame& 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; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ConnectionInitFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.presence.ConnectionInitFrame"; - } - protected: - explicit ConnectionInitFrame(::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: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kActionsFieldNumber = 1, - kIdentityTypeFieldNumber = 2, - kUwbEnableFieldNumber = 3, - kDeviceUniqueIdFieldNumber = 4, - }; - // repeated int32 actions = 1 [packed = true]; - int actions_size() const; - private: - int _internal_actions_size() const; - public: - void clear_actions(); - private: - int32_t _internal_actions(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_actions() const; - void _internal_add_actions(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_actions(); - public: - int32_t actions(int index) const; - void set_actions(int index, int32_t value); - void add_actions(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - actions() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_actions(); - - // optional int32 identity_type = 2; - bool has_identity_type() const; - private: - bool _internal_has_identity_type() const; - public: - void clear_identity_type(); - int32_t identity_type() const; - void set_identity_type(int32_t value); - private: - int32_t _internal_identity_type() const; - void _internal_set_identity_type(int32_t value); - public: - - // optional bool uwb_enable = 3; - bool has_uwb_enable() const; - private: - bool _internal_has_uwb_enable() const; - public: - void clear_uwb_enable(); - bool uwb_enable() const; - void set_uwb_enable(bool value); - private: - bool _internal_uwb_enable() const; - void _internal_set_uwb_enable(bool value); - public: - - // optional int64 device_unique_id = 4; - bool has_device_unique_id() const; - private: - bool _internal_has_device_unique_id() const; - public: - void clear_device_unique_id(); - int64_t device_unique_id() const; - void set_device_unique_id(int64_t value); - private: - int64_t _internal_device_unique_id() const; - void _internal_set_device_unique_id(int64_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.presence.ConnectionInitFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > actions_; - mutable std::atomic _actions_cached_byte_size_; - int32_t identity_type_; - bool uwb_enable_; - int64_t device_unique_id_; - friend struct ::TableStruct_presence_2fproto_2fpresence_5fframe_2eproto; -}; -// ------------------------------------------------------------------- - -class UwbControleeCapabilities final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.presence.UwbControleeCapabilities) */ { - public: - inline UwbControleeCapabilities() : UwbControleeCapabilities(nullptr) {} - ~UwbControleeCapabilities() override; - explicit constexpr UwbControleeCapabilities(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - UwbControleeCapabilities(const UwbControleeCapabilities& from); - UwbControleeCapabilities(UwbControleeCapabilities&& from) noexcept - : UwbControleeCapabilities() { - *this = ::std::move(from); - } - - inline UwbControleeCapabilities& operator=(const UwbControleeCapabilities& from) { - CopyFrom(from); - return *this; - } - inline UwbControleeCapabilities& operator=(UwbControleeCapabilities&& from) noexcept { - 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); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const UwbControleeCapabilities& default_instance() { - return *internal_default_instance(); - } - static inline const UwbControleeCapabilities* internal_default_instance() { - return reinterpret_cast( - &_UwbControleeCapabilities_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(UwbControleeCapabilities& a, UwbControleeCapabilities& b) { - a.Swap(&b); - } - inline void Swap(UwbControleeCapabilities* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(UwbControleeCapabilities* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UwbControleeCapabilities* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const UwbControleeCapabilities& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const UwbControleeCapabilities& 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; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UwbControleeCapabilities* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.presence.UwbControleeCapabilities"; - } - protected: - explicit UwbControleeCapabilities(::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: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kSupportedConfigIdsFieldNumber = 2, - kSupportedChannelsFieldNumber = 3, - kSupportedNtfConfigsFieldNumber = 13, - kSupportedSlotDurationsFieldNumber = 15, - kSupportedRangingUpdateRatesFieldNumber = 16, - kMultiChipInfoFieldNumber = 18, - kControleeAddressFieldNumber = 1, - kSubSessionIdFieldNumber = 5, - kSubSessionKeyFieldNumber = 6, - kDeviceUniqueIdFieldNumber = 8, - kMinRangingIntervalMsFieldNumber = 4, - kRangingDisabledFieldNumber = 7, - kIsElevationSupportedFieldNumber = 11, - kIsRangingIntervalReconfigureSupportedFieldNumber = 14, - kChipCountFieldNumber = 17, - kIsDistanceSupportedFieldNumber = 9, - kIsAzimuthSupportedFieldNumber = 10, - kMinSlotDurationMsFieldNumber = 12, - }; - // repeated int32 supported_config_ids = 2 [packed = true]; - int supported_config_ids_size() const; - private: - int _internal_supported_config_ids_size() const; - public: - void clear_supported_config_ids(); - private: - int32_t _internal_supported_config_ids(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_supported_config_ids() const; - void _internal_add_supported_config_ids(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_supported_config_ids(); - public: - int32_t supported_config_ids(int index) const; - void set_supported_config_ids(int index, int32_t value); - void add_supported_config_ids(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - supported_config_ids() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_supported_config_ids(); - - // repeated int32 supported_channels = 3 [packed = true]; - int supported_channels_size() const; - private: - int _internal_supported_channels_size() const; - public: - void clear_supported_channels(); - private: - int32_t _internal_supported_channels(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_supported_channels() const; - void _internal_add_supported_channels(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_supported_channels(); - public: - int32_t supported_channels(int index) const; - void set_supported_channels(int index, int32_t value); - void add_supported_channels(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - supported_channels() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_supported_channels(); - - // repeated int32 supported_ntf_configs = 13 [packed = true]; - int supported_ntf_configs_size() const; - private: - int _internal_supported_ntf_configs_size() const; - public: - void clear_supported_ntf_configs(); - private: - int32_t _internal_supported_ntf_configs(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_supported_ntf_configs() const; - void _internal_add_supported_ntf_configs(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_supported_ntf_configs(); - public: - int32_t supported_ntf_configs(int index) const; - void set_supported_ntf_configs(int index, int32_t value); - void add_supported_ntf_configs(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - supported_ntf_configs() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_supported_ntf_configs(); - - // repeated int32 supported_slot_durations = 15 [packed = true]; - int supported_slot_durations_size() const; - private: - int _internal_supported_slot_durations_size() const; - public: - void clear_supported_slot_durations(); - private: - int32_t _internal_supported_slot_durations(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_supported_slot_durations() const; - void _internal_add_supported_slot_durations(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_supported_slot_durations(); - public: - int32_t supported_slot_durations(int index) const; - void set_supported_slot_durations(int index, int32_t value); - void add_supported_slot_durations(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - supported_slot_durations() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_supported_slot_durations(); - - // repeated int32 supported_ranging_update_rates = 16 [packed = true]; - int supported_ranging_update_rates_size() const; - private: - int _internal_supported_ranging_update_rates_size() const; - public: - void clear_supported_ranging_update_rates(); - private: - int32_t _internal_supported_ranging_update_rates(int index) const; - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - _internal_supported_ranging_update_rates() const; - void _internal_add_supported_ranging_update_rates(int32_t value); - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - _internal_mutable_supported_ranging_update_rates(); - public: - int32_t supported_ranging_update_rates(int index) const; - void set_supported_ranging_update_rates(int index, int32_t value); - void add_supported_ranging_update_rates(int32_t value); - const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& - supported_ranging_update_rates() const; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* - mutable_supported_ranging_update_rates(); - - // repeated .nearby.presence.UwbMultiChipInfo multi_chip_info = 18; - int multi_chip_info_size() const; - private: - int _internal_multi_chip_info_size() const; - public: - void clear_multi_chip_info(); - ::nearby::presence::UwbMultiChipInfo* mutable_multi_chip_info(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::presence::UwbMultiChipInfo >* - mutable_multi_chip_info(); - private: - const ::nearby::presence::UwbMultiChipInfo& _internal_multi_chip_info(int index) const; - ::nearby::presence::UwbMultiChipInfo* _internal_add_multi_chip_info(); - public: - const ::nearby::presence::UwbMultiChipInfo& multi_chip_info(int index) const; - ::nearby::presence::UwbMultiChipInfo* add_multi_chip_info(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::presence::UwbMultiChipInfo >& - multi_chip_info() const; - - // optional bytes controlee_address = 1; - bool has_controlee_address() const; - private: - bool _internal_has_controlee_address() const; - public: - void clear_controlee_address(); - const std::string& controlee_address() const; - template - void set_controlee_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_controlee_address(); - PROTOBUF_NODISCARD std::string* release_controlee_address(); - void set_allocated_controlee_address(std::string* controlee_address); - private: - const std::string& _internal_controlee_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_controlee_address(const std::string& value); - std::string* _internal_mutable_controlee_address(); - public: - - // optional bytes sub_session_id = 5; - bool has_sub_session_id() const; - private: - bool _internal_has_sub_session_id() const; - public: - void clear_sub_session_id(); - const std::string& sub_session_id() const; - template - void set_sub_session_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_sub_session_id(); - PROTOBUF_NODISCARD std::string* release_sub_session_id(); - void set_allocated_sub_session_id(std::string* sub_session_id); - private: - const std::string& _internal_sub_session_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sub_session_id(const std::string& value); - std::string* _internal_mutable_sub_session_id(); - public: - - // optional bytes sub_session_key = 6; - bool has_sub_session_key() const; - private: - bool _internal_has_sub_session_key() const; - public: - void clear_sub_session_key(); - const std::string& sub_session_key() const; - template - void set_sub_session_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_sub_session_key(); - PROTOBUF_NODISCARD std::string* release_sub_session_key(); - void set_allocated_sub_session_key(std::string* sub_session_key); - private: - const std::string& _internal_sub_session_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_sub_session_key(const std::string& value); - std::string* _internal_mutable_sub_session_key(); - public: - - // optional int64 device_unique_id = 8; - bool has_device_unique_id() const; - private: - bool _internal_has_device_unique_id() const; - public: - void clear_device_unique_id(); - int64_t device_unique_id() const; - void set_device_unique_id(int64_t value); - private: - int64_t _internal_device_unique_id() const; - void _internal_set_device_unique_id(int64_t value); - public: - - // optional int32 min_ranging_interval_ms = 4; - bool has_min_ranging_interval_ms() const; - private: - bool _internal_has_min_ranging_interval_ms() const; - public: - void clear_min_ranging_interval_ms(); - int32_t min_ranging_interval_ms() const; - void set_min_ranging_interval_ms(int32_t value); - private: - int32_t _internal_min_ranging_interval_ms() const; - void _internal_set_min_ranging_interval_ms(int32_t value); - public: - - // optional bool ranging_disabled = 7; - bool has_ranging_disabled() const; - private: - bool _internal_has_ranging_disabled() const; - public: - void clear_ranging_disabled(); - bool ranging_disabled() const; - void set_ranging_disabled(bool value); - private: - bool _internal_ranging_disabled() const; - void _internal_set_ranging_disabled(bool value); - public: - - // optional bool is_elevation_supported = 11 [default = false]; - bool has_is_elevation_supported() const; - private: - bool _internal_has_is_elevation_supported() const; - public: - void clear_is_elevation_supported(); - bool is_elevation_supported() const; - void set_is_elevation_supported(bool value); - private: - bool _internal_is_elevation_supported() const; - void _internal_set_is_elevation_supported(bool value); - public: - - // optional bool is_ranging_interval_reconfigure_supported = 14 [default = false]; - bool has_is_ranging_interval_reconfigure_supported() const; - private: - bool _internal_has_is_ranging_interval_reconfigure_supported() const; - public: - void clear_is_ranging_interval_reconfigure_supported(); - bool is_ranging_interval_reconfigure_supported() const; - void set_is_ranging_interval_reconfigure_supported(bool value); - private: - bool _internal_is_ranging_interval_reconfigure_supported() const; - void _internal_set_is_ranging_interval_reconfigure_supported(bool value); - public: - - // optional int32 chip_count = 17 [default = 1]; - bool has_chip_count() const; - private: - bool _internal_has_chip_count() const; - public: - void clear_chip_count(); - int32_t chip_count() const; - void set_chip_count(int32_t value); - private: - int32_t _internal_chip_count() const; - void _internal_set_chip_count(int32_t value); - public: - - // optional bool is_distance_supported = 9 [default = true]; - bool has_is_distance_supported() const; - private: - bool _internal_has_is_distance_supported() const; - public: - void clear_is_distance_supported(); - bool is_distance_supported() const; - void set_is_distance_supported(bool value); - private: - bool _internal_is_distance_supported() const; - void _internal_set_is_distance_supported(bool value); - public: - - // optional bool is_azimuth_supported = 10 [default = true]; - bool has_is_azimuth_supported() const; - private: - bool _internal_has_is_azimuth_supported() const; - public: - void clear_is_azimuth_supported(); - bool is_azimuth_supported() const; - void set_is_azimuth_supported(bool value); - private: - bool _internal_is_azimuth_supported() const; - void _internal_set_is_azimuth_supported(bool value); - public: - - // optional float min_slot_duration_ms = 12 [default = 2]; - bool has_min_slot_duration_ms() const; - private: - bool _internal_has_min_slot_duration_ms() const; - public: - void clear_min_slot_duration_ms(); - float min_slot_duration_ms() const; - void set_min_slot_duration_ms(float value); - private: - float _internal_min_slot_duration_ms() const; - void _internal_set_min_slot_duration_ms(float value); - public: - - // @@protoc_insertion_point(class_scope:nearby.presence.UwbControleeCapabilities) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > supported_config_ids_; - mutable std::atomic _supported_config_ids_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > supported_channels_; - mutable std::atomic _supported_channels_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > supported_ntf_configs_; - mutable std::atomic _supported_ntf_configs_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > supported_slot_durations_; - mutable std::atomic _supported_slot_durations_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > supported_ranging_update_rates_; - mutable std::atomic _supported_ranging_update_rates_cached_byte_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::presence::UwbMultiChipInfo > multi_chip_info_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controlee_address_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sub_session_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sub_session_key_; - int64_t device_unique_id_; - int32_t min_ranging_interval_ms_; - bool ranging_disabled_; - bool is_elevation_supported_; - bool is_ranging_interval_reconfigure_supported_; - int32_t chip_count_; - bool is_distance_supported_; - bool is_azimuth_supported_; - float min_slot_duration_ms_; - friend struct ::TableStruct_presence_2fproto_2fpresence_5fframe_2eproto; -}; -// ------------------------------------------------------------------- - -class UwbMultiChipInfo final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.presence.UwbMultiChipInfo) */ { - public: - inline UwbMultiChipInfo() : UwbMultiChipInfo(nullptr) {} - ~UwbMultiChipInfo() override; - explicit constexpr UwbMultiChipInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - UwbMultiChipInfo(const UwbMultiChipInfo& from); - UwbMultiChipInfo(UwbMultiChipInfo&& from) noexcept - : UwbMultiChipInfo() { - *this = ::std::move(from); - } - - inline UwbMultiChipInfo& operator=(const UwbMultiChipInfo& from) { - CopyFrom(from); - return *this; - } - inline UwbMultiChipInfo& operator=(UwbMultiChipInfo&& from) noexcept { - 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); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const UwbMultiChipInfo& default_instance() { - return *internal_default_instance(); - } - static inline const UwbMultiChipInfo* internal_default_instance() { - return reinterpret_cast( - &_UwbMultiChipInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(UwbMultiChipInfo& a, UwbMultiChipInfo& b) { - a.Swap(&b); - } - inline void Swap(UwbMultiChipInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(UwbMultiChipInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UwbMultiChipInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const UwbMultiChipInfo& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const UwbMultiChipInfo& 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; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UwbMultiChipInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.presence.UwbMultiChipInfo"; - } - protected: - explicit UwbMultiChipInfo(::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: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kControleeAddressFieldNumber = 1, - kChipIdFieldNumber = 2, - }; - // optional bytes controlee_address = 1; - bool has_controlee_address() const; - private: - bool _internal_has_controlee_address() const; - public: - void clear_controlee_address(); - const std::string& controlee_address() const; - template - void set_controlee_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_controlee_address(); - PROTOBUF_NODISCARD std::string* release_controlee_address(); - void set_allocated_controlee_address(std::string* controlee_address); - private: - const std::string& _internal_controlee_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_controlee_address(const std::string& value); - std::string* _internal_mutable_controlee_address(); - public: - - // optional string chip_id = 2; - bool has_chip_id() const; - private: - bool _internal_has_chip_id() const; - public: - void clear_chip_id(); - const std::string& chip_id() const; - template - void set_chip_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_chip_id(); - PROTOBUF_NODISCARD std::string* release_chip_id(); - void set_allocated_chip_id(std::string* chip_id); - private: - const std::string& _internal_chip_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_chip_id(const std::string& value); - std::string* _internal_mutable_chip_id(); - public: - - // @@protoc_insertion_point(class_scope:nearby.presence.UwbMultiChipInfo) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controlee_address_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chip_id_; - friend struct ::TableStruct_presence_2fproto_2fpresence_5fframe_2eproto; -}; -// ------------------------------------------------------------------- - -class UwbConnectionInfo final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.presence.UwbConnectionInfo) */ { - public: - inline UwbConnectionInfo() : UwbConnectionInfo(nullptr) {} - ~UwbConnectionInfo() override; - explicit constexpr UwbConnectionInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - UwbConnectionInfo(const UwbConnectionInfo& from); - UwbConnectionInfo(UwbConnectionInfo&& from) noexcept - : UwbConnectionInfo() { - *this = ::std::move(from); - } - - inline UwbConnectionInfo& operator=(const UwbConnectionInfo& from) { - CopyFrom(from); - return *this; - } - inline UwbConnectionInfo& operator=(UwbConnectionInfo&& from) noexcept { - 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); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const UwbConnectionInfo& default_instance() { - return *internal_default_instance(); - } - static inline const UwbConnectionInfo* internal_default_instance() { - return reinterpret_cast( - &_UwbConnectionInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(UwbConnectionInfo& a, UwbConnectionInfo& b) { - a.Swap(&b); - } - inline void Swap(UwbConnectionInfo* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(UwbConnectionInfo* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - UwbConnectionInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const UwbConnectionInfo& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const UwbConnectionInfo& 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; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UwbConnectionInfo* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.presence.UwbConnectionInfo"; - } - protected: - explicit UwbConnectionInfo(::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: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kControllerAddressFieldNumber = 1, - kVendorIdFieldNumber = 7, - kStaticStsIvFieldNumber = 8, - kSessionKeyFieldNumber = 9, - kChannelFieldNumber = 2, - kPreambleIndexFieldNumber = 3, - kConfigIdFieldNumber = 4, - kRangingIntervalMsFieldNumber = 5, - kSessionIdFieldNumber = 6, - kRangingDisabledFieldNumber = 10, - }; - // optional bytes controller_address = 1; - bool has_controller_address() const; - private: - bool _internal_has_controller_address() const; - public: - void clear_controller_address(); - const std::string& controller_address() const; - template - void set_controller_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_controller_address(); - PROTOBUF_NODISCARD std::string* release_controller_address(); - void set_allocated_controller_address(std::string* controller_address); - private: - const std::string& _internal_controller_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_controller_address(const std::string& value); - std::string* _internal_mutable_controller_address(); - public: - - // optional bytes vendor_id = 7; - bool has_vendor_id() const; - private: - bool _internal_has_vendor_id() const; - public: - void clear_vendor_id(); - const std::string& vendor_id() const; - template - void set_vendor_id(ArgT0&& arg0, ArgT... args); - std::string* mutable_vendor_id(); - PROTOBUF_NODISCARD std::string* release_vendor_id(); - void set_allocated_vendor_id(std::string* vendor_id); - private: - const std::string& _internal_vendor_id() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_vendor_id(const std::string& value); - std::string* _internal_mutable_vendor_id(); - public: - - // optional bytes static_sts_iv = 8; - bool has_static_sts_iv() const; - private: - bool _internal_has_static_sts_iv() const; - public: - void clear_static_sts_iv(); - const std::string& static_sts_iv() const; - template - void set_static_sts_iv(ArgT0&& arg0, ArgT... args); - std::string* mutable_static_sts_iv(); - PROTOBUF_NODISCARD std::string* release_static_sts_iv(); - void set_allocated_static_sts_iv(std::string* static_sts_iv); - private: - const std::string& _internal_static_sts_iv() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_static_sts_iv(const std::string& value); - std::string* _internal_mutable_static_sts_iv(); - public: - - // optional bytes session_key = 9; - bool has_session_key() const; - private: - bool _internal_has_session_key() const; - public: - void clear_session_key(); - const std::string& session_key() const; - template - void set_session_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_session_key(); - PROTOBUF_NODISCARD std::string* release_session_key(); - void set_allocated_session_key(std::string* session_key); - private: - const std::string& _internal_session_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_session_key(const std::string& value); - std::string* _internal_mutable_session_key(); - public: - - // optional int32 channel = 2; - bool has_channel() const; - private: - bool _internal_has_channel() const; - public: - void clear_channel(); - int32_t channel() const; - void set_channel(int32_t value); - private: - int32_t _internal_channel() const; - void _internal_set_channel(int32_t value); - public: - - // optional int32 preamble_index = 3; - bool has_preamble_index() const; - private: - bool _internal_has_preamble_index() const; - public: - void clear_preamble_index(); - int32_t preamble_index() const; - void set_preamble_index(int32_t value); - private: - int32_t _internal_preamble_index() const; - void _internal_set_preamble_index(int32_t value); - public: - - // optional int32 config_id = 4; - bool has_config_id() const; - private: - bool _internal_has_config_id() const; - public: - void clear_config_id(); - int32_t config_id() const; - void set_config_id(int32_t value); - private: - int32_t _internal_config_id() const; - void _internal_set_config_id(int32_t value); - public: - - // optional int32 ranging_interval_ms = 5; - bool has_ranging_interval_ms() const; - private: - bool _internal_has_ranging_interval_ms() const; - public: - void clear_ranging_interval_ms(); - int32_t ranging_interval_ms() const; - void set_ranging_interval_ms(int32_t value); - private: - int32_t _internal_ranging_interval_ms() const; - void _internal_set_ranging_interval_ms(int32_t value); - public: - - // optional int32 session_id = 6; - bool has_session_id() const; - private: - bool _internal_has_session_id() const; - public: - void clear_session_id(); - int32_t session_id() const; - void set_session_id(int32_t value); - private: - int32_t _internal_session_id() const; - void _internal_set_session_id(int32_t value); - public: - - // optional bool ranging_disabled = 10; - bool has_ranging_disabled() const; - private: - bool _internal_has_ranging_disabled() const; - public: - void clear_ranging_disabled(); - bool ranging_disabled() const; - void set_ranging_disabled(bool value); - private: - bool _internal_ranging_disabled() const; - void _internal_set_ranging_disabled(bool value); - public: - - // @@protoc_insertion_point(class_scope:nearby.presence.UwbConnectionInfo) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr controller_address_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr vendor_id_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr static_sts_iv_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_key_; - int32_t channel_; - int32_t preamble_index_; - int32_t config_id_; - int32_t ranging_interval_ms_; - int32_t session_id_; - bool ranging_disabled_; - friend struct ::TableStruct_presence_2fproto_2fpresence_5fframe_2eproto; -}; -// ------------------------------------------------------------------- - -class ControlFrame final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.presence.ControlFrame) */ { - public: - inline ControlFrame() : ControlFrame(nullptr) {} - ~ControlFrame() override; - explicit constexpr ControlFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ControlFrame(const ControlFrame& from); - ControlFrame(ControlFrame&& from) noexcept - : ControlFrame() { - *this = ::std::move(from); - } - - inline ControlFrame& operator=(const ControlFrame& from) { - CopyFrom(from); - return *this; - } - inline ControlFrame& operator=(ControlFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const ControlFrame& default_instance() { - return *internal_default_instance(); - } - static inline const ControlFrame* internal_default_instance() { - return reinterpret_cast( - &_ControlFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - friend void swap(ControlFrame& a, ControlFrame& b) { - a.Swap(&b); - } - inline void Swap(ControlFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ControlFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ControlFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ControlFrame& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const ControlFrame& 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; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ControlFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.presence.ControlFrame"; - } - protected: - explicit ControlFrame(::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: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef ControlFrame_ControlType ControlType; - static constexpr ControlType UNKNOWN_TYPE = - ControlFrame_ControlType_UNKNOWN_TYPE; - static constexpr ControlType KEEP_ALIVE = - ControlFrame_ControlType_KEEP_ALIVE; - static constexpr ControlType DISCONNECT = - ControlFrame_ControlType_DISCONNECT; - static inline bool ControlType_IsValid(int value) { - return ControlFrame_ControlType_IsValid(value); - } - static constexpr ControlType ControlType_MIN = - ControlFrame_ControlType_ControlType_MIN; - static constexpr ControlType ControlType_MAX = - ControlFrame_ControlType_ControlType_MAX; - static constexpr int ControlType_ARRAYSIZE = - ControlFrame_ControlType_ControlType_ARRAYSIZE; - static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* - ControlType_descriptor() { - return ControlFrame_ControlType_descriptor(); - } - template - static inline const std::string& ControlType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ControlType_Name."); - return ControlFrame_ControlType_Name(enum_t_value); - } - static inline bool ControlType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - ControlType* value) { - return ControlFrame_ControlType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kTypeFieldNumber = 1, - }; - // optional .nearby.presence.ControlFrame.ControlType type = 1; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::nearby::presence::ControlFrame_ControlType type() const; - void set_type(::nearby::presence::ControlFrame_ControlType value); - private: - ::nearby::presence::ControlFrame_ControlType _internal_type() const; - void _internal_set_type(::nearby::presence::ControlFrame_ControlType value); - public: - - // @@protoc_insertion_point(class_scope:nearby.presence.ControlFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - int type_; - friend struct ::TableStruct_presence_2fproto_2fpresence_5fframe_2eproto; -}; -// ------------------------------------------------------------------- - -class PresenceAuthenticationFrame final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:nearby.presence.PresenceAuthenticationFrame) */ { - public: - inline PresenceAuthenticationFrame() : PresenceAuthenticationFrame(nullptr) {} - ~PresenceAuthenticationFrame() override; - explicit constexpr PresenceAuthenticationFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - PresenceAuthenticationFrame(const PresenceAuthenticationFrame& from); - PresenceAuthenticationFrame(PresenceAuthenticationFrame&& from) noexcept - : PresenceAuthenticationFrame() { - *this = ::std::move(from); - } - - inline PresenceAuthenticationFrame& operator=(const PresenceAuthenticationFrame& from) { - CopyFrom(from); - return *this; - } - inline PresenceAuthenticationFrame& operator=(PresenceAuthenticationFrame&& from) noexcept { - 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); - } - return *this; - } - - inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { - return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); - } - inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); - } - - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { - return GetDescriptor(); - } - static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { - return default_instance().GetMetadata().reflection; - } - static const PresenceAuthenticationFrame& default_instance() { - return *internal_default_instance(); - } - static inline const PresenceAuthenticationFrame* internal_default_instance() { - return reinterpret_cast( - &_PresenceAuthenticationFrame_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - friend void swap(PresenceAuthenticationFrame& a, PresenceAuthenticationFrame& b) { - a.Swap(&b); - } - inline void Swap(PresenceAuthenticationFrame* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(PresenceAuthenticationFrame* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - PresenceAuthenticationFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const PresenceAuthenticationFrame& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom(const PresenceAuthenticationFrame& 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; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PresenceAuthenticationFrame* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.presence.PresenceAuthenticationFrame"; - } - protected: - explicit PresenceAuthenticationFrame(::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: - - static const ClassData _class_data_; - const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; - - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPrivateKeySignatureFieldNumber = 2, - kSharedCredentialIdHashFieldNumber = 3, - kCredentialIdHashFieldNumber = 4, - kVersionFieldNumber = 1, - }; - // optional bytes private_key_signature = 2; - bool has_private_key_signature() const; - private: - bool _internal_has_private_key_signature() const; - public: - void clear_private_key_signature(); - const std::string& private_key_signature() const; - template - void set_private_key_signature(ArgT0&& arg0, ArgT... args); - std::string* mutable_private_key_signature(); - PROTOBUF_NODISCARD std::string* release_private_key_signature(); - void set_allocated_private_key_signature(std::string* private_key_signature); - private: - const std::string& _internal_private_key_signature() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_private_key_signature(const std::string& value); - std::string* _internal_mutable_private_key_signature(); - public: - - // optional bytes shared_credential_id_hash = 3; - bool has_shared_credential_id_hash() const; - private: - bool _internal_has_shared_credential_id_hash() const; - public: - void clear_shared_credential_id_hash(); - const std::string& shared_credential_id_hash() const; - template - void set_shared_credential_id_hash(ArgT0&& arg0, ArgT... args); - std::string* mutable_shared_credential_id_hash(); - PROTOBUF_NODISCARD std::string* release_shared_credential_id_hash(); - void set_allocated_shared_credential_id_hash(std::string* shared_credential_id_hash); - private: - const std::string& _internal_shared_credential_id_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_shared_credential_id_hash(const std::string& value); - std::string* _internal_mutable_shared_credential_id_hash(); - public: - - // optional bytes credential_id_hash = 4 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_credential_id_hash() const; - private: - bool _internal_has_credential_id_hash() const; - public: - PROTOBUF_DEPRECATED void clear_credential_id_hash(); - PROTOBUF_DEPRECATED const std::string& credential_id_hash() const; - template - PROTOBUF_DEPRECATED void set_credential_id_hash(ArgT0&& arg0, ArgT... args); - PROTOBUF_DEPRECATED std::string* mutable_credential_id_hash(); - PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_credential_id_hash(); - PROTOBUF_DEPRECATED void set_allocated_credential_id_hash(std::string* credential_id_hash); - private: - const std::string& _internal_credential_id_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_credential_id_hash(const std::string& value); - std::string* _internal_mutable_credential_id_hash(); - public: - - // optional int32 version = 1; - bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - int32_t version() const; - void set_version(int32_t value); - private: - int32_t _internal_version() const; - void _internal_set_version(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:nearby.presence.PresenceAuthenticationFrame) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr private_key_signature_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr shared_credential_id_hash_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr credential_id_hash_; - int32_t version_; - friend struct ::TableStruct_presence_2fproto_2fpresence_5fframe_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// PresenceFrame - -// optional .nearby.presence.V1Frame v1_frame = 1; -inline bool PresenceFrame::_internal_has_v1_frame() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - PROTOBUF_ASSUME(!value || v1_frame_ != nullptr); - return value; -} -inline bool PresenceFrame::has_v1_frame() const { - return _internal_has_v1_frame(); -} -inline void PresenceFrame::clear_v1_frame() { - if (v1_frame_ != nullptr) v1_frame_->Clear(); - _has_bits_[0] &= ~0x00000001u; -} -inline const ::nearby::presence::V1Frame& PresenceFrame::_internal_v1_frame() const { - const ::nearby::presence::V1Frame* p = v1_frame_; - return p != nullptr ? *p : reinterpret_cast( - ::nearby::presence::_V1Frame_default_instance_); -} -inline const ::nearby::presence::V1Frame& PresenceFrame::v1_frame() const { - // @@protoc_insertion_point(field_get:nearby.presence.PresenceFrame.v1_frame) - return _internal_v1_frame(); -} -inline void PresenceFrame::unsafe_arena_set_allocated_v1_frame( - ::nearby::presence::V1Frame* v1_frame) { - if (GetArenaForAllocation() == nullptr) { - delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(v1_frame_); - } - v1_frame_ = v1_frame; - if (v1_frame) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.presence.PresenceFrame.v1_frame) -} -inline ::nearby::presence::V1Frame* PresenceFrame::release_v1_frame() { - _has_bits_[0] &= ~0x00000001u; - ::nearby::presence::V1Frame* temp = v1_frame_; - v1_frame_ = 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 ::nearby::presence::V1Frame* PresenceFrame::unsafe_arena_release_v1_frame() { - // @@protoc_insertion_point(field_release:nearby.presence.PresenceFrame.v1_frame) - _has_bits_[0] &= ~0x00000001u; - ::nearby::presence::V1Frame* temp = v1_frame_; - v1_frame_ = nullptr; - return temp; -} -inline ::nearby::presence::V1Frame* PresenceFrame::_internal_mutable_v1_frame() { - _has_bits_[0] |= 0x00000001u; - if (v1_frame_ == nullptr) { - auto* p = CreateMaybeMessage<::nearby::presence::V1Frame>(GetArenaForAllocation()); - v1_frame_ = p; - } - return v1_frame_; -} -inline ::nearby::presence::V1Frame* PresenceFrame::mutable_v1_frame() { - ::nearby::presence::V1Frame* _msg = _internal_mutable_v1_frame(); - // @@protoc_insertion_point(field_mutable:nearby.presence.PresenceFrame.v1_frame) - return _msg; -} -inline void PresenceFrame::set_allocated_v1_frame(::nearby::presence::V1Frame* v1_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); - if (message_arena == nullptr) { - delete v1_frame_; - } - if (v1_frame) { - ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::nearby::presence::V1Frame>::GetOwningArena(v1_frame); - if (message_arena != submessage_arena) { - v1_frame = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, v1_frame, submessage_arena); - } - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - v1_frame_ = v1_frame; - // @@protoc_insertion_point(field_set_allocated:nearby.presence.PresenceFrame.v1_frame) -} - -// ------------------------------------------------------------------- - -// V1Frame - -// .nearby.presence.ControlFrame control_frame = 1; -inline bool V1Frame::_internal_has_control_frame() const { - return Message_case() == kControlFrame; -} -inline bool V1Frame::has_control_frame() const { - return _internal_has_control_frame(); -} -inline void V1Frame::set_has_control_frame() { - _oneof_case_[0] = kControlFrame; -} -inline void V1Frame::clear_control_frame() { - if (_internal_has_control_frame()) { - if (GetArenaForAllocation() == nullptr) { - delete Message_.control_frame_; - } - clear_has_Message(); - } -} -inline ::nearby::presence::ControlFrame* V1Frame::release_control_frame() { - // @@protoc_insertion_point(field_release:nearby.presence.V1Frame.control_frame) - if (_internal_has_control_frame()) { - clear_has_Message(); - ::nearby::presence::ControlFrame* temp = Message_.control_frame_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - Message_.control_frame_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::nearby::presence::ControlFrame& V1Frame::_internal_control_frame() const { - return _internal_has_control_frame() - ? *Message_.control_frame_ - : reinterpret_cast< ::nearby::presence::ControlFrame&>(::nearby::presence::_ControlFrame_default_instance_); -} -inline const ::nearby::presence::ControlFrame& V1Frame::control_frame() const { - // @@protoc_insertion_point(field_get:nearby.presence.V1Frame.control_frame) - return _internal_control_frame(); -} -inline ::nearby::presence::ControlFrame* V1Frame::unsafe_arena_release_control_frame() { - // @@protoc_insertion_point(field_unsafe_arena_release:nearby.presence.V1Frame.control_frame) - if (_internal_has_control_frame()) { - clear_has_Message(); - ::nearby::presence::ControlFrame* temp = Message_.control_frame_; - Message_.control_frame_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void V1Frame::unsafe_arena_set_allocated_control_frame(::nearby::presence::ControlFrame* control_frame) { - clear_Message(); - if (control_frame) { - set_has_control_frame(); - Message_.control_frame_ = control_frame; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.presence.V1Frame.control_frame) -} -inline ::nearby::presence::ControlFrame* V1Frame::_internal_mutable_control_frame() { - if (!_internal_has_control_frame()) { - clear_Message(); - set_has_control_frame(); - Message_.control_frame_ = CreateMaybeMessage< ::nearby::presence::ControlFrame >(GetArenaForAllocation()); - } - return Message_.control_frame_; -} -inline ::nearby::presence::ControlFrame* V1Frame::mutable_control_frame() { - ::nearby::presence::ControlFrame* _msg = _internal_mutable_control_frame(); - // @@protoc_insertion_point(field_mutable:nearby.presence.V1Frame.control_frame) - return _msg; -} - -// .nearby.presence.DeviceIdentityFrame device_identity_frame = 2; -inline bool V1Frame::_internal_has_device_identity_frame() const { - return Message_case() == kDeviceIdentityFrame; -} -inline bool V1Frame::has_device_identity_frame() const { - return _internal_has_device_identity_frame(); -} -inline void V1Frame::set_has_device_identity_frame() { - _oneof_case_[0] = kDeviceIdentityFrame; -} -inline void V1Frame::clear_device_identity_frame() { - if (_internal_has_device_identity_frame()) { - if (GetArenaForAllocation() == nullptr) { - delete Message_.device_identity_frame_; - } - clear_has_Message(); - } -} -inline ::nearby::presence::DeviceIdentityFrame* V1Frame::release_device_identity_frame() { - // @@protoc_insertion_point(field_release:nearby.presence.V1Frame.device_identity_frame) - if (_internal_has_device_identity_frame()) { - clear_has_Message(); - ::nearby::presence::DeviceIdentityFrame* temp = Message_.device_identity_frame_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - Message_.device_identity_frame_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::nearby::presence::DeviceIdentityFrame& V1Frame::_internal_device_identity_frame() const { - return _internal_has_device_identity_frame() - ? *Message_.device_identity_frame_ - : reinterpret_cast< ::nearby::presence::DeviceIdentityFrame&>(::nearby::presence::_DeviceIdentityFrame_default_instance_); -} -inline const ::nearby::presence::DeviceIdentityFrame& V1Frame::device_identity_frame() const { - // @@protoc_insertion_point(field_get:nearby.presence.V1Frame.device_identity_frame) - return _internal_device_identity_frame(); -} -inline ::nearby::presence::DeviceIdentityFrame* V1Frame::unsafe_arena_release_device_identity_frame() { - // @@protoc_insertion_point(field_unsafe_arena_release:nearby.presence.V1Frame.device_identity_frame) - if (_internal_has_device_identity_frame()) { - clear_has_Message(); - ::nearby::presence::DeviceIdentityFrame* temp = Message_.device_identity_frame_; - Message_.device_identity_frame_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void V1Frame::unsafe_arena_set_allocated_device_identity_frame(::nearby::presence::DeviceIdentityFrame* device_identity_frame) { - clear_Message(); - if (device_identity_frame) { - set_has_device_identity_frame(); - Message_.device_identity_frame_ = device_identity_frame; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.presence.V1Frame.device_identity_frame) -} -inline ::nearby::presence::DeviceIdentityFrame* V1Frame::_internal_mutable_device_identity_frame() { - if (!_internal_has_device_identity_frame()) { - clear_Message(); - set_has_device_identity_frame(); - Message_.device_identity_frame_ = CreateMaybeMessage< ::nearby::presence::DeviceIdentityFrame >(GetArenaForAllocation()); - } - return Message_.device_identity_frame_; -} -inline ::nearby::presence::DeviceIdentityFrame* V1Frame::mutable_device_identity_frame() { - ::nearby::presence::DeviceIdentityFrame* _msg = _internal_mutable_device_identity_frame(); - // @@protoc_insertion_point(field_mutable:nearby.presence.V1Frame.device_identity_frame) - return _msg; -} - -// .nearby.presence.ConnectionInitFrame connection_init_frame = 3; -inline bool V1Frame::_internal_has_connection_init_frame() const { - return Message_case() == kConnectionInitFrame; -} -inline bool V1Frame::has_connection_init_frame() const { - return _internal_has_connection_init_frame(); -} -inline void V1Frame::set_has_connection_init_frame() { - _oneof_case_[0] = kConnectionInitFrame; -} -inline void V1Frame::clear_connection_init_frame() { - if (_internal_has_connection_init_frame()) { - if (GetArenaForAllocation() == nullptr) { - delete Message_.connection_init_frame_; - } - clear_has_Message(); - } -} -inline ::nearby::presence::ConnectionInitFrame* V1Frame::release_connection_init_frame() { - // @@protoc_insertion_point(field_release:nearby.presence.V1Frame.connection_init_frame) - if (_internal_has_connection_init_frame()) { - clear_has_Message(); - ::nearby::presence::ConnectionInitFrame* temp = Message_.connection_init_frame_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - Message_.connection_init_frame_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::nearby::presence::ConnectionInitFrame& V1Frame::_internal_connection_init_frame() const { - return _internal_has_connection_init_frame() - ? *Message_.connection_init_frame_ - : reinterpret_cast< ::nearby::presence::ConnectionInitFrame&>(::nearby::presence::_ConnectionInitFrame_default_instance_); -} -inline const ::nearby::presence::ConnectionInitFrame& V1Frame::connection_init_frame() const { - // @@protoc_insertion_point(field_get:nearby.presence.V1Frame.connection_init_frame) - return _internal_connection_init_frame(); -} -inline ::nearby::presence::ConnectionInitFrame* V1Frame::unsafe_arena_release_connection_init_frame() { - // @@protoc_insertion_point(field_unsafe_arena_release:nearby.presence.V1Frame.connection_init_frame) - if (_internal_has_connection_init_frame()) { - clear_has_Message(); - ::nearby::presence::ConnectionInitFrame* temp = Message_.connection_init_frame_; - Message_.connection_init_frame_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void V1Frame::unsafe_arena_set_allocated_connection_init_frame(::nearby::presence::ConnectionInitFrame* connection_init_frame) { - clear_Message(); - if (connection_init_frame) { - set_has_connection_init_frame(); - Message_.connection_init_frame_ = connection_init_frame; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.presence.V1Frame.connection_init_frame) -} -inline ::nearby::presence::ConnectionInitFrame* V1Frame::_internal_mutable_connection_init_frame() { - if (!_internal_has_connection_init_frame()) { - clear_Message(); - set_has_connection_init_frame(); - Message_.connection_init_frame_ = CreateMaybeMessage< ::nearby::presence::ConnectionInitFrame >(GetArenaForAllocation()); - } - return Message_.connection_init_frame_; -} -inline ::nearby::presence::ConnectionInitFrame* V1Frame::mutable_connection_init_frame() { - ::nearby::presence::ConnectionInitFrame* _msg = _internal_mutable_connection_init_frame(); - // @@protoc_insertion_point(field_mutable:nearby.presence.V1Frame.connection_init_frame) - return _msg; -} - -// .nearby.presence.UwbControleeCapabilities uwb_controlee_capabilities_frame = 4; -inline bool V1Frame::_internal_has_uwb_controlee_capabilities_frame() const { - return Message_case() == kUwbControleeCapabilitiesFrame; -} -inline bool V1Frame::has_uwb_controlee_capabilities_frame() const { - return _internal_has_uwb_controlee_capabilities_frame(); -} -inline void V1Frame::set_has_uwb_controlee_capabilities_frame() { - _oneof_case_[0] = kUwbControleeCapabilitiesFrame; -} -inline void V1Frame::clear_uwb_controlee_capabilities_frame() { - if (_internal_has_uwb_controlee_capabilities_frame()) { - if (GetArenaForAllocation() == nullptr) { - delete Message_.uwb_controlee_capabilities_frame_; - } - clear_has_Message(); - } -} -inline ::nearby::presence::UwbControleeCapabilities* V1Frame::release_uwb_controlee_capabilities_frame() { - // @@protoc_insertion_point(field_release:nearby.presence.V1Frame.uwb_controlee_capabilities_frame) - if (_internal_has_uwb_controlee_capabilities_frame()) { - clear_has_Message(); - ::nearby::presence::UwbControleeCapabilities* temp = Message_.uwb_controlee_capabilities_frame_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - Message_.uwb_controlee_capabilities_frame_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::nearby::presence::UwbControleeCapabilities& V1Frame::_internal_uwb_controlee_capabilities_frame() const { - return _internal_has_uwb_controlee_capabilities_frame() - ? *Message_.uwb_controlee_capabilities_frame_ - : reinterpret_cast< ::nearby::presence::UwbControleeCapabilities&>(::nearby::presence::_UwbControleeCapabilities_default_instance_); -} -inline const ::nearby::presence::UwbControleeCapabilities& V1Frame::uwb_controlee_capabilities_frame() const { - // @@protoc_insertion_point(field_get:nearby.presence.V1Frame.uwb_controlee_capabilities_frame) - return _internal_uwb_controlee_capabilities_frame(); -} -inline ::nearby::presence::UwbControleeCapabilities* V1Frame::unsafe_arena_release_uwb_controlee_capabilities_frame() { - // @@protoc_insertion_point(field_unsafe_arena_release:nearby.presence.V1Frame.uwb_controlee_capabilities_frame) - if (_internal_has_uwb_controlee_capabilities_frame()) { - clear_has_Message(); - ::nearby::presence::UwbControleeCapabilities* temp = Message_.uwb_controlee_capabilities_frame_; - Message_.uwb_controlee_capabilities_frame_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void V1Frame::unsafe_arena_set_allocated_uwb_controlee_capabilities_frame(::nearby::presence::UwbControleeCapabilities* uwb_controlee_capabilities_frame) { - clear_Message(); - if (uwb_controlee_capabilities_frame) { - set_has_uwb_controlee_capabilities_frame(); - Message_.uwb_controlee_capabilities_frame_ = uwb_controlee_capabilities_frame; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.presence.V1Frame.uwb_controlee_capabilities_frame) -} -inline ::nearby::presence::UwbControleeCapabilities* V1Frame::_internal_mutable_uwb_controlee_capabilities_frame() { - if (!_internal_has_uwb_controlee_capabilities_frame()) { - clear_Message(); - set_has_uwb_controlee_capabilities_frame(); - Message_.uwb_controlee_capabilities_frame_ = CreateMaybeMessage< ::nearby::presence::UwbControleeCapabilities >(GetArenaForAllocation()); - } - return Message_.uwb_controlee_capabilities_frame_; -} -inline ::nearby::presence::UwbControleeCapabilities* V1Frame::mutable_uwb_controlee_capabilities_frame() { - ::nearby::presence::UwbControleeCapabilities* _msg = _internal_mutable_uwb_controlee_capabilities_frame(); - // @@protoc_insertion_point(field_mutable:nearby.presence.V1Frame.uwb_controlee_capabilities_frame) - return _msg; -} - -// .nearby.presence.UwbConnectionInfo uwb_connection_info = 5; -inline bool V1Frame::_internal_has_uwb_connection_info() const { - return Message_case() == kUwbConnectionInfo; -} -inline bool V1Frame::has_uwb_connection_info() const { - return _internal_has_uwb_connection_info(); -} -inline void V1Frame::set_has_uwb_connection_info() { - _oneof_case_[0] = kUwbConnectionInfo; -} -inline void V1Frame::clear_uwb_connection_info() { - if (_internal_has_uwb_connection_info()) { - if (GetArenaForAllocation() == nullptr) { - delete Message_.uwb_connection_info_; - } - clear_has_Message(); - } -} -inline ::nearby::presence::UwbConnectionInfo* V1Frame::release_uwb_connection_info() { - // @@protoc_insertion_point(field_release:nearby.presence.V1Frame.uwb_connection_info) - if (_internal_has_uwb_connection_info()) { - clear_has_Message(); - ::nearby::presence::UwbConnectionInfo* temp = Message_.uwb_connection_info_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - Message_.uwb_connection_info_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::nearby::presence::UwbConnectionInfo& V1Frame::_internal_uwb_connection_info() const { - return _internal_has_uwb_connection_info() - ? *Message_.uwb_connection_info_ - : reinterpret_cast< ::nearby::presence::UwbConnectionInfo&>(::nearby::presence::_UwbConnectionInfo_default_instance_); -} -inline const ::nearby::presence::UwbConnectionInfo& V1Frame::uwb_connection_info() const { - // @@protoc_insertion_point(field_get:nearby.presence.V1Frame.uwb_connection_info) - return _internal_uwb_connection_info(); -} -inline ::nearby::presence::UwbConnectionInfo* V1Frame::unsafe_arena_release_uwb_connection_info() { - // @@protoc_insertion_point(field_unsafe_arena_release:nearby.presence.V1Frame.uwb_connection_info) - if (_internal_has_uwb_connection_info()) { - clear_has_Message(); - ::nearby::presence::UwbConnectionInfo* temp = Message_.uwb_connection_info_; - Message_.uwb_connection_info_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void V1Frame::unsafe_arena_set_allocated_uwb_connection_info(::nearby::presence::UwbConnectionInfo* uwb_connection_info) { - clear_Message(); - if (uwb_connection_info) { - set_has_uwb_connection_info(); - Message_.uwb_connection_info_ = uwb_connection_info; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.presence.V1Frame.uwb_connection_info) -} -inline ::nearby::presence::UwbConnectionInfo* V1Frame::_internal_mutable_uwb_connection_info() { - if (!_internal_has_uwb_connection_info()) { - clear_Message(); - set_has_uwb_connection_info(); - Message_.uwb_connection_info_ = CreateMaybeMessage< ::nearby::presence::UwbConnectionInfo >(GetArenaForAllocation()); - } - return Message_.uwb_connection_info_; -} -inline ::nearby::presence::UwbConnectionInfo* V1Frame::mutable_uwb_connection_info() { - ::nearby::presence::UwbConnectionInfo* _msg = _internal_mutable_uwb_connection_info(); - // @@protoc_insertion_point(field_mutable:nearby.presence.V1Frame.uwb_connection_info) - return _msg; -} - -// .nearby.presence.PresenceAuthenticationFrame authentication_frame = 6; -inline bool V1Frame::_internal_has_authentication_frame() const { - return Message_case() == kAuthenticationFrame; -} -inline bool V1Frame::has_authentication_frame() const { - return _internal_has_authentication_frame(); -} -inline void V1Frame::set_has_authentication_frame() { - _oneof_case_[0] = kAuthenticationFrame; -} -inline void V1Frame::clear_authentication_frame() { - if (_internal_has_authentication_frame()) { - if (GetArenaForAllocation() == nullptr) { - delete Message_.authentication_frame_; - } - clear_has_Message(); - } -} -inline ::nearby::presence::PresenceAuthenticationFrame* V1Frame::release_authentication_frame() { - // @@protoc_insertion_point(field_release:nearby.presence.V1Frame.authentication_frame) - if (_internal_has_authentication_frame()) { - clear_has_Message(); - ::nearby::presence::PresenceAuthenticationFrame* temp = Message_.authentication_frame_; - if (GetArenaForAllocation() != nullptr) { - temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); - } - Message_.authentication_frame_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::nearby::presence::PresenceAuthenticationFrame& V1Frame::_internal_authentication_frame() const { - return _internal_has_authentication_frame() - ? *Message_.authentication_frame_ - : reinterpret_cast< ::nearby::presence::PresenceAuthenticationFrame&>(::nearby::presence::_PresenceAuthenticationFrame_default_instance_); -} -inline const ::nearby::presence::PresenceAuthenticationFrame& V1Frame::authentication_frame() const { - // @@protoc_insertion_point(field_get:nearby.presence.V1Frame.authentication_frame) - return _internal_authentication_frame(); -} -inline ::nearby::presence::PresenceAuthenticationFrame* V1Frame::unsafe_arena_release_authentication_frame() { - // @@protoc_insertion_point(field_unsafe_arena_release:nearby.presence.V1Frame.authentication_frame) - if (_internal_has_authentication_frame()) { - clear_has_Message(); - ::nearby::presence::PresenceAuthenticationFrame* temp = Message_.authentication_frame_; - Message_.authentication_frame_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline void V1Frame::unsafe_arena_set_allocated_authentication_frame(::nearby::presence::PresenceAuthenticationFrame* authentication_frame) { - clear_Message(); - if (authentication_frame) { - set_has_authentication_frame(); - Message_.authentication_frame_ = authentication_frame; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:nearby.presence.V1Frame.authentication_frame) -} -inline ::nearby::presence::PresenceAuthenticationFrame* V1Frame::_internal_mutable_authentication_frame() { - if (!_internal_has_authentication_frame()) { - clear_Message(); - set_has_authentication_frame(); - Message_.authentication_frame_ = CreateMaybeMessage< ::nearby::presence::PresenceAuthenticationFrame >(GetArenaForAllocation()); - } - return Message_.authentication_frame_; -} -inline ::nearby::presence::PresenceAuthenticationFrame* V1Frame::mutable_authentication_frame() { - ::nearby::presence::PresenceAuthenticationFrame* _msg = _internal_mutable_authentication_frame(); - // @@protoc_insertion_point(field_mutable:nearby.presence.V1Frame.authentication_frame) - return _msg; -} - -inline bool V1Frame::has_Message() const { - return Message_case() != MESSAGE_NOT_SET; -} -inline void V1Frame::clear_has_Message() { - _oneof_case_[0] = MESSAGE_NOT_SET; -} -inline V1Frame::MessageCase V1Frame::Message_case() const { - return V1Frame::MessageCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// DeviceIdentityFrame - -// optional string device_name = 1; -inline bool DeviceIdentityFrame::_internal_has_device_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool DeviceIdentityFrame::has_device_name() const { - return _internal_has_device_name(); -} -inline void DeviceIdentityFrame::clear_device_name() { - device_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& DeviceIdentityFrame::device_name() const { - // @@protoc_insertion_point(field_get:nearby.presence.DeviceIdentityFrame.device_name) - return _internal_device_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DeviceIdentityFrame::set_device_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.DeviceIdentityFrame.device_name) -} -inline std::string* DeviceIdentityFrame::mutable_device_name() { - std::string* _s = _internal_mutable_device_name(); - // @@protoc_insertion_point(field_mutable:nearby.presence.DeviceIdentityFrame.device_name) - return _s; -} -inline const std::string& DeviceIdentityFrame::_internal_device_name() const { - return device_name_.Get(); -} -inline void DeviceIdentityFrame::_internal_set_device_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* DeviceIdentityFrame::_internal_mutable_device_name() { - _has_bits_[0] |= 0x00000001u; - return device_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* DeviceIdentityFrame::release_device_name() { - // @@protoc_insertion_point(field_release:nearby.presence.DeviceIdentityFrame.device_name) - if (!_internal_has_device_name()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = device_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void DeviceIdentityFrame::set_allocated_device_name(std::string* device_name) { - if (device_name != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - device_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.DeviceIdentityFrame.device_name) -} - -// optional bytes bluetooth_mac_address = 2; -inline bool DeviceIdentityFrame::_internal_has_bluetooth_mac_address() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool DeviceIdentityFrame::has_bluetooth_mac_address() const { - return _internal_has_bluetooth_mac_address(); -} -inline void DeviceIdentityFrame::clear_bluetooth_mac_address() { - bluetooth_mac_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& DeviceIdentityFrame::bluetooth_mac_address() const { - // @@protoc_insertion_point(field_get:nearby.presence.DeviceIdentityFrame.bluetooth_mac_address) - return _internal_bluetooth_mac_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DeviceIdentityFrame::set_bluetooth_mac_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - bluetooth_mac_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.DeviceIdentityFrame.bluetooth_mac_address) -} -inline std::string* DeviceIdentityFrame::mutable_bluetooth_mac_address() { - std::string* _s = _internal_mutable_bluetooth_mac_address(); - // @@protoc_insertion_point(field_mutable:nearby.presence.DeviceIdentityFrame.bluetooth_mac_address) - return _s; -} -inline const std::string& DeviceIdentityFrame::_internal_bluetooth_mac_address() const { - return bluetooth_mac_address_.Get(); -} -inline void DeviceIdentityFrame::_internal_set_bluetooth_mac_address(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - bluetooth_mac_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* DeviceIdentityFrame::_internal_mutable_bluetooth_mac_address() { - _has_bits_[0] |= 0x00000002u; - return bluetooth_mac_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* DeviceIdentityFrame::release_bluetooth_mac_address() { - // @@protoc_insertion_point(field_release:nearby.presence.DeviceIdentityFrame.bluetooth_mac_address) - if (!_internal_has_bluetooth_mac_address()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = bluetooth_mac_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (bluetooth_mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void DeviceIdentityFrame::set_allocated_bluetooth_mac_address(std::string* bluetooth_mac_address) { - if (bluetooth_mac_address != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - bluetooth_mac_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), bluetooth_mac_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (bluetooth_mac_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - bluetooth_mac_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.DeviceIdentityFrame.bluetooth_mac_address) -} - -// optional string device_image_url = 3; -inline bool DeviceIdentityFrame::_internal_has_device_image_url() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool DeviceIdentityFrame::has_device_image_url() const { - return _internal_has_device_image_url(); -} -inline void DeviceIdentityFrame::clear_device_image_url() { - device_image_url_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; -} -inline const std::string& DeviceIdentityFrame::device_image_url() const { - // @@protoc_insertion_point(field_get:nearby.presence.DeviceIdentityFrame.device_image_url) - return _internal_device_image_url(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DeviceIdentityFrame::set_device_image_url(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - device_image_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.DeviceIdentityFrame.device_image_url) -} -inline std::string* DeviceIdentityFrame::mutable_device_image_url() { - std::string* _s = _internal_mutable_device_image_url(); - // @@protoc_insertion_point(field_mutable:nearby.presence.DeviceIdentityFrame.device_image_url) - return _s; -} -inline const std::string& DeviceIdentityFrame::_internal_device_image_url() const { - return device_image_url_.Get(); -} -inline void DeviceIdentityFrame::_internal_set_device_image_url(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - device_image_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* DeviceIdentityFrame::_internal_mutable_device_image_url() { - _has_bits_[0] |= 0x00000004u; - return device_image_url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* DeviceIdentityFrame::release_device_image_url() { - // @@protoc_insertion_point(field_release:nearby.presence.DeviceIdentityFrame.device_image_url) - if (!_internal_has_device_image_url()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - auto* p = device_image_url_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_image_url_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_image_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void DeviceIdentityFrame::set_allocated_device_image_url(std::string* device_image_url) { - if (device_image_url != nullptr) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - device_image_url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_image_url, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_image_url_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_image_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.DeviceIdentityFrame.device_image_url) -} - -// optional string model_id = 4; -inline bool DeviceIdentityFrame::_internal_has_model_id() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool DeviceIdentityFrame::has_model_id() const { - return _internal_has_model_id(); -} -inline void DeviceIdentityFrame::clear_model_id() { - model_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; -} -inline const std::string& DeviceIdentityFrame::model_id() const { - // @@protoc_insertion_point(field_get:nearby.presence.DeviceIdentityFrame.model_id) - return _internal_model_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DeviceIdentityFrame::set_model_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - model_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.DeviceIdentityFrame.model_id) -} -inline std::string* DeviceIdentityFrame::mutable_model_id() { - std::string* _s = _internal_mutable_model_id(); - // @@protoc_insertion_point(field_mutable:nearby.presence.DeviceIdentityFrame.model_id) - return _s; -} -inline const std::string& DeviceIdentityFrame::_internal_model_id() const { - return model_id_.Get(); -} -inline void DeviceIdentityFrame::_internal_set_model_id(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - model_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* DeviceIdentityFrame::_internal_mutable_model_id() { - _has_bits_[0] |= 0x00000008u; - return model_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* DeviceIdentityFrame::release_model_id() { - // @@protoc_insertion_point(field_release:nearby.presence.DeviceIdentityFrame.model_id) - if (!_internal_has_model_id()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000008u; - auto* p = model_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (model_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - model_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void DeviceIdentityFrame::set_allocated_model_id(std::string* model_id) { - if (model_id != nullptr) { - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - model_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), model_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (model_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - model_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.DeviceIdentityFrame.model_id) -} - -// repeated int32 action = 5 [packed = true]; -inline int DeviceIdentityFrame::_internal_action_size() const { - return action_.size(); -} -inline int DeviceIdentityFrame::action_size() const { - return _internal_action_size(); -} -inline void DeviceIdentityFrame::clear_action() { - action_.Clear(); -} -inline int32_t DeviceIdentityFrame::_internal_action(int index) const { - return action_.Get(index); -} -inline int32_t DeviceIdentityFrame::action(int index) const { - // @@protoc_insertion_point(field_get:nearby.presence.DeviceIdentityFrame.action) - return _internal_action(index); -} -inline void DeviceIdentityFrame::set_action(int index, int32_t value) { - action_.Set(index, value); - // @@protoc_insertion_point(field_set:nearby.presence.DeviceIdentityFrame.action) -} -inline void DeviceIdentityFrame::_internal_add_action(int32_t value) { - action_.Add(value); -} -inline void DeviceIdentityFrame::add_action(int32_t value) { - _internal_add_action(value); - // @@protoc_insertion_point(field_add:nearby.presence.DeviceIdentityFrame.action) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -DeviceIdentityFrame::_internal_action() const { - return action_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -DeviceIdentityFrame::action() const { - // @@protoc_insertion_point(field_list:nearby.presence.DeviceIdentityFrame.action) - return _internal_action(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -DeviceIdentityFrame::_internal_mutable_action() { - return &action_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -DeviceIdentityFrame::mutable_action() { - // @@protoc_insertion_point(field_mutable_list:nearby.presence.DeviceIdentityFrame.action) - return _internal_mutable_action(); -} - -// optional string device_model_name = 6; -inline bool DeviceIdentityFrame::_internal_has_device_model_name() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline bool DeviceIdentityFrame::has_device_model_name() const { - return _internal_has_device_model_name(); -} -inline void DeviceIdentityFrame::clear_device_model_name() { - device_model_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000010u; -} -inline const std::string& DeviceIdentityFrame::device_model_name() const { - // @@protoc_insertion_point(field_get:nearby.presence.DeviceIdentityFrame.device_model_name) - return _internal_device_model_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DeviceIdentityFrame::set_device_model_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000010u; - device_model_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.DeviceIdentityFrame.device_model_name) -} -inline std::string* DeviceIdentityFrame::mutable_device_model_name() { - std::string* _s = _internal_mutable_device_model_name(); - // @@protoc_insertion_point(field_mutable:nearby.presence.DeviceIdentityFrame.device_model_name) - return _s; -} -inline const std::string& DeviceIdentityFrame::_internal_device_model_name() const { - return device_model_name_.Get(); -} -inline void DeviceIdentityFrame::_internal_set_device_model_name(const std::string& value) { - _has_bits_[0] |= 0x00000010u; - device_model_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* DeviceIdentityFrame::_internal_mutable_device_model_name() { - _has_bits_[0] |= 0x00000010u; - return device_model_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* DeviceIdentityFrame::release_device_model_name() { - // @@protoc_insertion_point(field_release:nearby.presence.DeviceIdentityFrame.device_model_name) - if (!_internal_has_device_model_name()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000010u; - auto* p = device_model_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_model_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_model_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void DeviceIdentityFrame::set_allocated_device_model_name(std::string* device_model_name) { - if (device_model_name != nullptr) { - _has_bits_[0] |= 0x00000010u; - } else { - _has_bits_[0] &= ~0x00000010u; - } - device_model_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device_model_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (device_model_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - device_model_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.DeviceIdentityFrame.device_model_name) -} - -// optional int32 device_type = 7; -inline bool DeviceIdentityFrame::_internal_has_device_type() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline bool DeviceIdentityFrame::has_device_type() const { - return _internal_has_device_type(); -} -inline void DeviceIdentityFrame::clear_device_type() { - device_type_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline int32_t DeviceIdentityFrame::_internal_device_type() const { - return device_type_; -} -inline int32_t DeviceIdentityFrame::device_type() const { - // @@protoc_insertion_point(field_get:nearby.presence.DeviceIdentityFrame.device_type) - return _internal_device_type(); -} -inline void DeviceIdentityFrame::_internal_set_device_type(int32_t value) { - _has_bits_[0] |= 0x00000020u; - device_type_ = value; -} -inline void DeviceIdentityFrame::set_device_type(int32_t value) { - _internal_set_device_type(value); - // @@protoc_insertion_point(field_set:nearby.presence.DeviceIdentityFrame.device_type) -} - -// ------------------------------------------------------------------- - -// ConnectionInitFrame - -// repeated int32 actions = 1 [packed = true]; -inline int ConnectionInitFrame::_internal_actions_size() const { - return actions_.size(); -} -inline int ConnectionInitFrame::actions_size() const { - return _internal_actions_size(); -} -inline void ConnectionInitFrame::clear_actions() { - actions_.Clear(); -} -inline int32_t ConnectionInitFrame::_internal_actions(int index) const { - return actions_.Get(index); -} -inline int32_t ConnectionInitFrame::actions(int index) const { - // @@protoc_insertion_point(field_get:nearby.presence.ConnectionInitFrame.actions) - return _internal_actions(index); -} -inline void ConnectionInitFrame::set_actions(int index, int32_t value) { - actions_.Set(index, value); - // @@protoc_insertion_point(field_set:nearby.presence.ConnectionInitFrame.actions) -} -inline void ConnectionInitFrame::_internal_add_actions(int32_t value) { - actions_.Add(value); -} -inline void ConnectionInitFrame::add_actions(int32_t value) { - _internal_add_actions(value); - // @@protoc_insertion_point(field_add:nearby.presence.ConnectionInitFrame.actions) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -ConnectionInitFrame::_internal_actions() const { - return actions_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -ConnectionInitFrame::actions() const { - // @@protoc_insertion_point(field_list:nearby.presence.ConnectionInitFrame.actions) - return _internal_actions(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -ConnectionInitFrame::_internal_mutable_actions() { - return &actions_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -ConnectionInitFrame::mutable_actions() { - // @@protoc_insertion_point(field_mutable_list:nearby.presence.ConnectionInitFrame.actions) - return _internal_mutable_actions(); -} - -// optional int32 identity_type = 2; -inline bool ConnectionInitFrame::_internal_has_identity_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool ConnectionInitFrame::has_identity_type() const { - return _internal_has_identity_type(); -} -inline void ConnectionInitFrame::clear_identity_type() { - identity_type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline int32_t ConnectionInitFrame::_internal_identity_type() const { - return identity_type_; -} -inline int32_t ConnectionInitFrame::identity_type() const { - // @@protoc_insertion_point(field_get:nearby.presence.ConnectionInitFrame.identity_type) - return _internal_identity_type(); -} -inline void ConnectionInitFrame::_internal_set_identity_type(int32_t value) { - _has_bits_[0] |= 0x00000001u; - identity_type_ = value; -} -inline void ConnectionInitFrame::set_identity_type(int32_t value) { - _internal_set_identity_type(value); - // @@protoc_insertion_point(field_set:nearby.presence.ConnectionInitFrame.identity_type) -} - -// optional bool uwb_enable = 3; -inline bool ConnectionInitFrame::_internal_has_uwb_enable() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool ConnectionInitFrame::has_uwb_enable() const { - return _internal_has_uwb_enable(); -} -inline void ConnectionInitFrame::clear_uwb_enable() { - uwb_enable_ = false; - _has_bits_[0] &= ~0x00000002u; -} -inline bool ConnectionInitFrame::_internal_uwb_enable() const { - return uwb_enable_; -} -inline bool ConnectionInitFrame::uwb_enable() const { - // @@protoc_insertion_point(field_get:nearby.presence.ConnectionInitFrame.uwb_enable) - return _internal_uwb_enable(); -} -inline void ConnectionInitFrame::_internal_set_uwb_enable(bool value) { - _has_bits_[0] |= 0x00000002u; - uwb_enable_ = value; -} -inline void ConnectionInitFrame::set_uwb_enable(bool value) { - _internal_set_uwb_enable(value); - // @@protoc_insertion_point(field_set:nearby.presence.ConnectionInitFrame.uwb_enable) -} - -// optional int64 device_unique_id = 4; -inline bool ConnectionInitFrame::_internal_has_device_unique_id() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool ConnectionInitFrame::has_device_unique_id() const { - return _internal_has_device_unique_id(); -} -inline void ConnectionInitFrame::clear_device_unique_id() { - device_unique_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000004u; -} -inline int64_t ConnectionInitFrame::_internal_device_unique_id() const { - return device_unique_id_; -} -inline int64_t ConnectionInitFrame::device_unique_id() const { - // @@protoc_insertion_point(field_get:nearby.presence.ConnectionInitFrame.device_unique_id) - return _internal_device_unique_id(); -} -inline void ConnectionInitFrame::_internal_set_device_unique_id(int64_t value) { - _has_bits_[0] |= 0x00000004u; - device_unique_id_ = value; -} -inline void ConnectionInitFrame::set_device_unique_id(int64_t value) { - _internal_set_device_unique_id(value); - // @@protoc_insertion_point(field_set:nearby.presence.ConnectionInitFrame.device_unique_id) -} - -// ------------------------------------------------------------------- - -// UwbControleeCapabilities - -// optional bytes controlee_address = 1; -inline bool UwbControleeCapabilities::_internal_has_controlee_address() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_controlee_address() const { - return _internal_has_controlee_address(); -} -inline void UwbControleeCapabilities::clear_controlee_address() { - controlee_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& UwbControleeCapabilities::controlee_address() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.controlee_address) - return _internal_controlee_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void UwbControleeCapabilities::set_controlee_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - controlee_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.controlee_address) -} -inline std::string* UwbControleeCapabilities::mutable_controlee_address() { - std::string* _s = _internal_mutable_controlee_address(); - // @@protoc_insertion_point(field_mutable:nearby.presence.UwbControleeCapabilities.controlee_address) - return _s; -} -inline const std::string& UwbControleeCapabilities::_internal_controlee_address() const { - return controlee_address_.Get(); -} -inline void UwbControleeCapabilities::_internal_set_controlee_address(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - controlee_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* UwbControleeCapabilities::_internal_mutable_controlee_address() { - _has_bits_[0] |= 0x00000001u; - return controlee_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* UwbControleeCapabilities::release_controlee_address() { - // @@protoc_insertion_point(field_release:nearby.presence.UwbControleeCapabilities.controlee_address) - if (!_internal_has_controlee_address()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = controlee_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (controlee_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - controlee_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void UwbControleeCapabilities::set_allocated_controlee_address(std::string* controlee_address) { - if (controlee_address != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - controlee_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), controlee_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (controlee_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - controlee_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.UwbControleeCapabilities.controlee_address) -} - -// repeated int32 supported_config_ids = 2 [packed = true]; -inline int UwbControleeCapabilities::_internal_supported_config_ids_size() const { - return supported_config_ids_.size(); -} -inline int UwbControleeCapabilities::supported_config_ids_size() const { - return _internal_supported_config_ids_size(); -} -inline void UwbControleeCapabilities::clear_supported_config_ids() { - supported_config_ids_.Clear(); -} -inline int32_t UwbControleeCapabilities::_internal_supported_config_ids(int index) const { - return supported_config_ids_.Get(index); -} -inline int32_t UwbControleeCapabilities::supported_config_ids(int index) const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.supported_config_ids) - return _internal_supported_config_ids(index); -} -inline void UwbControleeCapabilities::set_supported_config_ids(int index, int32_t value) { - supported_config_ids_.Set(index, value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.supported_config_ids) -} -inline void UwbControleeCapabilities::_internal_add_supported_config_ids(int32_t value) { - supported_config_ids_.Add(value); -} -inline void UwbControleeCapabilities::add_supported_config_ids(int32_t value) { - _internal_add_supported_config_ids(value); - // @@protoc_insertion_point(field_add:nearby.presence.UwbControleeCapabilities.supported_config_ids) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -UwbControleeCapabilities::_internal_supported_config_ids() const { - return supported_config_ids_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -UwbControleeCapabilities::supported_config_ids() const { - // @@protoc_insertion_point(field_list:nearby.presence.UwbControleeCapabilities.supported_config_ids) - return _internal_supported_config_ids(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -UwbControleeCapabilities::_internal_mutable_supported_config_ids() { - return &supported_config_ids_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -UwbControleeCapabilities::mutable_supported_config_ids() { - // @@protoc_insertion_point(field_mutable_list:nearby.presence.UwbControleeCapabilities.supported_config_ids) - return _internal_mutable_supported_config_ids(); -} - -// repeated int32 supported_channels = 3 [packed = true]; -inline int UwbControleeCapabilities::_internal_supported_channels_size() const { - return supported_channels_.size(); -} -inline int UwbControleeCapabilities::supported_channels_size() const { - return _internal_supported_channels_size(); -} -inline void UwbControleeCapabilities::clear_supported_channels() { - supported_channels_.Clear(); -} -inline int32_t UwbControleeCapabilities::_internal_supported_channels(int index) const { - return supported_channels_.Get(index); -} -inline int32_t UwbControleeCapabilities::supported_channels(int index) const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.supported_channels) - return _internal_supported_channels(index); -} -inline void UwbControleeCapabilities::set_supported_channels(int index, int32_t value) { - supported_channels_.Set(index, value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.supported_channels) -} -inline void UwbControleeCapabilities::_internal_add_supported_channels(int32_t value) { - supported_channels_.Add(value); -} -inline void UwbControleeCapabilities::add_supported_channels(int32_t value) { - _internal_add_supported_channels(value); - // @@protoc_insertion_point(field_add:nearby.presence.UwbControleeCapabilities.supported_channels) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -UwbControleeCapabilities::_internal_supported_channels() const { - return supported_channels_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -UwbControleeCapabilities::supported_channels() const { - // @@protoc_insertion_point(field_list:nearby.presence.UwbControleeCapabilities.supported_channels) - return _internal_supported_channels(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -UwbControleeCapabilities::_internal_mutable_supported_channels() { - return &supported_channels_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -UwbControleeCapabilities::mutable_supported_channels() { - // @@protoc_insertion_point(field_mutable_list:nearby.presence.UwbControleeCapabilities.supported_channels) - return _internal_mutable_supported_channels(); -} - -// optional int32 min_ranging_interval_ms = 4; -inline bool UwbControleeCapabilities::_internal_has_min_ranging_interval_ms() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_min_ranging_interval_ms() const { - return _internal_has_min_ranging_interval_ms(); -} -inline void UwbControleeCapabilities::clear_min_ranging_interval_ms() { - min_ranging_interval_ms_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline int32_t UwbControleeCapabilities::_internal_min_ranging_interval_ms() const { - return min_ranging_interval_ms_; -} -inline int32_t UwbControleeCapabilities::min_ranging_interval_ms() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.min_ranging_interval_ms) - return _internal_min_ranging_interval_ms(); -} -inline void UwbControleeCapabilities::_internal_set_min_ranging_interval_ms(int32_t value) { - _has_bits_[0] |= 0x00000010u; - min_ranging_interval_ms_ = value; -} -inline void UwbControleeCapabilities::set_min_ranging_interval_ms(int32_t value) { - _internal_set_min_ranging_interval_ms(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.min_ranging_interval_ms) -} - -// optional bytes sub_session_id = 5; -inline bool UwbControleeCapabilities::_internal_has_sub_session_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_sub_session_id() const { - return _internal_has_sub_session_id(); -} -inline void UwbControleeCapabilities::clear_sub_session_id() { - sub_session_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& UwbControleeCapabilities::sub_session_id() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.sub_session_id) - return _internal_sub_session_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void UwbControleeCapabilities::set_sub_session_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - sub_session_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.sub_session_id) -} -inline std::string* UwbControleeCapabilities::mutable_sub_session_id() { - std::string* _s = _internal_mutable_sub_session_id(); - // @@protoc_insertion_point(field_mutable:nearby.presence.UwbControleeCapabilities.sub_session_id) - return _s; -} -inline const std::string& UwbControleeCapabilities::_internal_sub_session_id() const { - return sub_session_id_.Get(); -} -inline void UwbControleeCapabilities::_internal_set_sub_session_id(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - sub_session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* UwbControleeCapabilities::_internal_mutable_sub_session_id() { - _has_bits_[0] |= 0x00000002u; - return sub_session_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* UwbControleeCapabilities::release_sub_session_id() { - // @@protoc_insertion_point(field_release:nearby.presence.UwbControleeCapabilities.sub_session_id) - if (!_internal_has_sub_session_id()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = sub_session_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (sub_session_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - sub_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void UwbControleeCapabilities::set_allocated_sub_session_id(std::string* sub_session_id) { - if (sub_session_id != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - sub_session_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sub_session_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (sub_session_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - sub_session_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.UwbControleeCapabilities.sub_session_id) -} - -// optional bytes sub_session_key = 6; -inline bool UwbControleeCapabilities::_internal_has_sub_session_key() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_sub_session_key() const { - return _internal_has_sub_session_key(); -} -inline void UwbControleeCapabilities::clear_sub_session_key() { - sub_session_key_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; -} -inline const std::string& UwbControleeCapabilities::sub_session_key() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.sub_session_key) - return _internal_sub_session_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void UwbControleeCapabilities::set_sub_session_key(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - sub_session_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.sub_session_key) -} -inline std::string* UwbControleeCapabilities::mutable_sub_session_key() { - std::string* _s = _internal_mutable_sub_session_key(); - // @@protoc_insertion_point(field_mutable:nearby.presence.UwbControleeCapabilities.sub_session_key) - return _s; -} -inline const std::string& UwbControleeCapabilities::_internal_sub_session_key() const { - return sub_session_key_.Get(); -} -inline void UwbControleeCapabilities::_internal_set_sub_session_key(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - sub_session_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* UwbControleeCapabilities::_internal_mutable_sub_session_key() { - _has_bits_[0] |= 0x00000004u; - return sub_session_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* UwbControleeCapabilities::release_sub_session_key() { - // @@protoc_insertion_point(field_release:nearby.presence.UwbControleeCapabilities.sub_session_key) - if (!_internal_has_sub_session_key()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - auto* p = sub_session_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (sub_session_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - sub_session_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void UwbControleeCapabilities::set_allocated_sub_session_key(std::string* sub_session_key) { - if (sub_session_key != nullptr) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - sub_session_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sub_session_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (sub_session_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - sub_session_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.UwbControleeCapabilities.sub_session_key) -} - -// optional bool ranging_disabled = 7; -inline bool UwbControleeCapabilities::_internal_has_ranging_disabled() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_ranging_disabled() const { - return _internal_has_ranging_disabled(); -} -inline void UwbControleeCapabilities::clear_ranging_disabled() { - ranging_disabled_ = false; - _has_bits_[0] &= ~0x00000020u; -} -inline bool UwbControleeCapabilities::_internal_ranging_disabled() const { - return ranging_disabled_; -} -inline bool UwbControleeCapabilities::ranging_disabled() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.ranging_disabled) - return _internal_ranging_disabled(); -} -inline void UwbControleeCapabilities::_internal_set_ranging_disabled(bool value) { - _has_bits_[0] |= 0x00000020u; - ranging_disabled_ = value; -} -inline void UwbControleeCapabilities::set_ranging_disabled(bool value) { - _internal_set_ranging_disabled(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.ranging_disabled) -} - -// optional int64 device_unique_id = 8; -inline bool UwbControleeCapabilities::_internal_has_device_unique_id() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_device_unique_id() const { - return _internal_has_device_unique_id(); -} -inline void UwbControleeCapabilities::clear_device_unique_id() { - device_unique_id_ = int64_t{0}; - _has_bits_[0] &= ~0x00000008u; -} -inline int64_t UwbControleeCapabilities::_internal_device_unique_id() const { - return device_unique_id_; -} -inline int64_t UwbControleeCapabilities::device_unique_id() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.device_unique_id) - return _internal_device_unique_id(); -} -inline void UwbControleeCapabilities::_internal_set_device_unique_id(int64_t value) { - _has_bits_[0] |= 0x00000008u; - device_unique_id_ = value; -} -inline void UwbControleeCapabilities::set_device_unique_id(int64_t value) { - _internal_set_device_unique_id(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.device_unique_id) -} - -// optional bool is_distance_supported = 9 [default = true]; -inline bool UwbControleeCapabilities::_internal_has_is_distance_supported() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_is_distance_supported() const { - return _internal_has_is_distance_supported(); -} -inline void UwbControleeCapabilities::clear_is_distance_supported() { - is_distance_supported_ = true; - _has_bits_[0] &= ~0x00000200u; -} -inline bool UwbControleeCapabilities::_internal_is_distance_supported() const { - return is_distance_supported_; -} -inline bool UwbControleeCapabilities::is_distance_supported() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.is_distance_supported) - return _internal_is_distance_supported(); -} -inline void UwbControleeCapabilities::_internal_set_is_distance_supported(bool value) { - _has_bits_[0] |= 0x00000200u; - is_distance_supported_ = value; -} -inline void UwbControleeCapabilities::set_is_distance_supported(bool value) { - _internal_set_is_distance_supported(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.is_distance_supported) -} - -// optional bool is_azimuth_supported = 10 [default = true]; -inline bool UwbControleeCapabilities::_internal_has_is_azimuth_supported() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_is_azimuth_supported() const { - return _internal_has_is_azimuth_supported(); -} -inline void UwbControleeCapabilities::clear_is_azimuth_supported() { - is_azimuth_supported_ = true; - _has_bits_[0] &= ~0x00000400u; -} -inline bool UwbControleeCapabilities::_internal_is_azimuth_supported() const { - return is_azimuth_supported_; -} -inline bool UwbControleeCapabilities::is_azimuth_supported() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.is_azimuth_supported) - return _internal_is_azimuth_supported(); -} -inline void UwbControleeCapabilities::_internal_set_is_azimuth_supported(bool value) { - _has_bits_[0] |= 0x00000400u; - is_azimuth_supported_ = value; -} -inline void UwbControleeCapabilities::set_is_azimuth_supported(bool value) { - _internal_set_is_azimuth_supported(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.is_azimuth_supported) -} - -// optional bool is_elevation_supported = 11 [default = false]; -inline bool UwbControleeCapabilities::_internal_has_is_elevation_supported() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_is_elevation_supported() const { - return _internal_has_is_elevation_supported(); -} -inline void UwbControleeCapabilities::clear_is_elevation_supported() { - is_elevation_supported_ = false; - _has_bits_[0] &= ~0x00000040u; -} -inline bool UwbControleeCapabilities::_internal_is_elevation_supported() const { - return is_elevation_supported_; -} -inline bool UwbControleeCapabilities::is_elevation_supported() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.is_elevation_supported) - return _internal_is_elevation_supported(); -} -inline void UwbControleeCapabilities::_internal_set_is_elevation_supported(bool value) { - _has_bits_[0] |= 0x00000040u; - is_elevation_supported_ = value; -} -inline void UwbControleeCapabilities::set_is_elevation_supported(bool value) { - _internal_set_is_elevation_supported(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.is_elevation_supported) -} - -// optional float min_slot_duration_ms = 12 [default = 2]; -inline bool UwbControleeCapabilities::_internal_has_min_slot_duration_ms() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_min_slot_duration_ms() const { - return _internal_has_min_slot_duration_ms(); -} -inline void UwbControleeCapabilities::clear_min_slot_duration_ms() { - min_slot_duration_ms_ = 2; - _has_bits_[0] &= ~0x00000800u; -} -inline float UwbControleeCapabilities::_internal_min_slot_duration_ms() const { - return min_slot_duration_ms_; -} -inline float UwbControleeCapabilities::min_slot_duration_ms() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.min_slot_duration_ms) - return _internal_min_slot_duration_ms(); -} -inline void UwbControleeCapabilities::_internal_set_min_slot_duration_ms(float value) { - _has_bits_[0] |= 0x00000800u; - min_slot_duration_ms_ = value; -} -inline void UwbControleeCapabilities::set_min_slot_duration_ms(float value) { - _internal_set_min_slot_duration_ms(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.min_slot_duration_ms) -} - -// repeated int32 supported_ntf_configs = 13 [packed = true]; -inline int UwbControleeCapabilities::_internal_supported_ntf_configs_size() const { - return supported_ntf_configs_.size(); -} -inline int UwbControleeCapabilities::supported_ntf_configs_size() const { - return _internal_supported_ntf_configs_size(); -} -inline void UwbControleeCapabilities::clear_supported_ntf_configs() { - supported_ntf_configs_.Clear(); -} -inline int32_t UwbControleeCapabilities::_internal_supported_ntf_configs(int index) const { - return supported_ntf_configs_.Get(index); -} -inline int32_t UwbControleeCapabilities::supported_ntf_configs(int index) const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.supported_ntf_configs) - return _internal_supported_ntf_configs(index); -} -inline void UwbControleeCapabilities::set_supported_ntf_configs(int index, int32_t value) { - supported_ntf_configs_.Set(index, value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.supported_ntf_configs) -} -inline void UwbControleeCapabilities::_internal_add_supported_ntf_configs(int32_t value) { - supported_ntf_configs_.Add(value); -} -inline void UwbControleeCapabilities::add_supported_ntf_configs(int32_t value) { - _internal_add_supported_ntf_configs(value); - // @@protoc_insertion_point(field_add:nearby.presence.UwbControleeCapabilities.supported_ntf_configs) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -UwbControleeCapabilities::_internal_supported_ntf_configs() const { - return supported_ntf_configs_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -UwbControleeCapabilities::supported_ntf_configs() const { - // @@protoc_insertion_point(field_list:nearby.presence.UwbControleeCapabilities.supported_ntf_configs) - return _internal_supported_ntf_configs(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -UwbControleeCapabilities::_internal_mutable_supported_ntf_configs() { - return &supported_ntf_configs_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -UwbControleeCapabilities::mutable_supported_ntf_configs() { - // @@protoc_insertion_point(field_mutable_list:nearby.presence.UwbControleeCapabilities.supported_ntf_configs) - return _internal_mutable_supported_ntf_configs(); -} - -// optional bool is_ranging_interval_reconfigure_supported = 14 [default = false]; -inline bool UwbControleeCapabilities::_internal_has_is_ranging_interval_reconfigure_supported() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_is_ranging_interval_reconfigure_supported() const { - return _internal_has_is_ranging_interval_reconfigure_supported(); -} -inline void UwbControleeCapabilities::clear_is_ranging_interval_reconfigure_supported() { - is_ranging_interval_reconfigure_supported_ = false; - _has_bits_[0] &= ~0x00000080u; -} -inline bool UwbControleeCapabilities::_internal_is_ranging_interval_reconfigure_supported() const { - return is_ranging_interval_reconfigure_supported_; -} -inline bool UwbControleeCapabilities::is_ranging_interval_reconfigure_supported() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.is_ranging_interval_reconfigure_supported) - return _internal_is_ranging_interval_reconfigure_supported(); -} -inline void UwbControleeCapabilities::_internal_set_is_ranging_interval_reconfigure_supported(bool value) { - _has_bits_[0] |= 0x00000080u; - is_ranging_interval_reconfigure_supported_ = value; -} -inline void UwbControleeCapabilities::set_is_ranging_interval_reconfigure_supported(bool value) { - _internal_set_is_ranging_interval_reconfigure_supported(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.is_ranging_interval_reconfigure_supported) -} - -// repeated int32 supported_slot_durations = 15 [packed = true]; -inline int UwbControleeCapabilities::_internal_supported_slot_durations_size() const { - return supported_slot_durations_.size(); -} -inline int UwbControleeCapabilities::supported_slot_durations_size() const { - return _internal_supported_slot_durations_size(); -} -inline void UwbControleeCapabilities::clear_supported_slot_durations() { - supported_slot_durations_.Clear(); -} -inline int32_t UwbControleeCapabilities::_internal_supported_slot_durations(int index) const { - return supported_slot_durations_.Get(index); -} -inline int32_t UwbControleeCapabilities::supported_slot_durations(int index) const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.supported_slot_durations) - return _internal_supported_slot_durations(index); -} -inline void UwbControleeCapabilities::set_supported_slot_durations(int index, int32_t value) { - supported_slot_durations_.Set(index, value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.supported_slot_durations) -} -inline void UwbControleeCapabilities::_internal_add_supported_slot_durations(int32_t value) { - supported_slot_durations_.Add(value); -} -inline void UwbControleeCapabilities::add_supported_slot_durations(int32_t value) { - _internal_add_supported_slot_durations(value); - // @@protoc_insertion_point(field_add:nearby.presence.UwbControleeCapabilities.supported_slot_durations) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -UwbControleeCapabilities::_internal_supported_slot_durations() const { - return supported_slot_durations_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -UwbControleeCapabilities::supported_slot_durations() const { - // @@protoc_insertion_point(field_list:nearby.presence.UwbControleeCapabilities.supported_slot_durations) - return _internal_supported_slot_durations(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -UwbControleeCapabilities::_internal_mutable_supported_slot_durations() { - return &supported_slot_durations_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -UwbControleeCapabilities::mutable_supported_slot_durations() { - // @@protoc_insertion_point(field_mutable_list:nearby.presence.UwbControleeCapabilities.supported_slot_durations) - return _internal_mutable_supported_slot_durations(); -} - -// repeated int32 supported_ranging_update_rates = 16 [packed = true]; -inline int UwbControleeCapabilities::_internal_supported_ranging_update_rates_size() const { - return supported_ranging_update_rates_.size(); -} -inline int UwbControleeCapabilities::supported_ranging_update_rates_size() const { - return _internal_supported_ranging_update_rates_size(); -} -inline void UwbControleeCapabilities::clear_supported_ranging_update_rates() { - supported_ranging_update_rates_.Clear(); -} -inline int32_t UwbControleeCapabilities::_internal_supported_ranging_update_rates(int index) const { - return supported_ranging_update_rates_.Get(index); -} -inline int32_t UwbControleeCapabilities::supported_ranging_update_rates(int index) const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.supported_ranging_update_rates) - return _internal_supported_ranging_update_rates(index); -} -inline void UwbControleeCapabilities::set_supported_ranging_update_rates(int index, int32_t value) { - supported_ranging_update_rates_.Set(index, value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.supported_ranging_update_rates) -} -inline void UwbControleeCapabilities::_internal_add_supported_ranging_update_rates(int32_t value) { - supported_ranging_update_rates_.Add(value); -} -inline void UwbControleeCapabilities::add_supported_ranging_update_rates(int32_t value) { - _internal_add_supported_ranging_update_rates(value); - // @@protoc_insertion_point(field_add:nearby.presence.UwbControleeCapabilities.supported_ranging_update_rates) -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -UwbControleeCapabilities::_internal_supported_ranging_update_rates() const { - return supported_ranging_update_rates_; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& -UwbControleeCapabilities::supported_ranging_update_rates() const { - // @@protoc_insertion_point(field_list:nearby.presence.UwbControleeCapabilities.supported_ranging_update_rates) - return _internal_supported_ranging_update_rates(); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -UwbControleeCapabilities::_internal_mutable_supported_ranging_update_rates() { - return &supported_ranging_update_rates_; -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* -UwbControleeCapabilities::mutable_supported_ranging_update_rates() { - // @@protoc_insertion_point(field_mutable_list:nearby.presence.UwbControleeCapabilities.supported_ranging_update_rates) - return _internal_mutable_supported_ranging_update_rates(); -} - -// optional int32 chip_count = 17 [default = 1]; -inline bool UwbControleeCapabilities::_internal_has_chip_count() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; - return value; -} -inline bool UwbControleeCapabilities::has_chip_count() const { - return _internal_has_chip_count(); -} -inline void UwbControleeCapabilities::clear_chip_count() { - chip_count_ = 1; - _has_bits_[0] &= ~0x00000100u; -} -inline int32_t UwbControleeCapabilities::_internal_chip_count() const { - return chip_count_; -} -inline int32_t UwbControleeCapabilities::chip_count() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.chip_count) - return _internal_chip_count(); -} -inline void UwbControleeCapabilities::_internal_set_chip_count(int32_t value) { - _has_bits_[0] |= 0x00000100u; - chip_count_ = value; -} -inline void UwbControleeCapabilities::set_chip_count(int32_t value) { - _internal_set_chip_count(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbControleeCapabilities.chip_count) -} - -// repeated .nearby.presence.UwbMultiChipInfo multi_chip_info = 18; -inline int UwbControleeCapabilities::_internal_multi_chip_info_size() const { - return multi_chip_info_.size(); -} -inline int UwbControleeCapabilities::multi_chip_info_size() const { - return _internal_multi_chip_info_size(); -} -inline void UwbControleeCapabilities::clear_multi_chip_info() { - multi_chip_info_.Clear(); -} -inline ::nearby::presence::UwbMultiChipInfo* UwbControleeCapabilities::mutable_multi_chip_info(int index) { - // @@protoc_insertion_point(field_mutable:nearby.presence.UwbControleeCapabilities.multi_chip_info) - return multi_chip_info_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::presence::UwbMultiChipInfo >* -UwbControleeCapabilities::mutable_multi_chip_info() { - // @@protoc_insertion_point(field_mutable_list:nearby.presence.UwbControleeCapabilities.multi_chip_info) - return &multi_chip_info_; -} -inline const ::nearby::presence::UwbMultiChipInfo& UwbControleeCapabilities::_internal_multi_chip_info(int index) const { - return multi_chip_info_.Get(index); -} -inline const ::nearby::presence::UwbMultiChipInfo& UwbControleeCapabilities::multi_chip_info(int index) const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbControleeCapabilities.multi_chip_info) - return _internal_multi_chip_info(index); -} -inline ::nearby::presence::UwbMultiChipInfo* UwbControleeCapabilities::_internal_add_multi_chip_info() { - return multi_chip_info_.Add(); -} -inline ::nearby::presence::UwbMultiChipInfo* UwbControleeCapabilities::add_multi_chip_info() { - ::nearby::presence::UwbMultiChipInfo* _add = _internal_add_multi_chip_info(); - // @@protoc_insertion_point(field_add:nearby.presence.UwbControleeCapabilities.multi_chip_info) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::nearby::presence::UwbMultiChipInfo >& -UwbControleeCapabilities::multi_chip_info() const { - // @@protoc_insertion_point(field_list:nearby.presence.UwbControleeCapabilities.multi_chip_info) - return multi_chip_info_; -} - -// ------------------------------------------------------------------- - -// UwbMultiChipInfo - -// optional bytes controlee_address = 1; -inline bool UwbMultiChipInfo::_internal_has_controlee_address() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool UwbMultiChipInfo::has_controlee_address() const { - return _internal_has_controlee_address(); -} -inline void UwbMultiChipInfo::clear_controlee_address() { - controlee_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& UwbMultiChipInfo::controlee_address() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbMultiChipInfo.controlee_address) - return _internal_controlee_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void UwbMultiChipInfo::set_controlee_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - controlee_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.UwbMultiChipInfo.controlee_address) -} -inline std::string* UwbMultiChipInfo::mutable_controlee_address() { - std::string* _s = _internal_mutable_controlee_address(); - // @@protoc_insertion_point(field_mutable:nearby.presence.UwbMultiChipInfo.controlee_address) - return _s; -} -inline const std::string& UwbMultiChipInfo::_internal_controlee_address() const { - return controlee_address_.Get(); -} -inline void UwbMultiChipInfo::_internal_set_controlee_address(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - controlee_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* UwbMultiChipInfo::_internal_mutable_controlee_address() { - _has_bits_[0] |= 0x00000001u; - return controlee_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* UwbMultiChipInfo::release_controlee_address() { - // @@protoc_insertion_point(field_release:nearby.presence.UwbMultiChipInfo.controlee_address) - if (!_internal_has_controlee_address()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = controlee_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (controlee_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - controlee_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void UwbMultiChipInfo::set_allocated_controlee_address(std::string* controlee_address) { - if (controlee_address != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - controlee_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), controlee_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (controlee_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - controlee_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.UwbMultiChipInfo.controlee_address) -} - -// optional string chip_id = 2; -inline bool UwbMultiChipInfo::_internal_has_chip_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool UwbMultiChipInfo::has_chip_id() const { - return _internal_has_chip_id(); -} -inline void UwbMultiChipInfo::clear_chip_id() { - chip_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& UwbMultiChipInfo::chip_id() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbMultiChipInfo.chip_id) - return _internal_chip_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void UwbMultiChipInfo::set_chip_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - chip_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.UwbMultiChipInfo.chip_id) -} -inline std::string* UwbMultiChipInfo::mutable_chip_id() { - std::string* _s = _internal_mutable_chip_id(); - // @@protoc_insertion_point(field_mutable:nearby.presence.UwbMultiChipInfo.chip_id) - return _s; -} -inline const std::string& UwbMultiChipInfo::_internal_chip_id() const { - return chip_id_.Get(); -} -inline void UwbMultiChipInfo::_internal_set_chip_id(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - chip_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* UwbMultiChipInfo::_internal_mutable_chip_id() { - _has_bits_[0] |= 0x00000002u; - return chip_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* UwbMultiChipInfo::release_chip_id() { - // @@protoc_insertion_point(field_release:nearby.presence.UwbMultiChipInfo.chip_id) - if (!_internal_has_chip_id()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = chip_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (chip_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - chip_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void UwbMultiChipInfo::set_allocated_chip_id(std::string* chip_id) { - if (chip_id != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - chip_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), chip_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (chip_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - chip_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.UwbMultiChipInfo.chip_id) -} - -// ------------------------------------------------------------------- - -// UwbConnectionInfo - -// optional bytes controller_address = 1; -inline bool UwbConnectionInfo::_internal_has_controller_address() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool UwbConnectionInfo::has_controller_address() const { - return _internal_has_controller_address(); -} -inline void UwbConnectionInfo::clear_controller_address() { - controller_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& UwbConnectionInfo::controller_address() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbConnectionInfo.controller_address) - return _internal_controller_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void UwbConnectionInfo::set_controller_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - controller_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.UwbConnectionInfo.controller_address) -} -inline std::string* UwbConnectionInfo::mutable_controller_address() { - std::string* _s = _internal_mutable_controller_address(); - // @@protoc_insertion_point(field_mutable:nearby.presence.UwbConnectionInfo.controller_address) - return _s; -} -inline const std::string& UwbConnectionInfo::_internal_controller_address() const { - return controller_address_.Get(); -} -inline void UwbConnectionInfo::_internal_set_controller_address(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - controller_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* UwbConnectionInfo::_internal_mutable_controller_address() { - _has_bits_[0] |= 0x00000001u; - return controller_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* UwbConnectionInfo::release_controller_address() { - // @@protoc_insertion_point(field_release:nearby.presence.UwbConnectionInfo.controller_address) - if (!_internal_has_controller_address()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = controller_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (controller_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - controller_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void UwbConnectionInfo::set_allocated_controller_address(std::string* controller_address) { - if (controller_address != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - controller_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), controller_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (controller_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - controller_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.UwbConnectionInfo.controller_address) -} - -// optional int32 channel = 2; -inline bool UwbConnectionInfo::_internal_has_channel() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; - return value; -} -inline bool UwbConnectionInfo::has_channel() const { - return _internal_has_channel(); -} -inline void UwbConnectionInfo::clear_channel() { - channel_ = 0; - _has_bits_[0] &= ~0x00000010u; -} -inline int32_t UwbConnectionInfo::_internal_channel() const { - return channel_; -} -inline int32_t UwbConnectionInfo::channel() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbConnectionInfo.channel) - return _internal_channel(); -} -inline void UwbConnectionInfo::_internal_set_channel(int32_t value) { - _has_bits_[0] |= 0x00000010u; - channel_ = value; -} -inline void UwbConnectionInfo::set_channel(int32_t value) { - _internal_set_channel(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbConnectionInfo.channel) -} - -// optional int32 preamble_index = 3; -inline bool UwbConnectionInfo::_internal_has_preamble_index() const { - bool value = (_has_bits_[0] & 0x00000020u) != 0; - return value; -} -inline bool UwbConnectionInfo::has_preamble_index() const { - return _internal_has_preamble_index(); -} -inline void UwbConnectionInfo::clear_preamble_index() { - preamble_index_ = 0; - _has_bits_[0] &= ~0x00000020u; -} -inline int32_t UwbConnectionInfo::_internal_preamble_index() const { - return preamble_index_; -} -inline int32_t UwbConnectionInfo::preamble_index() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbConnectionInfo.preamble_index) - return _internal_preamble_index(); -} -inline void UwbConnectionInfo::_internal_set_preamble_index(int32_t value) { - _has_bits_[0] |= 0x00000020u; - preamble_index_ = value; -} -inline void UwbConnectionInfo::set_preamble_index(int32_t value) { - _internal_set_preamble_index(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbConnectionInfo.preamble_index) -} - -// optional int32 config_id = 4; -inline bool UwbConnectionInfo::_internal_has_config_id() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; - return value; -} -inline bool UwbConnectionInfo::has_config_id() const { - return _internal_has_config_id(); -} -inline void UwbConnectionInfo::clear_config_id() { - config_id_ = 0; - _has_bits_[0] &= ~0x00000040u; -} -inline int32_t UwbConnectionInfo::_internal_config_id() const { - return config_id_; -} -inline int32_t UwbConnectionInfo::config_id() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbConnectionInfo.config_id) - return _internal_config_id(); -} -inline void UwbConnectionInfo::_internal_set_config_id(int32_t value) { - _has_bits_[0] |= 0x00000040u; - config_id_ = value; -} -inline void UwbConnectionInfo::set_config_id(int32_t value) { - _internal_set_config_id(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbConnectionInfo.config_id) -} - -// optional int32 ranging_interval_ms = 5; -inline bool UwbConnectionInfo::_internal_has_ranging_interval_ms() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; - return value; -} -inline bool UwbConnectionInfo::has_ranging_interval_ms() const { - return _internal_has_ranging_interval_ms(); -} -inline void UwbConnectionInfo::clear_ranging_interval_ms() { - ranging_interval_ms_ = 0; - _has_bits_[0] &= ~0x00000080u; -} -inline int32_t UwbConnectionInfo::_internal_ranging_interval_ms() const { - return ranging_interval_ms_; -} -inline int32_t UwbConnectionInfo::ranging_interval_ms() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbConnectionInfo.ranging_interval_ms) - return _internal_ranging_interval_ms(); -} -inline void UwbConnectionInfo::_internal_set_ranging_interval_ms(int32_t value) { - _has_bits_[0] |= 0x00000080u; - ranging_interval_ms_ = value; -} -inline void UwbConnectionInfo::set_ranging_interval_ms(int32_t value) { - _internal_set_ranging_interval_ms(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbConnectionInfo.ranging_interval_ms) -} - -// optional int32 session_id = 6; -inline bool UwbConnectionInfo::_internal_has_session_id() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; - return value; -} -inline bool UwbConnectionInfo::has_session_id() const { - return _internal_has_session_id(); -} -inline void UwbConnectionInfo::clear_session_id() { - session_id_ = 0; - _has_bits_[0] &= ~0x00000100u; -} -inline int32_t UwbConnectionInfo::_internal_session_id() const { - return session_id_; -} -inline int32_t UwbConnectionInfo::session_id() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbConnectionInfo.session_id) - return _internal_session_id(); -} -inline void UwbConnectionInfo::_internal_set_session_id(int32_t value) { - _has_bits_[0] |= 0x00000100u; - session_id_ = value; -} -inline void UwbConnectionInfo::set_session_id(int32_t value) { - _internal_set_session_id(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbConnectionInfo.session_id) -} - -// optional bytes vendor_id = 7; -inline bool UwbConnectionInfo::_internal_has_vendor_id() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool UwbConnectionInfo::has_vendor_id() const { - return _internal_has_vendor_id(); -} -inline void UwbConnectionInfo::clear_vendor_id() { - vendor_id_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& UwbConnectionInfo::vendor_id() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbConnectionInfo.vendor_id) - return _internal_vendor_id(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void UwbConnectionInfo::set_vendor_id(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - vendor_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.UwbConnectionInfo.vendor_id) -} -inline std::string* UwbConnectionInfo::mutable_vendor_id() { - std::string* _s = _internal_mutable_vendor_id(); - // @@protoc_insertion_point(field_mutable:nearby.presence.UwbConnectionInfo.vendor_id) - return _s; -} -inline const std::string& UwbConnectionInfo::_internal_vendor_id() const { - return vendor_id_.Get(); -} -inline void UwbConnectionInfo::_internal_set_vendor_id(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - vendor_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* UwbConnectionInfo::_internal_mutable_vendor_id() { - _has_bits_[0] |= 0x00000002u; - return vendor_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* UwbConnectionInfo::release_vendor_id() { - // @@protoc_insertion_point(field_release:nearby.presence.UwbConnectionInfo.vendor_id) - if (!_internal_has_vendor_id()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = vendor_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (vendor_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - vendor_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void UwbConnectionInfo::set_allocated_vendor_id(std::string* vendor_id) { - if (vendor_id != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - vendor_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), vendor_id, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (vendor_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - vendor_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.UwbConnectionInfo.vendor_id) -} - -// optional bytes static_sts_iv = 8; -inline bool UwbConnectionInfo::_internal_has_static_sts_iv() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool UwbConnectionInfo::has_static_sts_iv() const { - return _internal_has_static_sts_iv(); -} -inline void UwbConnectionInfo::clear_static_sts_iv() { - static_sts_iv_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; -} -inline const std::string& UwbConnectionInfo::static_sts_iv() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbConnectionInfo.static_sts_iv) - return _internal_static_sts_iv(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void UwbConnectionInfo::set_static_sts_iv(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - static_sts_iv_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.UwbConnectionInfo.static_sts_iv) -} -inline std::string* UwbConnectionInfo::mutable_static_sts_iv() { - std::string* _s = _internal_mutable_static_sts_iv(); - // @@protoc_insertion_point(field_mutable:nearby.presence.UwbConnectionInfo.static_sts_iv) - return _s; -} -inline const std::string& UwbConnectionInfo::_internal_static_sts_iv() const { - return static_sts_iv_.Get(); -} -inline void UwbConnectionInfo::_internal_set_static_sts_iv(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - static_sts_iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* UwbConnectionInfo::_internal_mutable_static_sts_iv() { - _has_bits_[0] |= 0x00000004u; - return static_sts_iv_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* UwbConnectionInfo::release_static_sts_iv() { - // @@protoc_insertion_point(field_release:nearby.presence.UwbConnectionInfo.static_sts_iv) - if (!_internal_has_static_sts_iv()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - auto* p = static_sts_iv_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (static_sts_iv_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - static_sts_iv_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void UwbConnectionInfo::set_allocated_static_sts_iv(std::string* static_sts_iv) { - if (static_sts_iv != nullptr) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - static_sts_iv_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), static_sts_iv, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (static_sts_iv_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - static_sts_iv_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.UwbConnectionInfo.static_sts_iv) -} - -// optional bytes session_key = 9; -inline bool UwbConnectionInfo::_internal_has_session_key() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool UwbConnectionInfo::has_session_key() const { - return _internal_has_session_key(); -} -inline void UwbConnectionInfo::clear_session_key() { - session_key_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; -} -inline const std::string& UwbConnectionInfo::session_key() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbConnectionInfo.session_key) - return _internal_session_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void UwbConnectionInfo::set_session_key(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - session_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.UwbConnectionInfo.session_key) -} -inline std::string* UwbConnectionInfo::mutable_session_key() { - std::string* _s = _internal_mutable_session_key(); - // @@protoc_insertion_point(field_mutable:nearby.presence.UwbConnectionInfo.session_key) - return _s; -} -inline const std::string& UwbConnectionInfo::_internal_session_key() const { - return session_key_.Get(); -} -inline void UwbConnectionInfo::_internal_set_session_key(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - session_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* UwbConnectionInfo::_internal_mutable_session_key() { - _has_bits_[0] |= 0x00000008u; - return session_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* UwbConnectionInfo::release_session_key() { - // @@protoc_insertion_point(field_release:nearby.presence.UwbConnectionInfo.session_key) - if (!_internal_has_session_key()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000008u; - auto* p = session_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (session_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - session_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void UwbConnectionInfo::set_allocated_session_key(std::string* session_key) { - if (session_key != nullptr) { - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - session_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), session_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (session_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - session_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.UwbConnectionInfo.session_key) -} - -// optional bool ranging_disabled = 10; -inline bool UwbConnectionInfo::_internal_has_ranging_disabled() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; - return value; -} -inline bool UwbConnectionInfo::has_ranging_disabled() const { - return _internal_has_ranging_disabled(); -} -inline void UwbConnectionInfo::clear_ranging_disabled() { - ranging_disabled_ = false; - _has_bits_[0] &= ~0x00000200u; -} -inline bool UwbConnectionInfo::_internal_ranging_disabled() const { - return ranging_disabled_; -} -inline bool UwbConnectionInfo::ranging_disabled() const { - // @@protoc_insertion_point(field_get:nearby.presence.UwbConnectionInfo.ranging_disabled) - return _internal_ranging_disabled(); -} -inline void UwbConnectionInfo::_internal_set_ranging_disabled(bool value) { - _has_bits_[0] |= 0x00000200u; - ranging_disabled_ = value; -} -inline void UwbConnectionInfo::set_ranging_disabled(bool value) { - _internal_set_ranging_disabled(value); - // @@protoc_insertion_point(field_set:nearby.presence.UwbConnectionInfo.ranging_disabled) -} - -// ------------------------------------------------------------------- - -// ControlFrame - -// optional .nearby.presence.ControlFrame.ControlType type = 1; -inline bool ControlFrame::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool ControlFrame::has_type() const { - return _internal_has_type(); -} -inline void ControlFrame::clear_type() { - type_ = 0; - _has_bits_[0] &= ~0x00000001u; -} -inline ::nearby::presence::ControlFrame_ControlType ControlFrame::_internal_type() const { - return static_cast< ::nearby::presence::ControlFrame_ControlType >(type_); -} -inline ::nearby::presence::ControlFrame_ControlType ControlFrame::type() const { - // @@protoc_insertion_point(field_get:nearby.presence.ControlFrame.type) - return _internal_type(); -} -inline void ControlFrame::_internal_set_type(::nearby::presence::ControlFrame_ControlType value) { - assert(::nearby::presence::ControlFrame_ControlType_IsValid(value)); - _has_bits_[0] |= 0x00000001u; - type_ = value; -} -inline void ControlFrame::set_type(::nearby::presence::ControlFrame_ControlType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:nearby.presence.ControlFrame.type) -} - -// ------------------------------------------------------------------- - -// PresenceAuthenticationFrame - -// optional int32 version = 1; -inline bool PresenceAuthenticationFrame::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool PresenceAuthenticationFrame::has_version() const { - return _internal_has_version(); -} -inline void PresenceAuthenticationFrame::clear_version() { - version_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline int32_t PresenceAuthenticationFrame::_internal_version() const { - return version_; -} -inline int32_t PresenceAuthenticationFrame::version() const { - // @@protoc_insertion_point(field_get:nearby.presence.PresenceAuthenticationFrame.version) - return _internal_version(); -} -inline void PresenceAuthenticationFrame::_internal_set_version(int32_t value) { - _has_bits_[0] |= 0x00000008u; - version_ = value; -} -inline void PresenceAuthenticationFrame::set_version(int32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:nearby.presence.PresenceAuthenticationFrame.version) -} - -// optional bytes private_key_signature = 2; -inline bool PresenceAuthenticationFrame::_internal_has_private_key_signature() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool PresenceAuthenticationFrame::has_private_key_signature() const { - return _internal_has_private_key_signature(); -} -inline void PresenceAuthenticationFrame::clear_private_key_signature() { - private_key_signature_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& PresenceAuthenticationFrame::private_key_signature() const { - // @@protoc_insertion_point(field_get:nearby.presence.PresenceAuthenticationFrame.private_key_signature) - return _internal_private_key_signature(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PresenceAuthenticationFrame::set_private_key_signature(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - private_key_signature_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.PresenceAuthenticationFrame.private_key_signature) -} -inline std::string* PresenceAuthenticationFrame::mutable_private_key_signature() { - std::string* _s = _internal_mutable_private_key_signature(); - // @@protoc_insertion_point(field_mutable:nearby.presence.PresenceAuthenticationFrame.private_key_signature) - return _s; -} -inline const std::string& PresenceAuthenticationFrame::_internal_private_key_signature() const { - return private_key_signature_.Get(); -} -inline void PresenceAuthenticationFrame::_internal_set_private_key_signature(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - private_key_signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* PresenceAuthenticationFrame::_internal_mutable_private_key_signature() { - _has_bits_[0] |= 0x00000001u; - return private_key_signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* PresenceAuthenticationFrame::release_private_key_signature() { - // @@protoc_insertion_point(field_release:nearby.presence.PresenceAuthenticationFrame.private_key_signature) - if (!_internal_has_private_key_signature()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = private_key_signature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (private_key_signature_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - private_key_signature_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void PresenceAuthenticationFrame::set_allocated_private_key_signature(std::string* private_key_signature) { - if (private_key_signature != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - private_key_signature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), private_key_signature, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (private_key_signature_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - private_key_signature_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.PresenceAuthenticationFrame.private_key_signature) -} - -// optional bytes shared_credential_id_hash = 3; -inline bool PresenceAuthenticationFrame::_internal_has_shared_credential_id_hash() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool PresenceAuthenticationFrame::has_shared_credential_id_hash() const { - return _internal_has_shared_credential_id_hash(); -} -inline void PresenceAuthenticationFrame::clear_shared_credential_id_hash() { - shared_credential_id_hash_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& PresenceAuthenticationFrame::shared_credential_id_hash() const { - // @@protoc_insertion_point(field_get:nearby.presence.PresenceAuthenticationFrame.shared_credential_id_hash) - return _internal_shared_credential_id_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PresenceAuthenticationFrame::set_shared_credential_id_hash(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - shared_credential_id_hash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.PresenceAuthenticationFrame.shared_credential_id_hash) -} -inline std::string* PresenceAuthenticationFrame::mutable_shared_credential_id_hash() { - std::string* _s = _internal_mutable_shared_credential_id_hash(); - // @@protoc_insertion_point(field_mutable:nearby.presence.PresenceAuthenticationFrame.shared_credential_id_hash) - return _s; -} -inline const std::string& PresenceAuthenticationFrame::_internal_shared_credential_id_hash() const { - return shared_credential_id_hash_.Get(); -} -inline void PresenceAuthenticationFrame::_internal_set_shared_credential_id_hash(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - shared_credential_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* PresenceAuthenticationFrame::_internal_mutable_shared_credential_id_hash() { - _has_bits_[0] |= 0x00000002u; - return shared_credential_id_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* PresenceAuthenticationFrame::release_shared_credential_id_hash() { - // @@protoc_insertion_point(field_release:nearby.presence.PresenceAuthenticationFrame.shared_credential_id_hash) - if (!_internal_has_shared_credential_id_hash()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = shared_credential_id_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (shared_credential_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - shared_credential_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void PresenceAuthenticationFrame::set_allocated_shared_credential_id_hash(std::string* shared_credential_id_hash) { - if (shared_credential_id_hash != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - shared_credential_id_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), shared_credential_id_hash, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (shared_credential_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - shared_credential_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.PresenceAuthenticationFrame.shared_credential_id_hash) -} - -// optional bytes credential_id_hash = 4 [deprecated = true]; -inline bool PresenceAuthenticationFrame::_internal_has_credential_id_hash() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool PresenceAuthenticationFrame::has_credential_id_hash() const { - return _internal_has_credential_id_hash(); -} -inline void PresenceAuthenticationFrame::clear_credential_id_hash() { - credential_id_hash_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; -} -inline const std::string& PresenceAuthenticationFrame::credential_id_hash() const { - // @@protoc_insertion_point(field_get:nearby.presence.PresenceAuthenticationFrame.credential_id_hash) - return _internal_credential_id_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void PresenceAuthenticationFrame::set_credential_id_hash(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - credential_id_hash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:nearby.presence.PresenceAuthenticationFrame.credential_id_hash) -} -inline std::string* PresenceAuthenticationFrame::mutable_credential_id_hash() { - std::string* _s = _internal_mutable_credential_id_hash(); - // @@protoc_insertion_point(field_mutable:nearby.presence.PresenceAuthenticationFrame.credential_id_hash) - return _s; -} -inline const std::string& PresenceAuthenticationFrame::_internal_credential_id_hash() const { - return credential_id_hash_.Get(); -} -inline void PresenceAuthenticationFrame::_internal_set_credential_id_hash(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - credential_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* PresenceAuthenticationFrame::_internal_mutable_credential_id_hash() { - _has_bits_[0] |= 0x00000004u; - return credential_id_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* PresenceAuthenticationFrame::release_credential_id_hash() { - // @@protoc_insertion_point(field_release:nearby.presence.PresenceAuthenticationFrame.credential_id_hash) - if (!_internal_has_credential_id_hash()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - auto* p = credential_id_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (credential_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - credential_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void PresenceAuthenticationFrame::set_allocated_credential_id_hash(std::string* credential_id_hash) { - if (credential_id_hash != nullptr) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - credential_id_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), credential_id_hash, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (credential_id_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - credential_id_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:nearby.presence.PresenceAuthenticationFrame.credential_id_hash) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace presence -} // namespace nearby - -PROTOBUF_NAMESPACE_OPEN - -template <> struct is_proto_enum< ::nearby::presence::PresenceFrame_Version> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::nearby::presence::PresenceFrame_Version>() { - return ::nearby::presence::PresenceFrame_Version_descriptor(); -} -template <> struct is_proto_enum< ::nearby::presence::ControlFrame_ControlType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::nearby::presence::ControlFrame_ControlType>() { - return ::nearby::presence::ControlFrame_ControlType_descriptor(); -} - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_presence_2fproto_2fpresence_5fframe_2eproto diff --git a/compiled_proto/proto/fast_pair_enums.pb.cc b/compiled_proto/proto/fast_pair_enums.pb.cc deleted file mode 100644 index 8a5bbb06..00000000 --- a/compiled_proto/proto/fast_pair_enums.pb.cc +++ /dev/null @@ -1,748 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/fast_pair_enums.proto - -#include "proto/fast_pair_enums.pb.h" - -#include - -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG -namespace nearby { -namespace proto { -namespace fastpair { -constexpr FastPairEvent::FastPairEvent( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} -struct FastPairEventDefaultTypeInternal { - constexpr FastPairEventDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~FastPairEventDefaultTypeInternal() {} - union { - FastPairEvent _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FastPairEventDefaultTypeInternal _FastPairEvent_default_instance_; -} // namespace fastpair -} // namespace proto -} // namespace nearby -namespace nearby { -namespace proto { -namespace fastpair { -bool FastPairEvent_BondState_IsValid(int value) { - switch (value) { - case 0: - case 10: - case 11: - case 12: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed FastPairEvent_BondState_strings[4] = {}; - -static const char FastPairEvent_BondState_names[] = - "BONDED" - "BONDING" - "NONE" - "UNKNOWN_BOND_STATE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastPairEvent_BondState_entries[] = { - { {FastPairEvent_BondState_names + 0, 6}, 12 }, - { {FastPairEvent_BondState_names + 6, 7}, 11 }, - { {FastPairEvent_BondState_names + 13, 4}, 10 }, - { {FastPairEvent_BondState_names + 17, 18}, 0 }, -}; - -static const int FastPairEvent_BondState_entries_by_number[] = { - 3, // 0 -> UNKNOWN_BOND_STATE - 2, // 10 -> NONE - 1, // 11 -> BONDING - 0, // 12 -> BONDED -}; - -const std::string& FastPairEvent_BondState_Name( - FastPairEvent_BondState value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - FastPairEvent_BondState_entries, - FastPairEvent_BondState_entries_by_number, - 4, FastPairEvent_BondState_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - FastPairEvent_BondState_entries, - FastPairEvent_BondState_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - FastPairEvent_BondState_strings[idx].get(); -} -bool FastPairEvent_BondState_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_BondState* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - FastPairEvent_BondState_entries, 4, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr FastPairEvent_BondState FastPairEvent::UNKNOWN_BOND_STATE; -constexpr FastPairEvent_BondState FastPairEvent::NONE; -constexpr FastPairEvent_BondState FastPairEvent::BONDING; -constexpr FastPairEvent_BondState FastPairEvent::BONDED; -constexpr FastPairEvent_BondState FastPairEvent::BondState_MIN; -constexpr FastPairEvent_BondState FastPairEvent::BondState_MAX; -constexpr int FastPairEvent::BondState_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool FastPairEvent_ErrorCode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed FastPairEvent_ErrorCode_strings[17] = {}; - -static const char FastPairEvent_ErrorCode_names[] = - "DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR" - "DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION" - "EXECUTION_EXCEPTION" - "INTERRUPTED" - "MDH_REMOTE_EXCEPTION" - "OTHER_ERROR" - "PARSE_EXCEPTION" - "REFLECTIVE_OPERATION_EXCEPTION" - "SUCCESS_ADDRESS_ROTATE" - "SUCCESS_RETRY_GATT_ERROR" - "SUCCESS_RETRY_GATT_TIMEOUT" - "SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR" - "SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT" - "SUCCESS_SECRET_HANDSHAKE_RECONNECT" - "SUCCESS_SIGNAL_LOST" - "TIMEOUT" - "UNKNOWN_ERROR_CODE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastPairEvent_ErrorCode_entries[] = { - { {FastPairEvent_ErrorCode_names + 0, 41}, 16 }, - { {FastPairEvent_ErrorCode_names + 41, 38}, 15 }, - { {FastPairEvent_ErrorCode_names + 79, 19}, 5 }, - { {FastPairEvent_ErrorCode_names + 98, 11}, 3 }, - { {FastPairEvent_ErrorCode_names + 109, 20}, 7 }, - { {FastPairEvent_ErrorCode_names + 129, 11}, 1 }, - { {FastPairEvent_ErrorCode_names + 140, 15}, 6 }, - { {FastPairEvent_ErrorCode_names + 155, 30}, 4 }, - { {FastPairEvent_ErrorCode_names + 185, 22}, 13 }, - { {FastPairEvent_ErrorCode_names + 207, 24}, 8 }, - { {FastPairEvent_ErrorCode_names + 231, 26}, 9 }, - { {FastPairEvent_ErrorCode_names + 257, 36}, 10 }, - { {FastPairEvent_ErrorCode_names + 293, 38}, 11 }, - { {FastPairEvent_ErrorCode_names + 331, 34}, 12 }, - { {FastPairEvent_ErrorCode_names + 365, 19}, 14 }, - { {FastPairEvent_ErrorCode_names + 384, 7}, 2 }, - { {FastPairEvent_ErrorCode_names + 391, 18}, 0 }, -}; - -static const int FastPairEvent_ErrorCode_entries_by_number[] = { - 16, // 0 -> UNKNOWN_ERROR_CODE - 5, // 1 -> OTHER_ERROR - 15, // 2 -> TIMEOUT - 3, // 3 -> INTERRUPTED - 7, // 4 -> REFLECTIVE_OPERATION_EXCEPTION - 2, // 5 -> EXECUTION_EXCEPTION - 6, // 6 -> PARSE_EXCEPTION - 4, // 7 -> MDH_REMOTE_EXCEPTION - 9, // 8 -> SUCCESS_RETRY_GATT_ERROR - 10, // 9 -> SUCCESS_RETRY_GATT_TIMEOUT - 11, // 10 -> SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR - 12, // 11 -> SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT - 13, // 12 -> SUCCESS_SECRET_HANDSHAKE_RECONNECT - 8, // 13 -> SUCCESS_ADDRESS_ROTATE - 14, // 14 -> SUCCESS_SIGNAL_LOST - 1, // 15 -> DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION - 0, // 16 -> DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR -}; - -const std::string& FastPairEvent_ErrorCode_Name( - FastPairEvent_ErrorCode value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - FastPairEvent_ErrorCode_entries, - FastPairEvent_ErrorCode_entries_by_number, - 17, FastPairEvent_ErrorCode_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - FastPairEvent_ErrorCode_entries, - FastPairEvent_ErrorCode_entries_by_number, - 17, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - FastPairEvent_ErrorCode_strings[idx].get(); -} -bool FastPairEvent_ErrorCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_ErrorCode* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - FastPairEvent_ErrorCode_entries, 17, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr FastPairEvent_ErrorCode FastPairEvent::UNKNOWN_ERROR_CODE; -constexpr FastPairEvent_ErrorCode FastPairEvent::OTHER_ERROR; -constexpr FastPairEvent_ErrorCode FastPairEvent::TIMEOUT; -constexpr FastPairEvent_ErrorCode FastPairEvent::INTERRUPTED; -constexpr FastPairEvent_ErrorCode FastPairEvent::REFLECTIVE_OPERATION_EXCEPTION; -constexpr FastPairEvent_ErrorCode FastPairEvent::EXECUTION_EXCEPTION; -constexpr FastPairEvent_ErrorCode FastPairEvent::PARSE_EXCEPTION; -constexpr FastPairEvent_ErrorCode FastPairEvent::MDH_REMOTE_EXCEPTION; -constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_RETRY_GATT_ERROR; -constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_RETRY_GATT_TIMEOUT; -constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR; -constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT; -constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_SECRET_HANDSHAKE_RECONNECT; -constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_ADDRESS_ROTATE; -constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_SIGNAL_LOST; -constexpr FastPairEvent_ErrorCode FastPairEvent::DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION; -constexpr FastPairEvent_ErrorCode FastPairEvent::DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR; -constexpr FastPairEvent_ErrorCode FastPairEvent::ErrorCode_MIN; -constexpr FastPairEvent_ErrorCode FastPairEvent::ErrorCode_MAX; -constexpr int FastPairEvent::ErrorCode_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool FastPairEvent_BrEdrHandoverErrorCode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed FastPairEvent_BrEdrHandoverErrorCode_strings[4] = {}; - -static const char FastPairEvent_BrEdrHandoverErrorCode_names[] = - "BLUETOOTH_MAC_INVALID" - "CONTROL_POINT_RESULT_CODE_NOT_SUCCESS" - "TRANSPORT_BLOCK_INVALID" - "UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastPairEvent_BrEdrHandoverErrorCode_entries[] = { - { {FastPairEvent_BrEdrHandoverErrorCode_names + 0, 21}, 2 }, - { {FastPairEvent_BrEdrHandoverErrorCode_names + 21, 37}, 1 }, - { {FastPairEvent_BrEdrHandoverErrorCode_names + 58, 23}, 3 }, - { {FastPairEvent_BrEdrHandoverErrorCode_names + 81, 34}, 0 }, -}; - -static const int FastPairEvent_BrEdrHandoverErrorCode_entries_by_number[] = { - 3, // 0 -> UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE - 1, // 1 -> CONTROL_POINT_RESULT_CODE_NOT_SUCCESS - 0, // 2 -> BLUETOOTH_MAC_INVALID - 2, // 3 -> TRANSPORT_BLOCK_INVALID -}; - -const std::string& FastPairEvent_BrEdrHandoverErrorCode_Name( - FastPairEvent_BrEdrHandoverErrorCode value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - FastPairEvent_BrEdrHandoverErrorCode_entries, - FastPairEvent_BrEdrHandoverErrorCode_entries_by_number, - 4, FastPairEvent_BrEdrHandoverErrorCode_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - FastPairEvent_BrEdrHandoverErrorCode_entries, - FastPairEvent_BrEdrHandoverErrorCode_entries_by_number, - 4, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - FastPairEvent_BrEdrHandoverErrorCode_strings[idx].get(); -} -bool FastPairEvent_BrEdrHandoverErrorCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_BrEdrHandoverErrorCode* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - FastPairEvent_BrEdrHandoverErrorCode_entries, 4, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE; -constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::CONTROL_POINT_RESULT_CODE_NOT_SUCCESS; -constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::BLUETOOTH_MAC_INVALID; -constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::TRANSPORT_BLOCK_INVALID; -constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::BrEdrHandoverErrorCode_MIN; -constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::BrEdrHandoverErrorCode_MAX; -constexpr int FastPairEvent::BrEdrHandoverErrorCode_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool FastPairEvent_CreateBondErrorCode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed FastPairEvent_CreateBondErrorCode_strings[6] = {}; - -static const char FastPairEvent_CreateBondErrorCode_names[] = - "BOND_BROKEN" - "FAILED_BUT_ALREADY_RECEIVE_PASS_KEY" - "INCORRECT_VARIANT" - "NO_PERMISSION" - "POSSIBLE_MITM" - "UNKNOWN_BOND_ERROR_CODE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastPairEvent_CreateBondErrorCode_entries[] = { - { {FastPairEvent_CreateBondErrorCode_names + 0, 11}, 1 }, - { {FastPairEvent_CreateBondErrorCode_names + 11, 35}, 5 }, - { {FastPairEvent_CreateBondErrorCode_names + 46, 17}, 4 }, - { {FastPairEvent_CreateBondErrorCode_names + 63, 13}, 3 }, - { {FastPairEvent_CreateBondErrorCode_names + 76, 13}, 2 }, - { {FastPairEvent_CreateBondErrorCode_names + 89, 23}, 0 }, -}; - -static const int FastPairEvent_CreateBondErrorCode_entries_by_number[] = { - 5, // 0 -> UNKNOWN_BOND_ERROR_CODE - 0, // 1 -> BOND_BROKEN - 4, // 2 -> POSSIBLE_MITM - 3, // 3 -> NO_PERMISSION - 2, // 4 -> INCORRECT_VARIANT - 1, // 5 -> FAILED_BUT_ALREADY_RECEIVE_PASS_KEY -}; - -const std::string& FastPairEvent_CreateBondErrorCode_Name( - FastPairEvent_CreateBondErrorCode value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - FastPairEvent_CreateBondErrorCode_entries, - FastPairEvent_CreateBondErrorCode_entries_by_number, - 6, FastPairEvent_CreateBondErrorCode_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - FastPairEvent_CreateBondErrorCode_entries, - FastPairEvent_CreateBondErrorCode_entries_by_number, - 6, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - FastPairEvent_CreateBondErrorCode_strings[idx].get(); -} -bool FastPairEvent_CreateBondErrorCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_CreateBondErrorCode* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - FastPairEvent_CreateBondErrorCode_entries, 6, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::UNKNOWN_BOND_ERROR_CODE; -constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::BOND_BROKEN; -constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::POSSIBLE_MITM; -constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::NO_PERMISSION; -constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::INCORRECT_VARIANT; -constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::FAILED_BUT_ALREADY_RECEIVE_PASS_KEY; -constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::CreateBondErrorCode_MIN; -constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::CreateBondErrorCode_MAX; -constexpr int FastPairEvent::CreateBondErrorCode_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool FastPairEvent_ConnectErrorCode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed FastPairEvent_ConnectErrorCode_strings[7] = {}; - -static const char FastPairEvent_ConnectErrorCode_names[] = - "DISCONNECTED" - "DISCOVERY_NOT_FINISHED" - "FAIL_TO_DISCOVERY" - "GET_PROFILE_PROXY_FAILED" - "LINK_KEY_CLEARED" - "UNKNOWN_CONNECT_ERROR_CODE" - "UNSUPPORTED_PROFILE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastPairEvent_ConnectErrorCode_entries[] = { - { {FastPairEvent_ConnectErrorCode_names + 0, 12}, 3 }, - { {FastPairEvent_ConnectErrorCode_names + 12, 22}, 6 }, - { {FastPairEvent_ConnectErrorCode_names + 34, 17}, 5 }, - { {FastPairEvent_ConnectErrorCode_names + 51, 24}, 2 }, - { {FastPairEvent_ConnectErrorCode_names + 75, 16}, 4 }, - { {FastPairEvent_ConnectErrorCode_names + 91, 26}, 0 }, - { {FastPairEvent_ConnectErrorCode_names + 117, 19}, 1 }, -}; - -static const int FastPairEvent_ConnectErrorCode_entries_by_number[] = { - 5, // 0 -> UNKNOWN_CONNECT_ERROR_CODE - 6, // 1 -> UNSUPPORTED_PROFILE - 3, // 2 -> GET_PROFILE_PROXY_FAILED - 0, // 3 -> DISCONNECTED - 4, // 4 -> LINK_KEY_CLEARED - 2, // 5 -> FAIL_TO_DISCOVERY - 1, // 6 -> DISCOVERY_NOT_FINISHED -}; - -const std::string& FastPairEvent_ConnectErrorCode_Name( - FastPairEvent_ConnectErrorCode value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - FastPairEvent_ConnectErrorCode_entries, - FastPairEvent_ConnectErrorCode_entries_by_number, - 7, FastPairEvent_ConnectErrorCode_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - FastPairEvent_ConnectErrorCode_entries, - FastPairEvent_ConnectErrorCode_entries_by_number, - 7, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - FastPairEvent_ConnectErrorCode_strings[idx].get(); -} -bool FastPairEvent_ConnectErrorCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_ConnectErrorCode* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - FastPairEvent_ConnectErrorCode_entries, 7, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -constexpr FastPairEvent_ConnectErrorCode FastPairEvent::UNKNOWN_CONNECT_ERROR_CODE; -constexpr FastPairEvent_ConnectErrorCode FastPairEvent::UNSUPPORTED_PROFILE; -constexpr FastPairEvent_ConnectErrorCode FastPairEvent::GET_PROFILE_PROXY_FAILED; -constexpr FastPairEvent_ConnectErrorCode FastPairEvent::DISCONNECTED; -constexpr FastPairEvent_ConnectErrorCode FastPairEvent::LINK_KEY_CLEARED; -constexpr FastPairEvent_ConnectErrorCode FastPairEvent::FAIL_TO_DISCOVERY; -constexpr FastPairEvent_ConnectErrorCode FastPairEvent::DISCOVERY_NOT_FINISHED; -constexpr FastPairEvent_ConnectErrorCode FastPairEvent::ConnectErrorCode_MIN; -constexpr FastPairEvent_ConnectErrorCode FastPairEvent::ConnectErrorCode_MAX; -constexpr int FastPairEvent::ConnectErrorCode_ARRAYSIZE; -#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) -bool DeviceType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed DeviceType_strings[7] = {}; - -static const char DeviceType_names[] = - "AUTO" - "PC" - "PHONE" - "TABLET" - "TV" - "UNKNOWN_DEVICE_TYPE" - "WEARABLE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DeviceType_entries[] = { - { {DeviceType_names + 0, 4}, 3 }, - { {DeviceType_names + 4, 2}, 4 }, - { {DeviceType_names + 6, 5}, 1 }, - { {DeviceType_names + 11, 6}, 6 }, - { {DeviceType_names + 17, 2}, 5 }, - { {DeviceType_names + 19, 19}, 0 }, - { {DeviceType_names + 38, 8}, 2 }, -}; - -static const int DeviceType_entries_by_number[] = { - 5, // 0 -> UNKNOWN_DEVICE_TYPE - 2, // 1 -> PHONE - 6, // 2 -> WEARABLE - 0, // 3 -> AUTO - 1, // 4 -> PC - 4, // 5 -> TV - 3, // 6 -> TABLET -}; - -const std::string& DeviceType_Name( - DeviceType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - DeviceType_entries, - DeviceType_entries_by_number, - 7, DeviceType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - DeviceType_entries, - DeviceType_entries_by_number, - 7, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - DeviceType_strings[idx].get(); -} -bool DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - DeviceType_entries, 7, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -bool OsType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OsType_strings[3] = {}; - -static const char OsType_names[] = - "ANDROID" - "CHROME_OS" - "UNKNOWN_OS_TYPE"; - -static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OsType_entries[] = { - { {OsType_names + 0, 7}, 1 }, - { {OsType_names + 7, 9}, 2 }, - { {OsType_names + 16, 15}, 0 }, -}; - -static const int OsType_entries_by_number[] = { - 2, // 0 -> UNKNOWN_OS_TYPE - 0, // 1 -> ANDROID - 1, // 2 -> CHROME_OS -}; - -const std::string& OsType_Name( - OsType value) { - static const bool dummy = - ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( - OsType_entries, - OsType_entries_by_number, - 3, OsType_strings); - (void) dummy; - int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( - OsType_entries, - OsType_entries_by_number, - 3, value); - return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : - OsType_strings[idx].get(); -} -bool OsType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OsType* value) { - int int_value; - bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - OsType_entries, 3, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} - -// =================================================================== - -class FastPairEvent::_Internal { - public: -}; - -FastPairEvent::FastPairEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:nearby.proto.fastpair.FastPairEvent) -} -FastPairEvent::FastPairEvent(const FastPairEvent& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:nearby.proto.fastpair.FastPairEvent) -} - -inline void FastPairEvent::SharedCtor() { -} - -FastPairEvent::~FastPairEvent() { - // @@protoc_insertion_point(destructor:nearby.proto.fastpair.FastPairEvent) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void FastPairEvent::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); -} - -void FastPairEvent::ArenaDtor(void* object) { - FastPairEvent* _this = reinterpret_cast< FastPairEvent* >(object); - (void)_this; -} -void FastPairEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void FastPairEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void FastPairEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:nearby.proto.fastpair.FastPairEvent) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -const char* FastPairEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - if ((tag == 0) || ((tag & 7) == 4)) { - CHK_(ptr); - ctx->SetLastTag(tag); - goto message_done; - } - ptr = UnknownFieldParse( - tag, - _internal_metadata_.mutable_unknown_fields(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* FastPairEvent::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:nearby.proto.fastpair.FastPairEvent) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:nearby.proto.fastpair.FastPairEvent) - return target; -} - -size_t FastPairEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:nearby.proto.fastpair.FastPairEvent) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FastPairEvent::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void FastPairEvent::MergeFrom(const FastPairEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:nearby.proto.fastpair.FastPairEvent) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void FastPairEvent::CopyFrom(const FastPairEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:nearby.proto.fastpair.FastPairEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FastPairEvent::IsInitialized() const { - return true; -} - -void FastPairEvent::InternalSwap(FastPairEvent* other) { - using std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); -} - -std::string FastPairEvent::GetTypeName() const { - return "nearby.proto.fastpair.FastPairEvent"; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace fastpair -} // namespace proto -} // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::nearby::proto::fastpair::FastPairEvent* Arena::CreateMaybeMessage< ::nearby::proto::fastpair::FastPairEvent >(Arena* arena) { - return Arena::CreateMessageInternal< ::nearby::proto::fastpair::FastPairEvent >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/compiled_proto/proto/fast_pair_enums.pb.h b/compiled_proto/proto/fast_pair_enums.pb.h deleted file mode 100644 index e101c0dc..00000000 --- a/compiled_proto/proto/fast_pair_enums.pb.h +++ /dev/null @@ -1,583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/fast_pair_enums.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2ffast_5fpair_5fenums_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2ffast_5fpair_5fenums_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3019000 -#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 3019001 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proto_2ffast_5fpair_5fenums_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_proto_2ffast_5fpair_5fenums_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; -}; -namespace nearby { -namespace proto { -namespace fastpair { -class FastPairEvent; -struct FastPairEventDefaultTypeInternal; -extern FastPairEventDefaultTypeInternal _FastPairEvent_default_instance_; -} // namespace fastpair -} // namespace proto -} // namespace nearby -PROTOBUF_NAMESPACE_OPEN -template<> ::nearby::proto::fastpair::FastPairEvent* Arena::CreateMaybeMessage<::nearby::proto::fastpair::FastPairEvent>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace nearby { -namespace proto { -namespace fastpair { - -enum FastPairEvent_BondState : int { - FastPairEvent_BondState_UNKNOWN_BOND_STATE = 0, - FastPairEvent_BondState_NONE = 10, - FastPairEvent_BondState_BONDING = 11, - FastPairEvent_BondState_BONDED = 12 -}; -bool FastPairEvent_BondState_IsValid(int value); -constexpr FastPairEvent_BondState FastPairEvent_BondState_BondState_MIN = FastPairEvent_BondState_UNKNOWN_BOND_STATE; -constexpr FastPairEvent_BondState FastPairEvent_BondState_BondState_MAX = FastPairEvent_BondState_BONDED; -constexpr int FastPairEvent_BondState_BondState_ARRAYSIZE = FastPairEvent_BondState_BondState_MAX + 1; - -const std::string& FastPairEvent_BondState_Name(FastPairEvent_BondState value); -template -inline const std::string& FastPairEvent_BondState_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FastPairEvent_BondState_Name."); - return FastPairEvent_BondState_Name(static_cast(enum_t_value)); -} -bool FastPairEvent_BondState_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_BondState* value); -enum FastPairEvent_ErrorCode : int { - FastPairEvent_ErrorCode_UNKNOWN_ERROR_CODE = 0, - FastPairEvent_ErrorCode_OTHER_ERROR = 1, - FastPairEvent_ErrorCode_TIMEOUT = 2, - FastPairEvent_ErrorCode_INTERRUPTED = 3, - FastPairEvent_ErrorCode_REFLECTIVE_OPERATION_EXCEPTION = 4, - FastPairEvent_ErrorCode_EXECUTION_EXCEPTION = 5, - FastPairEvent_ErrorCode_PARSE_EXCEPTION = 6, - FastPairEvent_ErrorCode_MDH_REMOTE_EXCEPTION = 7, - FastPairEvent_ErrorCode_SUCCESS_RETRY_GATT_ERROR = 8, - FastPairEvent_ErrorCode_SUCCESS_RETRY_GATT_TIMEOUT = 9, - FastPairEvent_ErrorCode_SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR = 10, - FastPairEvent_ErrorCode_SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT = 11, - FastPairEvent_ErrorCode_SUCCESS_SECRET_HANDSHAKE_RECONNECT = 12, - FastPairEvent_ErrorCode_SUCCESS_ADDRESS_ROTATE = 13, - FastPairEvent_ErrorCode_SUCCESS_SIGNAL_LOST = 14, - FastPairEvent_ErrorCode_DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION = 15, - FastPairEvent_ErrorCode_DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR = 16 -}; -bool FastPairEvent_ErrorCode_IsValid(int value); -constexpr FastPairEvent_ErrorCode FastPairEvent_ErrorCode_ErrorCode_MIN = FastPairEvent_ErrorCode_UNKNOWN_ERROR_CODE; -constexpr FastPairEvent_ErrorCode FastPairEvent_ErrorCode_ErrorCode_MAX = FastPairEvent_ErrorCode_DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR; -constexpr int FastPairEvent_ErrorCode_ErrorCode_ARRAYSIZE = FastPairEvent_ErrorCode_ErrorCode_MAX + 1; - -const std::string& FastPairEvent_ErrorCode_Name(FastPairEvent_ErrorCode value); -template -inline const std::string& FastPairEvent_ErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FastPairEvent_ErrorCode_Name."); - return FastPairEvent_ErrorCode_Name(static_cast(enum_t_value)); -} -bool FastPairEvent_ErrorCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_ErrorCode* value); -enum FastPairEvent_BrEdrHandoverErrorCode : int { - FastPairEvent_BrEdrHandoverErrorCode_UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE = 0, - FastPairEvent_BrEdrHandoverErrorCode_CONTROL_POINT_RESULT_CODE_NOT_SUCCESS = 1, - FastPairEvent_BrEdrHandoverErrorCode_BLUETOOTH_MAC_INVALID = 2, - FastPairEvent_BrEdrHandoverErrorCode_TRANSPORT_BLOCK_INVALID = 3 -}; -bool FastPairEvent_BrEdrHandoverErrorCode_IsValid(int value); -constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_MIN = FastPairEvent_BrEdrHandoverErrorCode_UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE; -constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_MAX = FastPairEvent_BrEdrHandoverErrorCode_TRANSPORT_BLOCK_INVALID; -constexpr int FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_ARRAYSIZE = FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_MAX + 1; - -const std::string& FastPairEvent_BrEdrHandoverErrorCode_Name(FastPairEvent_BrEdrHandoverErrorCode value); -template -inline const std::string& FastPairEvent_BrEdrHandoverErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FastPairEvent_BrEdrHandoverErrorCode_Name."); - return FastPairEvent_BrEdrHandoverErrorCode_Name(static_cast(enum_t_value)); -} -bool FastPairEvent_BrEdrHandoverErrorCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_BrEdrHandoverErrorCode* value); -enum FastPairEvent_CreateBondErrorCode : int { - FastPairEvent_CreateBondErrorCode_UNKNOWN_BOND_ERROR_CODE = 0, - FastPairEvent_CreateBondErrorCode_BOND_BROKEN = 1, - FastPairEvent_CreateBondErrorCode_POSSIBLE_MITM = 2, - FastPairEvent_CreateBondErrorCode_NO_PERMISSION = 3, - FastPairEvent_CreateBondErrorCode_INCORRECT_VARIANT = 4, - FastPairEvent_CreateBondErrorCode_FAILED_BUT_ALREADY_RECEIVE_PASS_KEY = 5 -}; -bool FastPairEvent_CreateBondErrorCode_IsValid(int value); -constexpr FastPairEvent_CreateBondErrorCode FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_MIN = FastPairEvent_CreateBondErrorCode_UNKNOWN_BOND_ERROR_CODE; -constexpr FastPairEvent_CreateBondErrorCode FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_MAX = FastPairEvent_CreateBondErrorCode_FAILED_BUT_ALREADY_RECEIVE_PASS_KEY; -constexpr int FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_ARRAYSIZE = FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_MAX + 1; - -const std::string& FastPairEvent_CreateBondErrorCode_Name(FastPairEvent_CreateBondErrorCode value); -template -inline const std::string& FastPairEvent_CreateBondErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FastPairEvent_CreateBondErrorCode_Name."); - return FastPairEvent_CreateBondErrorCode_Name(static_cast(enum_t_value)); -} -bool FastPairEvent_CreateBondErrorCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_CreateBondErrorCode* value); -enum FastPairEvent_ConnectErrorCode : int { - FastPairEvent_ConnectErrorCode_UNKNOWN_CONNECT_ERROR_CODE = 0, - FastPairEvent_ConnectErrorCode_UNSUPPORTED_PROFILE = 1, - FastPairEvent_ConnectErrorCode_GET_PROFILE_PROXY_FAILED = 2, - FastPairEvent_ConnectErrorCode_DISCONNECTED = 3, - FastPairEvent_ConnectErrorCode_LINK_KEY_CLEARED = 4, - FastPairEvent_ConnectErrorCode_FAIL_TO_DISCOVERY = 5, - FastPairEvent_ConnectErrorCode_DISCOVERY_NOT_FINISHED = 6 -}; -bool FastPairEvent_ConnectErrorCode_IsValid(int value); -constexpr FastPairEvent_ConnectErrorCode FastPairEvent_ConnectErrorCode_ConnectErrorCode_MIN = FastPairEvent_ConnectErrorCode_UNKNOWN_CONNECT_ERROR_CODE; -constexpr FastPairEvent_ConnectErrorCode FastPairEvent_ConnectErrorCode_ConnectErrorCode_MAX = FastPairEvent_ConnectErrorCode_DISCOVERY_NOT_FINISHED; -constexpr int FastPairEvent_ConnectErrorCode_ConnectErrorCode_ARRAYSIZE = FastPairEvent_ConnectErrorCode_ConnectErrorCode_MAX + 1; - -const std::string& FastPairEvent_ConnectErrorCode_Name(FastPairEvent_ConnectErrorCode value); -template -inline const std::string& FastPairEvent_ConnectErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function FastPairEvent_ConnectErrorCode_Name."); - return FastPairEvent_ConnectErrorCode_Name(static_cast(enum_t_value)); -} -bool FastPairEvent_ConnectErrorCode_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_ConnectErrorCode* value); -enum DeviceType : int { - UNKNOWN_DEVICE_TYPE = 0, - PHONE = 1, - WEARABLE = 2, - AUTO = 3, - PC = 4, - TV = 5, - TABLET = 6 -}; -bool DeviceType_IsValid(int value); -constexpr DeviceType DeviceType_MIN = UNKNOWN_DEVICE_TYPE; -constexpr DeviceType DeviceType_MAX = TABLET; -constexpr int DeviceType_ARRAYSIZE = DeviceType_MAX + 1; - -const std::string& DeviceType_Name(DeviceType value); -template -inline const std::string& DeviceType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function DeviceType_Name."); - return DeviceType_Name(static_cast(enum_t_value)); -} -bool DeviceType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value); -enum OsType : int { - UNKNOWN_OS_TYPE = 0, - ANDROID = 1, - CHROME_OS = 2 -}; -bool OsType_IsValid(int value); -constexpr OsType OsType_MIN = UNKNOWN_OS_TYPE; -constexpr OsType OsType_MAX = CHROME_OS; -constexpr int OsType_ARRAYSIZE = OsType_MAX + 1; - -const std::string& OsType_Name(OsType value); -template -inline const std::string& OsType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function OsType_Name."); - return OsType_Name(static_cast(enum_t_value)); -} -bool OsType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OsType* value); -// =================================================================== - -class FastPairEvent final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.proto.fastpair.FastPairEvent) */ { - public: - inline FastPairEvent() : FastPairEvent(nullptr) {} - ~FastPairEvent() override; - explicit constexpr FastPairEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - FastPairEvent(const FastPairEvent& from); - FastPairEvent(FastPairEvent&& from) noexcept - : FastPairEvent() { - *this = ::std::move(from); - } - - inline FastPairEvent& operator=(const FastPairEvent& from) { - CopyFrom(from); - return *this; - } - inline FastPairEvent& operator=(FastPairEvent&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const FastPairEvent& default_instance() { - return *internal_default_instance(); - } - static inline const FastPairEvent* internal_default_instance() { - return reinterpret_cast( - &_FastPairEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(FastPairEvent& a, FastPairEvent& b) { - a.Swap(&b); - } - inline void Swap(FastPairEvent* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(FastPairEvent* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - FastPairEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const FastPairEvent& from); - void MergeFrom(const FastPairEvent& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(FastPairEvent* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "nearby.proto.fastpair.FastPairEvent"; - } - protected: - explicit FastPairEvent(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef FastPairEvent_BondState BondState; - static constexpr BondState UNKNOWN_BOND_STATE = - FastPairEvent_BondState_UNKNOWN_BOND_STATE; - static constexpr BondState NONE = - FastPairEvent_BondState_NONE; - static constexpr BondState BONDING = - FastPairEvent_BondState_BONDING; - static constexpr BondState BONDED = - FastPairEvent_BondState_BONDED; - static inline bool BondState_IsValid(int value) { - return FastPairEvent_BondState_IsValid(value); - } - static constexpr BondState BondState_MIN = - FastPairEvent_BondState_BondState_MIN; - static constexpr BondState BondState_MAX = - FastPairEvent_BondState_BondState_MAX; - static constexpr int BondState_ARRAYSIZE = - FastPairEvent_BondState_BondState_ARRAYSIZE; - template - static inline const std::string& BondState_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BondState_Name."); - return FastPairEvent_BondState_Name(enum_t_value); - } - static inline bool BondState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - BondState* value) { - return FastPairEvent_BondState_Parse(name, value); - } - - typedef FastPairEvent_ErrorCode ErrorCode; - static constexpr ErrorCode UNKNOWN_ERROR_CODE = - FastPairEvent_ErrorCode_UNKNOWN_ERROR_CODE; - static constexpr ErrorCode OTHER_ERROR = - FastPairEvent_ErrorCode_OTHER_ERROR; - static constexpr ErrorCode TIMEOUT = - FastPairEvent_ErrorCode_TIMEOUT; - static constexpr ErrorCode INTERRUPTED = - FastPairEvent_ErrorCode_INTERRUPTED; - static constexpr ErrorCode REFLECTIVE_OPERATION_EXCEPTION = - FastPairEvent_ErrorCode_REFLECTIVE_OPERATION_EXCEPTION; - static constexpr ErrorCode EXECUTION_EXCEPTION = - FastPairEvent_ErrorCode_EXECUTION_EXCEPTION; - static constexpr ErrorCode PARSE_EXCEPTION = - FastPairEvent_ErrorCode_PARSE_EXCEPTION; - static constexpr ErrorCode MDH_REMOTE_EXCEPTION = - FastPairEvent_ErrorCode_MDH_REMOTE_EXCEPTION; - static constexpr ErrorCode SUCCESS_RETRY_GATT_ERROR = - FastPairEvent_ErrorCode_SUCCESS_RETRY_GATT_ERROR; - static constexpr ErrorCode SUCCESS_RETRY_GATT_TIMEOUT = - FastPairEvent_ErrorCode_SUCCESS_RETRY_GATT_TIMEOUT; - static constexpr ErrorCode SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR = - FastPairEvent_ErrorCode_SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR; - static constexpr ErrorCode SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT = - FastPairEvent_ErrorCode_SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT; - static constexpr ErrorCode SUCCESS_SECRET_HANDSHAKE_RECONNECT = - FastPairEvent_ErrorCode_SUCCESS_SECRET_HANDSHAKE_RECONNECT; - static constexpr ErrorCode SUCCESS_ADDRESS_ROTATE = - FastPairEvent_ErrorCode_SUCCESS_ADDRESS_ROTATE; - static constexpr ErrorCode SUCCESS_SIGNAL_LOST = - FastPairEvent_ErrorCode_SUCCESS_SIGNAL_LOST; - static constexpr ErrorCode DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION = - FastPairEvent_ErrorCode_DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION; - static constexpr ErrorCode DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR = - FastPairEvent_ErrorCode_DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR; - static inline bool ErrorCode_IsValid(int value) { - return FastPairEvent_ErrorCode_IsValid(value); - } - static constexpr ErrorCode ErrorCode_MIN = - FastPairEvent_ErrorCode_ErrorCode_MIN; - static constexpr ErrorCode ErrorCode_MAX = - FastPairEvent_ErrorCode_ErrorCode_MAX; - static constexpr int ErrorCode_ARRAYSIZE = - FastPairEvent_ErrorCode_ErrorCode_ARRAYSIZE; - template - static inline const std::string& ErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ErrorCode_Name."); - return FastPairEvent_ErrorCode_Name(enum_t_value); - } - static inline bool ErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - ErrorCode* value) { - return FastPairEvent_ErrorCode_Parse(name, value); - } - - typedef FastPairEvent_BrEdrHandoverErrorCode BrEdrHandoverErrorCode; - static constexpr BrEdrHandoverErrorCode UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE = - FastPairEvent_BrEdrHandoverErrorCode_UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE; - static constexpr BrEdrHandoverErrorCode CONTROL_POINT_RESULT_CODE_NOT_SUCCESS = - FastPairEvent_BrEdrHandoverErrorCode_CONTROL_POINT_RESULT_CODE_NOT_SUCCESS; - static constexpr BrEdrHandoverErrorCode BLUETOOTH_MAC_INVALID = - FastPairEvent_BrEdrHandoverErrorCode_BLUETOOTH_MAC_INVALID; - static constexpr BrEdrHandoverErrorCode TRANSPORT_BLOCK_INVALID = - FastPairEvent_BrEdrHandoverErrorCode_TRANSPORT_BLOCK_INVALID; - static inline bool BrEdrHandoverErrorCode_IsValid(int value) { - return FastPairEvent_BrEdrHandoverErrorCode_IsValid(value); - } - static constexpr BrEdrHandoverErrorCode BrEdrHandoverErrorCode_MIN = - FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_MIN; - static constexpr BrEdrHandoverErrorCode BrEdrHandoverErrorCode_MAX = - FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_MAX; - static constexpr int BrEdrHandoverErrorCode_ARRAYSIZE = - FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_ARRAYSIZE; - template - static inline const std::string& BrEdrHandoverErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function BrEdrHandoverErrorCode_Name."); - return FastPairEvent_BrEdrHandoverErrorCode_Name(enum_t_value); - } - static inline bool BrEdrHandoverErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - BrEdrHandoverErrorCode* value) { - return FastPairEvent_BrEdrHandoverErrorCode_Parse(name, value); - } - - typedef FastPairEvent_CreateBondErrorCode CreateBondErrorCode; - static constexpr CreateBondErrorCode UNKNOWN_BOND_ERROR_CODE = - FastPairEvent_CreateBondErrorCode_UNKNOWN_BOND_ERROR_CODE; - static constexpr CreateBondErrorCode BOND_BROKEN = - FastPairEvent_CreateBondErrorCode_BOND_BROKEN; - static constexpr CreateBondErrorCode POSSIBLE_MITM = - FastPairEvent_CreateBondErrorCode_POSSIBLE_MITM; - static constexpr CreateBondErrorCode NO_PERMISSION = - FastPairEvent_CreateBondErrorCode_NO_PERMISSION; - static constexpr CreateBondErrorCode INCORRECT_VARIANT = - FastPairEvent_CreateBondErrorCode_INCORRECT_VARIANT; - static constexpr CreateBondErrorCode FAILED_BUT_ALREADY_RECEIVE_PASS_KEY = - FastPairEvent_CreateBondErrorCode_FAILED_BUT_ALREADY_RECEIVE_PASS_KEY; - static inline bool CreateBondErrorCode_IsValid(int value) { - return FastPairEvent_CreateBondErrorCode_IsValid(value); - } - static constexpr CreateBondErrorCode CreateBondErrorCode_MIN = - FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_MIN; - static constexpr CreateBondErrorCode CreateBondErrorCode_MAX = - FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_MAX; - static constexpr int CreateBondErrorCode_ARRAYSIZE = - FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_ARRAYSIZE; - template - static inline const std::string& CreateBondErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function CreateBondErrorCode_Name."); - return FastPairEvent_CreateBondErrorCode_Name(enum_t_value); - } - static inline bool CreateBondErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - CreateBondErrorCode* value) { - return FastPairEvent_CreateBondErrorCode_Parse(name, value); - } - - typedef FastPairEvent_ConnectErrorCode ConnectErrorCode; - static constexpr ConnectErrorCode UNKNOWN_CONNECT_ERROR_CODE = - FastPairEvent_ConnectErrorCode_UNKNOWN_CONNECT_ERROR_CODE; - static constexpr ConnectErrorCode UNSUPPORTED_PROFILE = - FastPairEvent_ConnectErrorCode_UNSUPPORTED_PROFILE; - static constexpr ConnectErrorCode GET_PROFILE_PROXY_FAILED = - FastPairEvent_ConnectErrorCode_GET_PROFILE_PROXY_FAILED; - static constexpr ConnectErrorCode DISCONNECTED = - FastPairEvent_ConnectErrorCode_DISCONNECTED; - static constexpr ConnectErrorCode LINK_KEY_CLEARED = - FastPairEvent_ConnectErrorCode_LINK_KEY_CLEARED; - static constexpr ConnectErrorCode FAIL_TO_DISCOVERY = - FastPairEvent_ConnectErrorCode_FAIL_TO_DISCOVERY; - static constexpr ConnectErrorCode DISCOVERY_NOT_FINISHED = - FastPairEvent_ConnectErrorCode_DISCOVERY_NOT_FINISHED; - static inline bool ConnectErrorCode_IsValid(int value) { - return FastPairEvent_ConnectErrorCode_IsValid(value); - } - static constexpr ConnectErrorCode ConnectErrorCode_MIN = - FastPairEvent_ConnectErrorCode_ConnectErrorCode_MIN; - static constexpr ConnectErrorCode ConnectErrorCode_MAX = - FastPairEvent_ConnectErrorCode_ConnectErrorCode_MAX; - static constexpr int ConnectErrorCode_ARRAYSIZE = - FastPairEvent_ConnectErrorCode_ConnectErrorCode_ARRAYSIZE; - template - static inline const std::string& ConnectErrorCode_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function ConnectErrorCode_Name."); - return FastPairEvent_ConnectErrorCode_Name(enum_t_value); - } - static inline bool ConnectErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - ConnectErrorCode* value) { - return FastPairEvent_ConnectErrorCode_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:nearby.proto.fastpair.FastPairEvent) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - friend struct ::TableStruct_proto_2ffast_5fpair_5fenums_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// FastPairEvent - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace fastpair -} // namespace proto -} // namespace nearby - -PROTOBUF_NAMESPACE_OPEN - -template <> struct is_proto_enum< ::nearby::proto::fastpair::FastPairEvent_BondState> : ::std::true_type {}; -template <> struct is_proto_enum< ::nearby::proto::fastpair::FastPairEvent_ErrorCode> : ::std::true_type {}; -template <> struct is_proto_enum< ::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode> : ::std::true_type {}; -template <> struct is_proto_enum< ::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode> : ::std::true_type {}; -template <> struct is_proto_enum< ::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode> : ::std::true_type {}; -template <> struct is_proto_enum< ::nearby::proto::fastpair::DeviceType> : ::std::true_type {}; -template <> struct is_proto_enum< ::nearby::proto::fastpair::OsType> : ::std::true_type {}; - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2ffast_5fpair_5fenums_2eproto diff --git a/third_party/protobuf b/third_party/protobuf index 7ccf2060..5a5c44c0 160000 --- a/third_party/protobuf +++ b/third_party/protobuf @@ -1 +1 @@ -Subproject commit 7ccf2060af4cd13c44a8659d0999be6c7a98fcc1 +Subproject commit 5a5c44c0cfb4926249e2ae6024acdda513cbd3ff diff --git a/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.cc b/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.cc deleted file mode 100644 index 562d4a52..00000000 --- a/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.cc +++ /dev/null @@ -1,1834 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: proto/device_to_device_messages.proto -// Protobuf C++ Version: 6.33.3 - -#include "proto/device_to_device_messages.pb.h" - -#include -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/io/zero_copy_stream_impl_lite.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace securegcm { - -inline constexpr EcPoint::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - x_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - y_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - curve_{static_cast< ::securegcm::Curve >(1)} {} - -template -PROTOBUF_CONSTEXPR EcPoint::EcPoint(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(EcPoint_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct EcPointDefaultTypeInternal { - PROTOBUF_CONSTEXPR EcPointDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EcPointDefaultTypeInternal() {} - union { - EcPoint _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EcPointDefaultTypeInternal _EcPoint_default_instance_; - -inline constexpr DeviceToDeviceMessage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - sequence_number_{0} {} - -template -PROTOBUF_CONSTEXPR DeviceToDeviceMessage::DeviceToDeviceMessage(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(DeviceToDeviceMessage_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct DeviceToDeviceMessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR DeviceToDeviceMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DeviceToDeviceMessageDefaultTypeInternal() {} - union { - DeviceToDeviceMessage _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DeviceToDeviceMessageDefaultTypeInternal _DeviceToDeviceMessage_default_instance_; - -inline constexpr SpakeHandshakeMessage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - hash_value_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - payload_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - ec_point_{nullptr}, - flow_number_{0} {} - -template -PROTOBUF_CONSTEXPR SpakeHandshakeMessage::SpakeHandshakeMessage(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(SpakeHandshakeMessage_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct SpakeHandshakeMessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR SpakeHandshakeMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SpakeHandshakeMessageDefaultTypeInternal() {} - union { - SpakeHandshakeMessage _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SpakeHandshakeMessageDefaultTypeInternal _SpakeHandshakeMessage_default_instance_; - -inline constexpr ResponderHello::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - public_dh_key_{nullptr}, - protocol_version_{0} {} - -template -PROTOBUF_CONSTEXPR ResponderHello::ResponderHello(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(ResponderHello_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct ResponderHelloDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResponderHelloDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResponderHelloDefaultTypeInternal() {} - union { - ResponderHello _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponderHelloDefaultTypeInternal _ResponderHello_default_instance_; - -inline constexpr InitiatorHello::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - public_dh_key_{nullptr}, - protocol_version_{0} {} - -template -PROTOBUF_CONSTEXPR InitiatorHello::InitiatorHello(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(InitiatorHello_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct InitiatorHelloDefaultTypeInternal { - PROTOBUF_CONSTEXPR InitiatorHelloDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InitiatorHelloDefaultTypeInternal() {} - union { - InitiatorHello _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InitiatorHelloDefaultTypeInternal _InitiatorHello_default_instance_; -} // namespace securegcm -namespace securegcm { -PROTOBUF_CONSTINIT const uint32_t Curve_internal_data_[] = { - 65537u, 0u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - Curve_strings[1] = {}; - -static const char Curve_names[] = { - "ED_25519" -}; - -static const ::google::protobuf::internal::EnumEntry Curve_entries[] = { - {{&Curve_names[0], 8}, 1}, -}; - -static const int Curve_entries_by_number[] = { - 0, // 1 -> ED_25519 -}; - -const ::std::string& Curve_Name(Curve value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - Curve_entries, Curve_entries_by_number, 1, - Curve_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(Curve_entries, - Curve_entries_by_number, - 1, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Curve_strings[idx].get(); -} - -bool Curve_Parse(::absl::string_view name, Curve* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - Curve_entries, 1, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -// =================================================================== - -class DeviceToDeviceMessage::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_._has_bits_); -}; - -DeviceToDeviceMessage::DeviceToDeviceMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, DeviceToDeviceMessage_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.DeviceToDeviceMessage) -} -PROTOBUF_NDEBUG_INLINE DeviceToDeviceMessage::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::DeviceToDeviceMessage& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - message_(arena, from.message_) {} - -DeviceToDeviceMessage::DeviceToDeviceMessage( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const DeviceToDeviceMessage& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, DeviceToDeviceMessage_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - DeviceToDeviceMessage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.sequence_number_ = from._impl_.sequence_number_; - - // @@protoc_insertion_point(copy_constructor:securegcm.DeviceToDeviceMessage) -} -PROTOBUF_NDEBUG_INLINE DeviceToDeviceMessage::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - message_(arena) {} - -inline void DeviceToDeviceMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.sequence_number_ = {}; -} -DeviceToDeviceMessage::~DeviceToDeviceMessage() { - // @@protoc_insertion_point(destructor:securegcm.DeviceToDeviceMessage) - SharedDtor(*this); -} -inline void DeviceToDeviceMessage::SharedDtor(MessageLite& self) { - DeviceToDeviceMessage& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.message_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL DeviceToDeviceMessage::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) DeviceToDeviceMessage(arena); -} -constexpr auto DeviceToDeviceMessage::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DeviceToDeviceMessage), - alignof(DeviceToDeviceMessage)); -} -constexpr auto DeviceToDeviceMessage::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<32>{ - { - &_DeviceToDeviceMessage_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &DeviceToDeviceMessage::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &DeviceToDeviceMessage::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &DeviceToDeviceMessage::ByteSizeLong, - &DeviceToDeviceMessage::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_._cached_size_), - true, - }, - "securegcm.DeviceToDeviceMessage", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<32> DeviceToDeviceMessage_class_data_ = - DeviceToDeviceMessage::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -DeviceToDeviceMessage::GetClassData() const { - return DeviceToDeviceMessage_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> -DeviceToDeviceMessage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - DeviceToDeviceMessage_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::DeviceToDeviceMessage>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional int32 sequence_number = 2; - {::_pbi::TcParser::FastV32S1, - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.sequence_number_)}}, - // optional bytes message = 1; - {::_pbi::TcParser::FastBS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.message_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional bytes message = 1; - {PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.message_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional int32 sequence_number = 2; - {PROTOBUF_FIELD_OFFSET(DeviceToDeviceMessage, _impl_.sequence_number_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void DeviceToDeviceMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.DeviceToDeviceMessage) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.message_.ClearNonDefaultToEmpty(); - } - _impl_.sequence_number_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL DeviceToDeviceMessage::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const DeviceToDeviceMessage& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL DeviceToDeviceMessage::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const DeviceToDeviceMessage& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.DeviceToDeviceMessage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional bytes message = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_message(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // optional int32 sequence_number = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_sequence_number(), target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.DeviceToDeviceMessage) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t DeviceToDeviceMessage::ByteSizeLong(const MessageLite& base) { - const DeviceToDeviceMessage& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t DeviceToDeviceMessage::ByteSizeLong() const { - const DeviceToDeviceMessage& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.DeviceToDeviceMessage) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // optional bytes message = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_message()); - } - // optional int32 sequence_number = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_sequence_number()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void DeviceToDeviceMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.DeviceToDeviceMessage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_message(from._internal_message()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_impl_.sequence_number_ = from._impl_.sequence_number_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void DeviceToDeviceMessage::CopyFrom(const DeviceToDeviceMessage& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.DeviceToDeviceMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void DeviceToDeviceMessage::InternalSwap(DeviceToDeviceMessage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, &other->_impl_.message_, arena); - swap(_impl_.sequence_number_, other->_impl_.sequence_number_); -} - -// =================================================================== - -class InitiatorHello::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_._has_bits_); -}; - -void InitiatorHello::clear_public_dh_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.public_dh_key_ != nullptr) _impl_.public_dh_key_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -InitiatorHello::InitiatorHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, InitiatorHello_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.InitiatorHello) -} -PROTOBUF_NDEBUG_INLINE InitiatorHello::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::InitiatorHello& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -InitiatorHello::InitiatorHello( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const InitiatorHello& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, InitiatorHello_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - InitiatorHello* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.public_dh_key_ = (CheckHasBit(cached_has_bits, 0x00000001U)) - ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_) - : nullptr; - _impl_.protocol_version_ = from._impl_.protocol_version_; - - // @@protoc_insertion_point(copy_constructor:securegcm.InitiatorHello) -} -PROTOBUF_NDEBUG_INLINE InitiatorHello::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void InitiatorHello::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, public_dh_key_), - 0, - offsetof(Impl_, protocol_version_) - - offsetof(Impl_, public_dh_key_) + - sizeof(Impl_::protocol_version_)); -} -InitiatorHello::~InitiatorHello() { - // @@protoc_insertion_point(destructor:securegcm.InitiatorHello) - SharedDtor(*this); -} -inline void InitiatorHello::SharedDtor(MessageLite& self) { - InitiatorHello& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - delete this_._impl_.public_dh_key_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL InitiatorHello::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) InitiatorHello(arena); -} -constexpr auto InitiatorHello::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(InitiatorHello), - alignof(InitiatorHello)); -} -constexpr auto InitiatorHello::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<25>{ - { - &_InitiatorHello_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - InitiatorHello::IsInitializedImpl, - &InitiatorHello::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &InitiatorHello::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &InitiatorHello::ByteSizeLong, - &InitiatorHello::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_._cached_size_), - true, - }, - "securegcm.InitiatorHello", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<25> InitiatorHello_class_data_ = - InitiatorHello::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -InitiatorHello::GetClassData() const { - return InitiatorHello_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> -InitiatorHello::_table_ = { - { - PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - InitiatorHello_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::InitiatorHello>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional int32 protocol_version = 2 [default = 0]; - {::_pbi::TcParser::FastV32S1, - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.protocol_version_)}}, - // optional .securemessage.GenericPublicKey public_dh_key = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.public_dh_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional .securemessage.GenericPublicKey public_dh_key = 1; - {PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.public_dh_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional int32 protocol_version = 2 [default = 0]; - {PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.protocol_version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::securemessage::GenericPublicKey>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void InitiatorHello::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.InitiatorHello) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(_impl_.public_dh_key_ != nullptr); - _impl_.public_dh_key_->Clear(); - } - _impl_.protocol_version_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL InitiatorHello::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const InitiatorHello& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL InitiatorHello::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const InitiatorHello& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.InitiatorHello) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional .securemessage.GenericPublicKey public_dh_key = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.public_dh_key_, this_._impl_.public_dh_key_->GetCachedSize(), target, - stream); - } - - // optional int32 protocol_version = 2 [default = 0]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_protocol_version(), target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.InitiatorHello) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t InitiatorHello::ByteSizeLong(const MessageLite& base) { - const InitiatorHello& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t InitiatorHello::ByteSizeLong() const { - const InitiatorHello& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.InitiatorHello) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // optional .securemessage.GenericPublicKey public_dh_key = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.public_dh_key_); - } - // optional int32 protocol_version = 2 [default = 0]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_protocol_version()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void InitiatorHello::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.InitiatorHello) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(from._impl_.public_dh_key_ != nullptr); - if (_this->_impl_.public_dh_key_ == nullptr) { - _this->_impl_.public_dh_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_); - } else { - _this->_impl_.public_dh_key_->MergeFrom(*from._impl_.public_dh_key_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_impl_.protocol_version_ = from._impl_.protocol_version_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void InitiatorHello::CopyFrom(const InitiatorHello& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.InitiatorHello) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool InitiatorHello::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000001U)) { - if (!this_._impl_.public_dh_key_->IsInitialized()) return false; - } - return true; -} - -void InitiatorHello::InternalSwap(InitiatorHello* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.protocol_version_) - + sizeof(InitiatorHello::_impl_.protocol_version_) - - PROTOBUF_FIELD_OFFSET(InitiatorHello, _impl_.public_dh_key_)>( - reinterpret_cast(&_impl_.public_dh_key_), - reinterpret_cast(&other->_impl_.public_dh_key_)); -} - -// =================================================================== - -class ResponderHello::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_._has_bits_); -}; - -void ResponderHello::clear_public_dh_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.public_dh_key_ != nullptr) _impl_.public_dh_key_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -ResponderHello::ResponderHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, ResponderHello_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.ResponderHello) -} -PROTOBUF_NDEBUG_INLINE ResponderHello::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::ResponderHello& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -ResponderHello::ResponderHello( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const ResponderHello& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, ResponderHello_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - ResponderHello* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.public_dh_key_ = (CheckHasBit(cached_has_bits, 0x00000001U)) - ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_) - : nullptr; - _impl_.protocol_version_ = from._impl_.protocol_version_; - - // @@protoc_insertion_point(copy_constructor:securegcm.ResponderHello) -} -PROTOBUF_NDEBUG_INLINE ResponderHello::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void ResponderHello::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, public_dh_key_), - 0, - offsetof(Impl_, protocol_version_) - - offsetof(Impl_, public_dh_key_) + - sizeof(Impl_::protocol_version_)); -} -ResponderHello::~ResponderHello() { - // @@protoc_insertion_point(destructor:securegcm.ResponderHello) - SharedDtor(*this); -} -inline void ResponderHello::SharedDtor(MessageLite& self) { - ResponderHello& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - delete this_._impl_.public_dh_key_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL ResponderHello::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ResponderHello(arena); -} -constexpr auto ResponderHello::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(ResponderHello), - alignof(ResponderHello)); -} -constexpr auto ResponderHello::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<25>{ - { - &_ResponderHello_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - ResponderHello::IsInitializedImpl, - &ResponderHello::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ResponderHello::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &ResponderHello::ByteSizeLong, - &ResponderHello::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_._cached_size_), - true, - }, - "securegcm.ResponderHello", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<25> ResponderHello_class_data_ = - ResponderHello::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ResponderHello::GetClassData() const { - return ResponderHello_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> -ResponderHello::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - ResponderHello_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::ResponderHello>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional int32 protocol_version = 2 [default = 0]; - {::_pbi::TcParser::FastV32S1, - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.protocol_version_)}}, - // optional .securemessage.GenericPublicKey public_dh_key = 1; - {::_pbi::TcParser::FastMtS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.public_dh_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional .securemessage.GenericPublicKey public_dh_key = 1; - {PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.public_dh_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional int32 protocol_version = 2 [default = 0]; - {PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.protocol_version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::securemessage::GenericPublicKey>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void ResponderHello::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.ResponderHello) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(_impl_.public_dh_key_ != nullptr); - _impl_.public_dh_key_->Clear(); - } - _impl_.protocol_version_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL ResponderHello::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const ResponderHello& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL ResponderHello::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const ResponderHello& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.ResponderHello) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional .securemessage.GenericPublicKey public_dh_key = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.public_dh_key_, this_._impl_.public_dh_key_->GetCachedSize(), target, - stream); - } - - // optional int32 protocol_version = 2 [default = 0]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_protocol_version(), target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.ResponderHello) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t ResponderHello::ByteSizeLong(const MessageLite& base) { - const ResponderHello& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t ResponderHello::ByteSizeLong() const { - const ResponderHello& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.ResponderHello) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // optional .securemessage.GenericPublicKey public_dh_key = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.public_dh_key_); - } - // optional int32 protocol_version = 2 [default = 0]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_protocol_version()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void ResponderHello::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.ResponderHello) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(from._impl_.public_dh_key_ != nullptr); - if (_this->_impl_.public_dh_key_ == nullptr) { - _this->_impl_.public_dh_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.public_dh_key_); - } else { - _this->_impl_.public_dh_key_->MergeFrom(*from._impl_.public_dh_key_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_impl_.protocol_version_ = from._impl_.protocol_version_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void ResponderHello::CopyFrom(const ResponderHello& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.ResponderHello) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool ResponderHello::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000001U)) { - if (!this_._impl_.public_dh_key_->IsInitialized()) return false; - } - return true; -} - -void ResponderHello::InternalSwap(ResponderHello* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.protocol_version_) - + sizeof(ResponderHello::_impl_.protocol_version_) - - PROTOBUF_FIELD_OFFSET(ResponderHello, _impl_.public_dh_key_)>( - reinterpret_cast(&_impl_.public_dh_key_), - reinterpret_cast(&other->_impl_.public_dh_key_)); -} - -// =================================================================== - -class EcPoint::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(EcPoint, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000007) ^ 0x00000007) != 0; - } -}; - -EcPoint::EcPoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, EcPoint_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.EcPoint) -} -PROTOBUF_NDEBUG_INLINE EcPoint::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::EcPoint& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - x_(arena, from.x_), - y_(arena, from.y_) {} - -EcPoint::EcPoint( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const EcPoint& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, EcPoint_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - EcPoint* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.curve_ = from._impl_.curve_; - - // @@protoc_insertion_point(copy_constructor:securegcm.EcPoint) -} -PROTOBUF_NDEBUG_INLINE EcPoint::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - x_(arena), - y_(arena), - curve_{static_cast< ::securegcm::Curve >(1)} {} - -inline void EcPoint::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -EcPoint::~EcPoint() { - // @@protoc_insertion_point(destructor:securegcm.EcPoint) - SharedDtor(*this); -} -inline void EcPoint::SharedDtor(MessageLite& self) { - EcPoint& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.x_.Destroy(); - this_._impl_.y_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL EcPoint::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) EcPoint(arena); -} -constexpr auto EcPoint::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EcPoint), - alignof(EcPoint)); -} -constexpr auto EcPoint::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<18>{ - { - &_EcPoint_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - EcPoint::IsInitializedImpl, - &EcPoint::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &EcPoint::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &EcPoint::ByteSizeLong, - &EcPoint::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(EcPoint, _impl_._cached_size_), - true, - }, - "securegcm.EcPoint", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<18> EcPoint_class_data_ = - EcPoint::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -EcPoint::GetClassData() const { - return EcPoint_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 1, 0, 2> -EcPoint::_table_ = { - { - PROTOBUF_FIELD_OFFSET(EcPoint, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967288, // skipmap - offsetof(decltype(_table_), field_entries), - 3, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - EcPoint_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::EcPoint>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // required .securegcm.Curve curve = 1; - {::_pbi::TcParser::FastEr1S1, - {8, 2, 1, - PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.curve_)}}, - // required bytes x = 2; - {::_pbi::TcParser::FastBS1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.x_)}}, - // required bytes y = 3; - {::_pbi::TcParser::FastBS1, - {26, 1, 0, - PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.y_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // required .securegcm.Curve curve = 1; - {PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.curve_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - // required bytes x = 2; - {PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // required bytes y = 3; - {PROTOBUF_FIELD_OFFSET(EcPoint, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - {{ - {1, 1}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void EcPoint::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.EcPoint) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.x_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.y_.ClearNonDefaultToEmpty(); - } - _impl_.curve_ = 1; - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL EcPoint::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const EcPoint& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL EcPoint::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const EcPoint& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.EcPoint) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // required .securegcm.Curve curve = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this_._internal_curve(), target); - } - - // required bytes x = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_x(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // required bytes y = 3; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - const ::std::string& _s = this_._internal_y(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.EcPoint) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t EcPoint::ByteSizeLong(const MessageLite& base) { - const EcPoint& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t EcPoint::ByteSizeLong() const { - const EcPoint& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.EcPoint) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // required bytes x = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_x()); - } - // required bytes y = 3; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_y()); - } - // required .securegcm.Curve curve = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_curve()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void EcPoint::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.EcPoint) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_x(from._internal_x()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_set_y(from._internal_y()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_impl_.curve_ = from._impl_.curve_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void EcPoint::CopyFrom(const EcPoint& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.EcPoint) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool EcPoint::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - return true; -} - -void EcPoint::InternalSwap(EcPoint* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.x_, &other->_impl_.x_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.y_, &other->_impl_.y_, arena); - swap(_impl_.curve_, other->_impl_.curve_); -} - -// =================================================================== - -class SpakeHandshakeMessage::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_._has_bits_); -}; - -SpakeHandshakeMessage::SpakeHandshakeMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, SpakeHandshakeMessage_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.SpakeHandshakeMessage) -} -PROTOBUF_NDEBUG_INLINE SpakeHandshakeMessage::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::SpakeHandshakeMessage& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - hash_value_(arena, from.hash_value_), - payload_(arena, from.payload_) {} - -SpakeHandshakeMessage::SpakeHandshakeMessage( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const SpakeHandshakeMessage& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, SpakeHandshakeMessage_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SpakeHandshakeMessage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.ec_point_ = (CheckHasBit(cached_has_bits, 0x00000004U)) - ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_point_) - : nullptr; - _impl_.flow_number_ = from._impl_.flow_number_; - - // @@protoc_insertion_point(copy_constructor:securegcm.SpakeHandshakeMessage) -} -PROTOBUF_NDEBUG_INLINE SpakeHandshakeMessage::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - hash_value_(arena), - payload_(arena) {} - -inline void SpakeHandshakeMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, ec_point_), - 0, - offsetof(Impl_, flow_number_) - - offsetof(Impl_, ec_point_) + - sizeof(Impl_::flow_number_)); -} -SpakeHandshakeMessage::~SpakeHandshakeMessage() { - // @@protoc_insertion_point(destructor:securegcm.SpakeHandshakeMessage) - SharedDtor(*this); -} -inline void SpakeHandshakeMessage::SharedDtor(MessageLite& self) { - SpakeHandshakeMessage& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.hash_value_.Destroy(); - this_._impl_.payload_.Destroy(); - delete this_._impl_.ec_point_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL SpakeHandshakeMessage::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SpakeHandshakeMessage(arena); -} -constexpr auto SpakeHandshakeMessage::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SpakeHandshakeMessage), - alignof(SpakeHandshakeMessage)); -} -constexpr auto SpakeHandshakeMessage::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<32>{ - { - &_SpakeHandshakeMessage_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - SpakeHandshakeMessage::IsInitializedImpl, - &SpakeHandshakeMessage::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SpakeHandshakeMessage::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &SpakeHandshakeMessage::ByteSizeLong, - &SpakeHandshakeMessage::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_._cached_size_), - true, - }, - "securegcm.SpakeHandshakeMessage", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<32> SpakeHandshakeMessage_class_data_ = - SpakeHandshakeMessage::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -SpakeHandshakeMessage::GetClassData() const { - return SpakeHandshakeMessage_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 0, 2> -SpakeHandshakeMessage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - SpakeHandshakeMessage_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::SpakeHandshakeMessage>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional bytes payload = 4; - {::_pbi::TcParser::FastBS1, - {34, 1, 0, - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.payload_)}}, - // optional int32 flow_number = 1; - {::_pbi::TcParser::FastV32S1, - {8, 3, 0, - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.flow_number_)}}, - // optional .securegcm.EcPoint ec_point = 2; - {::_pbi::TcParser::FastMtS1, - {18, 2, 0, - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.ec_point_)}}, - // optional bytes hash_value = 3; - {::_pbi::TcParser::FastBS1, - {26, 0, 0, - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.hash_value_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional int32 flow_number = 1; - {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.flow_number_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // optional .securegcm.EcPoint ec_point = 2; - {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.ec_point_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional bytes hash_value = 3; - {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.hash_value_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional bytes payload = 4; - {PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.payload_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::securegcm::EcPoint>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void SpakeHandshakeMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.SpakeHandshakeMessage) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.hash_value_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.payload_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - ABSL_DCHECK(_impl_.ec_point_ != nullptr); - _impl_.ec_point_->Clear(); - } - } - _impl_.flow_number_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL SpakeHandshakeMessage::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const SpakeHandshakeMessage& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL SpakeHandshakeMessage::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const SpakeHandshakeMessage& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.SpakeHandshakeMessage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional int32 flow_number = 1; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( - stream, this_._internal_flow_number(), target); - } - - // optional .securegcm.EcPoint ec_point = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.ec_point_, this_._impl_.ec_point_->GetCachedSize(), target, - stream); - } - - // optional bytes hash_value = 3; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_hash_value(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - // optional bytes payload = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - const ::std::string& _s = this_._internal_payload(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.SpakeHandshakeMessage) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t SpakeHandshakeMessage::ByteSizeLong(const MessageLite& base) { - const SpakeHandshakeMessage& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t SpakeHandshakeMessage::ByteSizeLong() const { - const SpakeHandshakeMessage& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.SpakeHandshakeMessage) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - // optional bytes hash_value = 3; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_hash_value()); - } - // optional bytes payload = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_payload()); - } - // optional .securegcm.EcPoint ec_point = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ec_point_); - } - // optional int32 flow_number = 1; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_flow_number()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void SpakeHandshakeMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.SpakeHandshakeMessage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_hash_value(from._internal_hash_value()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_set_payload(from._internal_payload()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - ABSL_DCHECK(from._impl_.ec_point_ != nullptr); - if (_this->_impl_.ec_point_ == nullptr) { - _this->_impl_.ec_point_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_point_); - } else { - _this->_impl_.ec_point_->MergeFrom(*from._impl_.ec_point_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_impl_.flow_number_ = from._impl_.flow_number_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void SpakeHandshakeMessage::CopyFrom(const SpakeHandshakeMessage& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.SpakeHandshakeMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SpakeHandshakeMessage::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000004U)) { - if (!this_._impl_.ec_point_->IsInitialized()) return false; - } - return true; -} - -void SpakeHandshakeMessage::InternalSwap(SpakeHandshakeMessage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.hash_value_, &other->_impl_.hash_value_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, &other->_impl_.payload_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.flow_number_) - + sizeof(SpakeHandshakeMessage::_impl_.flow_number_) - - PROTOBUF_FIELD_OFFSET(SpakeHandshakeMessage, _impl_.ec_point_)>( - reinterpret_cast(&_impl_.ec_point_), - reinterpret_cast(&other->_impl_.ec_point_)); -} - -// @@protoc_insertion_point(namespace_scope) -} // namespace securegcm -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.h b/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.h deleted file mode 100644 index 11d4df2a..00000000 --- a/third_party/ukey2/compiled_proto/proto/device_to_device_messages.pb.h +++ /dev/null @@ -1,1999 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: proto/device_to_device_messages.proto -// Protobuf C++ Version: 6.33.3 - -#ifndef proto_2fdevice_5fto_5fdevice_5fmessages_2eproto_2epb_2eh -#define proto_2fdevice_5fto_5fdevice_5fmessages_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6033003 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/message_lite.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_util.h" -#include "securemessage.pb.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto - -namespace google { -namespace protobuf { -namespace internal { -template -::absl::string_view GetAnyMessageName(); -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto { - static const ::uint32_t offsets[]; -}; -namespace securegcm { -enum Curve : int; -extern const uint32_t Curve_internal_data_[]; -class DeviceToDeviceMessage; -struct DeviceToDeviceMessageDefaultTypeInternal; -extern DeviceToDeviceMessageDefaultTypeInternal _DeviceToDeviceMessage_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<32> DeviceToDeviceMessage_class_data_; -class EcPoint; -struct EcPointDefaultTypeInternal; -extern EcPointDefaultTypeInternal _EcPoint_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<18> EcPoint_class_data_; -class InitiatorHello; -struct InitiatorHelloDefaultTypeInternal; -extern InitiatorHelloDefaultTypeInternal _InitiatorHello_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<25> InitiatorHello_class_data_; -class ResponderHello; -struct ResponderHelloDefaultTypeInternal; -extern ResponderHelloDefaultTypeInternal _ResponderHello_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<25> ResponderHello_class_data_; -class SpakeHandshakeMessage; -struct SpakeHandshakeMessageDefaultTypeInternal; -extern SpakeHandshakeMessageDefaultTypeInternal _SpakeHandshakeMessage_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<32> SpakeHandshakeMessage_class_data_; -} // namespace securegcm -namespace google { -namespace protobuf { -template <> -internal::EnumTraitsT<::securegcm::Curve_internal_data_> - internal::EnumTraitsImpl::value<::securegcm::Curve>; -} // namespace protobuf -} // namespace google - -namespace securegcm { -enum Curve : int { - ED_25519 = 1, -}; - -extern const uint32_t Curve_internal_data_[]; -inline constexpr Curve Curve_MIN = - static_cast(1); -inline constexpr Curve Curve_MAX = - static_cast(1); -inline bool Curve_IsValid(int value) { - return 1 <= value && value <= 1; -} -inline constexpr int Curve_ARRAYSIZE = 1 + 1; -const ::std::string& Curve_Name(Curve value); -template -const ::std::string& Curve_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to Curve_Name()."); - return Curve_Name(static_cast(value)); -} -bool Curve_Parse( - ::absl::string_view name, Curve* PROTOBUF_NONNULL value); - -// =================================================================== - - -// ------------------------------------------------------------------- - -class EcPoint final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.EcPoint) */ { - public: - inline EcPoint() : EcPoint(nullptr) {} - ~EcPoint() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(EcPoint* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(EcPoint)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR EcPoint(::google::protobuf::internal::ConstantInitialized); - - inline EcPoint(const EcPoint& from) : EcPoint(nullptr, from) {} - inline EcPoint(EcPoint&& from) noexcept - : EcPoint(nullptr, ::std::move(from)) {} - inline EcPoint& operator=(const EcPoint& from) { - CopyFrom(from); - return *this; - } - inline EcPoint& operator=(EcPoint&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const EcPoint& default_instance() { - return *reinterpret_cast( - &_EcPoint_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(EcPoint& a, EcPoint& b) { a.Swap(&b); } - inline void Swap(EcPoint* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EcPoint* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - EcPoint* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const EcPoint& from); - void MergeFrom(const EcPoint& from) { EcPoint::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(EcPoint* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.EcPoint"; } - - explicit EcPoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - EcPoint(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EcPoint& from); - EcPoint( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, EcPoint&& from) noexcept - : EcPoint(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kXFieldNumber = 2, - kYFieldNumber = 3, - kCurveFieldNumber = 1, - }; - // required bytes x = 2; - bool has_x() const; - void clear_x() ; - const ::std::string& x() const; - template - void set_x(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_x(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_x(); - void set_allocated_x(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_x() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_x(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_x(); - - public: - // required bytes y = 3; - bool has_y() const; - void clear_y() ; - const ::std::string& y() const; - template - void set_y(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_y(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_y(); - void set_allocated_y(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_y() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_y(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_y(); - - public: - // required .securegcm.Curve curve = 1; - bool has_curve() const; - void clear_curve() ; - ::securegcm::Curve curve() const; - void set_curve(::securegcm::Curve value); - - private: - ::securegcm::Curve _internal_curve() const; - void _internal_set_curve(::securegcm::Curve value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.EcPoint) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const EcPoint& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr x_; - ::google::protobuf::internal::ArenaStringPtr y_; - int curve_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<18> EcPoint_class_data_; -// ------------------------------------------------------------------- - -class DeviceToDeviceMessage final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.DeviceToDeviceMessage) */ { - public: - inline DeviceToDeviceMessage() : DeviceToDeviceMessage(nullptr) {} - ~DeviceToDeviceMessage() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(DeviceToDeviceMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(DeviceToDeviceMessage)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR DeviceToDeviceMessage(::google::protobuf::internal::ConstantInitialized); - - inline DeviceToDeviceMessage(const DeviceToDeviceMessage& from) : DeviceToDeviceMessage(nullptr, from) {} - inline DeviceToDeviceMessage(DeviceToDeviceMessage&& from) noexcept - : DeviceToDeviceMessage(nullptr, ::std::move(from)) {} - inline DeviceToDeviceMessage& operator=(const DeviceToDeviceMessage& from) { - CopyFrom(from); - return *this; - } - inline DeviceToDeviceMessage& operator=(DeviceToDeviceMessage&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const DeviceToDeviceMessage& default_instance() { - return *reinterpret_cast( - &_DeviceToDeviceMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(DeviceToDeviceMessage& a, DeviceToDeviceMessage& b) { a.Swap(&b); } - inline void Swap(DeviceToDeviceMessage* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DeviceToDeviceMessage* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DeviceToDeviceMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const DeviceToDeviceMessage& from); - void MergeFrom(const DeviceToDeviceMessage& from) { DeviceToDeviceMessage::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(DeviceToDeviceMessage* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.DeviceToDeviceMessage"; } - - explicit DeviceToDeviceMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - DeviceToDeviceMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DeviceToDeviceMessage& from); - DeviceToDeviceMessage( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DeviceToDeviceMessage&& from) noexcept - : DeviceToDeviceMessage(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kMessageFieldNumber = 1, - kSequenceNumberFieldNumber = 2, - }; - // optional bytes message = 1; - bool has_message() const; - void clear_message() ; - const ::std::string& message() const; - template - void set_message(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_message(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_message(); - void set_allocated_message(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_message() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_message(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_message(); - - public: - // optional int32 sequence_number = 2; - bool has_sequence_number() const; - void clear_sequence_number() ; - ::int32_t sequence_number() const; - void set_sequence_number(::int32_t value); - - private: - ::int32_t _internal_sequence_number() const; - void _internal_set_sequence_number(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.DeviceToDeviceMessage) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const DeviceToDeviceMessage& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr message_; - ::int32_t sequence_number_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<32> DeviceToDeviceMessage_class_data_; -// ------------------------------------------------------------------- - -class SpakeHandshakeMessage final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.SpakeHandshakeMessage) */ { - public: - inline SpakeHandshakeMessage() : SpakeHandshakeMessage(nullptr) {} - ~SpakeHandshakeMessage() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SpakeHandshakeMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(SpakeHandshakeMessage)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR SpakeHandshakeMessage(::google::protobuf::internal::ConstantInitialized); - - inline SpakeHandshakeMessage(const SpakeHandshakeMessage& from) : SpakeHandshakeMessage(nullptr, from) {} - inline SpakeHandshakeMessage(SpakeHandshakeMessage&& from) noexcept - : SpakeHandshakeMessage(nullptr, ::std::move(from)) {} - inline SpakeHandshakeMessage& operator=(const SpakeHandshakeMessage& from) { - CopyFrom(from); - return *this; - } - inline SpakeHandshakeMessage& operator=(SpakeHandshakeMessage&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const SpakeHandshakeMessage& default_instance() { - return *reinterpret_cast( - &_SpakeHandshakeMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(SpakeHandshakeMessage& a, SpakeHandshakeMessage& b) { a.Swap(&b); } - inline void Swap(SpakeHandshakeMessage* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SpakeHandshakeMessage* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SpakeHandshakeMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const SpakeHandshakeMessage& from); - void MergeFrom(const SpakeHandshakeMessage& from) { SpakeHandshakeMessage::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(SpakeHandshakeMessage* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.SpakeHandshakeMessage"; } - - explicit SpakeHandshakeMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - SpakeHandshakeMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SpakeHandshakeMessage& from); - SpakeHandshakeMessage( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SpakeHandshakeMessage&& from) noexcept - : SpakeHandshakeMessage(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHashValueFieldNumber = 3, - kPayloadFieldNumber = 4, - kEcPointFieldNumber = 2, - kFlowNumberFieldNumber = 1, - }; - // optional bytes hash_value = 3; - bool has_hash_value() const; - void clear_hash_value() ; - const ::std::string& hash_value() const; - template - void set_hash_value(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_hash_value(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_hash_value(); - void set_allocated_hash_value(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_hash_value() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_hash_value(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_hash_value(); - - public: - // optional bytes payload = 4; - bool has_payload() const; - void clear_payload() ; - const ::std::string& payload() const; - template - void set_payload(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_payload(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_payload(); - void set_allocated_payload(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_payload() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_payload(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_payload(); - - public: - // optional .securegcm.EcPoint ec_point = 2; - bool has_ec_point() const; - void clear_ec_point() ; - const ::securegcm::EcPoint& ec_point() const; - [[nodiscard]] ::securegcm::EcPoint* PROTOBUF_NULLABLE release_ec_point(); - ::securegcm::EcPoint* PROTOBUF_NONNULL mutable_ec_point(); - void set_allocated_ec_point(::securegcm::EcPoint* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_ec_point(::securegcm::EcPoint* PROTOBUF_NULLABLE value); - ::securegcm::EcPoint* PROTOBUF_NULLABLE unsafe_arena_release_ec_point(); - - private: - const ::securegcm::EcPoint& _internal_ec_point() const; - ::securegcm::EcPoint* PROTOBUF_NONNULL _internal_mutable_ec_point(); - - public: - // optional int32 flow_number = 1; - bool has_flow_number() const; - void clear_flow_number() ; - ::int32_t flow_number() const; - void set_flow_number(::int32_t value); - - private: - ::int32_t _internal_flow_number() const; - void _internal_set_flow_number(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.SpakeHandshakeMessage) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 4, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const SpakeHandshakeMessage& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr hash_value_; - ::google::protobuf::internal::ArenaStringPtr payload_; - ::securegcm::EcPoint* PROTOBUF_NULLABLE ec_point_; - ::int32_t flow_number_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<32> SpakeHandshakeMessage_class_data_; -// ------------------------------------------------------------------- - -class ResponderHello final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.ResponderHello) */ { - public: - inline ResponderHello() : ResponderHello(nullptr) {} - ~ResponderHello() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ResponderHello* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(ResponderHello)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR ResponderHello(::google::protobuf::internal::ConstantInitialized); - - inline ResponderHello(const ResponderHello& from) : ResponderHello(nullptr, from) {} - inline ResponderHello(ResponderHello&& from) noexcept - : ResponderHello(nullptr, ::std::move(from)) {} - inline ResponderHello& operator=(const ResponderHello& from) { - CopyFrom(from); - return *this; - } - inline ResponderHello& operator=(ResponderHello&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const ResponderHello& default_instance() { - return *reinterpret_cast( - &_ResponderHello_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(ResponderHello& a, ResponderHello& b) { a.Swap(&b); } - inline void Swap(ResponderHello* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(ResponderHello* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ResponderHello* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const ResponderHello& from); - void MergeFrom(const ResponderHello& from) { ResponderHello::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(ResponderHello* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.ResponderHello"; } - - explicit ResponderHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - ResponderHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ResponderHello& from); - ResponderHello( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, ResponderHello&& from) noexcept - : ResponderHello(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPublicDhKeyFieldNumber = 1, - kProtocolVersionFieldNumber = 2, - }; - // optional .securemessage.GenericPublicKey public_dh_key = 1; - bool has_public_dh_key() const; - void clear_public_dh_key() ; - const ::securemessage::GenericPublicKey& public_dh_key() const; - [[nodiscard]] ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE release_public_dh_key(); - ::securemessage::GenericPublicKey* PROTOBUF_NONNULL mutable_public_dh_key(); - void set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); - ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_public_dh_key(); - - private: - const ::securemessage::GenericPublicKey& _internal_public_dh_key() const; - ::securemessage::GenericPublicKey* PROTOBUF_NONNULL _internal_mutable_public_dh_key(); - - public: - // optional int32 protocol_version = 2 [default = 0]; - bool has_protocol_version() const; - void clear_protocol_version() ; - ::int32_t protocol_version() const; - void set_protocol_version(::int32_t value); - - private: - ::int32_t _internal_protocol_version() const; - void _internal_set_protocol_version(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.ResponderHello) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ResponderHello& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE public_dh_key_; - ::int32_t protocol_version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<25> ResponderHello_class_data_; -// ------------------------------------------------------------------- - -class InitiatorHello final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.InitiatorHello) */ { - public: - inline InitiatorHello() : InitiatorHello(nullptr) {} - ~InitiatorHello() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(InitiatorHello* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(InitiatorHello)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR InitiatorHello(::google::protobuf::internal::ConstantInitialized); - - inline InitiatorHello(const InitiatorHello& from) : InitiatorHello(nullptr, from) {} - inline InitiatorHello(InitiatorHello&& from) noexcept - : InitiatorHello(nullptr, ::std::move(from)) {} - inline InitiatorHello& operator=(const InitiatorHello& from) { - CopyFrom(from); - return *this; - } - inline InitiatorHello& operator=(InitiatorHello&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const InitiatorHello& default_instance() { - return *reinterpret_cast( - &_InitiatorHello_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(InitiatorHello& a, InitiatorHello& b) { a.Swap(&b); } - inline void Swap(InitiatorHello* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(InitiatorHello* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - InitiatorHello* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const InitiatorHello& from); - void MergeFrom(const InitiatorHello& from) { InitiatorHello::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(InitiatorHello* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.InitiatorHello"; } - - explicit InitiatorHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - InitiatorHello(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const InitiatorHello& from); - InitiatorHello( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, InitiatorHello&& from) noexcept - : InitiatorHello(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPublicDhKeyFieldNumber = 1, - kProtocolVersionFieldNumber = 2, - }; - // optional .securemessage.GenericPublicKey public_dh_key = 1; - bool has_public_dh_key() const; - void clear_public_dh_key() ; - const ::securemessage::GenericPublicKey& public_dh_key() const; - [[nodiscard]] ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE release_public_dh_key(); - ::securemessage::GenericPublicKey* PROTOBUF_NONNULL mutable_public_dh_key(); - void set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value); - ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_public_dh_key(); - - private: - const ::securemessage::GenericPublicKey& _internal_public_dh_key() const; - ::securemessage::GenericPublicKey* PROTOBUF_NONNULL _internal_mutable_public_dh_key(); - - public: - // optional int32 protocol_version = 2 [default = 0]; - bool has_protocol_version() const; - void clear_protocol_version() ; - ::int32_t protocol_version() const; - void set_protocol_version(::int32_t value); - - private: - ::int32_t _internal_protocol_version() const; - void _internal_set_protocol_version(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.InitiatorHello) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const InitiatorHello& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE public_dh_key_; - ::int32_t protocol_version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fdevice_5fto_5fdevice_5fmessages_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<25> InitiatorHello_class_data_; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// DeviceToDeviceMessage - -// optional bytes message = 1; -inline bool DeviceToDeviceMessage::has_message() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void DeviceToDeviceMessage::clear_message() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.message_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& DeviceToDeviceMessage::message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.DeviceToDeviceMessage.message) - return _internal_message(); -} -template -PROTOBUF_ALWAYS_INLINE void DeviceToDeviceMessage::set_message(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.message_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.DeviceToDeviceMessage.message) -} -inline ::std::string* PROTOBUF_NONNULL DeviceToDeviceMessage::mutable_message() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_message(); - // @@protoc_insertion_point(field_mutable:securegcm.DeviceToDeviceMessage.message) - return _s; -} -inline const ::std::string& DeviceToDeviceMessage::_internal_message() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.message_.Get(); -} -inline void DeviceToDeviceMessage::_internal_set_message(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.message_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL DeviceToDeviceMessage::_internal_mutable_message() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.message_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE DeviceToDeviceMessage::release_message() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.DeviceToDeviceMessage.message) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.message_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.message_.Set("", GetArena()); - } - return released; -} -inline void DeviceToDeviceMessage::set_allocated_message(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.message_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.message_.IsDefault()) { - _impl_.message_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.DeviceToDeviceMessage.message) -} - -// optional int32 sequence_number = 2; -inline bool DeviceToDeviceMessage::has_sequence_number() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void DeviceToDeviceMessage::clear_sequence_number() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.sequence_number_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t DeviceToDeviceMessage::sequence_number() const { - // @@protoc_insertion_point(field_get:securegcm.DeviceToDeviceMessage.sequence_number) - return _internal_sequence_number(); -} -inline void DeviceToDeviceMessage::set_sequence_number(::int32_t value) { - _internal_set_sequence_number(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:securegcm.DeviceToDeviceMessage.sequence_number) -} -inline ::int32_t DeviceToDeviceMessage::_internal_sequence_number() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.sequence_number_; -} -inline void DeviceToDeviceMessage::_internal_set_sequence_number(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.sequence_number_ = value; -} - -// ------------------------------------------------------------------- - -// InitiatorHello - -// optional .securemessage.GenericPublicKey public_dh_key = 1; -inline bool InitiatorHello::has_public_dh_key() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - PROTOBUF_ASSUME(!value || _impl_.public_dh_key_ != nullptr); - return value; -} -inline const ::securemessage::GenericPublicKey& InitiatorHello::_internal_public_dh_key() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::securemessage::GenericPublicKey* p = _impl_.public_dh_key_; - return p != nullptr ? *p : reinterpret_cast(::securemessage::_GenericPublicKey_default_instance_); -} -inline const ::securemessage::GenericPublicKey& InitiatorHello::public_dh_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.InitiatorHello.public_dh_key) - return _internal_public_dh_key(); -} -inline void InitiatorHello::unsafe_arena_set_allocated_public_dh_key( - ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); - } - _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securegcm.InitiatorHello.public_dh_key) -} -inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE InitiatorHello::release_public_dh_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::securemessage::GenericPublicKey* released = _impl_.public_dh_key_; - _impl_.public_dh_key_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE InitiatorHello::unsafe_arena_release_public_dh_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.InitiatorHello.public_dh_key) - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::securemessage::GenericPublicKey* temp = _impl_.public_dh_key_; - _impl_.public_dh_key_ = nullptr; - return temp; -} -inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL InitiatorHello::_internal_mutable_public_dh_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.public_dh_key_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::GenericPublicKey>(GetArena()); - _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(p); - } - return _impl_.public_dh_key_; -} -inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL InitiatorHello::mutable_public_dh_key() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::securemessage::GenericPublicKey* _msg = _internal_mutable_public_dh_key(); - // @@protoc_insertion_point(field_mutable:securegcm.InitiatorHello.public_dh_key) - return _msg; -} -inline void InitiatorHello::set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - - _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); - // @@protoc_insertion_point(field_set_allocated:securegcm.InitiatorHello.public_dh_key) -} - -// optional int32 protocol_version = 2 [default = 0]; -inline bool InitiatorHello::has_protocol_version() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void InitiatorHello::clear_protocol_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.protocol_version_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t InitiatorHello::protocol_version() const { - // @@protoc_insertion_point(field_get:securegcm.InitiatorHello.protocol_version) - return _internal_protocol_version(); -} -inline void InitiatorHello::set_protocol_version(::int32_t value) { - _internal_set_protocol_version(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:securegcm.InitiatorHello.protocol_version) -} -inline ::int32_t InitiatorHello::_internal_protocol_version() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.protocol_version_; -} -inline void InitiatorHello::_internal_set_protocol_version(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.protocol_version_ = value; -} - -// ------------------------------------------------------------------- - -// ResponderHello - -// optional .securemessage.GenericPublicKey public_dh_key = 1; -inline bool ResponderHello::has_public_dh_key() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - PROTOBUF_ASSUME(!value || _impl_.public_dh_key_ != nullptr); - return value; -} -inline const ::securemessage::GenericPublicKey& ResponderHello::_internal_public_dh_key() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::securemessage::GenericPublicKey* p = _impl_.public_dh_key_; - return p != nullptr ? *p : reinterpret_cast(::securemessage::_GenericPublicKey_default_instance_); -} -inline const ::securemessage::GenericPublicKey& ResponderHello::public_dh_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.ResponderHello.public_dh_key) - return _internal_public_dh_key(); -} -inline void ResponderHello::unsafe_arena_set_allocated_public_dh_key( - ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); - } - _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securegcm.ResponderHello.public_dh_key) -} -inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE ResponderHello::release_public_dh_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::securemessage::GenericPublicKey* released = _impl_.public_dh_key_; - _impl_.public_dh_key_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::securemessage::GenericPublicKey* PROTOBUF_NULLABLE ResponderHello::unsafe_arena_release_public_dh_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.ResponderHello.public_dh_key) - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::securemessage::GenericPublicKey* temp = _impl_.public_dh_key_; - _impl_.public_dh_key_ = nullptr; - return temp; -} -inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL ResponderHello::_internal_mutable_public_dh_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.public_dh_key_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::GenericPublicKey>(GetArena()); - _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(p); - } - return _impl_.public_dh_key_; -} -inline ::securemessage::GenericPublicKey* PROTOBUF_NONNULL ResponderHello::mutable_public_dh_key() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::securemessage::GenericPublicKey* _msg = _internal_mutable_public_dh_key(); - // @@protoc_insertion_point(field_mutable:securegcm.ResponderHello.public_dh_key) - return _msg; -} -inline void ResponderHello::set_allocated_public_dh_key(::securemessage::GenericPublicKey* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.public_dh_key_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - - _impl_.public_dh_key_ = reinterpret_cast<::securemessage::GenericPublicKey*>(value); - // @@protoc_insertion_point(field_set_allocated:securegcm.ResponderHello.public_dh_key) -} - -// optional int32 protocol_version = 2 [default = 0]; -inline bool ResponderHello::has_protocol_version() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void ResponderHello::clear_protocol_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.protocol_version_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t ResponderHello::protocol_version() const { - // @@protoc_insertion_point(field_get:securegcm.ResponderHello.protocol_version) - return _internal_protocol_version(); -} -inline void ResponderHello::set_protocol_version(::int32_t value) { - _internal_set_protocol_version(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:securegcm.ResponderHello.protocol_version) -} -inline ::int32_t ResponderHello::_internal_protocol_version() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.protocol_version_; -} -inline void ResponderHello::_internal_set_protocol_version(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.protocol_version_ = value; -} - -// ------------------------------------------------------------------- - -// EcPoint - -// required .securegcm.Curve curve = 1; -inline bool EcPoint::has_curve() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); - return value; -} -inline void EcPoint::clear_curve() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.curve_ = 1; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::securegcm::Curve EcPoint::curve() const { - // @@protoc_insertion_point(field_get:securegcm.EcPoint.curve) - return _internal_curve(); -} -inline void EcPoint::set_curve(::securegcm::Curve value) { - _internal_set_curve(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:securegcm.EcPoint.curve) -} -inline ::securegcm::Curve EcPoint::_internal_curve() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::securegcm::Curve>(_impl_.curve_); -} -inline void EcPoint::_internal_set_curve(::securegcm::Curve value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::Curve_internal_data_)); - _impl_.curve_ = value; -} - -// required bytes x = 2; -inline bool EcPoint::has_x() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void EcPoint::clear_x() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.x_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& EcPoint::x() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.EcPoint.x) - return _internal_x(); -} -template -PROTOBUF_ALWAYS_INLINE void EcPoint::set_x(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.x_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.EcPoint.x) -} -inline ::std::string* PROTOBUF_NONNULL EcPoint::mutable_x() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_x(); - // @@protoc_insertion_point(field_mutable:securegcm.EcPoint.x) - return _s; -} -inline const ::std::string& EcPoint::_internal_x() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.x_.Get(); -} -inline void EcPoint::_internal_set_x(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.x_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL EcPoint::_internal_mutable_x() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.x_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE EcPoint::release_x() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.EcPoint.x) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.x_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.x_.Set("", GetArena()); - } - return released; -} -inline void EcPoint::set_allocated_x(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.x_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.x_.IsDefault()) { - _impl_.x_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.EcPoint.x) -} - -// required bytes y = 3; -inline bool EcPoint::has_y() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void EcPoint::clear_y() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.y_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& EcPoint::y() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.EcPoint.y) - return _internal_y(); -} -template -PROTOBUF_ALWAYS_INLINE void EcPoint::set_y(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.y_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.EcPoint.y) -} -inline ::std::string* PROTOBUF_NONNULL EcPoint::mutable_y() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_y(); - // @@protoc_insertion_point(field_mutable:securegcm.EcPoint.y) - return _s; -} -inline const ::std::string& EcPoint::_internal_y() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.y_.Get(); -} -inline void EcPoint::_internal_set_y(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.y_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL EcPoint::_internal_mutable_y() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.y_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE EcPoint::release_y() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.EcPoint.y) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.y_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.y_.Set("", GetArena()); - } - return released; -} -inline void EcPoint::set_allocated_y(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.y_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.y_.IsDefault()) { - _impl_.y_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.EcPoint.y) -} - -// ------------------------------------------------------------------- - -// SpakeHandshakeMessage - -// optional int32 flow_number = 1; -inline bool SpakeHandshakeMessage::has_flow_number() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); - return value; -} -inline void SpakeHandshakeMessage::clear_flow_number() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.flow_number_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t SpakeHandshakeMessage::flow_number() const { - // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.flow_number) - return _internal_flow_number(); -} -inline void SpakeHandshakeMessage::set_flow_number(::int32_t value) { - _internal_set_flow_number(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:securegcm.SpakeHandshakeMessage.flow_number) -} -inline ::int32_t SpakeHandshakeMessage::_internal_flow_number() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.flow_number_; -} -inline void SpakeHandshakeMessage::_internal_set_flow_number(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.flow_number_ = value; -} - -// optional .securegcm.EcPoint ec_point = 2; -inline bool SpakeHandshakeMessage::has_ec_point() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); - PROTOBUF_ASSUME(!value || _impl_.ec_point_ != nullptr); - return value; -} -inline void SpakeHandshakeMessage::clear_ec_point() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.ec_point_ != nullptr) _impl_.ec_point_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::securegcm::EcPoint& SpakeHandshakeMessage::_internal_ec_point() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::securegcm::EcPoint* p = _impl_.ec_point_; - return p != nullptr ? *p : reinterpret_cast(::securegcm::_EcPoint_default_instance_); -} -inline const ::securegcm::EcPoint& SpakeHandshakeMessage::ec_point() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.ec_point) - return _internal_ec_point(); -} -inline void SpakeHandshakeMessage::unsafe_arena_set_allocated_ec_point( - ::securegcm::EcPoint* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_point_); - } - _impl_.ec_point_ = reinterpret_cast<::securegcm::EcPoint*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securegcm.SpakeHandshakeMessage.ec_point) -} -inline ::securegcm::EcPoint* PROTOBUF_NULLABLE SpakeHandshakeMessage::release_ec_point() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - ::securegcm::EcPoint* released = _impl_.ec_point_; - _impl_.ec_point_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::securegcm::EcPoint* PROTOBUF_NULLABLE SpakeHandshakeMessage::unsafe_arena_release_ec_point() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.SpakeHandshakeMessage.ec_point) - - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - ::securegcm::EcPoint* temp = _impl_.ec_point_; - _impl_.ec_point_ = nullptr; - return temp; -} -inline ::securegcm::EcPoint* PROTOBUF_NONNULL SpakeHandshakeMessage::_internal_mutable_ec_point() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.ec_point_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securegcm::EcPoint>(GetArena()); - _impl_.ec_point_ = reinterpret_cast<::securegcm::EcPoint*>(p); - } - return _impl_.ec_point_; -} -inline ::securegcm::EcPoint* PROTOBUF_NONNULL SpakeHandshakeMessage::mutable_ec_point() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::securegcm::EcPoint* _msg = _internal_mutable_ec_point(); - // @@protoc_insertion_point(field_mutable:securegcm.SpakeHandshakeMessage.ec_point) - return _msg; -} -inline void SpakeHandshakeMessage::set_allocated_ec_point(::securegcm::EcPoint* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_point_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - - _impl_.ec_point_ = reinterpret_cast<::securegcm::EcPoint*>(value); - // @@protoc_insertion_point(field_set_allocated:securegcm.SpakeHandshakeMessage.ec_point) -} - -// optional bytes hash_value = 3; -inline bool SpakeHandshakeMessage::has_hash_value() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void SpakeHandshakeMessage::clear_hash_value() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.hash_value_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& SpakeHandshakeMessage::hash_value() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.hash_value) - return _internal_hash_value(); -} -template -PROTOBUF_ALWAYS_INLINE void SpakeHandshakeMessage::set_hash_value(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.hash_value_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.SpakeHandshakeMessage.hash_value) -} -inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::mutable_hash_value() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_hash_value(); - // @@protoc_insertion_point(field_mutable:securegcm.SpakeHandshakeMessage.hash_value) - return _s; -} -inline const ::std::string& SpakeHandshakeMessage::_internal_hash_value() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.hash_value_.Get(); -} -inline void SpakeHandshakeMessage::_internal_set_hash_value(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.hash_value_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::_internal_mutable_hash_value() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.hash_value_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE SpakeHandshakeMessage::release_hash_value() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.SpakeHandshakeMessage.hash_value) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.hash_value_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.hash_value_.Set("", GetArena()); - } - return released; -} -inline void SpakeHandshakeMessage::set_allocated_hash_value(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.hash_value_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.hash_value_.IsDefault()) { - _impl_.hash_value_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.SpakeHandshakeMessage.hash_value) -} - -// optional bytes payload = 4; -inline bool SpakeHandshakeMessage::has_payload() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void SpakeHandshakeMessage::clear_payload() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.payload_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& SpakeHandshakeMessage::payload() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.SpakeHandshakeMessage.payload) - return _internal_payload(); -} -template -PROTOBUF_ALWAYS_INLINE void SpakeHandshakeMessage::set_payload(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.payload_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.SpakeHandshakeMessage.payload) -} -inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::mutable_payload() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_payload(); - // @@protoc_insertion_point(field_mutable:securegcm.SpakeHandshakeMessage.payload) - return _s; -} -inline const ::std::string& SpakeHandshakeMessage::_internal_payload() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.payload_.Get(); -} -inline void SpakeHandshakeMessage::_internal_set_payload(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.payload_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL SpakeHandshakeMessage::_internal_mutable_payload() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.payload_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE SpakeHandshakeMessage::release_payload() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.SpakeHandshakeMessage.payload) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.payload_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.payload_.Set("", GetArena()); - } - return released; -} -inline void SpakeHandshakeMessage::set_allocated_payload(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.payload_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.payload_.IsDefault()) { - _impl_.payload_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.SpakeHandshakeMessage.payload) -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace securegcm - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::securegcm::Curve> : std::true_type {}; - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // proto_2fdevice_5fto_5fdevice_5fmessages_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/proto/securegcm.pb.cc b/third_party/ukey2/compiled_proto/proto/securegcm.pb.cc deleted file mode 100644 index 11648b95..00000000 --- a/third_party/ukey2/compiled_proto/proto/securegcm.pb.cc +++ /dev/null @@ -1,2620 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: proto/securegcm.proto -// Protobuf C++ Version: 6.33.3 - -#include "proto/securegcm.pb.h" - -#include -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/io/zero_copy_stream_impl_lite.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace securegcm { - -inline constexpr Tickle::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - expiry_time_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR Tickle::Tickle(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(Tickle_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct TickleDefaultTypeInternal { - PROTOBUF_CONSTEXPR TickleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TickleDefaultTypeInternal() {} - union { - Tickle _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TickleDefaultTypeInternal _Tickle_default_instance_; - -inline constexpr LoginNotificationInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - email_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - host_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - source_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - event_type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - creation_time_{::uint64_t{0u}} {} - -template -PROTOBUF_CONSTEXPR LoginNotificationInfo::LoginNotificationInfo(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(LoginNotificationInfo_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct LoginNotificationInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR LoginNotificationInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LoginNotificationInfoDefaultTypeInternal() {} - union { - LoginNotificationInfo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LoginNotificationInfoDefaultTypeInternal _LoginNotificationInfo_default_instance_; - -inline constexpr GcmMetadata::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - type_{static_cast< ::securegcm::Type >(0)}, - version_{0} {} - -template -PROTOBUF_CONSTEXPR GcmMetadata::GcmMetadata(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(GcmMetadata_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GcmMetadataDefaultTypeInternal { - PROTOBUF_CONSTEXPR GcmMetadataDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GcmMetadataDefaultTypeInternal() {} - union { - GcmMetadata _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcmMetadataDefaultTypeInternal _GcmMetadata_default_instance_; - -inline constexpr GcmDeviceInfo::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - enabled_software_features_{}, - user_public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - device_model_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - locale_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - key_handle_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - device_os_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - device_os_release_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - device_os_codename_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - device_software_version_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - device_software_package_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - long_device_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - device_manufacturer_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - device_master_key_hash_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - apn_registration_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - bluetooth_mac_address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - android_device_id_{::uint64_t{0u}}, - counter_{::int64_t{0}}, - device_os_version_code_{::int64_t{0}}, - device_software_version_code_{::int64_t{0}}, - device_display_diagonal_mils_{0}, - device_authzen_version_{0}, - bluetooth_radio_enabled_{false}, - mobile_data_supported_{false}, - arc_plus_plus_{false}, - notification_enabled_{true}, - supported_software_features_{}, - gcm_registration_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - enrollment_session_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - oauth_token_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - using_secure_screenlock_{false}, - auto_unlock_screenlock_supported_{false}, - auto_unlock_screenlock_enabled_{false}, - bluetooth_radio_supported_{false}, - tethering_supported_{false}, - ble_radio_supported_{false}, - pixel_experience_{false}, - is_screenlock_state_flaky_{false}, - device_type_{static_cast< ::securegcm::DeviceType >(1)} {} - -template -PROTOBUF_CONSTEXPR GcmDeviceInfo::GcmDeviceInfo(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(GcmDeviceInfo_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GcmDeviceInfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR GcmDeviceInfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GcmDeviceInfoDefaultTypeInternal() {} - union { - GcmDeviceInfo _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GcmDeviceInfoDefaultTypeInternal _GcmDeviceInfo_default_instance_; -} // namespace securegcm -namespace securegcm { -PROTOBUF_CONSTINIT const uint32_t AppleDeviceDiagonalMils_internal_data_[] = { - 69536u, 65536u, 7900u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - AppleDeviceDiagonalMils_strings[2] = {}; - -static const char AppleDeviceDiagonalMils_names[] = { - "APPLE_PAD" - "APPLE_PHONE" -}; - -static const ::google::protobuf::internal::EnumEntry AppleDeviceDiagonalMils_entries[] = { - {{&AppleDeviceDiagonalMils_names[0], 9}, 7900}, - {{&AppleDeviceDiagonalMils_names[9], 11}, 4000}, -}; - -static const int AppleDeviceDiagonalMils_entries_by_number[] = { - 1, // 4000 -> APPLE_PHONE - 0, // 7900 -> APPLE_PAD -}; - -const ::std::string& AppleDeviceDiagonalMils_Name(AppleDeviceDiagonalMils value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - AppleDeviceDiagonalMils_entries, AppleDeviceDiagonalMils_entries_by_number, 2, - AppleDeviceDiagonalMils_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(AppleDeviceDiagonalMils_entries, - AppleDeviceDiagonalMils_entries_by_number, - 2, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : AppleDeviceDiagonalMils_strings[idx].get(); -} - -bool AppleDeviceDiagonalMils_Parse(::absl::string_view name, AppleDeviceDiagonalMils* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - AppleDeviceDiagonalMils_entries, 2, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -PROTOBUF_CONSTINIT const uint32_t DeviceType_internal_data_[] = { - 393216u, 0u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - DeviceType_strings[6] = {}; - -static const char DeviceType_names[] = { - "ANDROID" - "BROWSER" - "CHROME" - "IOS" - "OSX" - "UNKNOWN" -}; - -static const ::google::protobuf::internal::EnumEntry DeviceType_entries[] = { - {{&DeviceType_names[0], 7}, 1}, - {{&DeviceType_names[7], 7}, 4}, - {{&DeviceType_names[14], 6}, 2}, - {{&DeviceType_names[20], 3}, 3}, - {{&DeviceType_names[23], 3}, 5}, - {{&DeviceType_names[26], 7}, 0}, -}; - -static const int DeviceType_entries_by_number[] = { - 5, // 0 -> UNKNOWN - 0, // 1 -> ANDROID - 2, // 2 -> CHROME - 3, // 3 -> IOS - 1, // 4 -> BROWSER - 4, // 5 -> OSX -}; - -const ::std::string& DeviceType_Name(DeviceType value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - DeviceType_entries, DeviceType_entries_by_number, 6, - DeviceType_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(DeviceType_entries, - DeviceType_entries_by_number, - 6, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : DeviceType_strings[idx].get(); -} - -bool DeviceType_Parse(::absl::string_view name, DeviceType* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - DeviceType_entries, 6, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -PROTOBUF_CONSTINIT const uint32_t SoftwareFeature_internal_data_[] = { - 589824u, 0u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - SoftwareFeature_strings[9] = {}; - -static const char SoftwareFeature_names[] = { - "BETTER_TOGETHER_CLIENT" - "BETTER_TOGETHER_HOST" - "EASY_UNLOCK_CLIENT" - "EASY_UNLOCK_HOST" - "MAGIC_TETHER_CLIENT" - "MAGIC_TETHER_HOST" - "SMS_CONNECT_CLIENT" - "SMS_CONNECT_HOST" - "UNKNOWN_FEATURE" -}; - -static const ::google::protobuf::internal::EnumEntry SoftwareFeature_entries[] = { - {{&SoftwareFeature_names[0], 22}, 2}, - {{&SoftwareFeature_names[22], 20}, 1}, - {{&SoftwareFeature_names[42], 18}, 4}, - {{&SoftwareFeature_names[60], 16}, 3}, - {{&SoftwareFeature_names[76], 19}, 6}, - {{&SoftwareFeature_names[95], 17}, 5}, - {{&SoftwareFeature_names[112], 18}, 8}, - {{&SoftwareFeature_names[130], 16}, 7}, - {{&SoftwareFeature_names[146], 15}, 0}, -}; - -static const int SoftwareFeature_entries_by_number[] = { - 8, // 0 -> UNKNOWN_FEATURE - 1, // 1 -> BETTER_TOGETHER_HOST - 0, // 2 -> BETTER_TOGETHER_CLIENT - 3, // 3 -> EASY_UNLOCK_HOST - 2, // 4 -> EASY_UNLOCK_CLIENT - 5, // 5 -> MAGIC_TETHER_HOST - 4, // 6 -> MAGIC_TETHER_CLIENT - 7, // 7 -> SMS_CONNECT_HOST - 6, // 8 -> SMS_CONNECT_CLIENT -}; - -const ::std::string& SoftwareFeature_Name(SoftwareFeature value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - SoftwareFeature_entries, SoftwareFeature_entries_by_number, 9, - SoftwareFeature_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(SoftwareFeature_entries, - SoftwareFeature_entries_by_number, - 9, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SoftwareFeature_strings[idx].get(); -} - -bool SoftwareFeature_Parse(::absl::string_view name, SoftwareFeature* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - SoftwareFeature_entries, 9, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -PROTOBUF_CONSTINIT const uint32_t InvocationReason_internal_data_[] = { - 1048576u, 0u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - InvocationReason_strings[16] = {}; - -static const char InvocationReason_names[] = { - "REASON_ADDRESS_CHANGE" - "REASON_CHANGED_ACCOUNT" - "REASON_CUSTOM_KEY_INVALIDATION" - "REASON_EXPIRATION" - "REASON_FAILURE_RECOVERY" - "REASON_FAST_PERIODIC" - "REASON_FEATURE_TOGGLED" - "REASON_INITIALIZATION" - "REASON_MANUAL" - "REASON_NEW_ACCOUNT" - "REASON_PERIODIC" - "REASON_PROXIMITY_PERIODIC" - "REASON_SERVER_INITIATED" - "REASON_SLOW_PERIODIC" - "REASON_SOFTWARE_UPDATE" - "REASON_UNKNOWN" -}; - -static const ::google::protobuf::internal::EnumEntry InvocationReason_entries[] = { - {{&InvocationReason_names[0], 21}, 11}, - {{&InvocationReason_names[21], 22}, 8}, - {{&InvocationReason_names[43], 30}, 14}, - {{&InvocationReason_names[73], 17}, 5}, - {{&InvocationReason_names[90], 23}, 6}, - {{&InvocationReason_names[113], 20}, 4}, - {{&InvocationReason_names[133], 22}, 9}, - {{&InvocationReason_names[155], 21}, 1}, - {{&InvocationReason_names[176], 13}, 13}, - {{&InvocationReason_names[189], 18}, 7}, - {{&InvocationReason_names[207], 15}, 2}, - {{&InvocationReason_names[222], 25}, 15}, - {{&InvocationReason_names[247], 23}, 10}, - {{&InvocationReason_names[270], 20}, 3}, - {{&InvocationReason_names[290], 22}, 12}, - {{&InvocationReason_names[312], 14}, 0}, -}; - -static const int InvocationReason_entries_by_number[] = { - 15, // 0 -> REASON_UNKNOWN - 7, // 1 -> REASON_INITIALIZATION - 10, // 2 -> REASON_PERIODIC - 13, // 3 -> REASON_SLOW_PERIODIC - 5, // 4 -> REASON_FAST_PERIODIC - 3, // 5 -> REASON_EXPIRATION - 4, // 6 -> REASON_FAILURE_RECOVERY - 9, // 7 -> REASON_NEW_ACCOUNT - 1, // 8 -> REASON_CHANGED_ACCOUNT - 6, // 9 -> REASON_FEATURE_TOGGLED - 12, // 10 -> REASON_SERVER_INITIATED - 0, // 11 -> REASON_ADDRESS_CHANGE - 14, // 12 -> REASON_SOFTWARE_UPDATE - 8, // 13 -> REASON_MANUAL - 2, // 14 -> REASON_CUSTOM_KEY_INVALIDATION - 11, // 15 -> REASON_PROXIMITY_PERIODIC -}; - -const ::std::string& InvocationReason_Name(InvocationReason value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - InvocationReason_entries, InvocationReason_entries_by_number, 16, - InvocationReason_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(InvocationReason_entries, - InvocationReason_entries_by_number, - 16, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : InvocationReason_strings[idx].get(); -} - -bool InvocationReason_Parse(::absl::string_view name, InvocationReason* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - InvocationReason_entries, 16, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -PROTOBUF_CONSTINIT const uint32_t Type_internal_data_[] = { - 589824u, 65568u, 126u, 101u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - Type_strings[16] = {}; - -static const char Type_names[] = { - "DEVICE_INFO_UPDATE" - "DEVICE_PROXIMITY_CALLBACK" - "DEVICE_TO_DEVICE_MESSAGE" - "DEVICE_TO_DEVICE_RESPONDER_HELLO_PAYLOAD" - "ENROLLMENT" - "GCMV1_IDENTITY_ASSERTION" - "LOGIN_NOTIFICATION" - "PROXIMITYAUTH_PAIRING" - "TICKLE" - "TX_CANCEL_REQUEST" - "TX_PING" - "TX_REPLY" - "TX_REQUEST" - "TX_SYNC_REQUEST" - "TX_SYNC_RESPONSE" - "UNLOCK_KEY_SIGNED_CHALLENGE" -}; - -static const ::google::protobuf::internal::EnumEntry Type_entries[] = { - {{&Type_names[0], 18}, 7}, - {{&Type_names[18], 25}, 14}, - {{&Type_names[43], 24}, 13}, - {{&Type_names[67], 40}, 12}, - {{&Type_names[107], 10}, 0}, - {{&Type_names[117], 24}, 11}, - {{&Type_names[141], 18}, 101}, - {{&Type_names[159], 21}, 10}, - {{&Type_names[180], 6}, 1}, - {{&Type_names[186], 17}, 8}, - {{&Type_names[203], 7}, 6}, - {{&Type_names[210], 8}, 3}, - {{&Type_names[218], 10}, 2}, - {{&Type_names[228], 15}, 4}, - {{&Type_names[243], 16}, 5}, - {{&Type_names[259], 27}, 15}, -}; - -static const int Type_entries_by_number[] = { - 4, // 0 -> ENROLLMENT - 8, // 1 -> TICKLE - 12, // 2 -> TX_REQUEST - 11, // 3 -> TX_REPLY - 13, // 4 -> TX_SYNC_REQUEST - 14, // 5 -> TX_SYNC_RESPONSE - 10, // 6 -> TX_PING - 0, // 7 -> DEVICE_INFO_UPDATE - 9, // 8 -> TX_CANCEL_REQUEST - 7, // 10 -> PROXIMITYAUTH_PAIRING - 5, // 11 -> GCMV1_IDENTITY_ASSERTION - 3, // 12 -> DEVICE_TO_DEVICE_RESPONDER_HELLO_PAYLOAD - 2, // 13 -> DEVICE_TO_DEVICE_MESSAGE - 1, // 14 -> DEVICE_PROXIMITY_CALLBACK - 15, // 15 -> UNLOCK_KEY_SIGNED_CHALLENGE - 6, // 101 -> LOGIN_NOTIFICATION -}; - -const ::std::string& Type_Name(Type value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - Type_entries, Type_entries_by_number, 16, - Type_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(Type_entries, - Type_entries_by_number, - 16, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Type_strings[idx].get(); -} - -bool Type_Parse(::absl::string_view name, Type* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - Type_entries, 16, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -// =================================================================== - -class GcmDeviceInfo::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000002) ^ 0x00000002) != 0; - } -}; - -GcmDeviceInfo::GcmDeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, GcmDeviceInfo_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.GcmDeviceInfo) -} -PROTOBUF_NDEBUG_INLINE GcmDeviceInfo::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::GcmDeviceInfo& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - enabled_software_features_{visibility, arena, from.enabled_software_features_}, - user_public_key_(arena, from.user_public_key_), - device_model_(arena, from.device_model_), - locale_(arena, from.locale_), - key_handle_(arena, from.key_handle_), - device_os_version_(arena, from.device_os_version_), - device_os_release_(arena, from.device_os_release_), - device_os_codename_(arena, from.device_os_codename_), - device_software_version_(arena, from.device_software_version_), - device_software_package_(arena, from.device_software_package_), - long_device_id_(arena, from.long_device_id_), - device_manufacturer_(arena, from.device_manufacturer_), - device_master_key_hash_(arena, from.device_master_key_hash_), - apn_registration_id_(arena, from.apn_registration_id_), - bluetooth_mac_address_(arena, from.bluetooth_mac_address_), - supported_software_features_{visibility, arena, from.supported_software_features_}, - gcm_registration_id_(arena, from.gcm_registration_id_), - enrollment_session_id_(arena, from.enrollment_session_id_), - oauth_token_(arena, from.oauth_token_) {} - -GcmDeviceInfo::GcmDeviceInfo( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GcmDeviceInfo& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, GcmDeviceInfo_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - GcmDeviceInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, android_device_id_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, android_device_id_), - offsetof(Impl_, notification_enabled_) - - offsetof(Impl_, android_device_id_) + - sizeof(Impl_::notification_enabled_)); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, using_secure_screenlock_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, using_secure_screenlock_), - offsetof(Impl_, device_type_) - - offsetof(Impl_, using_secure_screenlock_) + - sizeof(Impl_::device_type_)); - - // @@protoc_insertion_point(copy_constructor:securegcm.GcmDeviceInfo) -} -PROTOBUF_NDEBUG_INLINE GcmDeviceInfo::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - enabled_software_features_{visibility, arena}, - user_public_key_(arena), - device_model_(arena), - locale_(arena), - key_handle_(arena), - device_os_version_(arena), - device_os_release_(arena), - device_os_codename_(arena), - device_software_version_(arena), - device_software_package_(arena), - long_device_id_(arena), - device_manufacturer_(arena), - device_master_key_hash_(arena), - apn_registration_id_(arena), - bluetooth_mac_address_(arena), - notification_enabled_{true}, - supported_software_features_{visibility, arena}, - gcm_registration_id_(arena), - enrollment_session_id_(arena), - oauth_token_(arena), - device_type_{static_cast< ::securegcm::DeviceType >(1)} {} - -inline void GcmDeviceInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, android_device_id_), - 0, - offsetof(Impl_, arc_plus_plus_) - - offsetof(Impl_, android_device_id_) + - sizeof(Impl_::arc_plus_plus_)); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, using_secure_screenlock_), - 0, - offsetof(Impl_, is_screenlock_state_flaky_) - - offsetof(Impl_, using_secure_screenlock_) + - sizeof(Impl_::is_screenlock_state_flaky_)); -} -GcmDeviceInfo::~GcmDeviceInfo() { - // @@protoc_insertion_point(destructor:securegcm.GcmDeviceInfo) - SharedDtor(*this); -} -inline void GcmDeviceInfo::SharedDtor(MessageLite& self) { - GcmDeviceInfo& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.user_public_key_.Destroy(); - this_._impl_.device_model_.Destroy(); - this_._impl_.locale_.Destroy(); - this_._impl_.key_handle_.Destroy(); - this_._impl_.device_os_version_.Destroy(); - this_._impl_.device_os_release_.Destroy(); - this_._impl_.device_os_codename_.Destroy(); - this_._impl_.device_software_version_.Destroy(); - this_._impl_.device_software_package_.Destroy(); - this_._impl_.long_device_id_.Destroy(); - this_._impl_.device_manufacturer_.Destroy(); - this_._impl_.device_master_key_hash_.Destroy(); - this_._impl_.apn_registration_id_.Destroy(); - this_._impl_.bluetooth_mac_address_.Destroy(); - this_._impl_.gcm_registration_id_.Destroy(); - this_._impl_.enrollment_session_id_.Destroy(); - this_._impl_.oauth_token_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GcmDeviceInfo::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GcmDeviceInfo(arena); -} -constexpr auto GcmDeviceInfo::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.supported_software_features_) + - decltype(GcmDeviceInfo::_impl_.supported_software_features_):: - InternalGetArenaOffset( - ::google::protobuf::MessageLite::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enabled_software_features_) + - decltype(GcmDeviceInfo::_impl_.enabled_software_features_):: - InternalGetArenaOffset( - ::google::protobuf::MessageLite::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(GcmDeviceInfo), alignof(GcmDeviceInfo), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&GcmDeviceInfo::PlacementNew_, - sizeof(GcmDeviceInfo), - alignof(GcmDeviceInfo)); - } -} -constexpr auto GcmDeviceInfo::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<24>{ - { - &_GcmDeviceInfo_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - GcmDeviceInfo::IsInitializedImpl, - &GcmDeviceInfo::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GcmDeviceInfo::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &GcmDeviceInfo::ByteSizeLong, - &GcmDeviceInfo::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_._cached_size_), - true, - }, - "securegcm.GcmDeviceInfo", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<24> GcmDeviceInfo_class_data_ = - GcmDeviceInfo::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GcmDeviceInfo::GetClassData() const { - return GcmDeviceInfo_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<5, 38, 3, 0, 27> -GcmDeviceInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_._has_bits_), - 0, // no _extensions_ - 1001, 248, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 794297910, // skipmap - offsetof(decltype(_table_), field_entries), - 38, // num_field_entries - 3, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - GcmDeviceInfo_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::GcmDeviceInfo>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // optional fixed64 android_device_id = 1; - {::_pbi::TcParser::FastF64S1, - {9, 15, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.android_device_id_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // required bytes user_public_key = 4; - {::_pbi::TcParser::FastBS1, - {34, 1, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.user_public_key_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // optional string device_model = 7; - {::_pbi::TcParser::FastBS1, - {58, 2, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_model_)}}, - // optional string locale = 8; - {::_pbi::TcParser::FastBS1, - {66, 3, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.locale_)}}, - // optional bytes key_handle = 9; - {::_pbi::TcParser::FastBS1, - {74, 4, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.key_handle_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // optional int64 counter = 12 [default = 0]; - {::_pbi::TcParser::FastV64S1, - {96, 16, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.counter_)}}, - // optional string device_os_version = 13; - {::_pbi::TcParser::FastBS1, - {106, 5, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_)}}, - // optional int64 device_os_version_code = 14; - {::_pbi::TcParser::FastV64S1, - {112, 17, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_code_)}}, - // optional string device_os_release = 15; - {::_pbi::TcParser::FastBS1, - {122, 6, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_release_)}}, - // optional string device_os_codename = 16; - {::_pbi::TcParser::FastBS2, - {386, 7, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_codename_)}}, - // optional string device_software_version = 17; - {::_pbi::TcParser::FastBS2, - {394, 8, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_)}}, - // optional int64 device_software_version_code = 18; - {::_pbi::TcParser::FastV64S2, - {400, 18, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_code_)}}, - // optional string device_software_package = 19; - {::_pbi::TcParser::FastBS2, - {410, 9, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_package_)}}, - // optional bool bluetooth_radio_enabled = 404 [default = false]; - {::_pbi::TcParser::FastV8S2, - {6560, 21, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_radio_enabled_)}}, - // optional bool mobile_data_supported = 405 [default = false]; - {::_pbi::TcParser::FastV8S2, - {6568, 22, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.mobile_data_supported_)}}, - // optional int32 device_display_diagonal_mils = 22; - {::_pbi::TcParser::FastV32S2, - {432, 19, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_display_diagonal_mils_)}}, - // optional bytes device_master_key_hash = 103; - {::_pbi::TcParser::FastBS2, - {1722, 12, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_master_key_hash_)}}, - // optional int32 device_authzen_version = 24; - {::_pbi::TcParser::FastV32S2, - {448, 20, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_authzen_version_)}}, - // optional bool arc_plus_plus = 409 [default = false]; - {::_pbi::TcParser::FastV8S2, - {6600, 23, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.arc_plus_plus_)}}, - // optional bytes apn_registration_id = 202; - {::_pbi::TcParser::FastBS2, - {3282, 13, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.apn_registration_id_)}}, - // optional bool notification_enabled = 203 [default = true]; - {::_pbi::TcParser::FastV8S2, - {3288, 24, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.notification_enabled_)}}, - // repeated .securegcm.SoftwareFeature enabled_software_features = 412; - {::_pbi::TcParser::FastEr0R2, - {6624, 0, 8, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enabled_software_features_)}}, - // optional bytes long_device_id = 29; - {::_pbi::TcParser::FastBS2, - {490, 10, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.long_device_id_)}}, - // optional string bluetooth_mac_address = 302; - {::_pbi::TcParser::FastBS2, - {4850, 14, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_mac_address_)}}, - // optional string device_manufacturer = 31; - {::_pbi::TcParser::FastBS2, - {506, 11, 0, - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_manufacturer_)}}, - }}, {{ - 102, 0, 1, - 65532, 18, - 202, 0, 1, - 65532, 20, - 302, 0, 1, - 65534, 22, - 400, 0, 1, - 57344, 23, - 1000, 0, 1, - 65532, 36, - 65535, 65535 - }}, {{ - // optional fixed64 android_device_id = 1; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.android_device_id_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)}, - // required bytes user_public_key = 4; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.user_public_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional string device_model = 7; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_model_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional string locale = 8; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.locale_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional bytes key_handle = 9; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.key_handle_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional int64 counter = 12 [default = 0]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.counter_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // optional string device_os_version = 13; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional int64 device_os_version_code = 14; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_version_code_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // optional string device_os_release = 15; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_release_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional string device_os_codename = 16; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_os_codename_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional string device_software_version = 17; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional int64 device_software_version_code = 18; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_version_code_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // optional string device_software_package = 19; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_software_package_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional int32 device_display_diagonal_mils = 22; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_display_diagonal_mils_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // optional int32 device_authzen_version = 24; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_authzen_version_), _Internal::kHasBitsOffset + 20, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // optional bytes long_device_id = 29; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.long_device_id_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional string device_manufacturer = 31; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_manufacturer_), _Internal::kHasBitsOffset + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_type_), _Internal::kHasBitsOffset + 37, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - // optional bytes gcm_registration_id = 102; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.gcm_registration_id_), _Internal::kHasBitsOffset + 26, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional bytes device_master_key_hash = 103; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_master_key_hash_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional bytes apn_registration_id = 202; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.apn_registration_id_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional bool notification_enabled = 203 [default = true]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.notification_enabled_), _Internal::kHasBitsOffset + 24, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional string bluetooth_mac_address = 302; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_mac_address_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional bool using_secure_screenlock = 400 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.using_secure_screenlock_), _Internal::kHasBitsOffset + 29, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool auto_unlock_screenlock_supported = 401 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.auto_unlock_screenlock_supported_), _Internal::kHasBitsOffset + 30, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.auto_unlock_screenlock_enabled_), _Internal::kHasBitsOffset + 31, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool bluetooth_radio_supported = 403 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_radio_supported_), _Internal::kHasBitsOffset + 32, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool bluetooth_radio_enabled = 404 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.bluetooth_radio_enabled_), _Internal::kHasBitsOffset + 21, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool mobile_data_supported = 405 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.mobile_data_supported_), _Internal::kHasBitsOffset + 22, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool tethering_supported = 406 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.tethering_supported_), _Internal::kHasBitsOffset + 33, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool ble_radio_supported = 407 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.ble_radio_supported_), _Internal::kHasBitsOffset + 34, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool pixel_experience = 408 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.pixel_experience_), _Internal::kHasBitsOffset + 35, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool arc_plus_plus = 409 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.arc_plus_plus_), _Internal::kHasBitsOffset + 23, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // optional bool is_screenlock_state_flaky = 410 [default = false]; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.is_screenlock_state_flaky_), _Internal::kHasBitsOffset + 36, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // repeated .securegcm.SoftwareFeature supported_software_features = 411; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.supported_software_features_), _Internal::kHasBitsOffset + 25, 1, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)}, - // repeated .securegcm.SoftwareFeature enabled_software_features = 412; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enabled_software_features_), _Internal::kHasBitsOffset + 0, 2, (0 | ::_fl::kFcRepeated | ::_fl::kEnumRange)}, - // optional bytes enrollment_session_id = 1000; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.enrollment_session_id_), _Internal::kHasBitsOffset + 27, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional string oauth_token = 1001; - {PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.oauth_token_), _Internal::kHasBitsOffset + 28, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - {{ - {0, 5}, - {0, 8}, - {0, 8}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void GcmDeviceInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.GcmDeviceInfo) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.enabled_software_features_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.user_public_key_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.device_model_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.locale_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - _impl_.key_handle_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - _impl_.device_os_version_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - _impl_.device_os_release_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - _impl_.device_os_codename_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - _impl_.device_software_version_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - _impl_.device_software_package_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - _impl_.long_device_id_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - _impl_.device_manufacturer_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - _impl_.device_master_key_hash_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - _impl_.apn_registration_id_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - _impl_.bluetooth_mac_address_.ClearNonDefaultToEmpty(); - } - } - _impl_.android_device_id_ = ::uint64_t{0u}; - if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { - ::memset(&_impl_.counter_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.arc_plus_plus_) - - reinterpret_cast(&_impl_.counter_)) + sizeof(_impl_.arc_plus_plus_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x1f000000U)) { - _impl_.notification_enabled_ = true; - if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { - _impl_.supported_software_features_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x04000000U)) { - _impl_.gcm_registration_id_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x08000000U)) { - _impl_.enrollment_session_id_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x10000000U)) { - _impl_.oauth_token_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0xe0000000U)) { - ::memset(&_impl_.using_secure_screenlock_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.auto_unlock_screenlock_enabled_) - - reinterpret_cast(&_impl_.using_secure_screenlock_)) + sizeof(_impl_.auto_unlock_screenlock_enabled_)); - } - cached_has_bits = _impl_._has_bits_[1]; - if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { - ::memset(&_impl_.bluetooth_radio_supported_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.is_screenlock_state_flaky_) - - reinterpret_cast(&_impl_.bluetooth_radio_supported_)) + sizeof(_impl_.is_screenlock_state_flaky_)); - _impl_.device_type_ = 1; - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GcmDeviceInfo::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GcmDeviceInfo& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GcmDeviceInfo::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GcmDeviceInfo& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.GcmDeviceInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional fixed64 android_device_id = 1; - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFixed64ToArray( - 1, this_._internal_android_device_id(), target); - } - - // required bytes user_public_key = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - const ::std::string& _s = this_._internal_user_public_key(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - // optional string device_model = 7; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - const ::std::string& _s = this_._internal_device_model(); - target = stream->WriteStringMaybeAliased(7, _s, target); - } - - // optional string locale = 8; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - const ::std::string& _s = this_._internal_locale(); - target = stream->WriteStringMaybeAliased(8, _s, target); - } - - // optional bytes key_handle = 9; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - const ::std::string& _s = this_._internal_key_handle(); - target = stream->WriteBytesMaybeAliased(9, _s, target); - } - - // optional int64 counter = 12 [default = 0]; - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<12>( - stream, this_._internal_counter(), target); - } - - // optional string device_os_version = 13; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - const ::std::string& _s = this_._internal_device_os_version(); - target = stream->WriteStringMaybeAliased(13, _s, target); - } - - // optional int64 device_os_version_code = 14; - if (CheckHasBit(cached_has_bits, 0x00020000U)) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<14>( - stream, this_._internal_device_os_version_code(), target); - } - - // optional string device_os_release = 15; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - const ::std::string& _s = this_._internal_device_os_release(); - target = stream->WriteStringMaybeAliased(15, _s, target); - } - - // optional string device_os_codename = 16; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - const ::std::string& _s = this_._internal_device_os_codename(); - target = stream->WriteStringMaybeAliased(16, _s, target); - } - - // optional string device_software_version = 17; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - const ::std::string& _s = this_._internal_device_software_version(); - target = stream->WriteStringMaybeAliased(17, _s, target); - } - - // optional int64 device_software_version_code = 18; - if (CheckHasBit(cached_has_bits, 0x00040000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray( - 18, this_._internal_device_software_version_code(), target); - } - - // optional string device_software_package = 19; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - const ::std::string& _s = this_._internal_device_software_package(); - target = stream->WriteStringMaybeAliased(19, _s, target); - } - - // optional int32 device_display_diagonal_mils = 22; - if (CheckHasBit(cached_has_bits, 0x00080000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 22, this_._internal_device_display_diagonal_mils(), target); - } - - // optional int32 device_authzen_version = 24; - if (CheckHasBit(cached_has_bits, 0x00100000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray( - 24, this_._internal_device_authzen_version(), target); - } - - // optional bytes long_device_id = 29; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - const ::std::string& _s = this_._internal_long_device_id(); - target = stream->WriteBytesMaybeAliased(29, _s, target); - } - - // optional string device_manufacturer = 31; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - const ::std::string& _s = this_._internal_device_manufacturer(); - target = stream->WriteStringMaybeAliased(31, _s, target); - } - - cached_has_bits = this_._impl_._has_bits_[1]; - // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 32, this_._internal_device_type(), target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional bytes gcm_registration_id = 102; - if (CheckHasBit(cached_has_bits, 0x04000000U)) { - const ::std::string& _s = this_._internal_gcm_registration_id(); - target = stream->WriteBytesMaybeAliased(102, _s, target); - } - - // optional bytes device_master_key_hash = 103; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - const ::std::string& _s = this_._internal_device_master_key_hash(); - target = stream->WriteBytesMaybeAliased(103, _s, target); - } - - // optional bytes apn_registration_id = 202; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - const ::std::string& _s = this_._internal_apn_registration_id(); - target = stream->WriteBytesMaybeAliased(202, _s, target); - } - - // optional bool notification_enabled = 203 [default = true]; - if (CheckHasBit(cached_has_bits, 0x01000000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 203, this_._internal_notification_enabled(), target); - } - - // optional string bluetooth_mac_address = 302; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - const ::std::string& _s = this_._internal_bluetooth_mac_address(); - target = stream->WriteStringMaybeAliased(302, _s, target); - } - - // optional bool using_secure_screenlock = 400 [default = false]; - if (CheckHasBit(cached_has_bits, 0x20000000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 400, this_._internal_using_secure_screenlock(), target); - } - - // optional bool auto_unlock_screenlock_supported = 401 [default = false]; - if (CheckHasBit(cached_has_bits, 0x40000000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 401, this_._internal_auto_unlock_screenlock_supported(), target); - } - - // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; - if (CheckHasBit(cached_has_bits, 0x80000000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 402, this_._internal_auto_unlock_screenlock_enabled(), target); - } - - cached_has_bits = this_._impl_._has_bits_[1]; - // optional bool bluetooth_radio_supported = 403 [default = false]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 403, this_._internal_bluetooth_radio_supported(), target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional bool bluetooth_radio_enabled = 404 [default = false]; - if (CheckHasBit(cached_has_bits, 0x00200000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 404, this_._internal_bluetooth_radio_enabled(), target); - } - - // optional bool mobile_data_supported = 405 [default = false]; - if (CheckHasBit(cached_has_bits, 0x00400000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 405, this_._internal_mobile_data_supported(), target); - } - - cached_has_bits = this_._impl_._has_bits_[1]; - // optional bool tethering_supported = 406 [default = false]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 406, this_._internal_tethering_supported(), target); - } - - // optional bool ble_radio_supported = 407 [default = false]; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 407, this_._internal_ble_radio_supported(), target); - } - - // optional bool pixel_experience = 408 [default = false]; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 408, this_._internal_pixel_experience(), target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional bool arc_plus_plus = 409 [default = false]; - if (CheckHasBit(cached_has_bits, 0x00800000U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 409, this_._internal_arc_plus_plus(), target); - } - - cached_has_bits = this_._impl_._has_bits_[1]; - // optional bool is_screenlock_state_flaky = 410 [default = false]; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray( - 410, this_._internal_is_screenlock_state_flaky(), target); - } - - cached_has_bits = this_._impl_._has_bits_[0]; - // repeated .securegcm.SoftwareFeature supported_software_features = 411; - if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { - for (int i = 0, n = this_._internal_supported_software_features_size(); i < n; ++i) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 411, static_cast<::securegcm::SoftwareFeature>(this_._internal_supported_software_features().Get(i)), - target); - } - } - - // repeated .securegcm.SoftwareFeature enabled_software_features = 412; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - for (int i = 0, n = this_._internal_enabled_software_features_size(); i < n; ++i) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 412, static_cast<::securegcm::SoftwareFeature>(this_._internal_enabled_software_features().Get(i)), - target); - } - } - - // optional bytes enrollment_session_id = 1000; - if (CheckHasBit(cached_has_bits, 0x08000000U)) { - const ::std::string& _s = this_._internal_enrollment_session_id(); - target = stream->WriteBytesMaybeAliased(1000, _s, target); - } - - // optional string oauth_token = 1001; - if (CheckHasBit(cached_has_bits, 0x10000000U)) { - const ::std::string& _s = this_._internal_oauth_token(); - target = stream->WriteStringMaybeAliased(1001, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.GcmDeviceInfo) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GcmDeviceInfo::ByteSizeLong(const MessageLite& base) { - const GcmDeviceInfo& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GcmDeviceInfo::ByteSizeLong() const { - const GcmDeviceInfo& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.GcmDeviceInfo) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - total_size += static_cast(0x00008000U & cached_has_bits) * 9; - total_size += ::absl::popcount(0xe1e00000U & cached_has_bits) * 3; - { - // repeated .securegcm.SoftwareFeature enabled_software_features = 412; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - ::size_t data_size = - ::_pbi::WireFormatLite::EnumSize(this_._internal_enabled_software_features()); - ::size_t tag_size = ::size_t{2} * - ::_pbi::FromIntSize(this_._internal_enabled_software_features_size()); - total_size += data_size + tag_size; - } - } - { - // required bytes user_public_key = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_user_public_key()); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x000000fcU)) { - // optional string device_model = 7; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_device_model()); - } - // optional string locale = 8; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_locale()); - } - // optional bytes key_handle = 9; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_key_handle()); - } - // optional string device_os_version = 13; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_device_os_version()); - } - // optional string device_os_release = 15; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_device_os_release()); - } - // optional string device_os_codename = 16; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_device_os_codename()); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00007f00U)) { - // optional string device_software_version = 17; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_device_software_version()); - } - // optional string device_software_package = 19; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_device_software_package()); - } - // optional bytes long_device_id = 29; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_long_device_id()); - } - // optional string device_manufacturer = 31; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_device_manufacturer()); - } - // optional bytes device_master_key_hash = 103; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_device_master_key_hash()); - } - // optional bytes apn_registration_id = 202; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_apn_registration_id()); - } - // optional string bluetooth_mac_address = 302; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_bluetooth_mac_address()); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x001f0000U)) { - // optional int64 counter = 12 [default = 0]; - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_counter()); - } - // optional int64 device_os_version_code = 14; - if (CheckHasBit(cached_has_bits, 0x00020000U)) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_device_os_version_code()); - } - // optional int64 device_software_version_code = 18; - if (CheckHasBit(cached_has_bits, 0x00040000U)) { - total_size += 2 + ::_pbi::WireFormatLite::Int64Size( - this_._internal_device_software_version_code()); - } - // optional int32 device_display_diagonal_mils = 22; - if (CheckHasBit(cached_has_bits, 0x00080000U)) { - total_size += 2 + ::_pbi::WireFormatLite::Int32Size( - this_._internal_device_display_diagonal_mils()); - } - // optional int32 device_authzen_version = 24; - if (CheckHasBit(cached_has_bits, 0x00100000U)) { - total_size += 2 + ::_pbi::WireFormatLite::Int32Size( - this_._internal_device_authzen_version()); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x1e000000U)) { - // repeated .securegcm.SoftwareFeature supported_software_features = 411; - if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { - ::size_t data_size = - ::_pbi::WireFormatLite::EnumSize(this_._internal_supported_software_features()); - ::size_t tag_size = ::size_t{2} * - ::_pbi::FromIntSize(this_._internal_supported_software_features_size()); - total_size += data_size + tag_size; - } - // optional bytes gcm_registration_id = 102; - if (CheckHasBit(cached_has_bits, 0x04000000U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_gcm_registration_id()); - } - // optional bytes enrollment_session_id = 1000; - if (CheckHasBit(cached_has_bits, 0x08000000U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_enrollment_session_id()); - } - // optional string oauth_token = 1001; - if (CheckHasBit(cached_has_bits, 0x10000000U)) { - total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_oauth_token()); - } - } - cached_has_bits = this_._impl_._has_bits_[1]; - total_size += ::absl::popcount(0x0000001fU & cached_has_bits) * 3; - { - // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - total_size += 2 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_device_type()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GcmDeviceInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.GcmDeviceInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_enabled_software_features()->MergeFrom(from._internal_enabled_software_features()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_set_user_public_key(from._internal_user_public_key()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_internal_set_device_model(from._internal_device_model()); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_internal_set_locale(from._internal_locale()); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - _this->_internal_set_key_handle(from._internal_key_handle()); - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - _this->_internal_set_device_os_version(from._internal_device_os_version()); - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - _this->_internal_set_device_os_release(from._internal_device_os_release()); - } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - _this->_internal_set_device_os_codename(from._internal_device_os_codename()); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - _this->_internal_set_device_software_version(from._internal_device_software_version()); - } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { - _this->_internal_set_device_software_package(from._internal_device_software_package()); - } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - _this->_internal_set_long_device_id(from._internal_long_device_id()); - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - _this->_internal_set_device_manufacturer(from._internal_device_manufacturer()); - } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { - _this->_internal_set_device_master_key_hash(from._internal_device_master_key_hash()); - } - if (CheckHasBit(cached_has_bits, 0x00002000U)) { - _this->_internal_set_apn_registration_id(from._internal_apn_registration_id()); - } - if (CheckHasBit(cached_has_bits, 0x00004000U)) { - _this->_internal_set_bluetooth_mac_address(from._internal_bluetooth_mac_address()); - } - if (CheckHasBit(cached_has_bits, 0x00008000U)) { - _this->_impl_.android_device_id_ = from._impl_.android_device_id_; - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { - if (CheckHasBit(cached_has_bits, 0x00010000U)) { - _this->_impl_.counter_ = from._impl_.counter_; - } - if (CheckHasBit(cached_has_bits, 0x00020000U)) { - _this->_impl_.device_os_version_code_ = from._impl_.device_os_version_code_; - } - if (CheckHasBit(cached_has_bits, 0x00040000U)) { - _this->_impl_.device_software_version_code_ = from._impl_.device_software_version_code_; - } - if (CheckHasBit(cached_has_bits, 0x00080000U)) { - _this->_impl_.device_display_diagonal_mils_ = from._impl_.device_display_diagonal_mils_; - } - if (CheckHasBit(cached_has_bits, 0x00100000U)) { - _this->_impl_.device_authzen_version_ = from._impl_.device_authzen_version_; - } - if (CheckHasBit(cached_has_bits, 0x00200000U)) { - _this->_impl_.bluetooth_radio_enabled_ = from._impl_.bluetooth_radio_enabled_; - } - if (CheckHasBit(cached_has_bits, 0x00400000U)) { - _this->_impl_.mobile_data_supported_ = from._impl_.mobile_data_supported_; - } - if (CheckHasBit(cached_has_bits, 0x00800000U)) { - _this->_impl_.arc_plus_plus_ = from._impl_.arc_plus_plus_; - } - } - if (BatchCheckHasBit(cached_has_bits, 0xff000000U)) { - if (CheckHasBit(cached_has_bits, 0x01000000U)) { - _this->_impl_.notification_enabled_ = from._impl_.notification_enabled_; - } - if (CheckHasBitForRepeated(cached_has_bits, 0x02000000U)) { - _this->_internal_mutable_supported_software_features()->MergeFrom(from._internal_supported_software_features()); - } - if (CheckHasBit(cached_has_bits, 0x04000000U)) { - _this->_internal_set_gcm_registration_id(from._internal_gcm_registration_id()); - } - if (CheckHasBit(cached_has_bits, 0x08000000U)) { - _this->_internal_set_enrollment_session_id(from._internal_enrollment_session_id()); - } - if (CheckHasBit(cached_has_bits, 0x10000000U)) { - _this->_internal_set_oauth_token(from._internal_oauth_token()); - } - if (CheckHasBit(cached_has_bits, 0x20000000U)) { - _this->_impl_.using_secure_screenlock_ = from._impl_.using_secure_screenlock_; - } - if (CheckHasBit(cached_has_bits, 0x40000000U)) { - _this->_impl_.auto_unlock_screenlock_supported_ = from._impl_.auto_unlock_screenlock_supported_; - } - if (CheckHasBit(cached_has_bits, 0x80000000U)) { - _this->_impl_.auto_unlock_screenlock_enabled_ = from._impl_.auto_unlock_screenlock_enabled_; - } - } - cached_has_bits = from._impl_._has_bits_[1]; - if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_impl_.bluetooth_radio_supported_ = from._impl_.bluetooth_radio_supported_; - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_impl_.tethering_supported_ = from._impl_.tethering_supported_; - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_impl_.ble_radio_supported_ = from._impl_.ble_radio_supported_; - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_impl_.pixel_experience_ = from._impl_.pixel_experience_; - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - _this->_impl_.is_screenlock_state_flaky_ = from._impl_.is_screenlock_state_flaky_; - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - _this->_impl_.device_type_ = from._impl_.device_type_; - } - } - _this->_impl_._has_bits_.Or(from._impl_._has_bits_); - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void GcmDeviceInfo::CopyFrom(const GcmDeviceInfo& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.GcmDeviceInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GcmDeviceInfo::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - return true; -} - -void GcmDeviceInfo::InternalSwap(GcmDeviceInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_._has_bits_[1], other->_impl_._has_bits_[1]); - _impl_.enabled_software_features_.InternalSwap(&other->_impl_.enabled_software_features_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.user_public_key_, &other->_impl_.user_public_key_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_model_, &other->_impl_.device_model_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.locale_, &other->_impl_.locale_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_handle_, &other->_impl_.key_handle_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_os_version_, &other->_impl_.device_os_version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_os_release_, &other->_impl_.device_os_release_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_os_codename_, &other->_impl_.device_os_codename_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_software_version_, &other->_impl_.device_software_version_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_software_package_, &other->_impl_.device_software_package_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.long_device_id_, &other->_impl_.long_device_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_manufacturer_, &other->_impl_.device_manufacturer_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.device_master_key_hash_, &other->_impl_.device_master_key_hash_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.apn_registration_id_, &other->_impl_.apn_registration_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.bluetooth_mac_address_, &other->_impl_.bluetooth_mac_address_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.notification_enabled_) - + sizeof(GcmDeviceInfo::_impl_.notification_enabled_) - - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.android_device_id_)>( - reinterpret_cast(&_impl_.android_device_id_), - reinterpret_cast(&other->_impl_.android_device_id_)); - _impl_.supported_software_features_.InternalSwap(&other->_impl_.supported_software_features_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.gcm_registration_id_, &other->_impl_.gcm_registration_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.enrollment_session_id_, &other->_impl_.enrollment_session_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.oauth_token_, &other->_impl_.oauth_token_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.device_type_) - + sizeof(GcmDeviceInfo::_impl_.device_type_) - - PROTOBUF_FIELD_OFFSET(GcmDeviceInfo, _impl_.using_secure_screenlock_)>( - reinterpret_cast(&_impl_.using_secure_screenlock_), - reinterpret_cast(&other->_impl_.using_secure_screenlock_)); -} - -// =================================================================== - -class GcmMetadata::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; - } -}; - -GcmMetadata::GcmMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, GcmMetadata_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.GcmMetadata) -} -GcmMetadata::GcmMetadata( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GcmMetadata& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, GcmMetadata_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} -PROTOBUF_NDEBUG_INLINE GcmMetadata::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void GcmMetadata::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, type_), - 0, - offsetof(Impl_, version_) - - offsetof(Impl_, type_) + - sizeof(Impl_::version_)); -} -GcmMetadata::~GcmMetadata() { - // @@protoc_insertion_point(destructor:securegcm.GcmMetadata) - SharedDtor(*this); -} -inline void GcmMetadata::SharedDtor(MessageLite& self) { - GcmMetadata& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GcmMetadata::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GcmMetadata(arena); -} -constexpr auto GcmMetadata::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GcmMetadata), - alignof(GcmMetadata)); -} -constexpr auto GcmMetadata::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<22>{ - { - &_GcmMetadata_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - GcmMetadata::IsInitializedImpl, - &GcmMetadata::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GcmMetadata::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &GcmMetadata::ByteSizeLong, - &GcmMetadata::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_._cached_size_), - true, - }, - "securegcm.GcmMetadata", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<22> GcmMetadata_class_data_ = - GcmMetadata::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GcmMetadata::GetClassData() const { - return GcmMetadata_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> -GcmMetadata::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - GcmMetadata_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::GcmMetadata>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional int32 version = 2 [default = 0]; - {::_pbi::TcParser::FastV32S1, - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.version_)}}, - // required .securegcm.Type type = 1; - {::_pbi::TcParser::FastEvS1, - {8, 0, 0, - PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // required .securegcm.Type type = 1; - {PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, - // optional int32 version = 2 [default = 0]; - {PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.version_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - {{ - {::_pbi::FieldAuxEnumData{}, ::securegcm::Type_internal_data_}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void GcmMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.GcmMetadata) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - ::memset(&_impl_.type_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.version_) - - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.version_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GcmMetadata::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GcmMetadata& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GcmMetadata::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GcmMetadata& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.GcmMetadata) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // required .securegcm.Type type = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this_._internal_type(), target); - } - - // optional int32 version = 2 [default = 0]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_version(), target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.GcmMetadata) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GcmMetadata::ByteSizeLong(const MessageLite& base) { - const GcmMetadata& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GcmMetadata::ByteSizeLong() const { - const GcmMetadata& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.GcmMetadata) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // required .securegcm.Type type = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); - } - } - { - // optional int32 version = 2 [default = 0]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_version()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GcmMetadata::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.GcmMetadata) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_impl_.type_ = from._impl_.type_; - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_impl_.version_ = from._impl_.version_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void GcmMetadata::CopyFrom(const GcmMetadata& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.GcmMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GcmMetadata::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - return true; -} - -void GcmMetadata::InternalSwap(GcmMetadata* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.version_) - + sizeof(GcmMetadata::_impl_.version_) - - PROTOBUF_FIELD_OFFSET(GcmMetadata, _impl_.type_)>( - reinterpret_cast(&_impl_.type_), - reinterpret_cast(&other->_impl_.type_)); -} - -// =================================================================== - -class Tickle::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Tickle, _impl_._has_bits_); -}; - -Tickle::Tickle(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Tickle_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.Tickle) -} -Tickle::Tickle( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Tickle& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Tickle_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(from._impl_) { - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} -PROTOBUF_NDEBUG_INLINE Tickle::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0} {} - -inline void Tickle::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.expiry_time_ = {}; -} -Tickle::~Tickle() { - // @@protoc_insertion_point(destructor:securegcm.Tickle) - SharedDtor(*this); -} -inline void Tickle::SharedDtor(MessageLite& self) { - Tickle& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Tickle::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Tickle(arena); -} -constexpr auto Tickle::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Tickle), - alignof(Tickle)); -} -constexpr auto Tickle::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<17>{ - { - &_Tickle_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Tickle::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Tickle::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &Tickle::ByteSizeLong, - &Tickle::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Tickle, _impl_._cached_size_), - true, - }, - "securegcm.Tickle", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<17> Tickle_class_data_ = - Tickle::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Tickle::GetClassData() const { - return Tickle_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> -Tickle::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Tickle, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - Tickle_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::Tickle>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional fixed64 expiry_time = 1; - {::_pbi::TcParser::FastF64S1, - {9, 0, 0, - PROTOBUF_FIELD_OFFSET(Tickle, _impl_.expiry_time_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional fixed64 expiry_time = 1; - {PROTOBUF_FIELD_OFFSET(Tickle, _impl_.expiry_time_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void Tickle::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.Tickle) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.expiry_time_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Tickle::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Tickle& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Tickle::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Tickle& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.Tickle) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional fixed64 expiry_time = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFixed64ToArray( - 1, this_._internal_expiry_time(), target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.Tickle) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Tickle::ByteSizeLong(const MessageLite& base) { - const Tickle& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Tickle::ByteSizeLong() const { - const Tickle& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.Tickle) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - total_size += static_cast(0x00000001U & cached_has_bits) * 9; - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Tickle::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Tickle) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_impl_.expiry_time_ = from._impl_.expiry_time_; - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void Tickle::CopyFrom(const Tickle& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Tickle) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Tickle::InternalSwap(Tickle* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - swap(_impl_.expiry_time_, other->_impl_.expiry_time_); -} - -// =================================================================== - -class LoginNotificationInfo::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_._has_bits_); -}; - -LoginNotificationInfo::LoginNotificationInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, LoginNotificationInfo_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.LoginNotificationInfo) -} -PROTOBUF_NDEBUG_INLINE LoginNotificationInfo::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::LoginNotificationInfo& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - email_(arena, from.email_), - host_(arena, from.host_), - source_(arena, from.source_), - event_type_(arena, from.event_type_) {} - -LoginNotificationInfo::LoginNotificationInfo( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const LoginNotificationInfo& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, LoginNotificationInfo_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - LoginNotificationInfo* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.creation_time_ = from._impl_.creation_time_; - - // @@protoc_insertion_point(copy_constructor:securegcm.LoginNotificationInfo) -} -PROTOBUF_NDEBUG_INLINE LoginNotificationInfo::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - email_(arena), - host_(arena), - source_(arena), - event_type_(arena) {} - -inline void LoginNotificationInfo::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.creation_time_ = {}; -} -LoginNotificationInfo::~LoginNotificationInfo() { - // @@protoc_insertion_point(destructor:securegcm.LoginNotificationInfo) - SharedDtor(*this); -} -inline void LoginNotificationInfo::SharedDtor(MessageLite& self) { - LoginNotificationInfo& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.email_.Destroy(); - this_._impl_.host_.Destroy(); - this_._impl_.source_.Destroy(); - this_._impl_.event_type_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL LoginNotificationInfo::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) LoginNotificationInfo(arena); -} -constexpr auto LoginNotificationInfo::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(LoginNotificationInfo), - alignof(LoginNotificationInfo)); -} -constexpr auto LoginNotificationInfo::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<32>{ - { - &_LoginNotificationInfo_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &LoginNotificationInfo::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &LoginNotificationInfo::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &LoginNotificationInfo::ByteSizeLong, - &LoginNotificationInfo::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_._cached_size_), - true, - }, - "securegcm.LoginNotificationInfo", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<32> LoginNotificationInfo_class_data_ = - LoginNotificationInfo::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -LoginNotificationInfo::GetClassData() const { - return LoginNotificationInfo_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 0, 2> -LoginNotificationInfo::_table_ = { - { - PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967233, // skipmap - offsetof(decltype(_table_), field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - LoginNotificationInfo_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::LoginNotificationInfo>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // optional fixed64 creation_time = 2; - {::_pbi::TcParser::FastF64S1, - {17, 4, 0, - PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.creation_time_)}}, - // optional string email = 3; - {::_pbi::TcParser::FastBS1, - {26, 0, 0, - PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.email_)}}, - // optional string host = 4; - {::_pbi::TcParser::FastBS1, - {34, 1, 0, - PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.host_)}}, - // optional string source = 5; - {::_pbi::TcParser::FastBS1, - {42, 2, 0, - PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.source_)}}, - // optional string event_type = 6; - {::_pbi::TcParser::FastBS1, - {50, 3, 0, - PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.event_type_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional fixed64 creation_time = 2; - {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.creation_time_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kFixed64)}, - // optional string email = 3; - {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.email_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional string host = 4; - {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.host_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional string source = 5; - {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.source_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional string event_type = 6; - {PROTOBUF_FIELD_OFFSET(LoginNotificationInfo, _impl_.event_type_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void LoginNotificationInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.LoginNotificationInfo) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.email_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.host_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.source_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.event_type_.ClearNonDefaultToEmpty(); - } - } - _impl_.creation_time_ = ::uint64_t{0u}; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL LoginNotificationInfo::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const LoginNotificationInfo& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL LoginNotificationInfo::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const LoginNotificationInfo& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.LoginNotificationInfo) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional fixed64 creation_time = 2; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteFixed64ToArray( - 2, this_._internal_creation_time(), target); - } - - // optional string email = 3; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_email(); - target = stream->WriteStringMaybeAliased(3, _s, target); - } - - // optional string host = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - const ::std::string& _s = this_._internal_host(); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - // optional string source = 5; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - const ::std::string& _s = this_._internal_source(); - target = stream->WriteStringMaybeAliased(5, _s, target); - } - - // optional string event_type = 6; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - const ::std::string& _s = this_._internal_event_type(); - target = stream->WriteStringMaybeAliased(6, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.LoginNotificationInfo) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t LoginNotificationInfo::ByteSizeLong(const MessageLite& base) { - const LoginNotificationInfo& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t LoginNotificationInfo::ByteSizeLong() const { - const LoginNotificationInfo& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.LoginNotificationInfo) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - total_size += static_cast(0x00000010U & cached_has_bits) * 9; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - // optional string email = 3; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_email()); - } - // optional string host = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_host()); - } - // optional string source = 5; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_source()); - } - // optional string event_type = 6; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_event_type()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void LoginNotificationInfo::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.LoginNotificationInfo) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_email(from._internal_email()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_set_host(from._internal_host()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_internal_set_source(from._internal_source()); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_internal_set_event_type(from._internal_event_type()); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - _this->_impl_.creation_time_ = from._impl_.creation_time_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void LoginNotificationInfo::CopyFrom(const LoginNotificationInfo& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.LoginNotificationInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void LoginNotificationInfo::InternalSwap(LoginNotificationInfo* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.email_, &other->_impl_.email_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.host_, &other->_impl_.host_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.source_, &other->_impl_.source_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.event_type_, &other->_impl_.event_type_, arena); - swap(_impl_.creation_time_, other->_impl_.creation_time_); -} - -// @@protoc_insertion_point(namespace_scope) -} // namespace securegcm -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/proto/securegcm.pb.h b/third_party/ukey2/compiled_proto/proto/securegcm.pb.h deleted file mode 100644 index aba02b55..00000000 --- a/third_party/ukey2/compiled_proto/proto/securegcm.pb.h +++ /dev/null @@ -1,3947 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: proto/securegcm.proto -// Protobuf C++ Version: 6.33.3 - -#ifndef proto_2fsecuregcm_2eproto_2epb_2eh -#define proto_2fsecuregcm_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6033003 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/message_lite.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_util.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_proto_2fsecuregcm_2eproto - -namespace google { -namespace protobuf { -namespace internal { -template -::absl::string_view GetAnyMessageName(); -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fsecuregcm_2eproto { - static const ::uint32_t offsets[]; -}; -namespace securegcm { -enum AppleDeviceDiagonalMils : int; -extern const uint32_t AppleDeviceDiagonalMils_internal_data_[]; -enum DeviceType : int; -extern const uint32_t DeviceType_internal_data_[]; -enum InvocationReason : int; -extern const uint32_t InvocationReason_internal_data_[]; -enum SoftwareFeature : int; -extern const uint32_t SoftwareFeature_internal_data_[]; -enum Type : int; -extern const uint32_t Type_internal_data_[]; -class GcmDeviceInfo; -struct GcmDeviceInfoDefaultTypeInternal; -extern GcmDeviceInfoDefaultTypeInternal _GcmDeviceInfo_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<24> GcmDeviceInfo_class_data_; -class GcmMetadata; -struct GcmMetadataDefaultTypeInternal; -extern GcmMetadataDefaultTypeInternal _GcmMetadata_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<22> GcmMetadata_class_data_; -class LoginNotificationInfo; -struct LoginNotificationInfoDefaultTypeInternal; -extern LoginNotificationInfoDefaultTypeInternal _LoginNotificationInfo_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<32> LoginNotificationInfo_class_data_; -class Tickle; -struct TickleDefaultTypeInternal; -extern TickleDefaultTypeInternal _Tickle_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<17> Tickle_class_data_; -} // namespace securegcm -namespace google { -namespace protobuf { -template <> -internal::EnumTraitsT<::securegcm::AppleDeviceDiagonalMils_internal_data_> - internal::EnumTraitsImpl::value<::securegcm::AppleDeviceDiagonalMils>; -template <> -internal::EnumTraitsT<::securegcm::DeviceType_internal_data_> - internal::EnumTraitsImpl::value<::securegcm::DeviceType>; -template <> -internal::EnumTraitsT<::securegcm::InvocationReason_internal_data_> - internal::EnumTraitsImpl::value<::securegcm::InvocationReason>; -template <> -internal::EnumTraitsT<::securegcm::SoftwareFeature_internal_data_> - internal::EnumTraitsImpl::value<::securegcm::SoftwareFeature>; -template <> -internal::EnumTraitsT<::securegcm::Type_internal_data_> - internal::EnumTraitsImpl::value<::securegcm::Type>; -} // namespace protobuf -} // namespace google - -namespace securegcm { -enum AppleDeviceDiagonalMils : int { - APPLE_PHONE = 4000, - APPLE_PAD = 7900, -}; - -extern const uint32_t AppleDeviceDiagonalMils_internal_data_[]; -inline constexpr AppleDeviceDiagonalMils AppleDeviceDiagonalMils_MIN = - static_cast(4000); -inline constexpr AppleDeviceDiagonalMils AppleDeviceDiagonalMils_MAX = - static_cast(7900); -inline bool AppleDeviceDiagonalMils_IsValid(int value) { - return ::google::protobuf::internal::ValidateEnum(value, AppleDeviceDiagonalMils_internal_data_); -} -inline constexpr int AppleDeviceDiagonalMils_ARRAYSIZE = 7900 + 1; -const ::std::string& AppleDeviceDiagonalMils_Name(AppleDeviceDiagonalMils value); -template -const ::std::string& AppleDeviceDiagonalMils_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to AppleDeviceDiagonalMils_Name()."); - return AppleDeviceDiagonalMils_Name(static_cast(value)); -} -bool AppleDeviceDiagonalMils_Parse( - ::absl::string_view name, AppleDeviceDiagonalMils* PROTOBUF_NONNULL value); -enum DeviceType : int { - UNKNOWN = 0, - ANDROID = 1, - CHROME = 2, - IOS = 3, - BROWSER = 4, - OSX = 5, -}; - -extern const uint32_t DeviceType_internal_data_[]; -inline constexpr DeviceType DeviceType_MIN = - static_cast(0); -inline constexpr DeviceType DeviceType_MAX = - static_cast(5); -inline bool DeviceType_IsValid(int value) { - return 0 <= value && value <= 5; -} -inline constexpr int DeviceType_ARRAYSIZE = 5 + 1; -const ::std::string& DeviceType_Name(DeviceType value); -template -const ::std::string& DeviceType_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to DeviceType_Name()."); - return DeviceType_Name(static_cast(value)); -} -bool DeviceType_Parse( - ::absl::string_view name, DeviceType* PROTOBUF_NONNULL value); -enum SoftwareFeature : int { - UNKNOWN_FEATURE = 0, - BETTER_TOGETHER_HOST = 1, - BETTER_TOGETHER_CLIENT = 2, - EASY_UNLOCK_HOST = 3, - EASY_UNLOCK_CLIENT = 4, - MAGIC_TETHER_HOST = 5, - MAGIC_TETHER_CLIENT = 6, - SMS_CONNECT_HOST = 7, - SMS_CONNECT_CLIENT = 8, -}; - -extern const uint32_t SoftwareFeature_internal_data_[]; -inline constexpr SoftwareFeature SoftwareFeature_MIN = - static_cast(0); -inline constexpr SoftwareFeature SoftwareFeature_MAX = - static_cast(8); -inline bool SoftwareFeature_IsValid(int value) { - return 0 <= value && value <= 8; -} -inline constexpr int SoftwareFeature_ARRAYSIZE = 8 + 1; -const ::std::string& SoftwareFeature_Name(SoftwareFeature value); -template -const ::std::string& SoftwareFeature_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to SoftwareFeature_Name()."); - return SoftwareFeature_Name(static_cast(value)); -} -bool SoftwareFeature_Parse( - ::absl::string_view name, SoftwareFeature* PROTOBUF_NONNULL value); -enum InvocationReason : int { - REASON_UNKNOWN = 0, - REASON_INITIALIZATION = 1, - REASON_PERIODIC = 2, - REASON_SLOW_PERIODIC = 3, - REASON_FAST_PERIODIC = 4, - REASON_EXPIRATION = 5, - REASON_FAILURE_RECOVERY = 6, - REASON_NEW_ACCOUNT = 7, - REASON_CHANGED_ACCOUNT = 8, - REASON_FEATURE_TOGGLED = 9, - REASON_SERVER_INITIATED = 10, - REASON_ADDRESS_CHANGE = 11, - REASON_SOFTWARE_UPDATE = 12, - REASON_MANUAL = 13, - REASON_CUSTOM_KEY_INVALIDATION = 14, - REASON_PROXIMITY_PERIODIC = 15, -}; - -extern const uint32_t InvocationReason_internal_data_[]; -inline constexpr InvocationReason InvocationReason_MIN = - static_cast(0); -inline constexpr InvocationReason InvocationReason_MAX = - static_cast(15); -inline bool InvocationReason_IsValid(int value) { - return 0 <= value && value <= 15; -} -inline constexpr int InvocationReason_ARRAYSIZE = 15 + 1; -const ::std::string& InvocationReason_Name(InvocationReason value); -template -const ::std::string& InvocationReason_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to InvocationReason_Name()."); - return InvocationReason_Name(static_cast(value)); -} -bool InvocationReason_Parse( - ::absl::string_view name, InvocationReason* PROTOBUF_NONNULL value); -enum Type : int { - ENROLLMENT = 0, - TICKLE = 1, - TX_REQUEST = 2, - TX_REPLY = 3, - TX_SYNC_REQUEST = 4, - TX_SYNC_RESPONSE = 5, - TX_PING = 6, - DEVICE_INFO_UPDATE = 7, - TX_CANCEL_REQUEST = 8, - PROXIMITYAUTH_PAIRING = 10, - GCMV1_IDENTITY_ASSERTION = 11, - DEVICE_TO_DEVICE_RESPONDER_HELLO_PAYLOAD = 12, - DEVICE_TO_DEVICE_MESSAGE = 13, - DEVICE_PROXIMITY_CALLBACK = 14, - UNLOCK_KEY_SIGNED_CHALLENGE = 15, - LOGIN_NOTIFICATION = 101, -}; - -extern const uint32_t Type_internal_data_[]; -inline constexpr Type Type_MIN = - static_cast(0); -inline constexpr Type Type_MAX = - static_cast(101); -inline bool Type_IsValid(int value) { - return ::google::protobuf::internal::ValidateEnum(value, Type_internal_data_); -} -inline constexpr int Type_ARRAYSIZE = 101 + 1; -const ::std::string& Type_Name(Type value); -template -const ::std::string& Type_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to Type_Name()."); - return Type_Name(static_cast(value)); -} -bool Type_Parse( - ::absl::string_view name, Type* PROTOBUF_NONNULL value); - -// =================================================================== - - -// ------------------------------------------------------------------- - -class Tickle final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.Tickle) */ { - public: - inline Tickle() : Tickle(nullptr) {} - ~Tickle() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Tickle* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Tickle)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Tickle(::google::protobuf::internal::ConstantInitialized); - - inline Tickle(const Tickle& from) : Tickle(nullptr, from) {} - inline Tickle(Tickle&& from) noexcept - : Tickle(nullptr, ::std::move(from)) {} - inline Tickle& operator=(const Tickle& from) { - CopyFrom(from); - return *this; - } - inline Tickle& operator=(Tickle&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const Tickle& default_instance() { - return *reinterpret_cast( - &_Tickle_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(Tickle& a, Tickle& b) { a.Swap(&b); } - inline void Swap(Tickle* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Tickle* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Tickle* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const Tickle& from); - void MergeFrom(const Tickle& from) { Tickle::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Tickle* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.Tickle"; } - - explicit Tickle(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Tickle(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Tickle& from); - Tickle( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Tickle&& from) noexcept - : Tickle(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kExpiryTimeFieldNumber = 1, - }; - // optional fixed64 expiry_time = 1; - bool has_expiry_time() const; - void clear_expiry_time() ; - ::uint64_t expiry_time() const; - void set_expiry_time(::uint64_t value); - - private: - ::uint64_t _internal_expiry_time() const; - void _internal_set_expiry_time(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.Tickle) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Tickle& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::uint64_t expiry_time_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuregcm_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<17> Tickle_class_data_; -// ------------------------------------------------------------------- - -class LoginNotificationInfo final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.LoginNotificationInfo) */ { - public: - inline LoginNotificationInfo() : LoginNotificationInfo(nullptr) {} - ~LoginNotificationInfo() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(LoginNotificationInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(LoginNotificationInfo)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR LoginNotificationInfo(::google::protobuf::internal::ConstantInitialized); - - inline LoginNotificationInfo(const LoginNotificationInfo& from) : LoginNotificationInfo(nullptr, from) {} - inline LoginNotificationInfo(LoginNotificationInfo&& from) noexcept - : LoginNotificationInfo(nullptr, ::std::move(from)) {} - inline LoginNotificationInfo& operator=(const LoginNotificationInfo& from) { - CopyFrom(from); - return *this; - } - inline LoginNotificationInfo& operator=(LoginNotificationInfo&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const LoginNotificationInfo& default_instance() { - return *reinterpret_cast( - &_LoginNotificationInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(LoginNotificationInfo& a, LoginNotificationInfo& b) { a.Swap(&b); } - inline void Swap(LoginNotificationInfo* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(LoginNotificationInfo* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - LoginNotificationInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const LoginNotificationInfo& from); - void MergeFrom(const LoginNotificationInfo& from) { LoginNotificationInfo::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(LoginNotificationInfo* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.LoginNotificationInfo"; } - - explicit LoginNotificationInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - LoginNotificationInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const LoginNotificationInfo& from); - LoginNotificationInfo( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, LoginNotificationInfo&& from) noexcept - : LoginNotificationInfo(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kEmailFieldNumber = 3, - kHostFieldNumber = 4, - kSourceFieldNumber = 5, - kEventTypeFieldNumber = 6, - kCreationTimeFieldNumber = 2, - }; - // optional string email = 3; - bool has_email() const; - void clear_email() ; - const ::std::string& email() const; - template - void set_email(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_email(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_email(); - void set_allocated_email(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_email() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_email(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_email(); - - public: - // optional string host = 4; - bool has_host() const; - void clear_host() ; - const ::std::string& host() const; - template - void set_host(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_host(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_host(); - void set_allocated_host(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_host() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_host(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_host(); - - public: - // optional string source = 5; - bool has_source() const; - void clear_source() ; - const ::std::string& source() const; - template - void set_source(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_source(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_source(); - void set_allocated_source(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_source() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_source(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_source(); - - public: - // optional string event_type = 6; - bool has_event_type() const; - void clear_event_type() ; - const ::std::string& event_type() const; - template - void set_event_type(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_event_type(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_event_type(); - void set_allocated_event_type(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_event_type() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_event_type(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_event_type(); - - public: - // optional fixed64 creation_time = 2; - bool has_creation_time() const; - void clear_creation_time() ; - ::uint64_t creation_time() const; - void set_creation_time(::uint64_t value); - - private: - ::uint64_t _internal_creation_time() const; - void _internal_set_creation_time(::uint64_t value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.LoginNotificationInfo) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 5, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const LoginNotificationInfo& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr email_; - ::google::protobuf::internal::ArenaStringPtr host_; - ::google::protobuf::internal::ArenaStringPtr source_; - ::google::protobuf::internal::ArenaStringPtr event_type_; - ::uint64_t creation_time_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuregcm_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<32> LoginNotificationInfo_class_data_; -// ------------------------------------------------------------------- - -class GcmMetadata final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.GcmMetadata) */ { - public: - inline GcmMetadata() : GcmMetadata(nullptr) {} - ~GcmMetadata() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GcmMetadata* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GcmMetadata)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GcmMetadata(::google::protobuf::internal::ConstantInitialized); - - inline GcmMetadata(const GcmMetadata& from) : GcmMetadata(nullptr, from) {} - inline GcmMetadata(GcmMetadata&& from) noexcept - : GcmMetadata(nullptr, ::std::move(from)) {} - inline GcmMetadata& operator=(const GcmMetadata& from) { - CopyFrom(from); - return *this; - } - inline GcmMetadata& operator=(GcmMetadata&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const GcmMetadata& default_instance() { - return *reinterpret_cast( - &_GcmMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(GcmMetadata& a, GcmMetadata& b) { a.Swap(&b); } - inline void Swap(GcmMetadata* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GcmMetadata* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GcmMetadata* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const GcmMetadata& from); - void MergeFrom(const GcmMetadata& from) { GcmMetadata::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GcmMetadata* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.GcmMetadata"; } - - explicit GcmMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GcmMetadata(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GcmMetadata& from); - GcmMetadata( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GcmMetadata&& from) noexcept - : GcmMetadata(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kTypeFieldNumber = 1, - kVersionFieldNumber = 2, - }; - // required .securegcm.Type type = 1; - bool has_type() const; - void clear_type() ; - ::securegcm::Type type() const; - void set_type(::securegcm::Type value); - - private: - ::securegcm::Type _internal_type() const; - void _internal_set_type(::securegcm::Type value); - - public: - // optional int32 version = 2 [default = 0]; - bool has_version() const; - void clear_version() ; - ::int32_t version() const; - void set_version(::int32_t value); - - private: - ::int32_t _internal_version() const; - void _internal_set_version(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.GcmMetadata) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GcmMetadata& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - int type_; - ::int32_t version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuregcm_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<22> GcmMetadata_class_data_; -// ------------------------------------------------------------------- - -class GcmDeviceInfo final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.GcmDeviceInfo) */ { - public: - inline GcmDeviceInfo() : GcmDeviceInfo(nullptr) {} - ~GcmDeviceInfo() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GcmDeviceInfo* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GcmDeviceInfo)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GcmDeviceInfo(::google::protobuf::internal::ConstantInitialized); - - inline GcmDeviceInfo(const GcmDeviceInfo& from) : GcmDeviceInfo(nullptr, from) {} - inline GcmDeviceInfo(GcmDeviceInfo&& from) noexcept - : GcmDeviceInfo(nullptr, ::std::move(from)) {} - inline GcmDeviceInfo& operator=(const GcmDeviceInfo& from) { - CopyFrom(from); - return *this; - } - inline GcmDeviceInfo& operator=(GcmDeviceInfo&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const GcmDeviceInfo& default_instance() { - return *reinterpret_cast( - &_GcmDeviceInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(GcmDeviceInfo& a, GcmDeviceInfo& b) { a.Swap(&b); } - inline void Swap(GcmDeviceInfo* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GcmDeviceInfo* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GcmDeviceInfo* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const GcmDeviceInfo& from); - void MergeFrom(const GcmDeviceInfo& from) { GcmDeviceInfo::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GcmDeviceInfo* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.GcmDeviceInfo"; } - - explicit GcmDeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GcmDeviceInfo(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GcmDeviceInfo& from); - GcmDeviceInfo( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GcmDeviceInfo&& from) noexcept - : GcmDeviceInfo(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kEnabledSoftwareFeaturesFieldNumber = 412, - kUserPublicKeyFieldNumber = 4, - kDeviceModelFieldNumber = 7, - kLocaleFieldNumber = 8, - kKeyHandleFieldNumber = 9, - kDeviceOsVersionFieldNumber = 13, - kDeviceOsReleaseFieldNumber = 15, - kDeviceOsCodenameFieldNumber = 16, - kDeviceSoftwareVersionFieldNumber = 17, - kDeviceSoftwarePackageFieldNumber = 19, - kLongDeviceIdFieldNumber = 29, - kDeviceManufacturerFieldNumber = 31, - kDeviceMasterKeyHashFieldNumber = 103, - kApnRegistrationIdFieldNumber = 202, - kBluetoothMacAddressFieldNumber = 302, - kAndroidDeviceIdFieldNumber = 1, - kCounterFieldNumber = 12, - kDeviceOsVersionCodeFieldNumber = 14, - kDeviceSoftwareVersionCodeFieldNumber = 18, - kDeviceDisplayDiagonalMilsFieldNumber = 22, - kDeviceAuthzenVersionFieldNumber = 24, - kBluetoothRadioEnabledFieldNumber = 404, - kMobileDataSupportedFieldNumber = 405, - kArcPlusPlusFieldNumber = 409, - kNotificationEnabledFieldNumber = 203, - kSupportedSoftwareFeaturesFieldNumber = 411, - kGcmRegistrationIdFieldNumber = 102, - kEnrollmentSessionIdFieldNumber = 1000, - kOauthTokenFieldNumber = 1001, - kUsingSecureScreenlockFieldNumber = 400, - kAutoUnlockScreenlockSupportedFieldNumber = 401, - kAutoUnlockScreenlockEnabledFieldNumber = 402, - kBluetoothRadioSupportedFieldNumber = 403, - kTetheringSupportedFieldNumber = 406, - kBleRadioSupportedFieldNumber = 407, - kPixelExperienceFieldNumber = 408, - kIsScreenlockStateFlakyFieldNumber = 410, - kDeviceTypeFieldNumber = 32, - }; - // repeated .securegcm.SoftwareFeature enabled_software_features = 412; - int enabled_software_features_size() const; - private: - int _internal_enabled_software_features_size() const; - - public: - void clear_enabled_software_features() ; - public: - ::securegcm::SoftwareFeature enabled_software_features(int index) const; - void set_enabled_software_features(int index, ::securegcm::SoftwareFeature value); - void add_enabled_software_features(::securegcm::SoftwareFeature value); - const ::google::protobuf::RepeatedField& enabled_software_features() const; - ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_enabled_software_features(); - - private: - const ::google::protobuf::RepeatedField& _internal_enabled_software_features() const; - ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_enabled_software_features(); - - public: - // required bytes user_public_key = 4; - bool has_user_public_key() const; - void clear_user_public_key() ; - const ::std::string& user_public_key() const; - template - void set_user_public_key(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_user_public_key(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_user_public_key(); - void set_allocated_user_public_key(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_user_public_key() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_user_public_key(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_user_public_key(); - - public: - // optional string device_model = 7; - bool has_device_model() const; - void clear_device_model() ; - const ::std::string& device_model() const; - template - void set_device_model(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_device_model(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_model(); - void set_allocated_device_model(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_device_model() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_device_model(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_device_model(); - - public: - // optional string locale = 8; - bool has_locale() const; - void clear_locale() ; - const ::std::string& locale() const; - template - void set_locale(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_locale(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_locale(); - void set_allocated_locale(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_locale() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_locale(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_locale(); - - public: - // optional bytes key_handle = 9; - bool has_key_handle() const; - void clear_key_handle() ; - const ::std::string& key_handle() const; - template - void set_key_handle(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_key_handle(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_key_handle(); - void set_allocated_key_handle(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_key_handle() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_key_handle(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_key_handle(); - - public: - // optional string device_os_version = 13; - bool has_device_os_version() const; - void clear_device_os_version() ; - const ::std::string& device_os_version() const; - template - void set_device_os_version(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_device_os_version(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_os_version(); - void set_allocated_device_os_version(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_device_os_version() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_version(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_device_os_version(); - - public: - // optional string device_os_release = 15; - bool has_device_os_release() const; - void clear_device_os_release() ; - const ::std::string& device_os_release() const; - template - void set_device_os_release(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_device_os_release(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_os_release(); - void set_allocated_device_os_release(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_device_os_release() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_release(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_device_os_release(); - - public: - // optional string device_os_codename = 16; - bool has_device_os_codename() const; - void clear_device_os_codename() ; - const ::std::string& device_os_codename() const; - template - void set_device_os_codename(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_device_os_codename(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_os_codename(); - void set_allocated_device_os_codename(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_device_os_codename() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_device_os_codename(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_device_os_codename(); - - public: - // optional string device_software_version = 17; - bool has_device_software_version() const; - void clear_device_software_version() ; - const ::std::string& device_software_version() const; - template - void set_device_software_version(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_device_software_version(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_software_version(); - void set_allocated_device_software_version(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_device_software_version() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_device_software_version(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_device_software_version(); - - public: - // optional string device_software_package = 19; - bool has_device_software_package() const; - void clear_device_software_package() ; - const ::std::string& device_software_package() const; - template - void set_device_software_package(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_device_software_package(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_software_package(); - void set_allocated_device_software_package(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_device_software_package() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_device_software_package(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_device_software_package(); - - public: - // optional bytes long_device_id = 29; - bool has_long_device_id() const; - void clear_long_device_id() ; - const ::std::string& long_device_id() const; - template - void set_long_device_id(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_long_device_id(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_long_device_id(); - void set_allocated_long_device_id(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_long_device_id() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_long_device_id(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_long_device_id(); - - public: - // optional string device_manufacturer = 31; - bool has_device_manufacturer() const; - void clear_device_manufacturer() ; - const ::std::string& device_manufacturer() const; - template - void set_device_manufacturer(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_device_manufacturer(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_manufacturer(); - void set_allocated_device_manufacturer(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_device_manufacturer() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_device_manufacturer(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_device_manufacturer(); - - public: - // optional bytes device_master_key_hash = 103; - bool has_device_master_key_hash() const; - void clear_device_master_key_hash() ; - const ::std::string& device_master_key_hash() const; - template - void set_device_master_key_hash(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_device_master_key_hash(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_device_master_key_hash(); - void set_allocated_device_master_key_hash(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_device_master_key_hash() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_device_master_key_hash(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_device_master_key_hash(); - - public: - // optional bytes apn_registration_id = 202; - bool has_apn_registration_id() const; - void clear_apn_registration_id() ; - const ::std::string& apn_registration_id() const; - template - void set_apn_registration_id(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_apn_registration_id(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_apn_registration_id(); - void set_allocated_apn_registration_id(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_apn_registration_id() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_apn_registration_id(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_apn_registration_id(); - - public: - // optional string bluetooth_mac_address = 302; - bool has_bluetooth_mac_address() const; - void clear_bluetooth_mac_address() ; - const ::std::string& bluetooth_mac_address() const; - template - void set_bluetooth_mac_address(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_bluetooth_mac_address(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_bluetooth_mac_address(); - void set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_bluetooth_mac_address() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_bluetooth_mac_address(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_bluetooth_mac_address(); - - public: - // optional fixed64 android_device_id = 1; - bool has_android_device_id() const; - void clear_android_device_id() ; - ::uint64_t android_device_id() const; - void set_android_device_id(::uint64_t value); - - private: - ::uint64_t _internal_android_device_id() const; - void _internal_set_android_device_id(::uint64_t value); - - public: - // optional int64 counter = 12 [default = 0]; - bool has_counter() const; - void clear_counter() ; - ::int64_t counter() const; - void set_counter(::int64_t value); - - private: - ::int64_t _internal_counter() const; - void _internal_set_counter(::int64_t value); - - public: - // optional int64 device_os_version_code = 14; - bool has_device_os_version_code() const; - void clear_device_os_version_code() ; - ::int64_t device_os_version_code() const; - void set_device_os_version_code(::int64_t value); - - private: - ::int64_t _internal_device_os_version_code() const; - void _internal_set_device_os_version_code(::int64_t value); - - public: - // optional int64 device_software_version_code = 18; - bool has_device_software_version_code() const; - void clear_device_software_version_code() ; - ::int64_t device_software_version_code() const; - void set_device_software_version_code(::int64_t value); - - private: - ::int64_t _internal_device_software_version_code() const; - void _internal_set_device_software_version_code(::int64_t value); - - public: - // optional int32 device_display_diagonal_mils = 22; - bool has_device_display_diagonal_mils() const; - void clear_device_display_diagonal_mils() ; - ::int32_t device_display_diagonal_mils() const; - void set_device_display_diagonal_mils(::int32_t value); - - private: - ::int32_t _internal_device_display_diagonal_mils() const; - void _internal_set_device_display_diagonal_mils(::int32_t value); - - public: - // optional int32 device_authzen_version = 24; - bool has_device_authzen_version() const; - void clear_device_authzen_version() ; - ::int32_t device_authzen_version() const; - void set_device_authzen_version(::int32_t value); - - private: - ::int32_t _internal_device_authzen_version() const; - void _internal_set_device_authzen_version(::int32_t value); - - public: - // optional bool bluetooth_radio_enabled = 404 [default = false]; - bool has_bluetooth_radio_enabled() const; - void clear_bluetooth_radio_enabled() ; - bool bluetooth_radio_enabled() const; - void set_bluetooth_radio_enabled(bool value); - - private: - bool _internal_bluetooth_radio_enabled() const; - void _internal_set_bluetooth_radio_enabled(bool value); - - public: - // optional bool mobile_data_supported = 405 [default = false]; - bool has_mobile_data_supported() const; - void clear_mobile_data_supported() ; - bool mobile_data_supported() const; - void set_mobile_data_supported(bool value); - - private: - bool _internal_mobile_data_supported() const; - void _internal_set_mobile_data_supported(bool value); - - public: - // optional bool arc_plus_plus = 409 [default = false]; - bool has_arc_plus_plus() const; - void clear_arc_plus_plus() ; - bool arc_plus_plus() const; - void set_arc_plus_plus(bool value); - - private: - bool _internal_arc_plus_plus() const; - void _internal_set_arc_plus_plus(bool value); - - public: - // optional bool notification_enabled = 203 [default = true]; - bool has_notification_enabled() const; - void clear_notification_enabled() ; - bool notification_enabled() const; - void set_notification_enabled(bool value); - - private: - bool _internal_notification_enabled() const; - void _internal_set_notification_enabled(bool value); - - public: - // repeated .securegcm.SoftwareFeature supported_software_features = 411; - int supported_software_features_size() const; - private: - int _internal_supported_software_features_size() const; - - public: - void clear_supported_software_features() ; - public: - ::securegcm::SoftwareFeature supported_software_features(int index) const; - void set_supported_software_features(int index, ::securegcm::SoftwareFeature value); - void add_supported_software_features(::securegcm::SoftwareFeature value); - const ::google::protobuf::RepeatedField& supported_software_features() const; - ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_supported_software_features(); - - private: - const ::google::protobuf::RepeatedField& _internal_supported_software_features() const; - ::google::protobuf::RepeatedField* PROTOBUF_NONNULL _internal_mutable_supported_software_features(); - - public: - // optional bytes gcm_registration_id = 102; - bool has_gcm_registration_id() const; - void clear_gcm_registration_id() ; - const ::std::string& gcm_registration_id() const; - template - void set_gcm_registration_id(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_gcm_registration_id(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_gcm_registration_id(); - void set_allocated_gcm_registration_id(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_gcm_registration_id() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_gcm_registration_id(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_gcm_registration_id(); - - public: - // optional bytes enrollment_session_id = 1000; - bool has_enrollment_session_id() const; - void clear_enrollment_session_id() ; - const ::std::string& enrollment_session_id() const; - template - void set_enrollment_session_id(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_enrollment_session_id(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_enrollment_session_id(); - void set_allocated_enrollment_session_id(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_enrollment_session_id() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_enrollment_session_id(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_enrollment_session_id(); - - public: - // optional string oauth_token = 1001; - bool has_oauth_token() const; - void clear_oauth_token() ; - const ::std::string& oauth_token() const; - template - void set_oauth_token(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_oauth_token(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_oauth_token(); - void set_allocated_oauth_token(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_oauth_token() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_oauth_token(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_oauth_token(); - - public: - // optional bool using_secure_screenlock = 400 [default = false]; - bool has_using_secure_screenlock() const; - void clear_using_secure_screenlock() ; - bool using_secure_screenlock() const; - void set_using_secure_screenlock(bool value); - - private: - bool _internal_using_secure_screenlock() const; - void _internal_set_using_secure_screenlock(bool value); - - public: - // optional bool auto_unlock_screenlock_supported = 401 [default = false]; - bool has_auto_unlock_screenlock_supported() const; - void clear_auto_unlock_screenlock_supported() ; - bool auto_unlock_screenlock_supported() const; - void set_auto_unlock_screenlock_supported(bool value); - - private: - bool _internal_auto_unlock_screenlock_supported() const; - void _internal_set_auto_unlock_screenlock_supported(bool value); - - public: - // optional bool auto_unlock_screenlock_enabled = 402 [default = false]; - bool has_auto_unlock_screenlock_enabled() const; - void clear_auto_unlock_screenlock_enabled() ; - bool auto_unlock_screenlock_enabled() const; - void set_auto_unlock_screenlock_enabled(bool value); - - private: - bool _internal_auto_unlock_screenlock_enabled() const; - void _internal_set_auto_unlock_screenlock_enabled(bool value); - - public: - // optional bool bluetooth_radio_supported = 403 [default = false]; - bool has_bluetooth_radio_supported() const; - void clear_bluetooth_radio_supported() ; - bool bluetooth_radio_supported() const; - void set_bluetooth_radio_supported(bool value); - - private: - bool _internal_bluetooth_radio_supported() const; - void _internal_set_bluetooth_radio_supported(bool value); - - public: - // optional bool tethering_supported = 406 [default = false]; - bool has_tethering_supported() const; - void clear_tethering_supported() ; - bool tethering_supported() const; - void set_tethering_supported(bool value); - - private: - bool _internal_tethering_supported() const; - void _internal_set_tethering_supported(bool value); - - public: - // optional bool ble_radio_supported = 407 [default = false]; - bool has_ble_radio_supported() const; - void clear_ble_radio_supported() ; - bool ble_radio_supported() const; - void set_ble_radio_supported(bool value); - - private: - bool _internal_ble_radio_supported() const; - void _internal_set_ble_radio_supported(bool value); - - public: - // optional bool pixel_experience = 408 [default = false]; - bool has_pixel_experience() const; - void clear_pixel_experience() ; - bool pixel_experience() const; - void set_pixel_experience(bool value); - - private: - bool _internal_pixel_experience() const; - void _internal_set_pixel_experience(bool value); - - public: - // optional bool is_screenlock_state_flaky = 410 [default = false]; - bool has_is_screenlock_state_flaky() const; - void clear_is_screenlock_state_flaky() ; - bool is_screenlock_state_flaky() const; - void set_is_screenlock_state_flaky(bool value); - - private: - bool _internal_is_screenlock_state_flaky() const; - void _internal_set_is_screenlock_state_flaky(bool value); - - public: - // optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; - bool has_device_type() const; - void clear_device_type() ; - ::securegcm::DeviceType device_type() const; - void set_device_type(::securegcm::DeviceType value); - - private: - ::securegcm::DeviceType _internal_device_type() const; - void _internal_set_device_type(::securegcm::DeviceType value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.GcmDeviceInfo) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<5, 38, - 3, 0, - 27> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GcmDeviceInfo& from_msg); - ::google::protobuf::internal::HasBits<2> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedField enabled_software_features_; - ::google::protobuf::internal::ArenaStringPtr user_public_key_; - ::google::protobuf::internal::ArenaStringPtr device_model_; - ::google::protobuf::internal::ArenaStringPtr locale_; - ::google::protobuf::internal::ArenaStringPtr key_handle_; - ::google::protobuf::internal::ArenaStringPtr device_os_version_; - ::google::protobuf::internal::ArenaStringPtr device_os_release_; - ::google::protobuf::internal::ArenaStringPtr device_os_codename_; - ::google::protobuf::internal::ArenaStringPtr device_software_version_; - ::google::protobuf::internal::ArenaStringPtr device_software_package_; - ::google::protobuf::internal::ArenaStringPtr long_device_id_; - ::google::protobuf::internal::ArenaStringPtr device_manufacturer_; - ::google::protobuf::internal::ArenaStringPtr device_master_key_hash_; - ::google::protobuf::internal::ArenaStringPtr apn_registration_id_; - ::google::protobuf::internal::ArenaStringPtr bluetooth_mac_address_; - ::uint64_t android_device_id_; - ::int64_t counter_; - ::int64_t device_os_version_code_; - ::int64_t device_software_version_code_; - ::int32_t device_display_diagonal_mils_; - ::int32_t device_authzen_version_; - bool bluetooth_radio_enabled_; - bool mobile_data_supported_; - bool arc_plus_plus_; - bool notification_enabled_; - ::google::protobuf::RepeatedField supported_software_features_; - ::google::protobuf::internal::ArenaStringPtr gcm_registration_id_; - ::google::protobuf::internal::ArenaStringPtr enrollment_session_id_; - ::google::protobuf::internal::ArenaStringPtr oauth_token_; - bool using_secure_screenlock_; - bool auto_unlock_screenlock_supported_; - bool auto_unlock_screenlock_enabled_; - bool bluetooth_radio_supported_; - bool tethering_supported_; - bool ble_radio_supported_; - bool pixel_experience_; - bool is_screenlock_state_flaky_; - int device_type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuregcm_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<24> GcmDeviceInfo_class_data_; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// GcmDeviceInfo - -// optional fixed64 android_device_id = 1; -inline bool GcmDeviceInfo::has_android_device_id() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00008000U); - return value; -} -inline void GcmDeviceInfo::clear_android_device_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.android_device_id_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00008000U); -} -inline ::uint64_t GcmDeviceInfo::android_device_id() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.android_device_id) - return _internal_android_device_id(); -} -inline void GcmDeviceInfo::set_android_device_id(::uint64_t value) { - _internal_set_android_device_id(value); - SetHasBit(_impl_._has_bits_[0], 0x00008000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.android_device_id) -} -inline ::uint64_t GcmDeviceInfo::_internal_android_device_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.android_device_id_; -} -inline void GcmDeviceInfo::_internal_set_android_device_id(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.android_device_id_ = value; -} - -// optional bytes gcm_registration_id = 102; -inline bool GcmDeviceInfo::has_gcm_registration_id() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x04000000U); - return value; -} -inline void GcmDeviceInfo::clear_gcm_registration_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.gcm_registration_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x04000000U); -} -inline const ::std::string& GcmDeviceInfo::gcm_registration_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.gcm_registration_id) - return _internal_gcm_registration_id(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_gcm_registration_id(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x04000000U); - _impl_.gcm_registration_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.gcm_registration_id) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_gcm_registration_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x04000000U); - ::std::string* _s = _internal_mutable_gcm_registration_id(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.gcm_registration_id) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_gcm_registration_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.gcm_registration_id_.Get(); -} -inline void GcmDeviceInfo::_internal_set_gcm_registration_id(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.gcm_registration_id_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_gcm_registration_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.gcm_registration_id_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_gcm_registration_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.gcm_registration_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x04000000U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x04000000U); - auto* released = _impl_.gcm_registration_id_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.gcm_registration_id_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_gcm_registration_id(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x04000000U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x04000000U); - } - _impl_.gcm_registration_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.gcm_registration_id_.IsDefault()) { - _impl_.gcm_registration_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.gcm_registration_id) -} - -// optional bytes apn_registration_id = 202; -inline bool GcmDeviceInfo::has_apn_registration_id() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00002000U); - return value; -} -inline void GcmDeviceInfo::clear_apn_registration_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.apn_registration_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00002000U); -} -inline const ::std::string& GcmDeviceInfo::apn_registration_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.apn_registration_id) - return _internal_apn_registration_id(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_apn_registration_id(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00002000U); - _impl_.apn_registration_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.apn_registration_id) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_apn_registration_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00002000U); - ::std::string* _s = _internal_mutable_apn_registration_id(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.apn_registration_id) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_apn_registration_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.apn_registration_id_.Get(); -} -inline void GcmDeviceInfo::_internal_set_apn_registration_id(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.apn_registration_id_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_apn_registration_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.apn_registration_id_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_apn_registration_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.apn_registration_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00002000U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00002000U); - auto* released = _impl_.apn_registration_id_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.apn_registration_id_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_apn_registration_id(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00002000U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00002000U); - } - _impl_.apn_registration_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.apn_registration_id_.IsDefault()) { - _impl_.apn_registration_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.apn_registration_id) -} - -// optional bool notification_enabled = 203 [default = true]; -inline bool GcmDeviceInfo::has_notification_enabled() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x01000000U); - return value; -} -inline void GcmDeviceInfo::clear_notification_enabled() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.notification_enabled_ = true; - ClearHasBit(_impl_._has_bits_[0], - 0x01000000U); -} -inline bool GcmDeviceInfo::notification_enabled() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.notification_enabled) - return _internal_notification_enabled(); -} -inline void GcmDeviceInfo::set_notification_enabled(bool value) { - _internal_set_notification_enabled(value); - SetHasBit(_impl_._has_bits_[0], 0x01000000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.notification_enabled) -} -inline bool GcmDeviceInfo::_internal_notification_enabled() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.notification_enabled_; -} -inline void GcmDeviceInfo::_internal_set_notification_enabled(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.notification_enabled_ = value; -} - -// optional string bluetooth_mac_address = 302; -inline bool GcmDeviceInfo::has_bluetooth_mac_address() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00004000U); - return value; -} -inline void GcmDeviceInfo::clear_bluetooth_mac_address() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bluetooth_mac_address_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00004000U); -} -inline const ::std::string& GcmDeviceInfo::bluetooth_mac_address() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.bluetooth_mac_address) - return _internal_bluetooth_mac_address(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_bluetooth_mac_address(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00004000U); - _impl_.bluetooth_mac_address_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.bluetooth_mac_address) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_bluetooth_mac_address() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00004000U); - ::std::string* _s = _internal_mutable_bluetooth_mac_address(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.bluetooth_mac_address) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_bluetooth_mac_address() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.bluetooth_mac_address_.Get(); -} -inline void GcmDeviceInfo::_internal_set_bluetooth_mac_address(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bluetooth_mac_address_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_bluetooth_mac_address() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.bluetooth_mac_address_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_bluetooth_mac_address() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.bluetooth_mac_address) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00004000U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00004000U); - auto* released = _impl_.bluetooth_mac_address_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.bluetooth_mac_address_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_bluetooth_mac_address(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00004000U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00004000U); - } - _impl_.bluetooth_mac_address_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.bluetooth_mac_address_.IsDefault()) { - _impl_.bluetooth_mac_address_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.bluetooth_mac_address) -} - -// optional bytes device_master_key_hash = 103; -inline bool GcmDeviceInfo::has_device_master_key_hash() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00001000U); - return value; -} -inline void GcmDeviceInfo::clear_device_master_key_hash() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_master_key_hash_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00001000U); -} -inline const ::std::string& GcmDeviceInfo::device_master_key_hash() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_master_key_hash) - return _internal_device_master_key_hash(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_master_key_hash(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00001000U); - _impl_.device_master_key_hash_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_master_key_hash) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_master_key_hash() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00001000U); - ::std::string* _s = _internal_mutable_device_master_key_hash(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_master_key_hash) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_device_master_key_hash() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_master_key_hash_.Get(); -} -inline void GcmDeviceInfo::_internal_set_device_master_key_hash(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_master_key_hash_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_master_key_hash() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.device_master_key_hash_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_master_key_hash() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_master_key_hash) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00001000U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00001000U); - auto* released = _impl_.device_master_key_hash_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.device_master_key_hash_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_device_master_key_hash(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00001000U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00001000U); - } - _impl_.device_master_key_hash_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_master_key_hash_.IsDefault()) { - _impl_.device_master_key_hash_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_master_key_hash) -} - -// required bytes user_public_key = 4; -inline bool GcmDeviceInfo::has_user_public_key() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void GcmDeviceInfo::clear_user_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.user_public_key_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& GcmDeviceInfo::user_public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.user_public_key) - return _internal_user_public_key(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_user_public_key(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.user_public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.user_public_key) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_user_public_key() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_user_public_key(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.user_public_key) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_user_public_key() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.user_public_key_.Get(); -} -inline void GcmDeviceInfo::_internal_set_user_public_key(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.user_public_key_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_user_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.user_public_key_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_user_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.user_public_key) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.user_public_key_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.user_public_key_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_user_public_key(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.user_public_key_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.user_public_key_.IsDefault()) { - _impl_.user_public_key_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.user_public_key) -} - -// optional string device_model = 7; -inline bool GcmDeviceInfo::has_device_model() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); - return value; -} -inline void GcmDeviceInfo::clear_device_model() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_model_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& GcmDeviceInfo::device_model() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_model) - return _internal_device_model(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_model(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.device_model_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_model) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_model() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_device_model(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_model) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_device_model() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_model_.Get(); -} -inline void GcmDeviceInfo::_internal_set_device_model(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_model_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_model() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.device_model_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_model() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_model) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.device_model_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.device_model_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_device_model(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.device_model_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_model_.IsDefault()) { - _impl_.device_model_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_model) -} - -// optional string locale = 8; -inline bool GcmDeviceInfo::has_locale() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); - return value; -} -inline void GcmDeviceInfo::clear_locale() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.locale_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline const ::std::string& GcmDeviceInfo::locale() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.locale) - return _internal_locale(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_locale(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - _impl_.locale_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.locale) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_locale() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - ::std::string* _s = _internal_mutable_locale(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.locale) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_locale() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.locale_.Get(); -} -inline void GcmDeviceInfo::_internal_set_locale(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.locale_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_locale() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.locale_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_locale() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.locale) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - auto* released = _impl_.locale_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.locale_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_locale(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - } - _impl_.locale_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.locale_.IsDefault()) { - _impl_.locale_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.locale) -} - -// optional bytes key_handle = 9; -inline bool GcmDeviceInfo::has_key_handle() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); - return value; -} -inline void GcmDeviceInfo::clear_key_handle() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.key_handle_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline const ::std::string& GcmDeviceInfo::key_handle() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.key_handle) - return _internal_key_handle(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_key_handle(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - _impl_.key_handle_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.key_handle) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_key_handle() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - ::std::string* _s = _internal_mutable_key_handle(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.key_handle) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_key_handle() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.key_handle_.Get(); -} -inline void GcmDeviceInfo::_internal_set_key_handle(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.key_handle_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_key_handle() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.key_handle_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_key_handle() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.key_handle) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); - auto* released = _impl_.key_handle_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.key_handle_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_key_handle(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); - } - _impl_.key_handle_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_handle_.IsDefault()) { - _impl_.key_handle_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.key_handle) -} - -// optional int64 counter = 12 [default = 0]; -inline bool GcmDeviceInfo::has_counter() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00010000U); - return value; -} -inline void GcmDeviceInfo::clear_counter() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.counter_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], - 0x00010000U); -} -inline ::int64_t GcmDeviceInfo::counter() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.counter) - return _internal_counter(); -} -inline void GcmDeviceInfo::set_counter(::int64_t value) { - _internal_set_counter(value); - SetHasBit(_impl_._has_bits_[0], 0x00010000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.counter) -} -inline ::int64_t GcmDeviceInfo::_internal_counter() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.counter_; -} -inline void GcmDeviceInfo::_internal_set_counter(::int64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.counter_ = value; -} - -// optional string device_os_version = 13; -inline bool GcmDeviceInfo::has_device_os_version() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); - return value; -} -inline void GcmDeviceInfo::clear_device_os_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_os_version_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline const ::std::string& GcmDeviceInfo::device_os_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_version) - return _internal_device_os_version(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_os_version(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - _impl_.device_os_version_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_version) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_os_version() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - ::std::string* _s = _internal_mutable_device_os_version(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_os_version) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_device_os_version() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_os_version_.Get(); -} -inline void GcmDeviceInfo::_internal_set_device_os_version(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_os_version_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_os_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.device_os_version_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_os_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_os_version) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); - auto* released = _impl_.device_os_version_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.device_os_version_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_device_os_version(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); - } - _impl_.device_os_version_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_os_version_.IsDefault()) { - _impl_.device_os_version_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_os_version) -} - -// optional int64 device_os_version_code = 14; -inline bool GcmDeviceInfo::has_device_os_version_code() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00020000U); - return value; -} -inline void GcmDeviceInfo::clear_device_os_version_code() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_os_version_code_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], - 0x00020000U); -} -inline ::int64_t GcmDeviceInfo::device_os_version_code() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_version_code) - return _internal_device_os_version_code(); -} -inline void GcmDeviceInfo::set_device_os_version_code(::int64_t value) { - _internal_set_device_os_version_code(value); - SetHasBit(_impl_._has_bits_[0], 0x00020000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_version_code) -} -inline ::int64_t GcmDeviceInfo::_internal_device_os_version_code() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_os_version_code_; -} -inline void GcmDeviceInfo::_internal_set_device_os_version_code(::int64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_os_version_code_ = value; -} - -// optional string device_os_release = 15; -inline bool GcmDeviceInfo::has_device_os_release() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); - return value; -} -inline void GcmDeviceInfo::clear_device_os_release() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_os_release_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline const ::std::string& GcmDeviceInfo::device_os_release() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_release) - return _internal_device_os_release(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_os_release(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - _impl_.device_os_release_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_release) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_os_release() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - ::std::string* _s = _internal_mutable_device_os_release(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_os_release) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_device_os_release() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_os_release_.Get(); -} -inline void GcmDeviceInfo::_internal_set_device_os_release(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_os_release_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_os_release() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.device_os_release_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_os_release() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_os_release) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); - auto* released = _impl_.device_os_release_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.device_os_release_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_device_os_release(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); - } - _impl_.device_os_release_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_os_release_.IsDefault()) { - _impl_.device_os_release_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_os_release) -} - -// optional string device_os_codename = 16; -inline bool GcmDeviceInfo::has_device_os_codename() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); - return value; -} -inline void GcmDeviceInfo::clear_device_os_codename() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_os_codename_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000080U); -} -inline const ::std::string& GcmDeviceInfo::device_os_codename() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_os_codename) - return _internal_device_os_codename(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_os_codename(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - _impl_.device_os_codename_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_os_codename) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_os_codename() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - ::std::string* _s = _internal_mutable_device_os_codename(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_os_codename) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_device_os_codename() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_os_codename_.Get(); -} -inline void GcmDeviceInfo::_internal_set_device_os_codename(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_os_codename_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_os_codename() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.device_os_codename_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_os_codename() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_os_codename) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000080U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); - auto* released = _impl_.device_os_codename_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.device_os_codename_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_device_os_codename(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000080U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); - } - _impl_.device_os_codename_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_os_codename_.IsDefault()) { - _impl_.device_os_codename_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_os_codename) -} - -// optional string device_software_version = 17; -inline bool GcmDeviceInfo::has_device_software_version() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); - return value; -} -inline void GcmDeviceInfo::clear_device_software_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_software_version_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000100U); -} -inline const ::std::string& GcmDeviceInfo::device_software_version() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_software_version) - return _internal_device_software_version(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_software_version(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - _impl_.device_software_version_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_software_version) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_software_version() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - ::std::string* _s = _internal_mutable_device_software_version(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_software_version) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_device_software_version() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_software_version_.Get(); -} -inline void GcmDeviceInfo::_internal_set_device_software_version(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_software_version_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_software_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.device_software_version_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_software_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_software_version) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000100U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); - auto* released = _impl_.device_software_version_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.device_software_version_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_device_software_version(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000100U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); - } - _impl_.device_software_version_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_software_version_.IsDefault()) { - _impl_.device_software_version_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_software_version) -} - -// optional int64 device_software_version_code = 18; -inline bool GcmDeviceInfo::has_device_software_version_code() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00040000U); - return value; -} -inline void GcmDeviceInfo::clear_device_software_version_code() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_software_version_code_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], - 0x00040000U); -} -inline ::int64_t GcmDeviceInfo::device_software_version_code() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_software_version_code) - return _internal_device_software_version_code(); -} -inline void GcmDeviceInfo::set_device_software_version_code(::int64_t value) { - _internal_set_device_software_version_code(value); - SetHasBit(_impl_._has_bits_[0], 0x00040000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_software_version_code) -} -inline ::int64_t GcmDeviceInfo::_internal_device_software_version_code() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_software_version_code_; -} -inline void GcmDeviceInfo::_internal_set_device_software_version_code(::int64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_software_version_code_ = value; -} - -// optional string device_software_package = 19; -inline bool GcmDeviceInfo::has_device_software_package() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); - return value; -} -inline void GcmDeviceInfo::clear_device_software_package() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_software_package_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000200U); -} -inline const ::std::string& GcmDeviceInfo::device_software_package() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_software_package) - return _internal_device_software_package(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_software_package(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - _impl_.device_software_package_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_software_package) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_software_package() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - ::std::string* _s = _internal_mutable_device_software_package(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_software_package) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_device_software_package() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_software_package_.Get(); -} -inline void GcmDeviceInfo::_internal_set_device_software_package(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_software_package_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_software_package() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.device_software_package_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_software_package() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_software_package) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000200U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); - auto* released = _impl_.device_software_package_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.device_software_package_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_device_software_package(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000200U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); - } - _impl_.device_software_package_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_software_package_.IsDefault()) { - _impl_.device_software_package_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_software_package) -} - -// optional int32 device_display_diagonal_mils = 22; -inline bool GcmDeviceInfo::has_device_display_diagonal_mils() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00080000U); - return value; -} -inline void GcmDeviceInfo::clear_device_display_diagonal_mils() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_display_diagonal_mils_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00080000U); -} -inline ::int32_t GcmDeviceInfo::device_display_diagonal_mils() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_display_diagonal_mils) - return _internal_device_display_diagonal_mils(); -} -inline void GcmDeviceInfo::set_device_display_diagonal_mils(::int32_t value) { - _internal_set_device_display_diagonal_mils(value); - SetHasBit(_impl_._has_bits_[0], 0x00080000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_display_diagonal_mils) -} -inline ::int32_t GcmDeviceInfo::_internal_device_display_diagonal_mils() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_display_diagonal_mils_; -} -inline void GcmDeviceInfo::_internal_set_device_display_diagonal_mils(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_display_diagonal_mils_ = value; -} - -// optional int32 device_authzen_version = 24; -inline bool GcmDeviceInfo::has_device_authzen_version() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00100000U); - return value; -} -inline void GcmDeviceInfo::clear_device_authzen_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_authzen_version_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00100000U); -} -inline ::int32_t GcmDeviceInfo::device_authzen_version() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_authzen_version) - return _internal_device_authzen_version(); -} -inline void GcmDeviceInfo::set_device_authzen_version(::int32_t value) { - _internal_set_device_authzen_version(value); - SetHasBit(_impl_._has_bits_[0], 0x00100000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_authzen_version) -} -inline ::int32_t GcmDeviceInfo::_internal_device_authzen_version() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_authzen_version_; -} -inline void GcmDeviceInfo::_internal_set_device_authzen_version(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_authzen_version_ = value; -} - -// optional bytes long_device_id = 29; -inline bool GcmDeviceInfo::has_long_device_id() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000400U); - return value; -} -inline void GcmDeviceInfo::clear_long_device_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.long_device_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000400U); -} -inline const ::std::string& GcmDeviceInfo::long_device_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.long_device_id) - return _internal_long_device_id(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_long_device_id(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000400U); - _impl_.long_device_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.long_device_id) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_long_device_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000400U); - ::std::string* _s = _internal_mutable_long_device_id(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.long_device_id) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_long_device_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.long_device_id_.Get(); -} -inline void GcmDeviceInfo::_internal_set_long_device_id(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.long_device_id_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_long_device_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.long_device_id_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_long_device_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.long_device_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000400U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000400U); - auto* released = _impl_.long_device_id_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.long_device_id_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_long_device_id(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000400U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000400U); - } - _impl_.long_device_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.long_device_id_.IsDefault()) { - _impl_.long_device_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.long_device_id) -} - -// optional string device_manufacturer = 31; -inline bool GcmDeviceInfo::has_device_manufacturer() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); - return value; -} -inline void GcmDeviceInfo::clear_device_manufacturer() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_manufacturer_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000800U); -} -inline const ::std::string& GcmDeviceInfo::device_manufacturer() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_manufacturer) - return _internal_device_manufacturer(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_device_manufacturer(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000800U); - _impl_.device_manufacturer_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_manufacturer) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_device_manufacturer() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000800U); - ::std::string* _s = _internal_mutable_device_manufacturer(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.device_manufacturer) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_device_manufacturer() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.device_manufacturer_.Get(); -} -inline void GcmDeviceInfo::_internal_set_device_manufacturer(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_manufacturer_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_device_manufacturer() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.device_manufacturer_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_device_manufacturer() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.device_manufacturer) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000800U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000800U); - auto* released = _impl_.device_manufacturer_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.device_manufacturer_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_device_manufacturer(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000800U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000800U); - } - _impl_.device_manufacturer_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.device_manufacturer_.IsDefault()) { - _impl_.device_manufacturer_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.device_manufacturer) -} - -// optional .securegcm.DeviceType device_type = 32 [default = ANDROID]; -inline bool GcmDeviceInfo::has_device_type() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000020U); - return value; -} -inline void GcmDeviceInfo::clear_device_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.device_type_ = 1; - ClearHasBit(_impl_._has_bits_[1], - 0x00000020U); -} -inline ::securegcm::DeviceType GcmDeviceInfo::device_type() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.device_type) - return _internal_device_type(); -} -inline void GcmDeviceInfo::set_device_type(::securegcm::DeviceType value) { - _internal_set_device_type(value); - SetHasBit(_impl_._has_bits_[1], 0x00000020U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.device_type) -} -inline ::securegcm::DeviceType GcmDeviceInfo::_internal_device_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::securegcm::DeviceType>(_impl_.device_type_); -} -inline void GcmDeviceInfo::_internal_set_device_type(::securegcm::DeviceType value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::DeviceType_internal_data_)); - _impl_.device_type_ = value; -} - -// optional bool using_secure_screenlock = 400 [default = false]; -inline bool GcmDeviceInfo::has_using_secure_screenlock() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x20000000U); - return value; -} -inline void GcmDeviceInfo::clear_using_secure_screenlock() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.using_secure_screenlock_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x20000000U); -} -inline bool GcmDeviceInfo::using_secure_screenlock() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.using_secure_screenlock) - return _internal_using_secure_screenlock(); -} -inline void GcmDeviceInfo::set_using_secure_screenlock(bool value) { - _internal_set_using_secure_screenlock(value); - SetHasBit(_impl_._has_bits_[0], 0x20000000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.using_secure_screenlock) -} -inline bool GcmDeviceInfo::_internal_using_secure_screenlock() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.using_secure_screenlock_; -} -inline void GcmDeviceInfo::_internal_set_using_secure_screenlock(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.using_secure_screenlock_ = value; -} - -// optional bool auto_unlock_screenlock_supported = 401 [default = false]; -inline bool GcmDeviceInfo::has_auto_unlock_screenlock_supported() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x40000000U); - return value; -} -inline void GcmDeviceInfo::clear_auto_unlock_screenlock_supported() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.auto_unlock_screenlock_supported_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x40000000U); -} -inline bool GcmDeviceInfo::auto_unlock_screenlock_supported() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.auto_unlock_screenlock_supported) - return _internal_auto_unlock_screenlock_supported(); -} -inline void GcmDeviceInfo::set_auto_unlock_screenlock_supported(bool value) { - _internal_set_auto_unlock_screenlock_supported(value); - SetHasBit(_impl_._has_bits_[0], 0x40000000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.auto_unlock_screenlock_supported) -} -inline bool GcmDeviceInfo::_internal_auto_unlock_screenlock_supported() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.auto_unlock_screenlock_supported_; -} -inline void GcmDeviceInfo::_internal_set_auto_unlock_screenlock_supported(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.auto_unlock_screenlock_supported_ = value; -} - -// optional bool auto_unlock_screenlock_enabled = 402 [default = false]; -inline bool GcmDeviceInfo::has_auto_unlock_screenlock_enabled() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x80000000U); - return value; -} -inline void GcmDeviceInfo::clear_auto_unlock_screenlock_enabled() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.auto_unlock_screenlock_enabled_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x80000000U); -} -inline bool GcmDeviceInfo::auto_unlock_screenlock_enabled() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.auto_unlock_screenlock_enabled) - return _internal_auto_unlock_screenlock_enabled(); -} -inline void GcmDeviceInfo::set_auto_unlock_screenlock_enabled(bool value) { - _internal_set_auto_unlock_screenlock_enabled(value); - SetHasBit(_impl_._has_bits_[0], 0x80000000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.auto_unlock_screenlock_enabled) -} -inline bool GcmDeviceInfo::_internal_auto_unlock_screenlock_enabled() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.auto_unlock_screenlock_enabled_; -} -inline void GcmDeviceInfo::_internal_set_auto_unlock_screenlock_enabled(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.auto_unlock_screenlock_enabled_ = value; -} - -// optional bool bluetooth_radio_supported = 403 [default = false]; -inline bool GcmDeviceInfo::has_bluetooth_radio_supported() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000001U); - return value; -} -inline void GcmDeviceInfo::clear_bluetooth_radio_supported() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bluetooth_radio_supported_ = false; - ClearHasBit(_impl_._has_bits_[1], - 0x00000001U); -} -inline bool GcmDeviceInfo::bluetooth_radio_supported() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.bluetooth_radio_supported) - return _internal_bluetooth_radio_supported(); -} -inline void GcmDeviceInfo::set_bluetooth_radio_supported(bool value) { - _internal_set_bluetooth_radio_supported(value); - SetHasBit(_impl_._has_bits_[1], 0x00000001U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.bluetooth_radio_supported) -} -inline bool GcmDeviceInfo::_internal_bluetooth_radio_supported() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.bluetooth_radio_supported_; -} -inline void GcmDeviceInfo::_internal_set_bluetooth_radio_supported(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bluetooth_radio_supported_ = value; -} - -// optional bool bluetooth_radio_enabled = 404 [default = false]; -inline bool GcmDeviceInfo::has_bluetooth_radio_enabled() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00200000U); - return value; -} -inline void GcmDeviceInfo::clear_bluetooth_radio_enabled() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bluetooth_radio_enabled_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00200000U); -} -inline bool GcmDeviceInfo::bluetooth_radio_enabled() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.bluetooth_radio_enabled) - return _internal_bluetooth_radio_enabled(); -} -inline void GcmDeviceInfo::set_bluetooth_radio_enabled(bool value) { - _internal_set_bluetooth_radio_enabled(value); - SetHasBit(_impl_._has_bits_[0], 0x00200000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.bluetooth_radio_enabled) -} -inline bool GcmDeviceInfo::_internal_bluetooth_radio_enabled() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.bluetooth_radio_enabled_; -} -inline void GcmDeviceInfo::_internal_set_bluetooth_radio_enabled(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.bluetooth_radio_enabled_ = value; -} - -// optional bool mobile_data_supported = 405 [default = false]; -inline bool GcmDeviceInfo::has_mobile_data_supported() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00400000U); - return value; -} -inline void GcmDeviceInfo::clear_mobile_data_supported() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.mobile_data_supported_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00400000U); -} -inline bool GcmDeviceInfo::mobile_data_supported() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.mobile_data_supported) - return _internal_mobile_data_supported(); -} -inline void GcmDeviceInfo::set_mobile_data_supported(bool value) { - _internal_set_mobile_data_supported(value); - SetHasBit(_impl_._has_bits_[0], 0x00400000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.mobile_data_supported) -} -inline bool GcmDeviceInfo::_internal_mobile_data_supported() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.mobile_data_supported_; -} -inline void GcmDeviceInfo::_internal_set_mobile_data_supported(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.mobile_data_supported_ = value; -} - -// optional bool tethering_supported = 406 [default = false]; -inline bool GcmDeviceInfo::has_tethering_supported() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000002U); - return value; -} -inline void GcmDeviceInfo::clear_tethering_supported() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.tethering_supported_ = false; - ClearHasBit(_impl_._has_bits_[1], - 0x00000002U); -} -inline bool GcmDeviceInfo::tethering_supported() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.tethering_supported) - return _internal_tethering_supported(); -} -inline void GcmDeviceInfo::set_tethering_supported(bool value) { - _internal_set_tethering_supported(value); - SetHasBit(_impl_._has_bits_[1], 0x00000002U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.tethering_supported) -} -inline bool GcmDeviceInfo::_internal_tethering_supported() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.tethering_supported_; -} -inline void GcmDeviceInfo::_internal_set_tethering_supported(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.tethering_supported_ = value; -} - -// optional bool ble_radio_supported = 407 [default = false]; -inline bool GcmDeviceInfo::has_ble_radio_supported() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000004U); - return value; -} -inline void GcmDeviceInfo::clear_ble_radio_supported() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.ble_radio_supported_ = false; - ClearHasBit(_impl_._has_bits_[1], - 0x00000004U); -} -inline bool GcmDeviceInfo::ble_radio_supported() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.ble_radio_supported) - return _internal_ble_radio_supported(); -} -inline void GcmDeviceInfo::set_ble_radio_supported(bool value) { - _internal_set_ble_radio_supported(value); - SetHasBit(_impl_._has_bits_[1], 0x00000004U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.ble_radio_supported) -} -inline bool GcmDeviceInfo::_internal_ble_radio_supported() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.ble_radio_supported_; -} -inline void GcmDeviceInfo::_internal_set_ble_radio_supported(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.ble_radio_supported_ = value; -} - -// optional bool pixel_experience = 408 [default = false]; -inline bool GcmDeviceInfo::has_pixel_experience() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000008U); - return value; -} -inline void GcmDeviceInfo::clear_pixel_experience() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pixel_experience_ = false; - ClearHasBit(_impl_._has_bits_[1], - 0x00000008U); -} -inline bool GcmDeviceInfo::pixel_experience() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.pixel_experience) - return _internal_pixel_experience(); -} -inline void GcmDeviceInfo::set_pixel_experience(bool value) { - _internal_set_pixel_experience(value); - SetHasBit(_impl_._has_bits_[1], 0x00000008U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.pixel_experience) -} -inline bool GcmDeviceInfo::_internal_pixel_experience() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.pixel_experience_; -} -inline void GcmDeviceInfo::_internal_set_pixel_experience(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.pixel_experience_ = value; -} - -// optional bool arc_plus_plus = 409 [default = false]; -inline bool GcmDeviceInfo::has_arc_plus_plus() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00800000U); - return value; -} -inline void GcmDeviceInfo::clear_arc_plus_plus() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.arc_plus_plus_ = false; - ClearHasBit(_impl_._has_bits_[0], - 0x00800000U); -} -inline bool GcmDeviceInfo::arc_plus_plus() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.arc_plus_plus) - return _internal_arc_plus_plus(); -} -inline void GcmDeviceInfo::set_arc_plus_plus(bool value) { - _internal_set_arc_plus_plus(value); - SetHasBit(_impl_._has_bits_[0], 0x00800000U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.arc_plus_plus) -} -inline bool GcmDeviceInfo::_internal_arc_plus_plus() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.arc_plus_plus_; -} -inline void GcmDeviceInfo::_internal_set_arc_plus_plus(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.arc_plus_plus_ = value; -} - -// optional bool is_screenlock_state_flaky = 410 [default = false]; -inline bool GcmDeviceInfo::has_is_screenlock_state_flaky() const { - bool value = CheckHasBit(_impl_._has_bits_[1], 0x00000010U); - return value; -} -inline void GcmDeviceInfo::clear_is_screenlock_state_flaky() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_screenlock_state_flaky_ = false; - ClearHasBit(_impl_._has_bits_[1], - 0x00000010U); -} -inline bool GcmDeviceInfo::is_screenlock_state_flaky() const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.is_screenlock_state_flaky) - return _internal_is_screenlock_state_flaky(); -} -inline void GcmDeviceInfo::set_is_screenlock_state_flaky(bool value) { - _internal_set_is_screenlock_state_flaky(value); - SetHasBit(_impl_._has_bits_[1], 0x00000010U); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.is_screenlock_state_flaky) -} -inline bool GcmDeviceInfo::_internal_is_screenlock_state_flaky() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.is_screenlock_state_flaky_; -} -inline void GcmDeviceInfo::_internal_set_is_screenlock_state_flaky(bool value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.is_screenlock_state_flaky_ = value; -} - -// repeated .securegcm.SoftwareFeature supported_software_features = 411; -inline int GcmDeviceInfo::_internal_supported_software_features_size() const { - return _internal_supported_software_features().size(); -} -inline int GcmDeviceInfo::supported_software_features_size() const { - return _internal_supported_software_features_size(); -} -inline void GcmDeviceInfo::clear_supported_software_features() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.supported_software_features_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x02000000U); -} -inline ::securegcm::SoftwareFeature GcmDeviceInfo::supported_software_features(int index) const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.supported_software_features) - return static_cast<::securegcm::SoftwareFeature>(_internal_supported_software_features().Get(index)); -} -inline void GcmDeviceInfo::set_supported_software_features(int index, ::securegcm::SoftwareFeature value) { - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::SoftwareFeature_internal_data_)); - _internal_mutable_supported_software_features()->Set(index, value); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.supported_software_features) -} -inline void GcmDeviceInfo::add_supported_software_features(::securegcm::SoftwareFeature value) { - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::SoftwareFeature_internal_data_)); - ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_supported_software_features()->Add(value); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x02000000U); - // @@protoc_insertion_point(field_add:securegcm.GcmDeviceInfo.supported_software_features) -} -inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::supported_software_features() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:securegcm.GcmDeviceInfo.supported_software_features) - return _internal_supported_software_features(); -} -inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL GcmDeviceInfo::mutable_supported_software_features() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x02000000U); - // @@protoc_insertion_point(field_mutable_list:securegcm.GcmDeviceInfo.supported_software_features) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_supported_software_features(); -} -inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::_internal_supported_software_features() - const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.supported_software_features_; -} -inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL -GcmDeviceInfo::_internal_mutable_supported_software_features() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.supported_software_features_; -} - -// repeated .securegcm.SoftwareFeature enabled_software_features = 412; -inline int GcmDeviceInfo::_internal_enabled_software_features_size() const { - return _internal_enabled_software_features().size(); -} -inline int GcmDeviceInfo::enabled_software_features_size() const { - return _internal_enabled_software_features_size(); -} -inline void GcmDeviceInfo::clear_enabled_software_features() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.enabled_software_features_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::securegcm::SoftwareFeature GcmDeviceInfo::enabled_software_features(int index) const { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.enabled_software_features) - return static_cast<::securegcm::SoftwareFeature>(_internal_enabled_software_features().Get(index)); -} -inline void GcmDeviceInfo::set_enabled_software_features(int index, ::securegcm::SoftwareFeature value) { - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::SoftwareFeature_internal_data_)); - _internal_mutable_enabled_software_features()->Set(index, value); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.enabled_software_features) -} -inline void GcmDeviceInfo::add_enabled_software_features(::securegcm::SoftwareFeature value) { - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::SoftwareFeature_internal_data_)); - ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_enabled_software_features()->Add(value); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:securegcm.GcmDeviceInfo.enabled_software_features) -} -inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::enabled_software_features() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:securegcm.GcmDeviceInfo.enabled_software_features) - return _internal_enabled_software_features(); -} -inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL GcmDeviceInfo::mutable_enabled_software_features() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:securegcm.GcmDeviceInfo.enabled_software_features) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_enabled_software_features(); -} -inline const ::google::protobuf::RepeatedField& GcmDeviceInfo::_internal_enabled_software_features() - const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.enabled_software_features_; -} -inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL -GcmDeviceInfo::_internal_mutable_enabled_software_features() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.enabled_software_features_; -} - -// optional bytes enrollment_session_id = 1000; -inline bool GcmDeviceInfo::has_enrollment_session_id() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x08000000U); - return value; -} -inline void GcmDeviceInfo::clear_enrollment_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.enrollment_session_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x08000000U); -} -inline const ::std::string& GcmDeviceInfo::enrollment_session_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.enrollment_session_id) - return _internal_enrollment_session_id(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_enrollment_session_id(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x08000000U); - _impl_.enrollment_session_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.enrollment_session_id) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_enrollment_session_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x08000000U); - ::std::string* _s = _internal_mutable_enrollment_session_id(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.enrollment_session_id) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_enrollment_session_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.enrollment_session_id_.Get(); -} -inline void GcmDeviceInfo::_internal_set_enrollment_session_id(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.enrollment_session_id_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_enrollment_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.enrollment_session_id_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_enrollment_session_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.enrollment_session_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x08000000U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x08000000U); - auto* released = _impl_.enrollment_session_id_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.enrollment_session_id_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_enrollment_session_id(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x08000000U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x08000000U); - } - _impl_.enrollment_session_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.enrollment_session_id_.IsDefault()) { - _impl_.enrollment_session_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.enrollment_session_id) -} - -// optional string oauth_token = 1001; -inline bool GcmDeviceInfo::has_oauth_token() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x10000000U); - return value; -} -inline void GcmDeviceInfo::clear_oauth_token() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.oauth_token_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x10000000U); -} -inline const ::std::string& GcmDeviceInfo::oauth_token() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.GcmDeviceInfo.oauth_token) - return _internal_oauth_token(); -} -template -PROTOBUF_ALWAYS_INLINE void GcmDeviceInfo::set_oauth_token(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x10000000U); - _impl_.oauth_token_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.GcmDeviceInfo.oauth_token) -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::mutable_oauth_token() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x10000000U); - ::std::string* _s = _internal_mutable_oauth_token(); - // @@protoc_insertion_point(field_mutable:securegcm.GcmDeviceInfo.oauth_token) - return _s; -} -inline const ::std::string& GcmDeviceInfo::_internal_oauth_token() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.oauth_token_.Get(); -} -inline void GcmDeviceInfo::_internal_set_oauth_token(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.oauth_token_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL GcmDeviceInfo::_internal_mutable_oauth_token() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.oauth_token_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE GcmDeviceInfo::release_oauth_token() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.GcmDeviceInfo.oauth_token) - if (!CheckHasBit(_impl_._has_bits_[0], 0x10000000U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x10000000U); - auto* released = _impl_.oauth_token_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.oauth_token_.Set("", GetArena()); - } - return released; -} -inline void GcmDeviceInfo::set_allocated_oauth_token(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x10000000U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x10000000U); - } - _impl_.oauth_token_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.oauth_token_.IsDefault()) { - _impl_.oauth_token_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.GcmDeviceInfo.oauth_token) -} - -// ------------------------------------------------------------------- - -// GcmMetadata - -// required .securegcm.Type type = 1; -inline bool GcmMetadata::has_type() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void GcmMetadata::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::securegcm::Type GcmMetadata::type() const { - // @@protoc_insertion_point(field_get:securegcm.GcmMetadata.type) - return _internal_type(); -} -inline void GcmMetadata::set_type(::securegcm::Type value) { - _internal_set_type(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_set:securegcm.GcmMetadata.type) -} -inline ::securegcm::Type GcmMetadata::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::securegcm::Type>(_impl_.type_); -} -inline void GcmMetadata::_internal_set_type(::securegcm::Type value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::Type_internal_data_)); - _impl_.type_ = value; -} - -// optional int32 version = 2 [default = 0]; -inline bool GcmMetadata::has_version() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void GcmMetadata::clear_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.version_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t GcmMetadata::version() const { - // @@protoc_insertion_point(field_get:securegcm.GcmMetadata.version) - return _internal_version(); -} -inline void GcmMetadata::set_version(::int32_t value) { - _internal_set_version(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:securegcm.GcmMetadata.version) -} -inline ::int32_t GcmMetadata::_internal_version() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.version_; -} -inline void GcmMetadata::_internal_set_version(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.version_ = value; -} - -// ------------------------------------------------------------------- - -// Tickle - -// optional fixed64 expiry_time = 1; -inline bool Tickle::has_expiry_time() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void Tickle::clear_expiry_time() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.expiry_time_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::uint64_t Tickle::expiry_time() const { - // @@protoc_insertion_point(field_get:securegcm.Tickle.expiry_time) - return _internal_expiry_time(); -} -inline void Tickle::set_expiry_time(::uint64_t value) { - _internal_set_expiry_time(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_set:securegcm.Tickle.expiry_time) -} -inline ::uint64_t Tickle::_internal_expiry_time() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.expiry_time_; -} -inline void Tickle::_internal_set_expiry_time(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.expiry_time_ = value; -} - -// ------------------------------------------------------------------- - -// LoginNotificationInfo - -// optional fixed64 creation_time = 2; -inline bool LoginNotificationInfo::has_creation_time() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); - return value; -} -inline void LoginNotificationInfo::clear_creation_time() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.creation_time_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::uint64_t LoginNotificationInfo::creation_time() const { - // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.creation_time) - return _internal_creation_time(); -} -inline void LoginNotificationInfo::set_creation_time(::uint64_t value) { - _internal_set_creation_time(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.creation_time) -} -inline ::uint64_t LoginNotificationInfo::_internal_creation_time() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.creation_time_; -} -inline void LoginNotificationInfo::_internal_set_creation_time(::uint64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.creation_time_ = value; -} - -// optional string email = 3; -inline bool LoginNotificationInfo::has_email() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void LoginNotificationInfo::clear_email() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.email_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& LoginNotificationInfo::email() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.email) - return _internal_email(); -} -template -PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_email(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.email_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.email) -} -inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_email() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_email(); - // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.email) - return _s; -} -inline const ::std::string& LoginNotificationInfo::_internal_email() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.email_.Get(); -} -inline void LoginNotificationInfo::_internal_set_email(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.email_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_email() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.email_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_email() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.email) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.email_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.email_.Set("", GetArena()); - } - return released; -} -inline void LoginNotificationInfo::set_allocated_email(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.email_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.email_.IsDefault()) { - _impl_.email_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.email) -} - -// optional string host = 4; -inline bool LoginNotificationInfo::has_host() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void LoginNotificationInfo::clear_host() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.host_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& LoginNotificationInfo::host() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.host) - return _internal_host(); -} -template -PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_host(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.host_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.host) -} -inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_host() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_host(); - // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.host) - return _s; -} -inline const ::std::string& LoginNotificationInfo::_internal_host() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.host_.Get(); -} -inline void LoginNotificationInfo::_internal_set_host(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.host_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_host() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.host_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_host() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.host) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.host_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.host_.Set("", GetArena()); - } - return released; -} -inline void LoginNotificationInfo::set_allocated_host(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.host_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.host_.IsDefault()) { - _impl_.host_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.host) -} - -// optional string source = 5; -inline bool LoginNotificationInfo::has_source() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); - return value; -} -inline void LoginNotificationInfo::clear_source() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.source_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& LoginNotificationInfo::source() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.source) - return _internal_source(); -} -template -PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_source(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.source_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.source) -} -inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_source() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_source(); - // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.source) - return _s; -} -inline const ::std::string& LoginNotificationInfo::_internal_source() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.source_.Get(); -} -inline void LoginNotificationInfo::_internal_set_source(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.source_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_source() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.source_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_source() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.source) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.source_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.source_.Set("", GetArena()); - } - return released; -} -inline void LoginNotificationInfo::set_allocated_source(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.source_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.source_.IsDefault()) { - _impl_.source_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.source) -} - -// optional string event_type = 6; -inline bool LoginNotificationInfo::has_event_type() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); - return value; -} -inline void LoginNotificationInfo::clear_event_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.event_type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline const ::std::string& LoginNotificationInfo::event_type() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.LoginNotificationInfo.event_type) - return _internal_event_type(); -} -template -PROTOBUF_ALWAYS_INLINE void LoginNotificationInfo::set_event_type(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - _impl_.event_type_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.LoginNotificationInfo.event_type) -} -inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::mutable_event_type() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - ::std::string* _s = _internal_mutable_event_type(); - // @@protoc_insertion_point(field_mutable:securegcm.LoginNotificationInfo.event_type) - return _s; -} -inline const ::std::string& LoginNotificationInfo::_internal_event_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.event_type_.Get(); -} -inline void LoginNotificationInfo::_internal_set_event_type(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.event_type_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL LoginNotificationInfo::_internal_mutable_event_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.event_type_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE LoginNotificationInfo::release_event_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.LoginNotificationInfo.event_type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - auto* released = _impl_.event_type_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.event_type_.Set("", GetArena()); - } - return released; -} -inline void LoginNotificationInfo::set_allocated_event_type(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - } - _impl_.event_type_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.event_type_.IsDefault()) { - _impl_.event_type_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.LoginNotificationInfo.event_type) -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace securegcm - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::securegcm::AppleDeviceDiagonalMils> : std::true_type {}; -template <> -struct is_proto_enum<::securegcm::DeviceType> : std::true_type {}; -template <> -struct is_proto_enum<::securegcm::SoftwareFeature> : std::true_type {}; -template <> -struct is_proto_enum<::securegcm::InvocationReason> : std::true_type {}; -template <> -struct is_proto_enum<::securegcm::Type> : std::true_type {}; - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // proto_2fsecuregcm_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/proto/securemessage.pb.cc b/third_party/ukey2/compiled_proto/proto/securemessage.pb.cc deleted file mode 100644 index fcc0c213..00000000 --- a/third_party/ukey2/compiled_proto/proto/securemessage.pb.cc +++ /dev/null @@ -1,3031 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: proto/securemessage.proto -// Protobuf C++ Version: 6.33.3 - -#include "proto/securemessage.pb.h" - -#include -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/io/zero_copy_stream_impl_lite.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace securemessage { - -inline constexpr SimpleRsaPublicKey::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - n_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - e_{65537} {} - -template -PROTOBUF_CONSTEXPR SimpleRsaPublicKey::SimpleRsaPublicKey(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(SimpleRsaPublicKey_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct SimpleRsaPublicKeyDefaultTypeInternal { - PROTOBUF_CONSTEXPR SimpleRsaPublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SimpleRsaPublicKeyDefaultTypeInternal() {} - union { - SimpleRsaPublicKey _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SimpleRsaPublicKeyDefaultTypeInternal _SimpleRsaPublicKey_default_instance_; - -inline constexpr SecureMessage::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - header_and_body_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - signature_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR SecureMessage::SecureMessage(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(SecureMessage_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct SecureMessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecureMessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecureMessageDefaultTypeInternal() {} - union { - SecureMessage _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecureMessageDefaultTypeInternal _SecureMessage_default_instance_; - -inline constexpr HeaderAndBodyInternal::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - header_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - body_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR HeaderAndBodyInternal::HeaderAndBodyInternal(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(HeaderAndBodyInternal_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct HeaderAndBodyInternalDefaultTypeInternal { - PROTOBUF_CONSTEXPR HeaderAndBodyInternalDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HeaderAndBodyInternalDefaultTypeInternal() {} - union { - HeaderAndBodyInternal _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderAndBodyInternalDefaultTypeInternal _HeaderAndBodyInternal_default_instance_; - -inline constexpr Header::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - verification_key_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - decryption_key_id_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - iv_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - public_metadata_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - associated_data_length_{0u}, - signature_scheme_{static_cast< ::securemessage::SigScheme >(1)}, - encryption_scheme_{static_cast< ::securemessage::EncScheme >(1)} {} - -template -PROTOBUF_CONSTEXPR Header::Header(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(Header_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct HeaderDefaultTypeInternal { - PROTOBUF_CONSTEXPR HeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HeaderDefaultTypeInternal() {} - union { - Header _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderDefaultTypeInternal _Header_default_instance_; - -inline constexpr EcP256PublicKey::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - x_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - y_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR EcP256PublicKey::EcP256PublicKey(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(EcP256PublicKey_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct EcP256PublicKeyDefaultTypeInternal { - PROTOBUF_CONSTEXPR EcP256PublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EcP256PublicKeyDefaultTypeInternal() {} - union { - EcP256PublicKey _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EcP256PublicKeyDefaultTypeInternal _EcP256PublicKey_default_instance_; - -inline constexpr DhPublicKey::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - y_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR DhPublicKey::DhPublicKey(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(DhPublicKey_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct DhPublicKeyDefaultTypeInternal { - PROTOBUF_CONSTEXPR DhPublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DhPublicKeyDefaultTypeInternal() {} - union { - DhPublicKey _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DhPublicKeyDefaultTypeInternal _DhPublicKey_default_instance_; - -inline constexpr HeaderAndBody::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - body_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - header_{nullptr} {} - -template -PROTOBUF_CONSTEXPR HeaderAndBody::HeaderAndBody(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(HeaderAndBody_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct HeaderAndBodyDefaultTypeInternal { - PROTOBUF_CONSTEXPR HeaderAndBodyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HeaderAndBodyDefaultTypeInternal() {} - union { - HeaderAndBody _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderAndBodyDefaultTypeInternal _HeaderAndBody_default_instance_; - -inline constexpr GenericPublicKey::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - ec_p256_public_key_{nullptr}, - rsa2048_public_key_{nullptr}, - dh2048_public_key_{nullptr}, - type_{static_cast< ::securemessage::PublicKeyType >(1)} {} - -template -PROTOBUF_CONSTEXPR GenericPublicKey::GenericPublicKey(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(GenericPublicKey_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GenericPublicKeyDefaultTypeInternal { - PROTOBUF_CONSTEXPR GenericPublicKeyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GenericPublicKeyDefaultTypeInternal() {} - union { - GenericPublicKey _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GenericPublicKeyDefaultTypeInternal _GenericPublicKey_default_instance_; -} // namespace securemessage -namespace securemessage { -PROTOBUF_CONSTINIT const uint32_t SigScheme_internal_data_[] = { - 196609u, 0u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - SigScheme_strings[3] = {}; - -static const char SigScheme_names[] = { - "ECDSA_P256_SHA256" - "HMAC_SHA256" - "RSA2048_SHA256" -}; - -static const ::google::protobuf::internal::EnumEntry SigScheme_entries[] = { - {{&SigScheme_names[0], 17}, 2}, - {{&SigScheme_names[17], 11}, 1}, - {{&SigScheme_names[28], 14}, 3}, -}; - -static const int SigScheme_entries_by_number[] = { - 1, // 1 -> HMAC_SHA256 - 0, // 2 -> ECDSA_P256_SHA256 - 2, // 3 -> RSA2048_SHA256 -}; - -const ::std::string& SigScheme_Name(SigScheme value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - SigScheme_entries, SigScheme_entries_by_number, 3, - SigScheme_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(SigScheme_entries, - SigScheme_entries_by_number, - 3, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : SigScheme_strings[idx].get(); -} - -bool SigScheme_Parse(::absl::string_view name, SigScheme* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - SigScheme_entries, 3, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -PROTOBUF_CONSTINIT const uint32_t EncScheme_internal_data_[] = { - 131073u, 0u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - EncScheme_strings[2] = {}; - -static const char EncScheme_names[] = { - "AES_256_CBC" - "NONE" -}; - -static const ::google::protobuf::internal::EnumEntry EncScheme_entries[] = { - {{&EncScheme_names[0], 11}, 2}, - {{&EncScheme_names[11], 4}, 1}, -}; - -static const int EncScheme_entries_by_number[] = { - 1, // 1 -> NONE - 0, // 2 -> AES_256_CBC -}; - -const ::std::string& EncScheme_Name(EncScheme value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - EncScheme_entries, EncScheme_entries_by_number, 2, - EncScheme_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(EncScheme_entries, - EncScheme_entries_by_number, - 2, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : EncScheme_strings[idx].get(); -} - -bool EncScheme_Parse(::absl::string_view name, EncScheme* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - EncScheme_entries, 2, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -PROTOBUF_CONSTINIT const uint32_t PublicKeyType_internal_data_[] = { - 196609u, 0u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - PublicKeyType_strings[3] = {}; - -static const char PublicKeyType_names[] = { - "DH2048_MODP" - "EC_P256" - "RSA2048" -}; - -static const ::google::protobuf::internal::EnumEntry PublicKeyType_entries[] = { - {{&PublicKeyType_names[0], 11}, 3}, - {{&PublicKeyType_names[11], 7}, 1}, - {{&PublicKeyType_names[18], 7}, 2}, -}; - -static const int PublicKeyType_entries_by_number[] = { - 1, // 1 -> EC_P256 - 2, // 2 -> RSA2048 - 0, // 3 -> DH2048_MODP -}; - -const ::std::string& PublicKeyType_Name(PublicKeyType value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - PublicKeyType_entries, PublicKeyType_entries_by_number, 3, - PublicKeyType_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(PublicKeyType_entries, - PublicKeyType_entries_by_number, - 3, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : PublicKeyType_strings[idx].get(); -} - -bool PublicKeyType_Parse(::absl::string_view name, PublicKeyType* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - PublicKeyType_entries, 3, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -// =================================================================== - -class SecureMessage::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; - } -}; - -SecureMessage::SecureMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, SecureMessage_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securemessage.SecureMessage) -} -PROTOBUF_NDEBUG_INLINE SecureMessage::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securemessage::SecureMessage& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - header_and_body_(arena, from.header_and_body_), - signature_(arena, from.signature_) {} - -SecureMessage::SecureMessage( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const SecureMessage& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, SecureMessage_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SecureMessage* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:securemessage.SecureMessage) -} -PROTOBUF_NDEBUG_INLINE SecureMessage::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - header_and_body_(arena), - signature_(arena) {} - -inline void SecureMessage::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SecureMessage::~SecureMessage() { - // @@protoc_insertion_point(destructor:securemessage.SecureMessage) - SharedDtor(*this); -} -inline void SecureMessage::SharedDtor(MessageLite& self) { - SecureMessage& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.header_and_body_.Destroy(); - this_._impl_.signature_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL SecureMessage::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecureMessage(arena); -} -constexpr auto SecureMessage::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecureMessage), - alignof(SecureMessage)); -} -constexpr auto SecureMessage::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<28>{ - { - &_SecureMessage_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - SecureMessage::IsInitializedImpl, - &SecureMessage::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecureMessage::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &SecureMessage::ByteSizeLong, - &SecureMessage::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_._cached_size_), - true, - }, - "securemessage.SecureMessage", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<28> SecureMessage_class_data_ = - SecureMessage::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -SecureMessage::GetClassData() const { - return SecureMessage_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> -SecureMessage::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - SecureMessage_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securemessage::SecureMessage>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // required bytes signature = 2; - {::_pbi::TcParser::FastBS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.signature_)}}, - // required bytes header_and_body = 1; - {::_pbi::TcParser::FastBS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.header_and_body_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // required bytes header_and_body = 1; - {PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.header_and_body_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // required bytes signature = 2; - {PROTOBUF_FIELD_OFFSET(SecureMessage, _impl_.signature_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void SecureMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:securemessage.SecureMessage) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.header_and_body_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.signature_.ClearNonDefaultToEmpty(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL SecureMessage::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const SecureMessage& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL SecureMessage::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const SecureMessage& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securemessage.SecureMessage) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // required bytes header_and_body = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_header_and_body(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // required bytes signature = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - const ::std::string& _s = this_._internal_signature(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securemessage.SecureMessage) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t SecureMessage::ByteSizeLong(const MessageLite& base) { - const SecureMessage& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t SecureMessage::ByteSizeLong() const { - const SecureMessage& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securemessage.SecureMessage) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // required bytes header_and_body = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_header_and_body()); - } - // required bytes signature = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_signature()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void SecureMessage::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.SecureMessage) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_header_and_body(from._internal_header_and_body()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_set_signature(from._internal_signature()); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void SecureMessage::CopyFrom(const SecureMessage& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.SecureMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SecureMessage::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - return true; -} - -void SecureMessage::InternalSwap(SecureMessage* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.header_and_body_, &other->_impl_.header_and_body_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.signature_, &other->_impl_.signature_, arena); -} - -// =================================================================== - -class Header::_Internal { - public: - using HasBits = - decltype(::std::declval
()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000060) ^ 0x00000060) != 0; - } -}; - -Header::Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Header_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securemessage.Header) -} -PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securemessage::Header& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - verification_key_id_(arena, from.verification_key_id_), - decryption_key_id_(arena, from.decryption_key_id_), - iv_(arena, from.iv_), - public_metadata_(arena, from.public_metadata_) {} - -Header::Header( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Header& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Header_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Header* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, associated_data_length_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, associated_data_length_), - offsetof(Impl_, encryption_scheme_) - - offsetof(Impl_, associated_data_length_) + - sizeof(Impl_::encryption_scheme_)); - - // @@protoc_insertion_point(copy_constructor:securemessage.Header) -} -PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - verification_key_id_(arena), - decryption_key_id_(arena), - iv_(arena), - public_metadata_(arena), - signature_scheme_{static_cast< ::securemessage::SigScheme >(1)}, - encryption_scheme_{static_cast< ::securemessage::EncScheme >(1)} {} - -inline void Header::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.associated_data_length_ = {}; -} -Header::~Header() { - // @@protoc_insertion_point(destructor:securemessage.Header) - SharedDtor(*this); -} -inline void Header::SharedDtor(MessageLite& self) { - Header& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.verification_key_id_.Destroy(); - this_._impl_.decryption_key_id_.Destroy(); - this_._impl_.iv_.Destroy(); - this_._impl_.public_metadata_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Header::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Header(arena); -} -constexpr auto Header::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Header), - alignof(Header)); -} -constexpr auto Header::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<21>{ - { - &_Header_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - Header::IsInitializedImpl, - &Header::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl
(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Header::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl
(), &Header::ByteSizeLong, - &Header::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Header, _impl_._cached_size_), - true, - }, - "securemessage.Header", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<21> Header_class_data_ = - Header::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Header::GetClassData() const { - return Header_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 7, 2, 0, 2> -Header::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967168, // skipmap - offsetof(decltype(_table_), field_entries), - 7, // num_field_entries - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Header_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securemessage::Header>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - // required .securemessage.SigScheme signature_scheme = 1; - {::_pbi::TcParser::FastEr1S1, - {8, 5, 3, - PROTOBUF_FIELD_OFFSET(Header, _impl_.signature_scheme_)}}, - // required .securemessage.EncScheme encryption_scheme = 2; - {::_pbi::TcParser::FastEr1S1, - {16, 6, 2, - PROTOBUF_FIELD_OFFSET(Header, _impl_.encryption_scheme_)}}, - // optional bytes verification_key_id = 3; - {::_pbi::TcParser::FastBS1, - {26, 0, 0, - PROTOBUF_FIELD_OFFSET(Header, _impl_.verification_key_id_)}}, - // optional bytes decryption_key_id = 4; - {::_pbi::TcParser::FastBS1, - {34, 1, 0, - PROTOBUF_FIELD_OFFSET(Header, _impl_.decryption_key_id_)}}, - // optional bytes iv = 5; - {::_pbi::TcParser::FastBS1, - {42, 2, 0, - PROTOBUF_FIELD_OFFSET(Header, _impl_.iv_)}}, - // optional bytes public_metadata = 6; - {::_pbi::TcParser::FastBS1, - {50, 3, 0, - PROTOBUF_FIELD_OFFSET(Header, _impl_.public_metadata_)}}, - // optional uint32 associated_data_length = 7 [default = 0]; - {::_pbi::TcParser::FastV32S1, - {56, 4, 0, - PROTOBUF_FIELD_OFFSET(Header, _impl_.associated_data_length_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // required .securemessage.SigScheme signature_scheme = 1; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.signature_scheme_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - // required .securemessage.EncScheme encryption_scheme = 2; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.encryption_scheme_), _Internal::kHasBitsOffset + 6, 1, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - // optional bytes verification_key_id = 3; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.verification_key_id_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional bytes decryption_key_id = 4; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.decryption_key_id_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional bytes iv = 5; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.iv_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional bytes public_metadata = 6; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.public_metadata_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional uint32 associated_data_length = 7 [default = 0]; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.associated_data_length_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt32)}, - }}, - {{ - {1, 3}, - {1, 2}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void Header::Clear() { -// @@protoc_insertion_point(message_clear_start:securemessage.Header) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.verification_key_id_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.decryption_key_id_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.iv_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.public_metadata_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000070U)) { - _impl_.associated_data_length_ = 0u; - _impl_.signature_scheme_ = 1; - _impl_.encryption_scheme_ = 1; - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Header& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Header& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securemessage.Header) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // required .securemessage.SigScheme signature_scheme = 1; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this_._internal_signature_scheme(), target); - } - - // required .securemessage.EncScheme encryption_scheme = 2; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this_._internal_encryption_scheme(), target); - } - - // optional bytes verification_key_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_verification_key_id(); - target = stream->WriteBytesMaybeAliased(3, _s, target); - } - - // optional bytes decryption_key_id = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - const ::std::string& _s = this_._internal_decryption_key_id(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - // optional bytes iv = 5; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - const ::std::string& _s = this_._internal_iv(); - target = stream->WriteBytesMaybeAliased(5, _s, target); - } - - // optional bytes public_metadata = 6; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - const ::std::string& _s = this_._internal_public_metadata(); - target = stream->WriteBytesMaybeAliased(6, _s, target); - } - - // optional uint32 associated_data_length = 7 [default = 0]; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray( - 7, this_._internal_associated_data_length(), target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securemessage.Header) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Header::ByteSizeLong(const MessageLite& base) { - const Header& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Header::ByteSizeLong() const { - const Header& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securemessage.Header) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - // optional bytes verification_key_id = 3; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_verification_key_id()); - } - // optional bytes decryption_key_id = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_decryption_key_id()); - } - // optional bytes iv = 5; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_iv()); - } - // optional bytes public_metadata = 6; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_public_metadata()); - } - // optional uint32 associated_data_length = 7 [default = 0]; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne( - this_._internal_associated_data_length()); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000060U)) { - // required .securemessage.SigScheme signature_scheme = 1; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_signature_scheme()); - } - // required .securemessage.EncScheme encryption_scheme = 2; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_encryption_scheme()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.Header) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_verification_key_id(from._internal_verification_key_id()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_set_decryption_key_id(from._internal_decryption_key_id()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_internal_set_iv(from._internal_iv()); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_internal_set_public_metadata(from._internal_public_metadata()); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - _this->_impl_.associated_data_length_ = from._impl_.associated_data_length_; - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - _this->_impl_.signature_scheme_ = from._impl_.signature_scheme_; - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - _this->_impl_.encryption_scheme_ = from._impl_.encryption_scheme_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void Header::CopyFrom(const Header& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.Header) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool Header::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - return true; -} - -void Header::InternalSwap(Header* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.verification_key_id_, &other->_impl_.verification_key_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.decryption_key_id_, &other->_impl_.decryption_key_id_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.iv_, &other->_impl_.iv_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_metadata_, &other->_impl_.public_metadata_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Header, _impl_.encryption_scheme_) - + sizeof(Header::_impl_.encryption_scheme_) - - PROTOBUF_FIELD_OFFSET(Header, _impl_.associated_data_length_)>( - reinterpret_cast(&_impl_.associated_data_length_), - reinterpret_cast(&other->_impl_.associated_data_length_)); -} - -// =================================================================== - -class HeaderAndBody::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; - } -}; - -HeaderAndBody::HeaderAndBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, HeaderAndBody_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securemessage.HeaderAndBody) -} -PROTOBUF_NDEBUG_INLINE HeaderAndBody::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securemessage::HeaderAndBody& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - body_(arena, from.body_) {} - -HeaderAndBody::HeaderAndBody( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const HeaderAndBody& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, HeaderAndBody_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - HeaderAndBody* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.header_ = (CheckHasBit(cached_has_bits, 0x00000002U)) - ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.header_) - : nullptr; - - // @@protoc_insertion_point(copy_constructor:securemessage.HeaderAndBody) -} -PROTOBUF_NDEBUG_INLINE HeaderAndBody::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - body_(arena) {} - -inline void HeaderAndBody::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.header_ = {}; -} -HeaderAndBody::~HeaderAndBody() { - // @@protoc_insertion_point(destructor:securemessage.HeaderAndBody) - SharedDtor(*this); -} -inline void HeaderAndBody::SharedDtor(MessageLite& self) { - HeaderAndBody& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.body_.Destroy(); - delete this_._impl_.header_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL HeaderAndBody::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) HeaderAndBody(arena); -} -constexpr auto HeaderAndBody::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(HeaderAndBody), - alignof(HeaderAndBody)); -} -constexpr auto HeaderAndBody::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<28>{ - { - &_HeaderAndBody_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - HeaderAndBody::IsInitializedImpl, - &HeaderAndBody::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &HeaderAndBody::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &HeaderAndBody::ByteSizeLong, - &HeaderAndBody::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_._cached_size_), - true, - }, - "securemessage.HeaderAndBody", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<28> HeaderAndBody_class_data_ = - HeaderAndBody::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -HeaderAndBody::GetClassData() const { - return HeaderAndBody_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> -HeaderAndBody::_table_ = { - { - PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - HeaderAndBody_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securemessage::HeaderAndBody>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // required bytes body = 2; - {::_pbi::TcParser::FastBS1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.body_)}}, - // required .securemessage.Header header = 1; - {::_pbi::TcParser::FastMtS1, - {10, 1, 0, - PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.header_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // required .securemessage.Header header = 1; - {PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.header_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // required bytes body = 2; - {PROTOBUF_FIELD_OFFSET(HeaderAndBody, _impl_.body_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::securemessage::Header>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void HeaderAndBody::Clear() { -// @@protoc_insertion_point(message_clear_start:securemessage.HeaderAndBody) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.body_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - ABSL_DCHECK(_impl_.header_ != nullptr); - _impl_.header_->Clear(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL HeaderAndBody::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const HeaderAndBody& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL HeaderAndBody::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const HeaderAndBody& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securemessage.HeaderAndBody) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // required .securemessage.Header header = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, *this_._impl_.header_, this_._impl_.header_->GetCachedSize(), target, - stream); - } - - // required bytes body = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_body(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securemessage.HeaderAndBody) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t HeaderAndBody::ByteSizeLong(const MessageLite& base) { - const HeaderAndBody& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t HeaderAndBody::ByteSizeLong() const { - const HeaderAndBody& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securemessage.HeaderAndBody) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // required bytes body = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_body()); - } - // required .securemessage.Header header = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.header_); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void HeaderAndBody::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.HeaderAndBody) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_body(from._internal_body()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - ABSL_DCHECK(from._impl_.header_ != nullptr); - if (_this->_impl_.header_ == nullptr) { - _this->_impl_.header_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.header_); - } else { - _this->_impl_.header_->MergeFrom(*from._impl_.header_); - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void HeaderAndBody::CopyFrom(const HeaderAndBody& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.HeaderAndBody) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool HeaderAndBody::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000002U)) { - if (!this_._impl_.header_->IsInitialized()) return false; - } - return true; -} - -void HeaderAndBody::InternalSwap(HeaderAndBody* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_, &other->_impl_.body_, arena); - swap(_impl_.header_, other->_impl_.header_); -} - -// =================================================================== - -class HeaderAndBodyInternal::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; - } -}; - -HeaderAndBodyInternal::HeaderAndBodyInternal(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, HeaderAndBodyInternal_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securemessage.HeaderAndBodyInternal) -} -PROTOBUF_NDEBUG_INLINE HeaderAndBodyInternal::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securemessage::HeaderAndBodyInternal& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - header_(arena, from.header_), - body_(arena, from.body_) {} - -HeaderAndBodyInternal::HeaderAndBodyInternal( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const HeaderAndBodyInternal& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, HeaderAndBodyInternal_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - HeaderAndBodyInternal* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:securemessage.HeaderAndBodyInternal) -} -PROTOBUF_NDEBUG_INLINE HeaderAndBodyInternal::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - header_(arena), - body_(arena) {} - -inline void HeaderAndBodyInternal::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -HeaderAndBodyInternal::~HeaderAndBodyInternal() { - // @@protoc_insertion_point(destructor:securemessage.HeaderAndBodyInternal) - SharedDtor(*this); -} -inline void HeaderAndBodyInternal::SharedDtor(MessageLite& self) { - HeaderAndBodyInternal& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.header_.Destroy(); - this_._impl_.body_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL HeaderAndBodyInternal::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) HeaderAndBodyInternal(arena); -} -constexpr auto HeaderAndBodyInternal::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(HeaderAndBodyInternal), - alignof(HeaderAndBodyInternal)); -} -constexpr auto HeaderAndBodyInternal::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<36>{ - { - &_HeaderAndBodyInternal_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - HeaderAndBodyInternal::IsInitializedImpl, - &HeaderAndBodyInternal::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &HeaderAndBodyInternal::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &HeaderAndBodyInternal::ByteSizeLong, - &HeaderAndBodyInternal::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_._cached_size_), - true, - }, - "securemessage.HeaderAndBodyInternal", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<36> HeaderAndBodyInternal_class_data_ = - HeaderAndBodyInternal::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -HeaderAndBodyInternal::GetClassData() const { - return HeaderAndBodyInternal_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> -HeaderAndBodyInternal::_table_ = { - { - PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - HeaderAndBodyInternal_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securemessage::HeaderAndBodyInternal>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // required bytes body = 2; - {::_pbi::TcParser::FastBS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.body_)}}, - // required bytes header = 1; - {::_pbi::TcParser::FastBS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.header_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // required bytes header = 1; - {PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.header_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // required bytes body = 2; - {PROTOBUF_FIELD_OFFSET(HeaderAndBodyInternal, _impl_.body_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void HeaderAndBodyInternal::Clear() { -// @@protoc_insertion_point(message_clear_start:securemessage.HeaderAndBodyInternal) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.header_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.body_.ClearNonDefaultToEmpty(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL HeaderAndBodyInternal::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const HeaderAndBodyInternal& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL HeaderAndBodyInternal::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const HeaderAndBodyInternal& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securemessage.HeaderAndBodyInternal) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // required bytes header = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_header(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // required bytes body = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - const ::std::string& _s = this_._internal_body(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securemessage.HeaderAndBodyInternal) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t HeaderAndBodyInternal::ByteSizeLong(const MessageLite& base) { - const HeaderAndBodyInternal& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t HeaderAndBodyInternal::ByteSizeLong() const { - const HeaderAndBodyInternal& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securemessage.HeaderAndBodyInternal) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // required bytes header = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_header()); - } - // required bytes body = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_body()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void HeaderAndBodyInternal::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.HeaderAndBodyInternal) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_header(from._internal_header()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_set_body(from._internal_body()); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void HeaderAndBodyInternal::CopyFrom(const HeaderAndBodyInternal& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.HeaderAndBodyInternal) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool HeaderAndBodyInternal::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - return true; -} - -void HeaderAndBodyInternal::InternalSwap(HeaderAndBodyInternal* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.header_, &other->_impl_.header_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.body_, &other->_impl_.body_, arena); -} - -// =================================================================== - -class EcP256PublicKey::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000003) ^ 0x00000003) != 0; - } -}; - -EcP256PublicKey::EcP256PublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, EcP256PublicKey_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securemessage.EcP256PublicKey) -} -PROTOBUF_NDEBUG_INLINE EcP256PublicKey::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securemessage::EcP256PublicKey& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - x_(arena, from.x_), - y_(arena, from.y_) {} - -EcP256PublicKey::EcP256PublicKey( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const EcP256PublicKey& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, EcP256PublicKey_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - EcP256PublicKey* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:securemessage.EcP256PublicKey) -} -PROTOBUF_NDEBUG_INLINE EcP256PublicKey::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - x_(arena), - y_(arena) {} - -inline void EcP256PublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -EcP256PublicKey::~EcP256PublicKey() { - // @@protoc_insertion_point(destructor:securemessage.EcP256PublicKey) - SharedDtor(*this); -} -inline void EcP256PublicKey::SharedDtor(MessageLite& self) { - EcP256PublicKey& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.x_.Destroy(); - this_._impl_.y_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL EcP256PublicKey::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) EcP256PublicKey(arena); -} -constexpr auto EcP256PublicKey::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(EcP256PublicKey), - alignof(EcP256PublicKey)); -} -constexpr auto EcP256PublicKey::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<30>{ - { - &_EcP256PublicKey_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - EcP256PublicKey::IsInitializedImpl, - &EcP256PublicKey::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &EcP256PublicKey::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &EcP256PublicKey::ByteSizeLong, - &EcP256PublicKey::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_._cached_size_), - true, - }, - "securemessage.EcP256PublicKey", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<30> EcP256PublicKey_class_data_ = - EcP256PublicKey::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -EcP256PublicKey::GetClassData() const { - return EcP256PublicKey_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> -EcP256PublicKey::_table_ = { - { - PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - EcP256PublicKey_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securemessage::EcP256PublicKey>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // required bytes y = 2; - {::_pbi::TcParser::FastBS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.y_)}}, - // required bytes x = 1; - {::_pbi::TcParser::FastBS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.x_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // required bytes x = 1; - {PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.x_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // required bytes y = 2; - {PROTOBUF_FIELD_OFFSET(EcP256PublicKey, _impl_.y_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void EcP256PublicKey::Clear() { -// @@protoc_insertion_point(message_clear_start:securemessage.EcP256PublicKey) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.x_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.y_.ClearNonDefaultToEmpty(); - } - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL EcP256PublicKey::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const EcP256PublicKey& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL EcP256PublicKey::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const EcP256PublicKey& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securemessage.EcP256PublicKey) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // required bytes x = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_x(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // required bytes y = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - const ::std::string& _s = this_._internal_y(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securemessage.EcP256PublicKey) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t EcP256PublicKey::ByteSizeLong(const MessageLite& base) { - const EcP256PublicKey& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t EcP256PublicKey::ByteSizeLong() const { - const EcP256PublicKey& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securemessage.EcP256PublicKey) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // required bytes x = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_x()); - } - // required bytes y = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_y()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void EcP256PublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.EcP256PublicKey) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_x(from._internal_x()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_set_y(from._internal_y()); - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void EcP256PublicKey::CopyFrom(const EcP256PublicKey& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.EcP256PublicKey) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool EcP256PublicKey::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - return true; -} - -void EcP256PublicKey::InternalSwap(EcP256PublicKey* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.x_, &other->_impl_.x_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.y_, &other->_impl_.y_, arena); -} - -// =================================================================== - -class SimpleRsaPublicKey::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; - } -}; - -SimpleRsaPublicKey::SimpleRsaPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, SimpleRsaPublicKey_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securemessage.SimpleRsaPublicKey) -} -PROTOBUF_NDEBUG_INLINE SimpleRsaPublicKey::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securemessage::SimpleRsaPublicKey& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - n_(arena, from.n_) {} - -SimpleRsaPublicKey::SimpleRsaPublicKey( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const SimpleRsaPublicKey& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, SimpleRsaPublicKey_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SimpleRsaPublicKey* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.e_ = from._impl_.e_; - - // @@protoc_insertion_point(copy_constructor:securemessage.SimpleRsaPublicKey) -} -PROTOBUF_NDEBUG_INLINE SimpleRsaPublicKey::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - n_(arena), - e_{65537} {} - -inline void SimpleRsaPublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -SimpleRsaPublicKey::~SimpleRsaPublicKey() { - // @@protoc_insertion_point(destructor:securemessage.SimpleRsaPublicKey) - SharedDtor(*this); -} -inline void SimpleRsaPublicKey::SharedDtor(MessageLite& self) { - SimpleRsaPublicKey& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.n_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL SimpleRsaPublicKey::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SimpleRsaPublicKey(arena); -} -constexpr auto SimpleRsaPublicKey::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SimpleRsaPublicKey), - alignof(SimpleRsaPublicKey)); -} -constexpr auto SimpleRsaPublicKey::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<33>{ - { - &_SimpleRsaPublicKey_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - SimpleRsaPublicKey::IsInitializedImpl, - &SimpleRsaPublicKey::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SimpleRsaPublicKey::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &SimpleRsaPublicKey::ByteSizeLong, - &SimpleRsaPublicKey::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_._cached_size_), - true, - }, - "securemessage.SimpleRsaPublicKey", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<33> SimpleRsaPublicKey_class_data_ = - SimpleRsaPublicKey::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -SimpleRsaPublicKey::GetClassData() const { - return SimpleRsaPublicKey_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> -SimpleRsaPublicKey::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - SimpleRsaPublicKey_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securemessage::SimpleRsaPublicKey>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional int32 e = 2 [default = 65537]; - {::_pbi::TcParser::FastV32S1, - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.e_)}}, - // required bytes n = 1; - {::_pbi::TcParser::FastBS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.n_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // required bytes n = 1; - {PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.n_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional int32 e = 2 [default = 65537]; - {PROTOBUF_FIELD_OFFSET(SimpleRsaPublicKey, _impl_.e_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void SimpleRsaPublicKey::Clear() { -// @@protoc_insertion_point(message_clear_start:securemessage.SimpleRsaPublicKey) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.n_.ClearNonDefaultToEmpty(); - } - _impl_.e_ = 65537; - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL SimpleRsaPublicKey::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const SimpleRsaPublicKey& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL SimpleRsaPublicKey::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const SimpleRsaPublicKey& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securemessage.SimpleRsaPublicKey) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // required bytes n = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_n(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - // optional int32 e = 2 [default = 65537]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_e(), target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securemessage.SimpleRsaPublicKey) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t SimpleRsaPublicKey::ByteSizeLong(const MessageLite& base) { - const SimpleRsaPublicKey& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t SimpleRsaPublicKey::ByteSizeLong() const { - const SimpleRsaPublicKey& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securemessage.SimpleRsaPublicKey) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // required bytes n = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_n()); - } - } - { - // optional int32 e = 2 [default = 65537]; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_e()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void SimpleRsaPublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.SimpleRsaPublicKey) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_n(from._internal_n()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_impl_.e_ = from._impl_.e_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void SimpleRsaPublicKey::CopyFrom(const SimpleRsaPublicKey& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.SimpleRsaPublicKey) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool SimpleRsaPublicKey::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - return true; -} - -void SimpleRsaPublicKey::InternalSwap(SimpleRsaPublicKey* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.n_, &other->_impl_.n_, arena); - swap(_impl_.e_, other->_impl_.e_); -} - -// =================================================================== - -class DhPublicKey::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0; - } -}; - -DhPublicKey::DhPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, DhPublicKey_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securemessage.DhPublicKey) -} -PROTOBUF_NDEBUG_INLINE DhPublicKey::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securemessage::DhPublicKey& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - y_(arena, from.y_) {} - -DhPublicKey::DhPublicKey( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const DhPublicKey& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, DhPublicKey_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - DhPublicKey* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:securemessage.DhPublicKey) -} -PROTOBUF_NDEBUG_INLINE DhPublicKey::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - y_(arena) {} - -inline void DhPublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -DhPublicKey::~DhPublicKey() { - // @@protoc_insertion_point(destructor:securemessage.DhPublicKey) - SharedDtor(*this); -} -inline void DhPublicKey::SharedDtor(MessageLite& self) { - DhPublicKey& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.y_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL DhPublicKey::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) DhPublicKey(arena); -} -constexpr auto DhPublicKey::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(DhPublicKey), - alignof(DhPublicKey)); -} -constexpr auto DhPublicKey::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<26>{ - { - &_DhPublicKey_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - DhPublicKey::IsInitializedImpl, - &DhPublicKey::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &DhPublicKey::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &DhPublicKey::ByteSizeLong, - &DhPublicKey::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_._cached_size_), - true, - }, - "securemessage.DhPublicKey", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<26> DhPublicKey_class_data_ = - DhPublicKey::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -DhPublicKey::GetClassData() const { - return DhPublicKey_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> -DhPublicKey::_table_ = { - { - PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - DhPublicKey_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securemessage::DhPublicKey>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // required bytes y = 1; - {::_pbi::TcParser::FastBS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_.y_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // required bytes y = 1; - {PROTOBUF_FIELD_OFFSET(DhPublicKey, _impl_.y_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void DhPublicKey::Clear() { -// @@protoc_insertion_point(message_clear_start:securemessage.DhPublicKey) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.y_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL DhPublicKey::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const DhPublicKey& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL DhPublicKey::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const DhPublicKey& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securemessage.DhPublicKey) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // required bytes y = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_y(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securemessage.DhPublicKey) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t DhPublicKey::ByteSizeLong(const MessageLite& base) { - const DhPublicKey& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t DhPublicKey::ByteSizeLong() const { - const DhPublicKey& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securemessage.DhPublicKey) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // required bytes y = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_y()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void DhPublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.DhPublicKey) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_y(from._internal_y()); - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void DhPublicKey::CopyFrom(const DhPublicKey& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.DhPublicKey) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool DhPublicKey::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - return true; -} - -void DhPublicKey::InternalSwap(DhPublicKey* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.y_, &other->_impl_.y_, arena); -} - -// =================================================================== - -class GenericPublicKey::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_._has_bits_); - static bool MissingRequiredFields(const HasBits& has_bits) { - return ((has_bits[0] & 0x00000008) ^ 0x00000008) != 0; - } -}; - -GenericPublicKey::GenericPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, GenericPublicKey_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securemessage.GenericPublicKey) -} -PROTOBUF_NDEBUG_INLINE GenericPublicKey::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securemessage::GenericPublicKey& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0} {} - -GenericPublicKey::GenericPublicKey( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GenericPublicKey& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, GenericPublicKey_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - GenericPublicKey* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.ec_p256_public_key_ = (CheckHasBit(cached_has_bits, 0x00000001U)) - ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_p256_public_key_) - : nullptr; - _impl_.rsa2048_public_key_ = (CheckHasBit(cached_has_bits, 0x00000002U)) - ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rsa2048_public_key_) - : nullptr; - _impl_.dh2048_public_key_ = (CheckHasBit(cached_has_bits, 0x00000004U)) - ? ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dh2048_public_key_) - : nullptr; - _impl_.type_ = from._impl_.type_; - - // @@protoc_insertion_point(copy_constructor:securemessage.GenericPublicKey) -} -PROTOBUF_NDEBUG_INLINE GenericPublicKey::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - type_{static_cast< ::securemessage::PublicKeyType >(1)} {} - -inline void GenericPublicKey::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, ec_p256_public_key_), - 0, - offsetof(Impl_, dh2048_public_key_) - - offsetof(Impl_, ec_p256_public_key_) + - sizeof(Impl_::dh2048_public_key_)); -} -GenericPublicKey::~GenericPublicKey() { - // @@protoc_insertion_point(destructor:securemessage.GenericPublicKey) - SharedDtor(*this); -} -inline void GenericPublicKey::SharedDtor(MessageLite& self) { - GenericPublicKey& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - delete this_._impl_.ec_p256_public_key_; - delete this_._impl_.rsa2048_public_key_; - delete this_._impl_.dh2048_public_key_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL GenericPublicKey::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GenericPublicKey(arena); -} -constexpr auto GenericPublicKey::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GenericPublicKey), - alignof(GenericPublicKey)); -} -constexpr auto GenericPublicKey::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<31>{ - { - &_GenericPublicKey_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - GenericPublicKey::IsInitializedImpl, - &GenericPublicKey::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GenericPublicKey::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &GenericPublicKey::ByteSizeLong, - &GenericPublicKey::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_._cached_size_), - true, - }, - "securemessage.GenericPublicKey", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<31> GenericPublicKey_class_data_ = - GenericPublicKey::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GenericPublicKey::GetClassData() const { - return GenericPublicKey_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 4, 0, 2> -GenericPublicKey::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 4, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - GenericPublicKey_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securemessage::GenericPublicKey>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional .securemessage.DhPublicKey dh2048_public_key = 4; - {::_pbi::TcParser::FastMtS1, - {34, 2, 2, - PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.dh2048_public_key_)}}, - // required .securemessage.PublicKeyType type = 1; - {::_pbi::TcParser::FastEr1S1, - {8, 3, 3, - PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.type_)}}, - // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; - {::_pbi::TcParser::FastMtS1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.ec_p256_public_key_)}}, - // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; - {::_pbi::TcParser::FastMtS1, - {26, 1, 1, - PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.rsa2048_public_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // required .securemessage.PublicKeyType type = 1; - {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.type_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; - {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.ec_p256_public_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; - {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.rsa2048_public_key_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional .securemessage.DhPublicKey dh2048_public_key = 4; - {PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.dh2048_public_key_), _Internal::kHasBitsOffset + 2, 2, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::securemessage::EcP256PublicKey>()}, - {::_pbi::TcParser::GetTable<::securemessage::SimpleRsaPublicKey>()}, - {::_pbi::TcParser::GetTable<::securemessage::DhPublicKey>()}, - {1, 3}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void GenericPublicKey::Clear() { -// @@protoc_insertion_point(message_clear_start:securemessage.GenericPublicKey) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(_impl_.ec_p256_public_key_ != nullptr); - _impl_.ec_p256_public_key_->Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - ABSL_DCHECK(_impl_.rsa2048_public_key_ != nullptr); - _impl_.rsa2048_public_key_->Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - ABSL_DCHECK(_impl_.dh2048_public_key_ != nullptr); - _impl_.dh2048_public_key_->Clear(); - } - _impl_.type_ = 1; - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GenericPublicKey::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GenericPublicKey& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GenericPublicKey::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GenericPublicKey& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securemessage.GenericPublicKey) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // required .securemessage.PublicKeyType type = 1; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this_._internal_type(), target); - } - - // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 2, *this_._impl_.ec_p256_public_key_, this_._impl_.ec_p256_public_key_->GetCachedSize(), target, - stream); - } - - // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, *this_._impl_.rsa2048_public_key_, this_._impl_.rsa2048_public_key_->GetCachedSize(), target, - stream); - } - - // optional .securemessage.DhPublicKey dh2048_public_key = 4; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.dh2048_public_key_, this_._impl_.dh2048_public_key_->GetCachedSize(), target, - stream); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securemessage.GenericPublicKey) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GenericPublicKey::ByteSizeLong(const MessageLite& base) { - const GenericPublicKey& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GenericPublicKey::ByteSizeLong() const { - const GenericPublicKey& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securemessage.GenericPublicKey) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.ec_p256_public_key_); - } - // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.rsa2048_public_key_); - } - // optional .securemessage.DhPublicKey dh2048_public_key = 4; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.dh2048_public_key_); - } - } - { - // required .securemessage.PublicKeyType type = 1; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void GenericPublicKey::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:securemessage.GenericPublicKey) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - ABSL_DCHECK(from._impl_.ec_p256_public_key_ != nullptr); - if (_this->_impl_.ec_p256_public_key_ == nullptr) { - _this->_impl_.ec_p256_public_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.ec_p256_public_key_); - } else { - _this->_impl_.ec_p256_public_key_->MergeFrom(*from._impl_.ec_p256_public_key_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - ABSL_DCHECK(from._impl_.rsa2048_public_key_ != nullptr); - if (_this->_impl_.rsa2048_public_key_ == nullptr) { - _this->_impl_.rsa2048_public_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.rsa2048_public_key_); - } else { - _this->_impl_.rsa2048_public_key_->MergeFrom(*from._impl_.rsa2048_public_key_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - ABSL_DCHECK(from._impl_.dh2048_public_key_ != nullptr); - if (_this->_impl_.dh2048_public_key_ == nullptr) { - _this->_impl_.dh2048_public_key_ = ::google::protobuf::MessageLite::CopyConstruct(arena, *from._impl_.dh2048_public_key_); - } else { - _this->_impl_.dh2048_public_key_->MergeFrom(*from._impl_.dh2048_public_key_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_impl_.type_ = from._impl_.type_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void GenericPublicKey::CopyFrom(const GenericPublicKey& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securemessage.GenericPublicKey) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -PROTOBUF_NOINLINE bool GenericPublicKey::IsInitializedImpl( - const MessageLite& msg) { - auto& this_ = static_cast(msg); - if (_Internal::MissingRequiredFields(this_._impl_._has_bits_)) { - return false; - } - if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000001U)) { - if (!this_._impl_.ec_p256_public_key_->IsInitialized()) return false; - } - if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000002U)) { - if (!this_._impl_.rsa2048_public_key_->IsInitialized()) return false; - } - if (CheckHasBit(this_._impl_._has_bits_[0], 0x00000004U)) { - if (!this_._impl_.dh2048_public_key_->IsInitialized()) return false; - } - return true; -} - -void GenericPublicKey::InternalSwap(GenericPublicKey* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.type_) - + sizeof(GenericPublicKey::_impl_.type_) - - PROTOBUF_FIELD_OFFSET(GenericPublicKey, _impl_.ec_p256_public_key_)>( - reinterpret_cast(&_impl_.ec_p256_public_key_), - reinterpret_cast(&other->_impl_.ec_p256_public_key_)); -} - -// @@protoc_insertion_point(namespace_scope) -} // namespace securemessage -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/proto/securemessage.pb.h b/third_party/ukey2/compiled_proto/proto/securemessage.pb.h deleted file mode 100644 index 0cf34d7d..00000000 --- a/third_party/ukey2/compiled_proto/proto/securemessage.pb.h +++ /dev/null @@ -1,3435 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: proto/securemessage.proto -// Protobuf C++ Version: 6.33.3 - -#ifndef proto_2fsecuremessage_2eproto_2epb_2eh -#define proto_2fsecuremessage_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6033003 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/message_lite.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_util.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_proto_2fsecuremessage_2eproto - -namespace google { -namespace protobuf { -namespace internal { -template -::absl::string_view GetAnyMessageName(); -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fsecuremessage_2eproto { - static const ::uint32_t offsets[]; -}; -namespace securemessage { -enum EncScheme : int; -extern const uint32_t EncScheme_internal_data_[]; -enum PublicKeyType : int; -extern const uint32_t PublicKeyType_internal_data_[]; -enum SigScheme : int; -extern const uint32_t SigScheme_internal_data_[]; -class DhPublicKey; -struct DhPublicKeyDefaultTypeInternal; -extern DhPublicKeyDefaultTypeInternal _DhPublicKey_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<26> DhPublicKey_class_data_; -class EcP256PublicKey; -struct EcP256PublicKeyDefaultTypeInternal; -extern EcP256PublicKeyDefaultTypeInternal _EcP256PublicKey_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<30> EcP256PublicKey_class_data_; -class GenericPublicKey; -struct GenericPublicKeyDefaultTypeInternal; -extern GenericPublicKeyDefaultTypeInternal _GenericPublicKey_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<31> GenericPublicKey_class_data_; -class Header; -struct HeaderDefaultTypeInternal; -extern HeaderDefaultTypeInternal _Header_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<21> Header_class_data_; -class HeaderAndBody; -struct HeaderAndBodyDefaultTypeInternal; -extern HeaderAndBodyDefaultTypeInternal _HeaderAndBody_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<28> HeaderAndBody_class_data_; -class HeaderAndBodyInternal; -struct HeaderAndBodyInternalDefaultTypeInternal; -extern HeaderAndBodyInternalDefaultTypeInternal _HeaderAndBodyInternal_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<36> HeaderAndBodyInternal_class_data_; -class SecureMessage; -struct SecureMessageDefaultTypeInternal; -extern SecureMessageDefaultTypeInternal _SecureMessage_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<28> SecureMessage_class_data_; -class SimpleRsaPublicKey; -struct SimpleRsaPublicKeyDefaultTypeInternal; -extern SimpleRsaPublicKeyDefaultTypeInternal _SimpleRsaPublicKey_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<33> SimpleRsaPublicKey_class_data_; -} // namespace securemessage -namespace google { -namespace protobuf { -template <> -internal::EnumTraitsT<::securemessage::EncScheme_internal_data_> - internal::EnumTraitsImpl::value<::securemessage::EncScheme>; -template <> -internal::EnumTraitsT<::securemessage::PublicKeyType_internal_data_> - internal::EnumTraitsImpl::value<::securemessage::PublicKeyType>; -template <> -internal::EnumTraitsT<::securemessage::SigScheme_internal_data_> - internal::EnumTraitsImpl::value<::securemessage::SigScheme>; -} // namespace protobuf -} // namespace google - -namespace securemessage { -enum SigScheme : int { - HMAC_SHA256 = 1, - ECDSA_P256_SHA256 = 2, - RSA2048_SHA256 = 3, -}; - -extern const uint32_t SigScheme_internal_data_[]; -inline constexpr SigScheme SigScheme_MIN = - static_cast(1); -inline constexpr SigScheme SigScheme_MAX = - static_cast(3); -inline bool SigScheme_IsValid(int value) { - return 1 <= value && value <= 3; -} -inline constexpr int SigScheme_ARRAYSIZE = 3 + 1; -const ::std::string& SigScheme_Name(SigScheme value); -template -const ::std::string& SigScheme_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to SigScheme_Name()."); - return SigScheme_Name(static_cast(value)); -} -bool SigScheme_Parse( - ::absl::string_view name, SigScheme* PROTOBUF_NONNULL value); -enum EncScheme : int { - NONE = 1, - AES_256_CBC = 2, -}; - -extern const uint32_t EncScheme_internal_data_[]; -inline constexpr EncScheme EncScheme_MIN = - static_cast(1); -inline constexpr EncScheme EncScheme_MAX = - static_cast(2); -inline bool EncScheme_IsValid(int value) { - return 1 <= value && value <= 2; -} -inline constexpr int EncScheme_ARRAYSIZE = 2 + 1; -const ::std::string& EncScheme_Name(EncScheme value); -template -const ::std::string& EncScheme_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to EncScheme_Name()."); - return EncScheme_Name(static_cast(value)); -} -bool EncScheme_Parse( - ::absl::string_view name, EncScheme* PROTOBUF_NONNULL value); -enum PublicKeyType : int { - EC_P256 = 1, - RSA2048 = 2, - DH2048_MODP = 3, -}; - -extern const uint32_t PublicKeyType_internal_data_[]; -inline constexpr PublicKeyType PublicKeyType_MIN = - static_cast(1); -inline constexpr PublicKeyType PublicKeyType_MAX = - static_cast(3); -inline bool PublicKeyType_IsValid(int value) { - return 1 <= value && value <= 3; -} -inline constexpr int PublicKeyType_ARRAYSIZE = 3 + 1; -const ::std::string& PublicKeyType_Name(PublicKeyType value); -template -const ::std::string& PublicKeyType_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to PublicKeyType_Name()."); - return PublicKeyType_Name(static_cast(value)); -} -bool PublicKeyType_Parse( - ::absl::string_view name, PublicKeyType* PROTOBUF_NONNULL value); - -// =================================================================== - - -// ------------------------------------------------------------------- - -class SimpleRsaPublicKey final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securemessage.SimpleRsaPublicKey) */ { - public: - inline SimpleRsaPublicKey() : SimpleRsaPublicKey(nullptr) {} - ~SimpleRsaPublicKey() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SimpleRsaPublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(SimpleRsaPublicKey)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR SimpleRsaPublicKey(::google::protobuf::internal::ConstantInitialized); - - inline SimpleRsaPublicKey(const SimpleRsaPublicKey& from) : SimpleRsaPublicKey(nullptr, from) {} - inline SimpleRsaPublicKey(SimpleRsaPublicKey&& from) noexcept - : SimpleRsaPublicKey(nullptr, ::std::move(from)) {} - inline SimpleRsaPublicKey& operator=(const SimpleRsaPublicKey& from) { - CopyFrom(from); - return *this; - } - inline SimpleRsaPublicKey& operator=(SimpleRsaPublicKey&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const SimpleRsaPublicKey& default_instance() { - return *reinterpret_cast( - &_SimpleRsaPublicKey_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(SimpleRsaPublicKey& a, SimpleRsaPublicKey& b) { a.Swap(&b); } - inline void Swap(SimpleRsaPublicKey* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SimpleRsaPublicKey* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SimpleRsaPublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const SimpleRsaPublicKey& from); - void MergeFrom(const SimpleRsaPublicKey& from) { SimpleRsaPublicKey::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(SimpleRsaPublicKey* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securemessage.SimpleRsaPublicKey"; } - - explicit SimpleRsaPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - SimpleRsaPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SimpleRsaPublicKey& from); - SimpleRsaPublicKey( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SimpleRsaPublicKey&& from) noexcept - : SimpleRsaPublicKey(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kNFieldNumber = 1, - kEFieldNumber = 2, - }; - // required bytes n = 1; - bool has_n() const; - void clear_n() ; - const ::std::string& n() const; - template - void set_n(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_n(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_n(); - void set_allocated_n(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_n() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_n(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_n(); - - public: - // optional int32 e = 2 [default = 65537]; - bool has_e() const; - void clear_e() ; - ::int32_t e() const; - void set_e(::int32_t value); - - private: - ::int32_t _internal_e() const; - void _internal_set_e(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:securemessage.SimpleRsaPublicKey) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const SimpleRsaPublicKey& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr n_; - ::int32_t e_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<33> SimpleRsaPublicKey_class_data_; -// ------------------------------------------------------------------- - -class SecureMessage final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securemessage.SecureMessage) */ { - public: - inline SecureMessage() : SecureMessage(nullptr) {} - ~SecureMessage() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SecureMessage* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(SecureMessage)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR SecureMessage(::google::protobuf::internal::ConstantInitialized); - - inline SecureMessage(const SecureMessage& from) : SecureMessage(nullptr, from) {} - inline SecureMessage(SecureMessage&& from) noexcept - : SecureMessage(nullptr, ::std::move(from)) {} - inline SecureMessage& operator=(const SecureMessage& from) { - CopyFrom(from); - return *this; - } - inline SecureMessage& operator=(SecureMessage&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const SecureMessage& default_instance() { - return *reinterpret_cast( - &_SecureMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(SecureMessage& a, SecureMessage& b) { a.Swap(&b); } - inline void Swap(SecureMessage* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(SecureMessage* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SecureMessage* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const SecureMessage& from); - void MergeFrom(const SecureMessage& from) { SecureMessage::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(SecureMessage* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securemessage.SecureMessage"; } - - explicit SecureMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - SecureMessage(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecureMessage& from); - SecureMessage( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, SecureMessage&& from) noexcept - : SecureMessage(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHeaderAndBodyFieldNumber = 1, - kSignatureFieldNumber = 2, - }; - // required bytes header_and_body = 1; - bool has_header_and_body() const; - void clear_header_and_body() ; - const ::std::string& header_and_body() const; - template - void set_header_and_body(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_header_and_body(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_header_and_body(); - void set_allocated_header_and_body(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_header_and_body() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_header_and_body(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_header_and_body(); - - public: - // required bytes signature = 2; - bool has_signature() const; - void clear_signature() ; - const ::std::string& signature() const; - template - void set_signature(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_signature(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_signature(); - void set_allocated_signature(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_signature() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_signature(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_signature(); - - public: - // @@protoc_insertion_point(class_scope:securemessage.SecureMessage) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const SecureMessage& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr header_and_body_; - ::google::protobuf::internal::ArenaStringPtr signature_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<28> SecureMessage_class_data_; -// ------------------------------------------------------------------- - -class HeaderAndBodyInternal final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securemessage.HeaderAndBodyInternal) */ { - public: - inline HeaderAndBodyInternal() : HeaderAndBodyInternal(nullptr) {} - ~HeaderAndBodyInternal() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(HeaderAndBodyInternal* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(HeaderAndBodyInternal)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR HeaderAndBodyInternal(::google::protobuf::internal::ConstantInitialized); - - inline HeaderAndBodyInternal(const HeaderAndBodyInternal& from) : HeaderAndBodyInternal(nullptr, from) {} - inline HeaderAndBodyInternal(HeaderAndBodyInternal&& from) noexcept - : HeaderAndBodyInternal(nullptr, ::std::move(from)) {} - inline HeaderAndBodyInternal& operator=(const HeaderAndBodyInternal& from) { - CopyFrom(from); - return *this; - } - inline HeaderAndBodyInternal& operator=(HeaderAndBodyInternal&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const HeaderAndBodyInternal& default_instance() { - return *reinterpret_cast( - &_HeaderAndBodyInternal_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(HeaderAndBodyInternal& a, HeaderAndBodyInternal& b) { a.Swap(&b); } - inline void Swap(HeaderAndBodyInternal* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(HeaderAndBodyInternal* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - HeaderAndBodyInternal* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const HeaderAndBodyInternal& from); - void MergeFrom(const HeaderAndBodyInternal& from) { HeaderAndBodyInternal::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(HeaderAndBodyInternal* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securemessage.HeaderAndBodyInternal"; } - - explicit HeaderAndBodyInternal(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - HeaderAndBodyInternal(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HeaderAndBodyInternal& from); - HeaderAndBodyInternal( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, HeaderAndBodyInternal&& from) noexcept - : HeaderAndBodyInternal(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kHeaderFieldNumber = 1, - kBodyFieldNumber = 2, - }; - // required bytes header = 1; - bool has_header() const; - void clear_header() ; - const ::std::string& header() const; - template - void set_header(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_header(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_header(); - void set_allocated_header(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_header() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_header(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_header(); - - public: - // required bytes body = 2; - bool has_body() const; - void clear_body() ; - const ::std::string& body() const; - template - void set_body(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_body(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_body(); - void set_allocated_body(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_body() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_body(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_body(); - - public: - // @@protoc_insertion_point(class_scope:securemessage.HeaderAndBodyInternal) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const HeaderAndBodyInternal& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr header_; - ::google::protobuf::internal::ArenaStringPtr body_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<36> HeaderAndBodyInternal_class_data_; -// ------------------------------------------------------------------- - -class Header final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securemessage.Header) */ { - public: - inline Header() : Header(nullptr) {} - ~Header() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Header* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Header)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Header(::google::protobuf::internal::ConstantInitialized); - - inline Header(const Header& from) : Header(nullptr, from) {} - inline Header(Header&& from) noexcept - : Header(nullptr, ::std::move(from)) {} - inline Header& operator=(const Header& from) { - CopyFrom(from); - return *this; - } - inline Header& operator=(Header&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const Header& default_instance() { - return *reinterpret_cast( - &_Header_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(Header& a, Header& b) { a.Swap(&b); } - inline void Swap(Header* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Header* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Header* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct
(arena); - } - void CopyFrom(const Header& from); - void MergeFrom(const Header& from) { Header::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Header* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securemessage.Header"; } - - explicit Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Header& from); - Header( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Header&& from) noexcept - : Header(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kVerificationKeyIdFieldNumber = 3, - kDecryptionKeyIdFieldNumber = 4, - kIvFieldNumber = 5, - kPublicMetadataFieldNumber = 6, - kAssociatedDataLengthFieldNumber = 7, - kSignatureSchemeFieldNumber = 1, - kEncryptionSchemeFieldNumber = 2, - }; - // optional bytes verification_key_id = 3; - bool has_verification_key_id() const; - void clear_verification_key_id() ; - const ::std::string& verification_key_id() const; - template - void set_verification_key_id(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_verification_key_id(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_verification_key_id(); - void set_allocated_verification_key_id(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_verification_key_id() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_verification_key_id(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_verification_key_id(); - - public: - // optional bytes decryption_key_id = 4; - bool has_decryption_key_id() const; - void clear_decryption_key_id() ; - const ::std::string& decryption_key_id() const; - template - void set_decryption_key_id(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_decryption_key_id(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_decryption_key_id(); - void set_allocated_decryption_key_id(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_decryption_key_id() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_decryption_key_id(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_decryption_key_id(); - - public: - // optional bytes iv = 5; - bool has_iv() const; - void clear_iv() ; - const ::std::string& iv() const; - template - void set_iv(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_iv(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_iv(); - void set_allocated_iv(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_iv() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_iv(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_iv(); - - public: - // optional bytes public_metadata = 6; - bool has_public_metadata() const; - void clear_public_metadata() ; - const ::std::string& public_metadata() const; - template - void set_public_metadata(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_public_metadata(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_metadata(); - void set_allocated_public_metadata(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_public_metadata() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_public_metadata(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_public_metadata(); - - public: - // optional uint32 associated_data_length = 7 [default = 0]; - bool has_associated_data_length() const; - void clear_associated_data_length() ; - ::uint32_t associated_data_length() const; - void set_associated_data_length(::uint32_t value); - - private: - ::uint32_t _internal_associated_data_length() const; - void _internal_set_associated_data_length(::uint32_t value); - - public: - // required .securemessage.SigScheme signature_scheme = 1; - bool has_signature_scheme() const; - void clear_signature_scheme() ; - ::securemessage::SigScheme signature_scheme() const; - void set_signature_scheme(::securemessage::SigScheme value); - - private: - ::securemessage::SigScheme _internal_signature_scheme() const; - void _internal_set_signature_scheme(::securemessage::SigScheme value); - - public: - // required .securemessage.EncScheme encryption_scheme = 2; - bool has_encryption_scheme() const; - void clear_encryption_scheme() ; - ::securemessage::EncScheme encryption_scheme() const; - void set_encryption_scheme(::securemessage::EncScheme value); - - private: - ::securemessage::EncScheme _internal_encryption_scheme() const; - void _internal_set_encryption_scheme(::securemessage::EncScheme value); - - public: - // @@protoc_insertion_point(class_scope:securemessage.Header) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 7, - 2, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Header& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr verification_key_id_; - ::google::protobuf::internal::ArenaStringPtr decryption_key_id_; - ::google::protobuf::internal::ArenaStringPtr iv_; - ::google::protobuf::internal::ArenaStringPtr public_metadata_; - ::uint32_t associated_data_length_; - int signature_scheme_; - int encryption_scheme_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<21> Header_class_data_; -// ------------------------------------------------------------------- - -class EcP256PublicKey final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securemessage.EcP256PublicKey) */ { - public: - inline EcP256PublicKey() : EcP256PublicKey(nullptr) {} - ~EcP256PublicKey() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(EcP256PublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(EcP256PublicKey)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR EcP256PublicKey(::google::protobuf::internal::ConstantInitialized); - - inline EcP256PublicKey(const EcP256PublicKey& from) : EcP256PublicKey(nullptr, from) {} - inline EcP256PublicKey(EcP256PublicKey&& from) noexcept - : EcP256PublicKey(nullptr, ::std::move(from)) {} - inline EcP256PublicKey& operator=(const EcP256PublicKey& from) { - CopyFrom(from); - return *this; - } - inline EcP256PublicKey& operator=(EcP256PublicKey&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const EcP256PublicKey& default_instance() { - return *reinterpret_cast( - &_EcP256PublicKey_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(EcP256PublicKey& a, EcP256PublicKey& b) { a.Swap(&b); } - inline void Swap(EcP256PublicKey* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(EcP256PublicKey* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - EcP256PublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const EcP256PublicKey& from); - void MergeFrom(const EcP256PublicKey& from) { EcP256PublicKey::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(EcP256PublicKey* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securemessage.EcP256PublicKey"; } - - explicit EcP256PublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - EcP256PublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EcP256PublicKey& from); - EcP256PublicKey( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, EcP256PublicKey&& from) noexcept - : EcP256PublicKey(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kXFieldNumber = 1, - kYFieldNumber = 2, - }; - // required bytes x = 1; - bool has_x() const; - void clear_x() ; - const ::std::string& x() const; - template - void set_x(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_x(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_x(); - void set_allocated_x(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_x() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_x(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_x(); - - public: - // required bytes y = 2; - bool has_y() const; - void clear_y() ; - const ::std::string& y() const; - template - void set_y(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_y(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_y(); - void set_allocated_y(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_y() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_y(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_y(); - - public: - // @@protoc_insertion_point(class_scope:securemessage.EcP256PublicKey) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const EcP256PublicKey& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr x_; - ::google::protobuf::internal::ArenaStringPtr y_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<30> EcP256PublicKey_class_data_; -// ------------------------------------------------------------------- - -class DhPublicKey final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securemessage.DhPublicKey) */ { - public: - inline DhPublicKey() : DhPublicKey(nullptr) {} - ~DhPublicKey() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(DhPublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(DhPublicKey)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR DhPublicKey(::google::protobuf::internal::ConstantInitialized); - - inline DhPublicKey(const DhPublicKey& from) : DhPublicKey(nullptr, from) {} - inline DhPublicKey(DhPublicKey&& from) noexcept - : DhPublicKey(nullptr, ::std::move(from)) {} - inline DhPublicKey& operator=(const DhPublicKey& from) { - CopyFrom(from); - return *this; - } - inline DhPublicKey& operator=(DhPublicKey&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const DhPublicKey& default_instance() { - return *reinterpret_cast( - &_DhPublicKey_default_instance_); - } - static constexpr int kIndexInFileMessages = 6; - friend void swap(DhPublicKey& a, DhPublicKey& b) { a.Swap(&b); } - inline void Swap(DhPublicKey* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DhPublicKey* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DhPublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const DhPublicKey& from); - void MergeFrom(const DhPublicKey& from) { DhPublicKey::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(DhPublicKey* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securemessage.DhPublicKey"; } - - explicit DhPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - DhPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const DhPublicKey& from); - DhPublicKey( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, DhPublicKey&& from) noexcept - : DhPublicKey(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kYFieldNumber = 1, - }; - // required bytes y = 1; - bool has_y() const; - void clear_y() ; - const ::std::string& y() const; - template - void set_y(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_y(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_y(); - void set_allocated_y(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_y() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_y(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_y(); - - public: - // @@protoc_insertion_point(class_scope:securemessage.DhPublicKey) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const DhPublicKey& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr y_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<26> DhPublicKey_class_data_; -// ------------------------------------------------------------------- - -class HeaderAndBody final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securemessage.HeaderAndBody) */ { - public: - inline HeaderAndBody() : HeaderAndBody(nullptr) {} - ~HeaderAndBody() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(HeaderAndBody* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(HeaderAndBody)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR HeaderAndBody(::google::protobuf::internal::ConstantInitialized); - - inline HeaderAndBody(const HeaderAndBody& from) : HeaderAndBody(nullptr, from) {} - inline HeaderAndBody(HeaderAndBody&& from) noexcept - : HeaderAndBody(nullptr, ::std::move(from)) {} - inline HeaderAndBody& operator=(const HeaderAndBody& from) { - CopyFrom(from); - return *this; - } - inline HeaderAndBody& operator=(HeaderAndBody&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const HeaderAndBody& default_instance() { - return *reinterpret_cast( - &_HeaderAndBody_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(HeaderAndBody& a, HeaderAndBody& b) { a.Swap(&b); } - inline void Swap(HeaderAndBody* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(HeaderAndBody* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - HeaderAndBody* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const HeaderAndBody& from); - void MergeFrom(const HeaderAndBody& from) { HeaderAndBody::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(HeaderAndBody* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securemessage.HeaderAndBody"; } - - explicit HeaderAndBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - HeaderAndBody(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HeaderAndBody& from); - HeaderAndBody( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, HeaderAndBody&& from) noexcept - : HeaderAndBody(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kBodyFieldNumber = 2, - kHeaderFieldNumber = 1, - }; - // required bytes body = 2; - bool has_body() const; - void clear_body() ; - const ::std::string& body() const; - template - void set_body(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_body(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_body(); - void set_allocated_body(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_body() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_body(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_body(); - - public: - // required .securemessage.Header header = 1; - bool has_header() const; - void clear_header() ; - const ::securemessage::Header& header() const; - [[nodiscard]] ::securemessage::Header* PROTOBUF_NULLABLE release_header(); - ::securemessage::Header* PROTOBUF_NONNULL mutable_header(); - void set_allocated_header(::securemessage::Header* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_header(::securemessage::Header* PROTOBUF_NULLABLE value); - ::securemessage::Header* PROTOBUF_NULLABLE unsafe_arena_release_header(); - - private: - const ::securemessage::Header& _internal_header() const; - ::securemessage::Header* PROTOBUF_NONNULL _internal_mutable_header(); - - public: - // @@protoc_insertion_point(class_scope:securemessage.HeaderAndBody) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const HeaderAndBody& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr body_; - ::securemessage::Header* PROTOBUF_NULLABLE header_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<28> HeaderAndBody_class_data_; -// ------------------------------------------------------------------- - -class GenericPublicKey final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securemessage.GenericPublicKey) */ { - public: - inline GenericPublicKey() : GenericPublicKey(nullptr) {} - ~GenericPublicKey() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GenericPublicKey* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GenericPublicKey)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR GenericPublicKey(::google::protobuf::internal::ConstantInitialized); - - inline GenericPublicKey(const GenericPublicKey& from) : GenericPublicKey(nullptr, from) {} - inline GenericPublicKey(GenericPublicKey&& from) noexcept - : GenericPublicKey(nullptr, ::std::move(from)) {} - inline GenericPublicKey& operator=(const GenericPublicKey& from) { - CopyFrom(from); - return *this; - } - inline GenericPublicKey& operator=(GenericPublicKey&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const GenericPublicKey& default_instance() { - return *reinterpret_cast( - &_GenericPublicKey_default_instance_); - } - static constexpr int kIndexInFileMessages = 7; - friend void swap(GenericPublicKey& a, GenericPublicKey& b) { a.Swap(&b); } - inline void Swap(GenericPublicKey* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GenericPublicKey* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - GenericPublicKey* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const GenericPublicKey& from); - void MergeFrom(const GenericPublicKey& from) { GenericPublicKey::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return IsInitializedImpl(*this); - } - - private: - static bool IsInitializedImpl(const MessageLite& msg); - - public: - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GenericPublicKey* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securemessage.GenericPublicKey"; } - - explicit GenericPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GenericPublicKey(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GenericPublicKey& from); - GenericPublicKey( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GenericPublicKey&& from) noexcept - : GenericPublicKey(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kEcP256PublicKeyFieldNumber = 2, - kRsa2048PublicKeyFieldNumber = 3, - kDh2048PublicKeyFieldNumber = 4, - kTypeFieldNumber = 1, - }; - // optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; - bool has_ec_p256_public_key() const; - void clear_ec_p256_public_key() ; - const ::securemessage::EcP256PublicKey& ec_p256_public_key() const; - [[nodiscard]] ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE release_ec_p256_public_key(); - ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL mutable_ec_p256_public_key(); - void set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value); - ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE unsafe_arena_release_ec_p256_public_key(); - - private: - const ::securemessage::EcP256PublicKey& _internal_ec_p256_public_key() const; - ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL _internal_mutable_ec_p256_public_key(); - - public: - // optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; - bool has_rsa2048_public_key() const; - void clear_rsa2048_public_key() ; - const ::securemessage::SimpleRsaPublicKey& rsa2048_public_key() const; - [[nodiscard]] ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE release_rsa2048_public_key(); - ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL mutable_rsa2048_public_key(); - void set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value); - ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_rsa2048_public_key(); - - private: - const ::securemessage::SimpleRsaPublicKey& _internal_rsa2048_public_key() const; - ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL _internal_mutable_rsa2048_public_key(); - - public: - // optional .securemessage.DhPublicKey dh2048_public_key = 4; - bool has_dh2048_public_key() const; - void clear_dh2048_public_key() ; - const ::securemessage::DhPublicKey& dh2048_public_key() const; - [[nodiscard]] ::securemessage::DhPublicKey* PROTOBUF_NULLABLE release_dh2048_public_key(); - ::securemessage::DhPublicKey* PROTOBUF_NONNULL mutable_dh2048_public_key(); - void set_allocated_dh2048_public_key(::securemessage::DhPublicKey* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_dh2048_public_key(::securemessage::DhPublicKey* PROTOBUF_NULLABLE value); - ::securemessage::DhPublicKey* PROTOBUF_NULLABLE unsafe_arena_release_dh2048_public_key(); - - private: - const ::securemessage::DhPublicKey& _internal_dh2048_public_key() const; - ::securemessage::DhPublicKey* PROTOBUF_NONNULL _internal_mutable_dh2048_public_key(); - - public: - // required .securemessage.PublicKeyType type = 1; - bool has_type() const; - void clear_type() ; - ::securemessage::PublicKeyType type() const; - void set_type(::securemessage::PublicKeyType value); - - private: - ::securemessage::PublicKeyType _internal_type() const; - void _internal_set_type(::securemessage::PublicKeyType value); - - public: - // @@protoc_insertion_point(class_scope:securemessage.GenericPublicKey) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 4, - 4, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GenericPublicKey& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE ec_p256_public_key_; - ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE rsa2048_public_key_; - ::securemessage::DhPublicKey* PROTOBUF_NULLABLE dh2048_public_key_; - int type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fsecuremessage_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<31> GenericPublicKey_class_data_; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// SecureMessage - -// required bytes header_and_body = 1; -inline bool SecureMessage::has_header_and_body() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void SecureMessage::clear_header_and_body() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.header_and_body_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& SecureMessage::header_and_body() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.SecureMessage.header_and_body) - return _internal_header_and_body(); -} -template -PROTOBUF_ALWAYS_INLINE void SecureMessage::set_header_and_body(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.header_and_body_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.SecureMessage.header_and_body) -} -inline ::std::string* PROTOBUF_NONNULL SecureMessage::mutable_header_and_body() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_header_and_body(); - // @@protoc_insertion_point(field_mutable:securemessage.SecureMessage.header_and_body) - return _s; -} -inline const ::std::string& SecureMessage::_internal_header_and_body() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.header_and_body_.Get(); -} -inline void SecureMessage::_internal_set_header_and_body(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.header_and_body_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL SecureMessage::_internal_mutable_header_and_body() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.header_and_body_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE SecureMessage::release_header_and_body() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.SecureMessage.header_and_body) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.header_and_body_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.header_and_body_.Set("", GetArena()); - } - return released; -} -inline void SecureMessage::set_allocated_header_and_body(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.header_and_body_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.header_and_body_.IsDefault()) { - _impl_.header_and_body_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.SecureMessage.header_and_body) -} - -// required bytes signature = 2; -inline bool SecureMessage::has_signature() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void SecureMessage::clear_signature() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.signature_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& SecureMessage::signature() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.SecureMessage.signature) - return _internal_signature(); -} -template -PROTOBUF_ALWAYS_INLINE void SecureMessage::set_signature(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.signature_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.SecureMessage.signature) -} -inline ::std::string* PROTOBUF_NONNULL SecureMessage::mutable_signature() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_signature(); - // @@protoc_insertion_point(field_mutable:securemessage.SecureMessage.signature) - return _s; -} -inline const ::std::string& SecureMessage::_internal_signature() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.signature_.Get(); -} -inline void SecureMessage::_internal_set_signature(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.signature_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL SecureMessage::_internal_mutable_signature() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.signature_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE SecureMessage::release_signature() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.SecureMessage.signature) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.signature_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.signature_.Set("", GetArena()); - } - return released; -} -inline void SecureMessage::set_allocated_signature(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.signature_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.signature_.IsDefault()) { - _impl_.signature_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.SecureMessage.signature) -} - -// ------------------------------------------------------------------- - -// Header - -// required .securemessage.SigScheme signature_scheme = 1; -inline bool Header::has_signature_scheme() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); - return value; -} -inline void Header::clear_signature_scheme() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.signature_scheme_ = 1; - ClearHasBit(_impl_._has_bits_[0], - 0x00000020U); -} -inline ::securemessage::SigScheme Header::signature_scheme() const { - // @@protoc_insertion_point(field_get:securemessage.Header.signature_scheme) - return _internal_signature_scheme(); -} -inline void Header::set_signature_scheme(::securemessage::SigScheme value) { - _internal_set_signature_scheme(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); - // @@protoc_insertion_point(field_set:securemessage.Header.signature_scheme) -} -inline ::securemessage::SigScheme Header::_internal_signature_scheme() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::securemessage::SigScheme>(_impl_.signature_scheme_); -} -inline void Header::_internal_set_signature_scheme(::securemessage::SigScheme value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securemessage::SigScheme_internal_data_)); - _impl_.signature_scheme_ = value; -} - -// required .securemessage.EncScheme encryption_scheme = 2; -inline bool Header::has_encryption_scheme() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000040U); - return value; -} -inline void Header::clear_encryption_scheme() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.encryption_scheme_ = 1; - ClearHasBit(_impl_._has_bits_[0], - 0x00000040U); -} -inline ::securemessage::EncScheme Header::encryption_scheme() const { - // @@protoc_insertion_point(field_get:securemessage.Header.encryption_scheme) - return _internal_encryption_scheme(); -} -inline void Header::set_encryption_scheme(::securemessage::EncScheme value) { - _internal_set_encryption_scheme(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); - // @@protoc_insertion_point(field_set:securemessage.Header.encryption_scheme) -} -inline ::securemessage::EncScheme Header::_internal_encryption_scheme() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::securemessage::EncScheme>(_impl_.encryption_scheme_); -} -inline void Header::_internal_set_encryption_scheme(::securemessage::EncScheme value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securemessage::EncScheme_internal_data_)); - _impl_.encryption_scheme_ = value; -} - -// optional bytes verification_key_id = 3; -inline bool Header::has_verification_key_id() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void Header::clear_verification_key_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.verification_key_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Header::verification_key_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.Header.verification_key_id) - return _internal_verification_key_id(); -} -template -PROTOBUF_ALWAYS_INLINE void Header::set_verification_key_id(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.verification_key_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.Header.verification_key_id) -} -inline ::std::string* PROTOBUF_NONNULL Header::mutable_verification_key_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_verification_key_id(); - // @@protoc_insertion_point(field_mutable:securemessage.Header.verification_key_id) - return _s; -} -inline const ::std::string& Header::_internal_verification_key_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.verification_key_id_.Get(); -} -inline void Header::_internal_set_verification_key_id(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.verification_key_id_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_verification_key_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.verification_key_id_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Header::release_verification_key_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.Header.verification_key_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.verification_key_id_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.verification_key_id_.Set("", GetArena()); - } - return released; -} -inline void Header::set_allocated_verification_key_id(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.verification_key_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.verification_key_id_.IsDefault()) { - _impl_.verification_key_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.Header.verification_key_id) -} - -// optional bytes decryption_key_id = 4; -inline bool Header::has_decryption_key_id() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void Header::clear_decryption_key_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.decryption_key_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& Header::decryption_key_id() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.Header.decryption_key_id) - return _internal_decryption_key_id(); -} -template -PROTOBUF_ALWAYS_INLINE void Header::set_decryption_key_id(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.decryption_key_id_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.Header.decryption_key_id) -} -inline ::std::string* PROTOBUF_NONNULL Header::mutable_decryption_key_id() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_decryption_key_id(); - // @@protoc_insertion_point(field_mutable:securemessage.Header.decryption_key_id) - return _s; -} -inline const ::std::string& Header::_internal_decryption_key_id() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.decryption_key_id_.Get(); -} -inline void Header::_internal_set_decryption_key_id(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.decryption_key_id_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_decryption_key_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.decryption_key_id_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Header::release_decryption_key_id() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.Header.decryption_key_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.decryption_key_id_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.decryption_key_id_.Set("", GetArena()); - } - return released; -} -inline void Header::set_allocated_decryption_key_id(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.decryption_key_id_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.decryption_key_id_.IsDefault()) { - _impl_.decryption_key_id_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.Header.decryption_key_id) -} - -// optional bytes iv = 5; -inline bool Header::has_iv() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); - return value; -} -inline void Header::clear_iv() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.iv_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& Header::iv() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.Header.iv) - return _internal_iv(); -} -template -PROTOBUF_ALWAYS_INLINE void Header::set_iv(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.iv_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.Header.iv) -} -inline ::std::string* PROTOBUF_NONNULL Header::mutable_iv() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_iv(); - // @@protoc_insertion_point(field_mutable:securemessage.Header.iv) - return _s; -} -inline const ::std::string& Header::_internal_iv() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.iv_.Get(); -} -inline void Header::_internal_set_iv(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.iv_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_iv() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.iv_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Header::release_iv() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.Header.iv) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.iv_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.iv_.Set("", GetArena()); - } - return released; -} -inline void Header::set_allocated_iv(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.iv_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.iv_.IsDefault()) { - _impl_.iv_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.Header.iv) -} - -// optional bytes public_metadata = 6; -inline bool Header::has_public_metadata() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); - return value; -} -inline void Header::clear_public_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.public_metadata_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline const ::std::string& Header::public_metadata() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.Header.public_metadata) - return _internal_public_metadata(); -} -template -PROTOBUF_ALWAYS_INLINE void Header::set_public_metadata(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - _impl_.public_metadata_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.Header.public_metadata) -} -inline ::std::string* PROTOBUF_NONNULL Header::mutable_public_metadata() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - ::std::string* _s = _internal_mutable_public_metadata(); - // @@protoc_insertion_point(field_mutable:securemessage.Header.public_metadata) - return _s; -} -inline const ::std::string& Header::_internal_public_metadata() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.public_metadata_.Get(); -} -inline void Header::_internal_set_public_metadata(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.public_metadata_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_public_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.public_metadata_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Header::release_public_metadata() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.Header.public_metadata) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - auto* released = _impl_.public_metadata_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.public_metadata_.Set("", GetArena()); - } - return released; -} -inline void Header::set_allocated_public_metadata(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); - } - _impl_.public_metadata_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_metadata_.IsDefault()) { - _impl_.public_metadata_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.Header.public_metadata) -} - -// optional uint32 associated_data_length = 7 [default = 0]; -inline bool Header::has_associated_data_length() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); - return value; -} -inline void Header::clear_associated_data_length() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.associated_data_length_ = 0u; - ClearHasBit(_impl_._has_bits_[0], - 0x00000010U); -} -inline ::uint32_t Header::associated_data_length() const { - // @@protoc_insertion_point(field_get:securemessage.Header.associated_data_length) - return _internal_associated_data_length(); -} -inline void Header::set_associated_data_length(::uint32_t value) { - _internal_set_associated_data_length(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_set:securemessage.Header.associated_data_length) -} -inline ::uint32_t Header::_internal_associated_data_length() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.associated_data_length_; -} -inline void Header::_internal_set_associated_data_length(::uint32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.associated_data_length_ = value; -} - -// ------------------------------------------------------------------- - -// HeaderAndBody - -// required .securemessage.Header header = 1; -inline bool HeaderAndBody::has_header() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - PROTOBUF_ASSUME(!value || _impl_.header_ != nullptr); - return value; -} -inline void HeaderAndBody::clear_header() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.header_ != nullptr) _impl_.header_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::securemessage::Header& HeaderAndBody::_internal_header() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::securemessage::Header* p = _impl_.header_; - return p != nullptr ? *p : reinterpret_cast(::securemessage::_Header_default_instance_); -} -inline const ::securemessage::Header& HeaderAndBody::header() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.HeaderAndBody.header) - return _internal_header(); -} -inline void HeaderAndBody::unsafe_arena_set_allocated_header( - ::securemessage::Header* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); - } - _impl_.header_ = reinterpret_cast<::securemessage::Header*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.HeaderAndBody.header) -} -inline ::securemessage::Header* PROTOBUF_NULLABLE HeaderAndBody::release_header() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - ::securemessage::Header* released = _impl_.header_; - _impl_.header_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::securemessage::Header* PROTOBUF_NULLABLE HeaderAndBody::unsafe_arena_release_header() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.HeaderAndBody.header) - - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - ::securemessage::Header* temp = _impl_.header_; - _impl_.header_ = nullptr; - return temp; -} -inline ::securemessage::Header* PROTOBUF_NONNULL HeaderAndBody::_internal_mutable_header() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.header_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::Header>(GetArena()); - _impl_.header_ = reinterpret_cast<::securemessage::Header*>(p); - } - return _impl_.header_; -} -inline ::securemessage::Header* PROTOBUF_NONNULL HeaderAndBody::mutable_header() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::securemessage::Header* _msg = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBody.header) - return _msg; -} -inline void HeaderAndBody::set_allocated_header(::securemessage::Header* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.header_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - - _impl_.header_ = reinterpret_cast<::securemessage::Header*>(value); - // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBody.header) -} - -// required bytes body = 2; -inline bool HeaderAndBody::has_body() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void HeaderAndBody::clear_body() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.body_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& HeaderAndBody::body() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.HeaderAndBody.body) - return _internal_body(); -} -template -PROTOBUF_ALWAYS_INLINE void HeaderAndBody::set_body(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.body_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.HeaderAndBody.body) -} -inline ::std::string* PROTOBUF_NONNULL HeaderAndBody::mutable_body() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_body(); - // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBody.body) - return _s; -} -inline const ::std::string& HeaderAndBody::_internal_body() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.body_.Get(); -} -inline void HeaderAndBody::_internal_set_body(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.body_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL HeaderAndBody::_internal_mutable_body() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.body_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE HeaderAndBody::release_body() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.HeaderAndBody.body) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.body_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.body_.Set("", GetArena()); - } - return released; -} -inline void HeaderAndBody::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.body_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.body_.IsDefault()) { - _impl_.body_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBody.body) -} - -// ------------------------------------------------------------------- - -// HeaderAndBodyInternal - -// required bytes header = 1; -inline bool HeaderAndBodyInternal::has_header() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void HeaderAndBodyInternal::clear_header() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.header_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& HeaderAndBodyInternal::header() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.HeaderAndBodyInternal.header) - return _internal_header(); -} -template -PROTOBUF_ALWAYS_INLINE void HeaderAndBodyInternal::set_header(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.header_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.HeaderAndBodyInternal.header) -} -inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::mutable_header() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_header(); - // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBodyInternal.header) - return _s; -} -inline const ::std::string& HeaderAndBodyInternal::_internal_header() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.header_.Get(); -} -inline void HeaderAndBodyInternal::_internal_set_header(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.header_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::_internal_mutable_header() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.header_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE HeaderAndBodyInternal::release_header() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.HeaderAndBodyInternal.header) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.header_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.header_.Set("", GetArena()); - } - return released; -} -inline void HeaderAndBodyInternal::set_allocated_header(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.header_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.header_.IsDefault()) { - _impl_.header_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBodyInternal.header) -} - -// required bytes body = 2; -inline bool HeaderAndBodyInternal::has_body() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void HeaderAndBodyInternal::clear_body() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.body_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& HeaderAndBodyInternal::body() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.HeaderAndBodyInternal.body) - return _internal_body(); -} -template -PROTOBUF_ALWAYS_INLINE void HeaderAndBodyInternal::set_body(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.body_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.HeaderAndBodyInternal.body) -} -inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::mutable_body() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_body(); - // @@protoc_insertion_point(field_mutable:securemessage.HeaderAndBodyInternal.body) - return _s; -} -inline const ::std::string& HeaderAndBodyInternal::_internal_body() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.body_.Get(); -} -inline void HeaderAndBodyInternal::_internal_set_body(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.body_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL HeaderAndBodyInternal::_internal_mutable_body() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.body_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE HeaderAndBodyInternal::release_body() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.HeaderAndBodyInternal.body) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.body_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.body_.Set("", GetArena()); - } - return released; -} -inline void HeaderAndBodyInternal::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.body_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.body_.IsDefault()) { - _impl_.body_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.HeaderAndBodyInternal.body) -} - -// ------------------------------------------------------------------- - -// EcP256PublicKey - -// required bytes x = 1; -inline bool EcP256PublicKey::has_x() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void EcP256PublicKey::clear_x() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.x_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& EcP256PublicKey::x() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.EcP256PublicKey.x) - return _internal_x(); -} -template -PROTOBUF_ALWAYS_INLINE void EcP256PublicKey::set_x(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.x_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.EcP256PublicKey.x) -} -inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::mutable_x() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_x(); - // @@protoc_insertion_point(field_mutable:securemessage.EcP256PublicKey.x) - return _s; -} -inline const ::std::string& EcP256PublicKey::_internal_x() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.x_.Get(); -} -inline void EcP256PublicKey::_internal_set_x(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.x_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::_internal_mutable_x() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.x_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE EcP256PublicKey::release_x() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.EcP256PublicKey.x) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.x_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.x_.Set("", GetArena()); - } - return released; -} -inline void EcP256PublicKey::set_allocated_x(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.x_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.x_.IsDefault()) { - _impl_.x_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.EcP256PublicKey.x) -} - -// required bytes y = 2; -inline bool EcP256PublicKey::has_y() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void EcP256PublicKey::clear_y() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.y_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& EcP256PublicKey::y() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.EcP256PublicKey.y) - return _internal_y(); -} -template -PROTOBUF_ALWAYS_INLINE void EcP256PublicKey::set_y(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.y_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.EcP256PublicKey.y) -} -inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::mutable_y() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_y(); - // @@protoc_insertion_point(field_mutable:securemessage.EcP256PublicKey.y) - return _s; -} -inline const ::std::string& EcP256PublicKey::_internal_y() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.y_.Get(); -} -inline void EcP256PublicKey::_internal_set_y(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.y_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL EcP256PublicKey::_internal_mutable_y() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.y_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE EcP256PublicKey::release_y() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.EcP256PublicKey.y) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.y_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.y_.Set("", GetArena()); - } - return released; -} -inline void EcP256PublicKey::set_allocated_y(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.y_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.y_.IsDefault()) { - _impl_.y_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.EcP256PublicKey.y) -} - -// ------------------------------------------------------------------- - -// SimpleRsaPublicKey - -// required bytes n = 1; -inline bool SimpleRsaPublicKey::has_n() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void SimpleRsaPublicKey::clear_n() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.n_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& SimpleRsaPublicKey::n() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.SimpleRsaPublicKey.n) - return _internal_n(); -} -template -PROTOBUF_ALWAYS_INLINE void SimpleRsaPublicKey::set_n(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.n_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.SimpleRsaPublicKey.n) -} -inline ::std::string* PROTOBUF_NONNULL SimpleRsaPublicKey::mutable_n() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_n(); - // @@protoc_insertion_point(field_mutable:securemessage.SimpleRsaPublicKey.n) - return _s; -} -inline const ::std::string& SimpleRsaPublicKey::_internal_n() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.n_.Get(); -} -inline void SimpleRsaPublicKey::_internal_set_n(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.n_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL SimpleRsaPublicKey::_internal_mutable_n() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.n_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE SimpleRsaPublicKey::release_n() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.SimpleRsaPublicKey.n) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.n_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.n_.Set("", GetArena()); - } - return released; -} -inline void SimpleRsaPublicKey::set_allocated_n(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.n_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.n_.IsDefault()) { - _impl_.n_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.SimpleRsaPublicKey.n) -} - -// optional int32 e = 2 [default = 65537]; -inline bool SimpleRsaPublicKey::has_e() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void SimpleRsaPublicKey::clear_e() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.e_ = 65537; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::int32_t SimpleRsaPublicKey::e() const { - // @@protoc_insertion_point(field_get:securemessage.SimpleRsaPublicKey.e) - return _internal_e(); -} -inline void SimpleRsaPublicKey::set_e(::int32_t value) { - _internal_set_e(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:securemessage.SimpleRsaPublicKey.e) -} -inline ::int32_t SimpleRsaPublicKey::_internal_e() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.e_; -} -inline void SimpleRsaPublicKey::_internal_set_e(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.e_ = value; -} - -// ------------------------------------------------------------------- - -// DhPublicKey - -// required bytes y = 1; -inline bool DhPublicKey::has_y() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void DhPublicKey::clear_y() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.y_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& DhPublicKey::y() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.DhPublicKey.y) - return _internal_y(); -} -template -PROTOBUF_ALWAYS_INLINE void DhPublicKey::set_y(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.y_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securemessage.DhPublicKey.y) -} -inline ::std::string* PROTOBUF_NONNULL DhPublicKey::mutable_y() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_y(); - // @@protoc_insertion_point(field_mutable:securemessage.DhPublicKey.y) - return _s; -} -inline const ::std::string& DhPublicKey::_internal_y() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.y_.Get(); -} -inline void DhPublicKey::_internal_set_y(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.y_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL DhPublicKey::_internal_mutable_y() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.y_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE DhPublicKey::release_y() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.DhPublicKey.y) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.y_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.y_.Set("", GetArena()); - } - return released; -} -inline void DhPublicKey::set_allocated_y(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.y_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.y_.IsDefault()) { - _impl_.y_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securemessage.DhPublicKey.y) -} - -// ------------------------------------------------------------------- - -// GenericPublicKey - -// required .securemessage.PublicKeyType type = 1; -inline bool GenericPublicKey::has_type() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); - return value; -} -inline void GenericPublicKey::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_ = 1; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::securemessage::PublicKeyType GenericPublicKey::type() const { - // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.type) - return _internal_type(); -} -inline void GenericPublicKey::set_type(::securemessage::PublicKeyType value) { - _internal_set_type(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:securemessage.GenericPublicKey.type) -} -inline ::securemessage::PublicKeyType GenericPublicKey::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::securemessage::PublicKeyType>(_impl_.type_); -} -inline void GenericPublicKey::_internal_set_type(::securemessage::PublicKeyType value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securemessage::PublicKeyType_internal_data_)); - _impl_.type_ = value; -} - -// optional .securemessage.EcP256PublicKey ec_p256_public_key = 2; -inline bool GenericPublicKey::has_ec_p256_public_key() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - PROTOBUF_ASSUME(!value || _impl_.ec_p256_public_key_ != nullptr); - return value; -} -inline void GenericPublicKey::clear_ec_p256_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.ec_p256_public_key_ != nullptr) _impl_.ec_p256_public_key_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::securemessage::EcP256PublicKey& GenericPublicKey::_internal_ec_p256_public_key() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::securemessage::EcP256PublicKey* p = _impl_.ec_p256_public_key_; - return p != nullptr ? *p : reinterpret_cast(::securemessage::_EcP256PublicKey_default_instance_); -} -inline const ::securemessage::EcP256PublicKey& GenericPublicKey::ec_p256_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.ec_p256_public_key) - return _internal_ec_p256_public_key(); -} -inline void GenericPublicKey::unsafe_arena_set_allocated_ec_p256_public_key( - ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_p256_public_key_); - } - _impl_.ec_p256_public_key_ = reinterpret_cast<::securemessage::EcP256PublicKey*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.GenericPublicKey.ec_p256_public_key) -} -inline ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE GenericPublicKey::release_ec_p256_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::securemessage::EcP256PublicKey* released = _impl_.ec_p256_public_key_; - _impl_.ec_p256_public_key_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE GenericPublicKey::unsafe_arena_release_ec_p256_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.GenericPublicKey.ec_p256_public_key) - - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - ::securemessage::EcP256PublicKey* temp = _impl_.ec_p256_public_key_; - _impl_.ec_p256_public_key_ = nullptr; - return temp; -} -inline ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL GenericPublicKey::_internal_mutable_ec_p256_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.ec_p256_public_key_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::EcP256PublicKey>(GetArena()); - _impl_.ec_p256_public_key_ = reinterpret_cast<::securemessage::EcP256PublicKey*>(p); - } - return _impl_.ec_p256_public_key_; -} -inline ::securemessage::EcP256PublicKey* PROTOBUF_NONNULL GenericPublicKey::mutable_ec_p256_public_key() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::securemessage::EcP256PublicKey* _msg = _internal_mutable_ec_p256_public_key(); - // @@protoc_insertion_point(field_mutable:securemessage.GenericPublicKey.ec_p256_public_key) - return _msg; -} -inline void GenericPublicKey::set_allocated_ec_p256_public_key(::securemessage::EcP256PublicKey* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.ec_p256_public_key_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - - _impl_.ec_p256_public_key_ = reinterpret_cast<::securemessage::EcP256PublicKey*>(value); - // @@protoc_insertion_point(field_set_allocated:securemessage.GenericPublicKey.ec_p256_public_key) -} - -// optional .securemessage.SimpleRsaPublicKey rsa2048_public_key = 3; -inline bool GenericPublicKey::has_rsa2048_public_key() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - PROTOBUF_ASSUME(!value || _impl_.rsa2048_public_key_ != nullptr); - return value; -} -inline void GenericPublicKey::clear_rsa2048_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.rsa2048_public_key_ != nullptr) _impl_.rsa2048_public_key_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::securemessage::SimpleRsaPublicKey& GenericPublicKey::_internal_rsa2048_public_key() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::securemessage::SimpleRsaPublicKey* p = _impl_.rsa2048_public_key_; - return p != nullptr ? *p : reinterpret_cast(::securemessage::_SimpleRsaPublicKey_default_instance_); -} -inline const ::securemessage::SimpleRsaPublicKey& GenericPublicKey::rsa2048_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.rsa2048_public_key) - return _internal_rsa2048_public_key(); -} -inline void GenericPublicKey::unsafe_arena_set_allocated_rsa2048_public_key( - ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.rsa2048_public_key_); - } - _impl_.rsa2048_public_key_ = reinterpret_cast<::securemessage::SimpleRsaPublicKey*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.GenericPublicKey.rsa2048_public_key) -} -inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE GenericPublicKey::release_rsa2048_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - ::securemessage::SimpleRsaPublicKey* released = _impl_.rsa2048_public_key_; - _impl_.rsa2048_public_key_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE GenericPublicKey::unsafe_arena_release_rsa2048_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.GenericPublicKey.rsa2048_public_key) - - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - ::securemessage::SimpleRsaPublicKey* temp = _impl_.rsa2048_public_key_; - _impl_.rsa2048_public_key_ = nullptr; - return temp; -} -inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL GenericPublicKey::_internal_mutable_rsa2048_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.rsa2048_public_key_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::SimpleRsaPublicKey>(GetArena()); - _impl_.rsa2048_public_key_ = reinterpret_cast<::securemessage::SimpleRsaPublicKey*>(p); - } - return _impl_.rsa2048_public_key_; -} -inline ::securemessage::SimpleRsaPublicKey* PROTOBUF_NONNULL GenericPublicKey::mutable_rsa2048_public_key() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::securemessage::SimpleRsaPublicKey* _msg = _internal_mutable_rsa2048_public_key(); - // @@protoc_insertion_point(field_mutable:securemessage.GenericPublicKey.rsa2048_public_key) - return _msg; -} -inline void GenericPublicKey::set_allocated_rsa2048_public_key(::securemessage::SimpleRsaPublicKey* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.rsa2048_public_key_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - - _impl_.rsa2048_public_key_ = reinterpret_cast<::securemessage::SimpleRsaPublicKey*>(value); - // @@protoc_insertion_point(field_set_allocated:securemessage.GenericPublicKey.rsa2048_public_key) -} - -// optional .securemessage.DhPublicKey dh2048_public_key = 4; -inline bool GenericPublicKey::has_dh2048_public_key() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); - PROTOBUF_ASSUME(!value || _impl_.dh2048_public_key_ != nullptr); - return value; -} -inline void GenericPublicKey::clear_dh2048_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.dh2048_public_key_ != nullptr) _impl_.dh2048_public_key_->Clear(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::securemessage::DhPublicKey& GenericPublicKey::_internal_dh2048_public_key() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::securemessage::DhPublicKey* p = _impl_.dh2048_public_key_; - return p != nullptr ? *p : reinterpret_cast(::securemessage::_DhPublicKey_default_instance_); -} -inline const ::securemessage::DhPublicKey& GenericPublicKey::dh2048_public_key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securemessage.GenericPublicKey.dh2048_public_key) - return _internal_dh2048_public_key(); -} -inline void GenericPublicKey::unsafe_arena_set_allocated_dh2048_public_key( - ::securemessage::DhPublicKey* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dh2048_public_key_); - } - _impl_.dh2048_public_key_ = reinterpret_cast<::securemessage::DhPublicKey*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:securemessage.GenericPublicKey.dh2048_public_key) -} -inline ::securemessage::DhPublicKey* PROTOBUF_NULLABLE GenericPublicKey::release_dh2048_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - ::securemessage::DhPublicKey* released = _impl_.dh2048_public_key_; - _impl_.dh2048_public_key_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::securemessage::DhPublicKey* PROTOBUF_NULLABLE GenericPublicKey::unsafe_arena_release_dh2048_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securemessage.GenericPublicKey.dh2048_public_key) - - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - ::securemessage::DhPublicKey* temp = _impl_.dh2048_public_key_; - _impl_.dh2048_public_key_ = nullptr; - return temp; -} -inline ::securemessage::DhPublicKey* PROTOBUF_NONNULL GenericPublicKey::_internal_mutable_dh2048_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.dh2048_public_key_ == nullptr) { - auto* p = ::google::protobuf::MessageLite::DefaultConstruct<::securemessage::DhPublicKey>(GetArena()); - _impl_.dh2048_public_key_ = reinterpret_cast<::securemessage::DhPublicKey*>(p); - } - return _impl_.dh2048_public_key_; -} -inline ::securemessage::DhPublicKey* PROTOBUF_NONNULL GenericPublicKey::mutable_dh2048_public_key() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::securemessage::DhPublicKey* _msg = _internal_mutable_dh2048_public_key(); - // @@protoc_insertion_point(field_mutable:securemessage.GenericPublicKey.dh2048_public_key) - return _msg; -} -inline void GenericPublicKey::set_allocated_dh2048_public_key(::securemessage::DhPublicKey* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.dh2048_public_key_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - - _impl_.dh2048_public_key_ = reinterpret_cast<::securemessage::DhPublicKey*>(value); - // @@protoc_insertion_point(field_set_allocated:securemessage.GenericPublicKey.dh2048_public_key) -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace securemessage - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::securemessage::SigScheme> : std::true_type {}; -template <> -struct is_proto_enum<::securemessage::EncScheme> : std::true_type {}; -template <> -struct is_proto_enum<::securemessage::PublicKeyType> : std::true_type {}; - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // proto_2fsecuremessage_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/proto/ukey.pb.cc b/third_party/ukey2/compiled_proto/proto/ukey.pb.cc deleted file mode 100644 index 58121f3f..00000000 --- a/third_party/ukey2/compiled_proto/proto/ukey.pb.cc +++ /dev/null @@ -1,2211 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: proto/ukey.proto -// Protobuf C++ Version: 6.33.3 - -#include "proto/ukey.pb.h" - -#include -#include -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/extension_set.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/wire_format_lite.h" -#include "google/protobuf/io/zero_copy_stream_impl_lite.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" -PROTOBUF_PRAGMA_INIT_SEG -namespace _pb = ::google::protobuf; -namespace _pbi = ::google::protobuf::internal; -namespace _fl = ::google::protobuf::internal::field_layout; -namespace securegcm { - -inline constexpr Ukey2ServerInit::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - random_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_{0}, - handshake_cipher_{static_cast< ::securegcm::Ukey2HandshakeCipher >(0)} {} - -template -PROTOBUF_CONSTEXPR Ukey2ServerInit::Ukey2ServerInit(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(Ukey2ServerInit_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct Ukey2ServerInitDefaultTypeInternal { - PROTOBUF_CONSTEXPR Ukey2ServerInitDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Ukey2ServerInitDefaultTypeInternal() {} - union { - Ukey2ServerInit _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ServerInitDefaultTypeInternal _Ukey2ServerInit_default_instance_; - -inline constexpr Ukey2Message::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - message_data_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - message_type_{static_cast< ::securegcm::Ukey2Message_Type >(0)} {} - -template -PROTOBUF_CONSTEXPR Ukey2Message::Ukey2Message(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(Ukey2Message_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct Ukey2MessageDefaultTypeInternal { - PROTOBUF_CONSTEXPR Ukey2MessageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Ukey2MessageDefaultTypeInternal() {} - union { - Ukey2Message _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2MessageDefaultTypeInternal _Ukey2Message_default_instance_; - -inline constexpr Ukey2ClientInit_CipherCommitment::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - commitment_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - handshake_cipher_{static_cast< ::securegcm::Ukey2HandshakeCipher >(0)} {} - -template -PROTOBUF_CONSTEXPR Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(Ukey2ClientInit_CipherCommitment_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct Ukey2ClientInit_CipherCommitmentDefaultTypeInternal { - PROTOBUF_CONSTEXPR Ukey2ClientInit_CipherCommitmentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Ukey2ClientInit_CipherCommitmentDefaultTypeInternal() {} - union { - Ukey2ClientInit_CipherCommitment _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ClientInit_CipherCommitmentDefaultTypeInternal _Ukey2ClientInit_CipherCommitment_default_instance_; - -inline constexpr Ukey2ClientFinished::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - public_key_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -PROTOBUF_CONSTEXPR Ukey2ClientFinished::Ukey2ClientFinished(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(Ukey2ClientFinished_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct Ukey2ClientFinishedDefaultTypeInternal { - PROTOBUF_CONSTEXPR Ukey2ClientFinishedDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Ukey2ClientFinishedDefaultTypeInternal() {} - union { - Ukey2ClientFinished _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ClientFinishedDefaultTypeInternal _Ukey2ClientFinished_default_instance_; - -inline constexpr Ukey2Alert::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - error_message_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - type_{static_cast< ::securegcm::Ukey2Alert_AlertType >(1)} {} - -template -PROTOBUF_CONSTEXPR Ukey2Alert::Ukey2Alert(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(Ukey2Alert_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct Ukey2AlertDefaultTypeInternal { - PROTOBUF_CONSTEXPR Ukey2AlertDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Ukey2AlertDefaultTypeInternal() {} - union { - Ukey2Alert _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2AlertDefaultTypeInternal _Ukey2Alert_default_instance_; - -inline constexpr Ukey2ClientInit::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - cipher_commitments_{}, - random_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - next_protocol_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - version_{0} {} - -template -PROTOBUF_CONSTEXPR Ukey2ClientInit::Ukey2ClientInit(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(Ukey2ClientInit_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct Ukey2ClientInitDefaultTypeInternal { - PROTOBUF_CONSTEXPR Ukey2ClientInitDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Ukey2ClientInitDefaultTypeInternal() {} - union { - Ukey2ClientInit _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Ukey2ClientInitDefaultTypeInternal _Ukey2ClientInit_default_instance_; -} // namespace securegcm -namespace securegcm { -PROTOBUF_CONSTINIT const uint32_t Ukey2Message_Type_internal_data_[] = { - 327680u, 0u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - Ukey2Message_Type_strings[5] = {}; - -static const char Ukey2Message_Type_names[] = { - "ALERT" - "CLIENT_FINISH" - "CLIENT_INIT" - "SERVER_INIT" - "UNKNOWN_DO_NOT_USE" -}; - -static const ::google::protobuf::internal::EnumEntry Ukey2Message_Type_entries[] = { - {{&Ukey2Message_Type_names[0], 5}, 1}, - {{&Ukey2Message_Type_names[5], 13}, 4}, - {{&Ukey2Message_Type_names[18], 11}, 2}, - {{&Ukey2Message_Type_names[29], 11}, 3}, - {{&Ukey2Message_Type_names[40], 18}, 0}, -}; - -static const int Ukey2Message_Type_entries_by_number[] = { - 4, // 0 -> UNKNOWN_DO_NOT_USE - 0, // 1 -> ALERT - 2, // 2 -> CLIENT_INIT - 3, // 3 -> SERVER_INIT - 1, // 4 -> CLIENT_FINISH -}; - -const ::std::string& Ukey2Message_Type_Name(Ukey2Message_Type value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - Ukey2Message_Type_entries, Ukey2Message_Type_entries_by_number, 5, - Ukey2Message_Type_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(Ukey2Message_Type_entries, - Ukey2Message_Type_entries_by_number, - 5, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Ukey2Message_Type_strings[idx].get(); -} - -bool Ukey2Message_Type_Parse(::absl::string_view name, Ukey2Message_Type* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - Ukey2Message_Type_entries, 5, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -PROTOBUF_CONSTINIT const uint32_t Ukey2Alert_AlertType_internal_data_[] = { - 262145u, 65664u, 0u, 0u, 2147483648u, 15u, 200u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - Ukey2Alert_AlertType_strings[10] = {}; - -static const char Ukey2Alert_AlertType_names[] = { - "BAD_HANDSHAKE_CIPHER" - "BAD_MESSAGE" - "BAD_MESSAGE_DATA" - "BAD_MESSAGE_TYPE" - "BAD_NEXT_PROTOCOL" - "BAD_PUBLIC_KEY" - "BAD_RANDOM" - "BAD_VERSION" - "INCORRECT_MESSAGE" - "INTERNAL_ERROR" -}; - -static const ::google::protobuf::internal::EnumEntry Ukey2Alert_AlertType_entries[] = { - {{&Ukey2Alert_AlertType_names[0], 20}, 102}, - {{&Ukey2Alert_AlertType_names[20], 11}, 1}, - {{&Ukey2Alert_AlertType_names[31], 16}, 4}, - {{&Ukey2Alert_AlertType_names[47], 16}, 2}, - {{&Ukey2Alert_AlertType_names[63], 17}, 103}, - {{&Ukey2Alert_AlertType_names[80], 14}, 104}, - {{&Ukey2Alert_AlertType_names[94], 10}, 101}, - {{&Ukey2Alert_AlertType_names[104], 11}, 100}, - {{&Ukey2Alert_AlertType_names[115], 17}, 3}, - {{&Ukey2Alert_AlertType_names[132], 14}, 200}, -}; - -static const int Ukey2Alert_AlertType_entries_by_number[] = { - 1, // 1 -> BAD_MESSAGE - 3, // 2 -> BAD_MESSAGE_TYPE - 8, // 3 -> INCORRECT_MESSAGE - 2, // 4 -> BAD_MESSAGE_DATA - 7, // 100 -> BAD_VERSION - 6, // 101 -> BAD_RANDOM - 0, // 102 -> BAD_HANDSHAKE_CIPHER - 4, // 103 -> BAD_NEXT_PROTOCOL - 5, // 104 -> BAD_PUBLIC_KEY - 9, // 200 -> INTERNAL_ERROR -}; - -const ::std::string& Ukey2Alert_AlertType_Name(Ukey2Alert_AlertType value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - Ukey2Alert_AlertType_entries, Ukey2Alert_AlertType_entries_by_number, 10, - Ukey2Alert_AlertType_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(Ukey2Alert_AlertType_entries, - Ukey2Alert_AlertType_entries_by_number, - 10, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Ukey2Alert_AlertType_strings[idx].get(); -} - -bool Ukey2Alert_AlertType_Parse(::absl::string_view name, Ukey2Alert_AlertType* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - Ukey2Alert_AlertType_entries, 10, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -PROTOBUF_CONSTINIT const uint32_t Ukey2HandshakeCipher_internal_data_[] = { - 65536u, 131072u, 200u, 100u, }; -static ::google::protobuf::internal::ExplicitlyConstructed<::std::string> - Ukey2HandshakeCipher_strings[3] = {}; - -static const char Ukey2HandshakeCipher_names[] = { - "CURVE25519_SHA512" - "P256_SHA512" - "RESERVED" -}; - -static const ::google::protobuf::internal::EnumEntry Ukey2HandshakeCipher_entries[] = { - {{&Ukey2HandshakeCipher_names[0], 17}, 200}, - {{&Ukey2HandshakeCipher_names[17], 11}, 100}, - {{&Ukey2HandshakeCipher_names[28], 8}, 0}, -}; - -static const int Ukey2HandshakeCipher_entries_by_number[] = { - 2, // 0 -> RESERVED - 1, // 100 -> P256_SHA512 - 0, // 200 -> CURVE25519_SHA512 -}; - -const ::std::string& Ukey2HandshakeCipher_Name(Ukey2HandshakeCipher value) { - static const bool kDummy = ::google::protobuf::internal::InitializeEnumStrings( - Ukey2HandshakeCipher_entries, Ukey2HandshakeCipher_entries_by_number, 3, - Ukey2HandshakeCipher_strings); - (void)kDummy; - - int idx = ::google::protobuf::internal::LookUpEnumName(Ukey2HandshakeCipher_entries, - Ukey2HandshakeCipher_entries_by_number, - 3, value); - return idx == -1 ? ::google::protobuf::internal::GetEmptyString() : Ukey2HandshakeCipher_strings[idx].get(); -} - -bool Ukey2HandshakeCipher_Parse(::absl::string_view name, Ukey2HandshakeCipher* PROTOBUF_NONNULL value) { - int int_value; - bool success = ::google::protobuf::internal::LookUpEnumValue( - Ukey2HandshakeCipher_entries, 3, name, &int_value); - if (success) { - *value = static_cast(int_value); - } - return success; -} -// =================================================================== - -class Ukey2Message::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_._has_bits_); -}; - -Ukey2Message::Ukey2Message(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2Message_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2Message) -} -PROTOBUF_NDEBUG_INLINE Ukey2Message::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::Ukey2Message& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - message_data_(arena, from.message_data_) {} - -Ukey2Message::Ukey2Message( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Ukey2Message& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2Message_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Ukey2Message* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.message_type_ = from._impl_.message_type_; - - // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2Message) -} -PROTOBUF_NDEBUG_INLINE Ukey2Message::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - message_data_(arena) {} - -inline void Ukey2Message::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.message_type_ = {}; -} -Ukey2Message::~Ukey2Message() { - // @@protoc_insertion_point(destructor:securegcm.Ukey2Message) - SharedDtor(*this); -} -inline void Ukey2Message::SharedDtor(MessageLite& self) { - Ukey2Message& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.message_data_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Ukey2Message::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Ukey2Message(arena); -} -constexpr auto Ukey2Message::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2Message), - alignof(Ukey2Message)); -} -constexpr auto Ukey2Message::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<23>{ - { - &_Ukey2Message_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Ukey2Message::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Ukey2Message::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2Message::ByteSizeLong, - &Ukey2Message::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_._cached_size_), - true, - }, - "securegcm.Ukey2Message", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<23> Ukey2Message_class_data_ = - Ukey2Message::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Ukey2Message::GetClassData() const { - return Ukey2Message_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> -Ukey2Message::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Ukey2Message_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::Ukey2Message>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional bytes message_data = 2; - {::_pbi::TcParser::FastBS1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_data_)}}, - // optional .securegcm.Ukey2Message.Type message_type = 1; - {::_pbi::TcParser::FastEr0S1, - {8, 1, 4, - PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional .securegcm.Ukey2Message.Type message_type = 1; - {PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)}, - // optional bytes message_data = 2; - {PROTOBUF_FIELD_OFFSET(Ukey2Message, _impl_.message_data_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - {{ - {0, 4}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void Ukey2Message::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2Message) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.message_data_.ClearNonDefaultToEmpty(); - } - _impl_.message_type_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Ukey2Message::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Ukey2Message& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Ukey2Message::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Ukey2Message& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2Message) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional .securegcm.Ukey2Message.Type message_type = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this_._internal_message_type(), target); - } - - // optional bytes message_data = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_message_data(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2Message) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Ukey2Message::ByteSizeLong(const MessageLite& base) { - const Ukey2Message& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Ukey2Message::ByteSizeLong() const { - const Ukey2Message& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2Message) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // optional bytes message_data = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_message_data()); - } - // optional .securegcm.Ukey2Message.Type message_type = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_message_type()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Ukey2Message::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2Message) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_message_data(from._internal_message_data()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_impl_.message_type_ = from._impl_.message_type_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void Ukey2Message::CopyFrom(const Ukey2Message& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2Message) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Ukey2Message::InternalSwap(Ukey2Message* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_data_, &other->_impl_.message_data_, arena); - swap(_impl_.message_type_, other->_impl_.message_type_); -} - -// =================================================================== - -class Ukey2Alert::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_._has_bits_); -}; - -Ukey2Alert::Ukey2Alert(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2Alert_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2Alert) -} -PROTOBUF_NDEBUG_INLINE Ukey2Alert::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::Ukey2Alert& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - error_message_(arena, from.error_message_) {} - -Ukey2Alert::Ukey2Alert( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Ukey2Alert& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2Alert_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Ukey2Alert* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.type_ = from._impl_.type_; - - // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2Alert) -} -PROTOBUF_NDEBUG_INLINE Ukey2Alert::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - error_message_(arena), - type_{static_cast< ::securegcm::Ukey2Alert_AlertType >(1)} {} - -inline void Ukey2Alert::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Ukey2Alert::~Ukey2Alert() { - // @@protoc_insertion_point(destructor:securegcm.Ukey2Alert) - SharedDtor(*this); -} -inline void Ukey2Alert::SharedDtor(MessageLite& self) { - Ukey2Alert& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.error_message_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Ukey2Alert::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Ukey2Alert(arena); -} -constexpr auto Ukey2Alert::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2Alert), - alignof(Ukey2Alert)); -} -constexpr auto Ukey2Alert::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<21>{ - { - &_Ukey2Alert_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Ukey2Alert::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Ukey2Alert::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2Alert::ByteSizeLong, - &Ukey2Alert::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_._cached_size_), - true, - }, - "securegcm.Ukey2Alert", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<21> Ukey2Alert_class_data_ = - Ukey2Alert::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Ukey2Alert::GetClassData() const { - return Ukey2Alert_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> -Ukey2Alert::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Ukey2Alert_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::Ukey2Alert>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional string error_message = 2; - {::_pbi::TcParser::FastBS1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.error_message_)}}, - // optional .securegcm.Ukey2Alert.AlertType type = 1; - {::_pbi::TcParser::FastEvS1, - {8, 1, 0, - PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional .securegcm.Ukey2Alert.AlertType type = 1; - {PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, - // optional string error_message = 2; - {PROTOBUF_FIELD_OFFSET(Ukey2Alert, _impl_.error_message_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - {{ - {::_pbi::FieldAuxEnumData{}, ::securegcm::Ukey2Alert_AlertType_internal_data_}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void Ukey2Alert::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2Alert) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.error_message_.ClearNonDefaultToEmpty(); - } - _impl_.type_ = 1; - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Ukey2Alert::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Ukey2Alert& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Ukey2Alert::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Ukey2Alert& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2Alert) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional .securegcm.Ukey2Alert.AlertType type = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this_._internal_type(), target); - } - - // optional string error_message = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_error_message(); - target = stream->WriteStringMaybeAliased(2, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2Alert) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Ukey2Alert::ByteSizeLong(const MessageLite& base) { - const Ukey2Alert& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Ukey2Alert::ByteSizeLong() const { - const Ukey2Alert& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2Alert) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // optional string error_message = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_error_message()); - } - // optional .securegcm.Ukey2Alert.AlertType type = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Ukey2Alert::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2Alert) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_error_message(from._internal_error_message()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_impl_.type_ = from._impl_.type_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void Ukey2Alert::CopyFrom(const Ukey2Alert& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2Alert) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Ukey2Alert::InternalSwap(Ukey2Alert* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.error_message_, &other->_impl_.error_message_, arena); - swap(_impl_.type_, other->_impl_.type_); -} - -// =================================================================== - -class Ukey2ClientInit_CipherCommitment::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_._has_bits_); -}; - -Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_CipherCommitment_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ClientInit.CipherCommitment) -} -PROTOBUF_NDEBUG_INLINE Ukey2ClientInit_CipherCommitment::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::Ukey2ClientInit_CipherCommitment& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - commitment_(arena, from.commitment_) {} - -Ukey2ClientInit_CipherCommitment::Ukey2ClientInit_CipherCommitment( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Ukey2ClientInit_CipherCommitment& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_CipherCommitment_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Ukey2ClientInit_CipherCommitment* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.handshake_cipher_ = from._impl_.handshake_cipher_; - - // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ClientInit.CipherCommitment) -} -PROTOBUF_NDEBUG_INLINE Ukey2ClientInit_CipherCommitment::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - commitment_(arena) {} - -inline void Ukey2ClientInit_CipherCommitment::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.handshake_cipher_ = {}; -} -Ukey2ClientInit_CipherCommitment::~Ukey2ClientInit_CipherCommitment() { - // @@protoc_insertion_point(destructor:securegcm.Ukey2ClientInit.CipherCommitment) - SharedDtor(*this); -} -inline void Ukey2ClientInit_CipherCommitment::SharedDtor(MessageLite& self) { - Ukey2ClientInit_CipherCommitment& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.commitment_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Ukey2ClientInit_CipherCommitment(arena); -} -constexpr auto Ukey2ClientInit_CipherCommitment::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2ClientInit_CipherCommitment), - alignof(Ukey2ClientInit_CipherCommitment)); -} -constexpr auto Ukey2ClientInit_CipherCommitment::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<43>{ - { - &_Ukey2ClientInit_CipherCommitment_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Ukey2ClientInit_CipherCommitment::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Ukey2ClientInit_CipherCommitment::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ClientInit_CipherCommitment::ByteSizeLong, - &Ukey2ClientInit_CipherCommitment::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_._cached_size_), - true, - }, - "securegcm.Ukey2ClientInit.CipherCommitment", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<43> Ukey2ClientInit_CipherCommitment_class_data_ = - Ukey2ClientInit_CipherCommitment::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Ukey2ClientInit_CipherCommitment::GetClassData() const { - return Ukey2ClientInit_CipherCommitment_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> -Ukey2ClientInit_CipherCommitment::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967292, // skipmap - offsetof(decltype(_table_), field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Ukey2ClientInit_CipherCommitment_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientInit_CipherCommitment>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional bytes commitment = 2; - {::_pbi::TcParser::FastBS1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.commitment_)}}, - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; - {::_pbi::TcParser::FastEvS1, - {8, 1, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.handshake_cipher_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; - {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.handshake_cipher_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, - // optional bytes commitment = 2; - {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit_CipherCommitment, _impl_.commitment_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - {{ - {::_pbi::FieldAuxEnumData{}, ::securegcm::Ukey2HandshakeCipher_internal_data_}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void Ukey2ClientInit_CipherCommitment::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ClientInit.CipherCommitment) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.commitment_.ClearNonDefaultToEmpty(); - } - _impl_.handshake_cipher_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Ukey2ClientInit_CipherCommitment& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Ukey2ClientInit_CipherCommitment& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ClientInit.CipherCommitment) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this_._internal_handshake_cipher(), target); - } - - // optional bytes commitment = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_commitment(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ClientInit.CipherCommitment) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Ukey2ClientInit_CipherCommitment::ByteSizeLong(const MessageLite& base) { - const Ukey2ClientInit_CipherCommitment& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Ukey2ClientInit_CipherCommitment::ByteSizeLong() const { - const Ukey2ClientInit_CipherCommitment& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientInit.CipherCommitment) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // optional bytes commitment = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_commitment()); - } - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_handshake_cipher()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Ukey2ClientInit_CipherCommitment::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientInit.CipherCommitment) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_commitment(from._internal_commitment()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_impl_.handshake_cipher_ = from._impl_.handshake_cipher_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void Ukey2ClientInit_CipherCommitment::CopyFrom(const Ukey2ClientInit_CipherCommitment& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientInit.CipherCommitment) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Ukey2ClientInit_CipherCommitment::InternalSwap(Ukey2ClientInit_CipherCommitment* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.commitment_, &other->_impl_.commitment_, arena); - swap(_impl_.handshake_cipher_, other->_impl_.handshake_cipher_); -} - -// =================================================================== - -class Ukey2ClientInit::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_._has_bits_); -}; - -Ukey2ClientInit::Ukey2ClientInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ClientInit) -} -PROTOBUF_NDEBUG_INLINE Ukey2ClientInit::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::Ukey2ClientInit& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - cipher_commitments_{visibility, arena, from.cipher_commitments_}, - random_(arena, from.random_), - next_protocol_(arena, from.next_protocol_) {} - -Ukey2ClientInit::Ukey2ClientInit( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Ukey2ClientInit& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2ClientInit_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Ukey2ClientInit* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - _impl_.version_ = from._impl_.version_; - - // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ClientInit) -} -PROTOBUF_NDEBUG_INLINE Ukey2ClientInit::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - cipher_commitments_{visibility, arena}, - random_(arena), - next_protocol_(arena) {} - -inline void Ukey2ClientInit::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.version_ = {}; -} -Ukey2ClientInit::~Ukey2ClientInit() { - // @@protoc_insertion_point(destructor:securegcm.Ukey2ClientInit) - SharedDtor(*this); -} -inline void Ukey2ClientInit::SharedDtor(MessageLite& self) { - Ukey2ClientInit& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.random_.Destroy(); - this_._impl_.next_protocol_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Ukey2ClientInit::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Ukey2ClientInit(arena); -} -constexpr auto Ukey2ClientInit::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.cipher_commitments_) + - decltype(Ukey2ClientInit::_impl_.cipher_commitments_):: - InternalGetArenaOffset( - ::google::protobuf::MessageLite::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(Ukey2ClientInit), alignof(Ukey2ClientInit), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Ukey2ClientInit::PlacementNew_, - sizeof(Ukey2ClientInit), - alignof(Ukey2ClientInit)); - } -} -constexpr auto Ukey2ClientInit::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<26>{ - { - &_Ukey2ClientInit_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Ukey2ClientInit::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Ukey2ClientInit::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ClientInit::ByteSizeLong, - &Ukey2ClientInit::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_._cached_size_), - true, - }, - "securegcm.Ukey2ClientInit", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<26> Ukey2ClientInit_class_data_ = - Ukey2ClientInit::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Ukey2ClientInit::GetClassData() const { - return Ukey2ClientInit_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 0, 2> -Ukey2ClientInit::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Ukey2ClientInit_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientInit>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional string next_protocol = 4; - {::_pbi::TcParser::FastBS1, - {34, 2, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.next_protocol_)}}, - // optional int32 version = 1; - {::_pbi::TcParser::FastV32S1, - {8, 3, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.version_)}}, - // optional bytes random = 2; - {::_pbi::TcParser::FastBS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.random_)}}, - // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; - {::_pbi::TcParser::FastMtR1, - {26, 0, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.cipher_commitments_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional int32 version = 1; - {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // optional bytes random = 2; - {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.random_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; - {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.cipher_commitments_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // optional string next_protocol = 4; - {PROTOBUF_FIELD_OFFSET(Ukey2ClientInit, _impl_.next_protocol_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientInit_CipherCommitment>()}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void Ukey2ClientInit::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ClientInit) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _impl_.cipher_commitments_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.random_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.next_protocol_.ClearNonDefaultToEmpty(); - } - } - _impl_.version_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Ukey2ClientInit& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Ukey2ClientInit::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Ukey2ClientInit& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ClientInit) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional int32 version = 1; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( - stream, this_._internal_version(), target); - } - - // optional bytes random = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - const ::std::string& _s = this_._internal_random(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - for (unsigned i = 0, n = static_cast( - this_._internal_cipher_commitments_size()); - i < n; i++) { - const auto& repfield = this_._internal_cipher_commitments().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, repfield, repfield.GetCachedSize(), - target, stream); - } - } - - // optional string next_protocol = 4; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - const ::std::string& _s = this_._internal_next_protocol(); - target = stream->WriteStringMaybeAliased(4, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ClientInit) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Ukey2ClientInit::ByteSizeLong(const MessageLite& base) { - const Ukey2ClientInit& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Ukey2ClientInit::ByteSizeLong() const { - const Ukey2ClientInit& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientInit) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - total_size += 1UL * this_._internal_cipher_commitments_size(); - for (const auto& msg : this_._internal_cipher_commitments()) { - total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); - } - } - // optional bytes random = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_random()); - } - // optional string next_protocol = 4; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_next_protocol()); - } - // optional int32 version = 1; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_version()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Ukey2ClientInit::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientInit) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBitForRepeated(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_cipher_commitments()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_cipher_commitments()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_set_random(from._internal_random()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_internal_set_next_protocol(from._internal_next_protocol()); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_impl_.version_ = from._impl_.version_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void Ukey2ClientInit::CopyFrom(const Ukey2ClientInit& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientInit) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Ukey2ClientInit::InternalSwap(Ukey2ClientInit* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.cipher_commitments_.InternalSwap(&other->_impl_.cipher_commitments_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.random_, &other->_impl_.random_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.next_protocol_, &other->_impl_.next_protocol_, arena); - swap(_impl_.version_, other->_impl_.version_); -} - -// =================================================================== - -class Ukey2ServerInit::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_._has_bits_); -}; - -Ukey2ServerInit::Ukey2ServerInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2ServerInit_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ServerInit) -} -PROTOBUF_NDEBUG_INLINE Ukey2ServerInit::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::Ukey2ServerInit& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - random_(arena, from.random_), - public_key_(arena, from.public_key_) {} - -Ukey2ServerInit::Ukey2ServerInit( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Ukey2ServerInit& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2ServerInit_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Ukey2ServerInit* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, version_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, version_), - offsetof(Impl_, handshake_cipher_) - - offsetof(Impl_, version_) + - sizeof(Impl_::handshake_cipher_)); - - // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ServerInit) -} -PROTOBUF_NDEBUG_INLINE Ukey2ServerInit::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - random_(arena), - public_key_(arena) {} - -inline void Ukey2ServerInit::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, version_), - 0, - offsetof(Impl_, handshake_cipher_) - - offsetof(Impl_, version_) + - sizeof(Impl_::handshake_cipher_)); -} -Ukey2ServerInit::~Ukey2ServerInit() { - // @@protoc_insertion_point(destructor:securegcm.Ukey2ServerInit) - SharedDtor(*this); -} -inline void Ukey2ServerInit::SharedDtor(MessageLite& self) { - Ukey2ServerInit& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.random_.Destroy(); - this_._impl_.public_key_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Ukey2ServerInit::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Ukey2ServerInit(arena); -} -constexpr auto Ukey2ServerInit::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2ServerInit), - alignof(Ukey2ServerInit)); -} -constexpr auto Ukey2ServerInit::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<26>{ - { - &_Ukey2ServerInit_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Ukey2ServerInit::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Ukey2ServerInit::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ServerInit::ByteSizeLong, - &Ukey2ServerInit::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_._cached_size_), - true, - }, - "securegcm.Ukey2ServerInit", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<26> Ukey2ServerInit_class_data_ = - Ukey2ServerInit::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Ukey2ServerInit::GetClassData() const { - return Ukey2ServerInit_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 1, 0, 2> -Ukey2ServerInit::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967280, // skipmap - offsetof(decltype(_table_), field_entries), - 4, // num_field_entries - 1, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - Ukey2ServerInit_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::Ukey2ServerInit>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional bytes public_key = 4; - {::_pbi::TcParser::FastBS1, - {34, 1, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.public_key_)}}, - // optional int32 version = 1; - {::_pbi::TcParser::FastV32S1, - {8, 2, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.version_)}}, - // optional bytes random = 2; - {::_pbi::TcParser::FastBS1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.random_)}}, - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; - {::_pbi::TcParser::FastEvS1, - {24, 3, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.handshake_cipher_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional int32 version = 1; - {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.version_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // optional bytes random = 2; - {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.random_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; - {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.handshake_cipher_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kEnum)}, - // optional bytes public_key = 4; - {PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.public_key_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - {{ - {::_pbi::FieldAuxEnumData{}, ::securegcm::Ukey2HandshakeCipher_internal_data_}, - }}, - {{ - }}, -}; -PROTOBUF_NOINLINE void Ukey2ServerInit::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ServerInit) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.random_.ClearNonDefaultToEmpty(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.public_key_.ClearNonDefaultToEmpty(); - } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000000cU)) { - ::memset(&_impl_.version_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.handshake_cipher_) - - reinterpret_cast(&_impl_.version_)) + sizeof(_impl_.handshake_cipher_)); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Ukey2ServerInit::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Ukey2ServerInit& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Ukey2ServerInit::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Ukey2ServerInit& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ServerInit) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional int32 version = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<1>( - stream, this_._internal_version(), target); - } - - // optional bytes random = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_random(); - target = stream->WriteBytesMaybeAliased(2, _s, target); - } - - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this_._internal_handshake_cipher(), target); - } - - // optional bytes public_key = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - const ::std::string& _s = this_._internal_public_key(); - target = stream->WriteBytesMaybeAliased(4, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ServerInit) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Ukey2ServerInit::ByteSizeLong(const MessageLite& base) { - const Ukey2ServerInit& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Ukey2ServerInit::ByteSizeLong() const { - const Ukey2ServerInit& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ServerInit) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - // optional bytes random = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_random()); - } - // optional bytes public_key = 4; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_public_key()); - } - // optional int32 version = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_version()); - } - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_handshake_cipher()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Ukey2ServerInit::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ServerInit) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_random(from._internal_random()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_set_public_key(from._internal_public_key()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_impl_.version_ = from._impl_.version_; - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_impl_.handshake_cipher_ = from._impl_.handshake_cipher_; - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void Ukey2ServerInit::CopyFrom(const Ukey2ServerInit& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ServerInit) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Ukey2ServerInit::InternalSwap(Ukey2ServerInit* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.random_, &other->_impl_.random_, arena); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); - ::google::protobuf::internal::memswap< - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.handshake_cipher_) - + sizeof(Ukey2ServerInit::_impl_.handshake_cipher_) - - PROTOBUF_FIELD_OFFSET(Ukey2ServerInit, _impl_.version_)>( - reinterpret_cast(&_impl_.version_), - reinterpret_cast(&other->_impl_.version_)); -} - -// =================================================================== - -class Ukey2ClientFinished::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_._has_bits_); -}; - -Ukey2ClientFinished::Ukey2ClientFinished(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2ClientFinished_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:securegcm.Ukey2ClientFinished) -} -PROTOBUF_NDEBUG_INLINE Ukey2ClientFinished::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::securegcm::Ukey2ClientFinished& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - public_key_(arena, from.public_key_) {} - -Ukey2ClientFinished::Ukey2ClientFinished( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const Ukey2ClientFinished& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::MessageLite(arena, Ukey2ClientFinished_class_data_.base()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::MessageLite(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - Ukey2ClientFinished* const _this = this; - (void)_this; - _internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); - new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - - // @@protoc_insertion_point(copy_constructor:securegcm.Ukey2ClientFinished) -} -PROTOBUF_NDEBUG_INLINE Ukey2ClientFinished::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - public_key_(arena) {} - -inline void Ukey2ClientFinished::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); -} -Ukey2ClientFinished::~Ukey2ClientFinished() { - // @@protoc_insertion_point(destructor:securegcm.Ukey2ClientFinished) - SharedDtor(*this); -} -inline void Ukey2ClientFinished::SharedDtor(MessageLite& self) { - Ukey2ClientFinished& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::std::string>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.public_key_.Destroy(); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Ukey2ClientFinished::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Ukey2ClientFinished(arena); -} -constexpr auto Ukey2ClientFinished::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Ukey2ClientFinished), - alignof(Ukey2ClientFinished)); -} -constexpr auto Ukey2ClientFinished::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataLite<30>{ - { - &_Ukey2ClientFinished_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Ukey2ClientFinished::MergeImpl, - ::google::protobuf::MessageLite::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Ukey2ClientFinished::SharedDtor, - ::google::protobuf::MessageLite::GetClearImpl(), &Ukey2ClientFinished::ByteSizeLong, - &Ukey2ClientFinished::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_._cached_size_), - true, - }, - "securegcm.Ukey2ClientFinished", - }; -} - -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::google::protobuf::internal::ClassDataLite<30> Ukey2ClientFinished_class_data_ = - Ukey2ClientFinished::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Ukey2ClientFinished::GetClassData() const { - return Ukey2ClientFinished_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> -Ukey2ClientFinished::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967294, // skipmap - offsetof(decltype(_table_), field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - Ukey2ClientFinished_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallbackLite, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::securegcm::Ukey2ClientFinished>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // optional bytes public_key = 1; - {::_pbi::TcParser::FastBS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_.public_key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // optional bytes public_key = 1; - {PROTOBUF_FIELD_OFFSET(Ukey2ClientFinished, _impl_.public_key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBytes | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - }}, -}; -PROTOBUF_NOINLINE void Ukey2ClientFinished::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.Ukey2ClientFinished) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.public_key_.ClearNonDefaultToEmpty(); - } - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::std::string>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL Ukey2ClientFinished::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const Ukey2ClientFinished& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL Ukey2ClientFinished::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const Ukey2ClientFinished& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:securegcm.Ukey2ClientFinished) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // optional bytes public_key = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - const ::std::string& _s = this_._internal_public_key(); - target = stream->WriteBytesMaybeAliased(1, _s, target); - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw( - this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).data(), - static_cast(this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.Ukey2ClientFinished) - return target; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t Ukey2ClientFinished::ByteSizeLong(const MessageLite& base) { - const Ukey2ClientFinished& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t Ukey2ClientFinished::ByteSizeLong() const { - const Ukey2ClientFinished& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:securegcm.Ukey2ClientFinished) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - { - // optional bytes public_key = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::BytesSize( - this_._internal_public_key()); - } - } - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - total_size += this_._internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString).size(); - } - this_._impl_._cached_size_.Set(::_pbi::ToCachedSize(total_size)); - return total_size; -} - -void Ukey2ClientFinished::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = - static_cast(&to_msg); - auto& from = static_cast(from_msg); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:securegcm.Ukey2ClientFinished) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_set_public_key(from._internal_public_key()); - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::std::string>( - from._internal_metadata_); -} - -void Ukey2ClientFinished::CopyFrom(const Ukey2ClientFinished& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:securegcm.Ukey2ClientFinished) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void Ukey2ClientFinished::InternalSwap(Ukey2ClientFinished* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - auto* arena = GetArena(); - ABSL_DCHECK_EQ(arena, other->GetArena()); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.public_key_, &other->_impl_.public_key_, arena); -} - -// @@protoc_insertion_point(namespace_scope) -} // namespace securegcm -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -// @@protoc_insertion_point(global_scope) -#include "google/protobuf/port_undef.inc" diff --git a/third_party/ukey2/compiled_proto/proto/ukey.pb.h b/third_party/ukey2/compiled_proto/proto/ukey.pb.h deleted file mode 100644 index 5169cf9d..00000000 --- a/third_party/ukey2/compiled_proto/proto/ukey.pb.h +++ /dev/null @@ -1,2324 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: proto/ukey.proto -// Protobuf C++ Version: 6.33.3 - -#ifndef proto_2fukey_2eproto_2epb_2eh -#define proto_2fukey_2eproto_2epb_2eh - -#include -#include -#include -#include - -#include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6033003 -#error "Protobuf C++ gencode is built with an incompatible version of" -#error "Protobuf C++ headers/runtime. See" -#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp" -#endif -#include "google/protobuf/io/coded_stream.h" -#include "google/protobuf/arena.h" -#include "google/protobuf/arenastring.h" -#include "google/protobuf/generated_message_tctable_decl.h" -#include "google/protobuf/generated_message_util.h" -#include "google/protobuf/metadata_lite.h" -#include "google/protobuf/message_lite.h" -#include "google/protobuf/repeated_field.h" // IWYU pragma: export -#include "google/protobuf/extension_set.h" // IWYU pragma: export -#include "google/protobuf/generated_enum_util.h" -// @@protoc_insertion_point(includes) - -// Must be included last. -#include "google/protobuf/port_def.inc" - -#define PROTOBUF_INTERNAL_EXPORT_proto_2fukey_2eproto - -namespace google { -namespace protobuf { -namespace internal { -template -::absl::string_view GetAnyMessageName(); -} // namespace internal -} // namespace protobuf -} // namespace google - -// Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fukey_2eproto { - static const ::uint32_t offsets[]; -}; -namespace securegcm { -enum Ukey2Alert_AlertType : int; -extern const uint32_t Ukey2Alert_AlertType_internal_data_[]; -enum Ukey2HandshakeCipher : int; -extern const uint32_t Ukey2HandshakeCipher_internal_data_[]; -enum Ukey2Message_Type : int; -extern const uint32_t Ukey2Message_Type_internal_data_[]; -class Ukey2Alert; -struct Ukey2AlertDefaultTypeInternal; -extern Ukey2AlertDefaultTypeInternal _Ukey2Alert_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<21> Ukey2Alert_class_data_; -class Ukey2ClientFinished; -struct Ukey2ClientFinishedDefaultTypeInternal; -extern Ukey2ClientFinishedDefaultTypeInternal _Ukey2ClientFinished_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<30> Ukey2ClientFinished_class_data_; -class Ukey2ClientInit; -struct Ukey2ClientInitDefaultTypeInternal; -extern Ukey2ClientInitDefaultTypeInternal _Ukey2ClientInit_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ClientInit_class_data_; -class Ukey2ClientInit_CipherCommitment; -struct Ukey2ClientInit_CipherCommitmentDefaultTypeInternal; -extern Ukey2ClientInit_CipherCommitmentDefaultTypeInternal _Ukey2ClientInit_CipherCommitment_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<43> Ukey2ClientInit_CipherCommitment_class_data_; -class Ukey2Message; -struct Ukey2MessageDefaultTypeInternal; -extern Ukey2MessageDefaultTypeInternal _Ukey2Message_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<23> Ukey2Message_class_data_; -class Ukey2ServerInit; -struct Ukey2ServerInitDefaultTypeInternal; -extern Ukey2ServerInitDefaultTypeInternal _Ukey2ServerInit_default_instance_; -extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ServerInit_class_data_; -} // namespace securegcm -namespace google { -namespace protobuf { -template <> -internal::EnumTraitsT<::securegcm::Ukey2Alert_AlertType_internal_data_> - internal::EnumTraitsImpl::value<::securegcm::Ukey2Alert_AlertType>; -template <> -internal::EnumTraitsT<::securegcm::Ukey2HandshakeCipher_internal_data_> - internal::EnumTraitsImpl::value<::securegcm::Ukey2HandshakeCipher>; -template <> -internal::EnumTraitsT<::securegcm::Ukey2Message_Type_internal_data_> - internal::EnumTraitsImpl::value<::securegcm::Ukey2Message_Type>; -} // namespace protobuf -} // namespace google - -namespace securegcm { -enum Ukey2Message_Type : int { - Ukey2Message_Type_UNKNOWN_DO_NOT_USE = 0, - Ukey2Message_Type_ALERT = 1, - Ukey2Message_Type_CLIENT_INIT = 2, - Ukey2Message_Type_SERVER_INIT = 3, - Ukey2Message_Type_CLIENT_FINISH = 4, -}; - -extern const uint32_t Ukey2Message_Type_internal_data_[]; -inline constexpr Ukey2Message_Type Ukey2Message_Type_Type_MIN = - static_cast(0); -inline constexpr Ukey2Message_Type Ukey2Message_Type_Type_MAX = - static_cast(4); -inline bool Ukey2Message_Type_IsValid(int value) { - return 0 <= value && value <= 4; -} -inline constexpr int Ukey2Message_Type_Type_ARRAYSIZE = 4 + 1; -const ::std::string& Ukey2Message_Type_Name(Ukey2Message_Type value); -template -const ::std::string& Ukey2Message_Type_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to Type_Name()."); - return Ukey2Message_Type_Name(static_cast(value)); -} -bool Ukey2Message_Type_Parse( - ::absl::string_view name, Ukey2Message_Type* PROTOBUF_NONNULL value); -enum Ukey2Alert_AlertType : int { - Ukey2Alert_AlertType_BAD_MESSAGE = 1, - Ukey2Alert_AlertType_BAD_MESSAGE_TYPE = 2, - Ukey2Alert_AlertType_INCORRECT_MESSAGE = 3, - Ukey2Alert_AlertType_BAD_MESSAGE_DATA = 4, - Ukey2Alert_AlertType_BAD_VERSION = 100, - Ukey2Alert_AlertType_BAD_RANDOM = 101, - Ukey2Alert_AlertType_BAD_HANDSHAKE_CIPHER = 102, - Ukey2Alert_AlertType_BAD_NEXT_PROTOCOL = 103, - Ukey2Alert_AlertType_BAD_PUBLIC_KEY = 104, - Ukey2Alert_AlertType_INTERNAL_ERROR = 200, -}; - -extern const uint32_t Ukey2Alert_AlertType_internal_data_[]; -inline constexpr Ukey2Alert_AlertType Ukey2Alert_AlertType_AlertType_MIN = - static_cast(1); -inline constexpr Ukey2Alert_AlertType Ukey2Alert_AlertType_AlertType_MAX = - static_cast(200); -inline bool Ukey2Alert_AlertType_IsValid(int value) { - return ::google::protobuf::internal::ValidateEnum(value, Ukey2Alert_AlertType_internal_data_); -} -inline constexpr int Ukey2Alert_AlertType_AlertType_ARRAYSIZE = 200 + 1; -const ::std::string& Ukey2Alert_AlertType_Name(Ukey2Alert_AlertType value); -template -const ::std::string& Ukey2Alert_AlertType_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to AlertType_Name()."); - return Ukey2Alert_AlertType_Name(static_cast(value)); -} -bool Ukey2Alert_AlertType_Parse( - ::absl::string_view name, Ukey2Alert_AlertType* PROTOBUF_NONNULL value); -enum Ukey2HandshakeCipher : int { - RESERVED = 0, - P256_SHA512 = 100, - CURVE25519_SHA512 = 200, -}; - -extern const uint32_t Ukey2HandshakeCipher_internal_data_[]; -inline constexpr Ukey2HandshakeCipher Ukey2HandshakeCipher_MIN = - static_cast(0); -inline constexpr Ukey2HandshakeCipher Ukey2HandshakeCipher_MAX = - static_cast(200); -inline bool Ukey2HandshakeCipher_IsValid(int value) { - return ::google::protobuf::internal::ValidateEnum(value, Ukey2HandshakeCipher_internal_data_); -} -inline constexpr int Ukey2HandshakeCipher_ARRAYSIZE = 200 + 1; -const ::std::string& Ukey2HandshakeCipher_Name(Ukey2HandshakeCipher value); -template -const ::std::string& Ukey2HandshakeCipher_Name(T value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to Ukey2HandshakeCipher_Name()."); - return Ukey2HandshakeCipher_Name(static_cast(value)); -} -bool Ukey2HandshakeCipher_Parse( - ::absl::string_view name, Ukey2HandshakeCipher* PROTOBUF_NONNULL value); - -// =================================================================== - - -// ------------------------------------------------------------------- - -class Ukey2ServerInit final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ServerInit) */ { - public: - inline Ukey2ServerInit() : Ukey2ServerInit(nullptr) {} - ~Ukey2ServerInit() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Ukey2ServerInit* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ServerInit)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Ukey2ServerInit(::google::protobuf::internal::ConstantInitialized); - - inline Ukey2ServerInit(const Ukey2ServerInit& from) : Ukey2ServerInit(nullptr, from) {} - inline Ukey2ServerInit(Ukey2ServerInit&& from) noexcept - : Ukey2ServerInit(nullptr, ::std::move(from)) {} - inline Ukey2ServerInit& operator=(const Ukey2ServerInit& from) { - CopyFrom(from); - return *this; - } - inline Ukey2ServerInit& operator=(Ukey2ServerInit&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const Ukey2ServerInit& default_instance() { - return *reinterpret_cast( - &_Ukey2ServerInit_default_instance_); - } - static constexpr int kIndexInFileMessages = 4; - friend void swap(Ukey2ServerInit& a, Ukey2ServerInit& b) { a.Swap(&b); } - inline void Swap(Ukey2ServerInit* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2ServerInit* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2ServerInit* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const Ukey2ServerInit& from); - void MergeFrom(const Ukey2ServerInit& from) { Ukey2ServerInit::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Ukey2ServerInit* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ServerInit"; } - - explicit Ukey2ServerInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Ukey2ServerInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ServerInit& from); - Ukey2ServerInit( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ServerInit&& from) noexcept - : Ukey2ServerInit(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kRandomFieldNumber = 2, - kPublicKeyFieldNumber = 4, - kVersionFieldNumber = 1, - kHandshakeCipherFieldNumber = 3, - }; - // optional bytes random = 2; - bool has_random() const; - void clear_random() ; - const ::std::string& random() const; - template - void set_random(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_random(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_random(); - void set_allocated_random(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_random() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_random(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_random(); - - public: - // optional bytes public_key = 4; - bool has_public_key() const; - void clear_public_key() ; - const ::std::string& public_key() const; - template - void set_public_key(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_public_key(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); - void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_public_key() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); - - public: - // optional int32 version = 1; - bool has_version() const; - void clear_version() ; - ::int32_t version() const; - void set_version(::int32_t value); - - private: - ::int32_t _internal_version() const; - void _internal_set_version(::int32_t value); - - public: - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; - bool has_handshake_cipher() const; - void clear_handshake_cipher() ; - ::securegcm::Ukey2HandshakeCipher handshake_cipher() const; - void set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - - private: - ::securegcm::Ukey2HandshakeCipher _internal_handshake_cipher() const; - void _internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.Ukey2ServerInit) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 4, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Ukey2ServerInit& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr random_; - ::google::protobuf::internal::ArenaStringPtr public_key_; - ::int32_t version_; - int handshake_cipher_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ServerInit_class_data_; -// ------------------------------------------------------------------- - -class Ukey2Message final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.Ukey2Message) */ { - public: - inline Ukey2Message() : Ukey2Message(nullptr) {} - ~Ukey2Message() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Ukey2Message* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2Message)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Ukey2Message(::google::protobuf::internal::ConstantInitialized); - - inline Ukey2Message(const Ukey2Message& from) : Ukey2Message(nullptr, from) {} - inline Ukey2Message(Ukey2Message&& from) noexcept - : Ukey2Message(nullptr, ::std::move(from)) {} - inline Ukey2Message& operator=(const Ukey2Message& from) { - CopyFrom(from); - return *this; - } - inline Ukey2Message& operator=(Ukey2Message&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const Ukey2Message& default_instance() { - return *reinterpret_cast( - &_Ukey2Message_default_instance_); - } - static constexpr int kIndexInFileMessages = 0; - friend void swap(Ukey2Message& a, Ukey2Message& b) { a.Swap(&b); } - inline void Swap(Ukey2Message* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2Message* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2Message* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const Ukey2Message& from); - void MergeFrom(const Ukey2Message& from) { Ukey2Message::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Ukey2Message* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.Ukey2Message"; } - - explicit Ukey2Message(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Ukey2Message(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2Message& from); - Ukey2Message( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2Message&& from) noexcept - : Ukey2Message(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - using Type = Ukey2Message_Type; - static constexpr Type UNKNOWN_DO_NOT_USE = Ukey2Message_Type_UNKNOWN_DO_NOT_USE; - static constexpr Type ALERT = Ukey2Message_Type_ALERT; - static constexpr Type CLIENT_INIT = Ukey2Message_Type_CLIENT_INIT; - static constexpr Type SERVER_INIT = Ukey2Message_Type_SERVER_INIT; - static constexpr Type CLIENT_FINISH = Ukey2Message_Type_CLIENT_FINISH; - static inline bool Type_IsValid(int value) { - return Ukey2Message_Type_IsValid(value); - } - static constexpr Type Type_MIN = Ukey2Message_Type_Type_MIN; - static constexpr Type Type_MAX = Ukey2Message_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = Ukey2Message_Type_Type_ARRAYSIZE; - template - static inline const ::std::string& Type_Name(T value) { - return Ukey2Message_Type_Name(value); - } - static inline bool Type_Parse( - ::absl::string_view name, Type* PROTOBUF_NONNULL value) { - return Ukey2Message_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - enum : int { - kMessageDataFieldNumber = 2, - kMessageTypeFieldNumber = 1, - }; - // optional bytes message_data = 2; - bool has_message_data() const; - void clear_message_data() ; - const ::std::string& message_data() const; - template - void set_message_data(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_message_data(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_message_data(); - void set_allocated_message_data(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_message_data() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_message_data(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_message_data(); - - public: - // optional .securegcm.Ukey2Message.Type message_type = 1; - bool has_message_type() const; - void clear_message_type() ; - ::securegcm::Ukey2Message_Type message_type() const; - void set_message_type(::securegcm::Ukey2Message_Type value); - - private: - ::securegcm::Ukey2Message_Type _internal_message_type() const; - void _internal_set_message_type(::securegcm::Ukey2Message_Type value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.Ukey2Message) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Ukey2Message& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr message_data_; - int message_type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<23> Ukey2Message_class_data_; -// ------------------------------------------------------------------- - -class Ukey2ClientInit_CipherCommitment final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientInit.CipherCommitment) */ { - public: - inline Ukey2ClientInit_CipherCommitment() : Ukey2ClientInit_CipherCommitment(nullptr) {} - ~Ukey2ClientInit_CipherCommitment() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ClientInit_CipherCommitment)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Ukey2ClientInit_CipherCommitment(::google::protobuf::internal::ConstantInitialized); - - inline Ukey2ClientInit_CipherCommitment(const Ukey2ClientInit_CipherCommitment& from) : Ukey2ClientInit_CipherCommitment(nullptr, from) {} - inline Ukey2ClientInit_CipherCommitment(Ukey2ClientInit_CipherCommitment&& from) noexcept - : Ukey2ClientInit_CipherCommitment(nullptr, ::std::move(from)) {} - inline Ukey2ClientInit_CipherCommitment& operator=(const Ukey2ClientInit_CipherCommitment& from) { - CopyFrom(from); - return *this; - } - inline Ukey2ClientInit_CipherCommitment& operator=(Ukey2ClientInit_CipherCommitment&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const Ukey2ClientInit_CipherCommitment& default_instance() { - return *reinterpret_cast( - &_Ukey2ClientInit_CipherCommitment_default_instance_); - } - static constexpr int kIndexInFileMessages = 2; - friend void swap(Ukey2ClientInit_CipherCommitment& a, Ukey2ClientInit_CipherCommitment& b) { a.Swap(&b); } - inline void Swap(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const Ukey2ClientInit_CipherCommitment& from); - void MergeFrom(const Ukey2ClientInit_CipherCommitment& from) { Ukey2ClientInit_CipherCommitment::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ClientInit.CipherCommitment"; } - - explicit Ukey2ClientInit_CipherCommitment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Ukey2ClientInit_CipherCommitment(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ClientInit_CipherCommitment& from); - Ukey2ClientInit_CipherCommitment( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ClientInit_CipherCommitment&& from) noexcept - : Ukey2ClientInit_CipherCommitment(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kCommitmentFieldNumber = 2, - kHandshakeCipherFieldNumber = 1, - }; - // optional bytes commitment = 2; - bool has_commitment() const; - void clear_commitment() ; - const ::std::string& commitment() const; - template - void set_commitment(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_commitment(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_commitment(); - void set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_commitment() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_commitment(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_commitment(); - - public: - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; - bool has_handshake_cipher() const; - void clear_handshake_cipher() ; - ::securegcm::Ukey2HandshakeCipher handshake_cipher() const; - void set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - - private: - ::securegcm::Ukey2HandshakeCipher _internal_handshake_cipher() const; - void _internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientInit.CipherCommitment) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Ukey2ClientInit_CipherCommitment& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr commitment_; - int handshake_cipher_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<43> Ukey2ClientInit_CipherCommitment_class_data_; -// ------------------------------------------------------------------- - -class Ukey2ClientFinished final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientFinished) */ { - public: - inline Ukey2ClientFinished() : Ukey2ClientFinished(nullptr) {} - ~Ukey2ClientFinished() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Ukey2ClientFinished* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ClientFinished)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Ukey2ClientFinished(::google::protobuf::internal::ConstantInitialized); - - inline Ukey2ClientFinished(const Ukey2ClientFinished& from) : Ukey2ClientFinished(nullptr, from) {} - inline Ukey2ClientFinished(Ukey2ClientFinished&& from) noexcept - : Ukey2ClientFinished(nullptr, ::std::move(from)) {} - inline Ukey2ClientFinished& operator=(const Ukey2ClientFinished& from) { - CopyFrom(from); - return *this; - } - inline Ukey2ClientFinished& operator=(Ukey2ClientFinished&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const Ukey2ClientFinished& default_instance() { - return *reinterpret_cast( - &_Ukey2ClientFinished_default_instance_); - } - static constexpr int kIndexInFileMessages = 5; - friend void swap(Ukey2ClientFinished& a, Ukey2ClientFinished& b) { a.Swap(&b); } - inline void Swap(Ukey2ClientFinished* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2ClientFinished* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2ClientFinished* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const Ukey2ClientFinished& from); - void MergeFrom(const Ukey2ClientFinished& from) { Ukey2ClientFinished::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Ukey2ClientFinished* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ClientFinished"; } - - explicit Ukey2ClientFinished(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Ukey2ClientFinished(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ClientFinished& from); - Ukey2ClientFinished( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ClientFinished&& from) noexcept - : Ukey2ClientFinished(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kPublicKeyFieldNumber = 1, - }; - // optional bytes public_key = 1; - bool has_public_key() const; - void clear_public_key() ; - const ::std::string& public_key() const; - template - void set_public_key(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_public_key(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_public_key(); - void set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_public_key() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_public_key(); - - public: - // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientFinished) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Ukey2ClientFinished& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr public_key_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<30> Ukey2ClientFinished_class_data_; -// ------------------------------------------------------------------- - -class Ukey2Alert final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.Ukey2Alert) */ { - public: - inline Ukey2Alert() : Ukey2Alert(nullptr) {} - ~Ukey2Alert() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Ukey2Alert* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2Alert)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Ukey2Alert(::google::protobuf::internal::ConstantInitialized); - - inline Ukey2Alert(const Ukey2Alert& from) : Ukey2Alert(nullptr, from) {} - inline Ukey2Alert(Ukey2Alert&& from) noexcept - : Ukey2Alert(nullptr, ::std::move(from)) {} - inline Ukey2Alert& operator=(const Ukey2Alert& from) { - CopyFrom(from); - return *this; - } - inline Ukey2Alert& operator=(Ukey2Alert&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const Ukey2Alert& default_instance() { - return *reinterpret_cast( - &_Ukey2Alert_default_instance_); - } - static constexpr int kIndexInFileMessages = 1; - friend void swap(Ukey2Alert& a, Ukey2Alert& b) { a.Swap(&b); } - inline void Swap(Ukey2Alert* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2Alert* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2Alert* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const Ukey2Alert& from); - void MergeFrom(const Ukey2Alert& from) { Ukey2Alert::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Ukey2Alert* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.Ukey2Alert"; } - - explicit Ukey2Alert(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Ukey2Alert(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2Alert& from); - Ukey2Alert( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2Alert&& from) noexcept - : Ukey2Alert(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - using AlertType = Ukey2Alert_AlertType; - static constexpr AlertType BAD_MESSAGE = Ukey2Alert_AlertType_BAD_MESSAGE; - static constexpr AlertType BAD_MESSAGE_TYPE = Ukey2Alert_AlertType_BAD_MESSAGE_TYPE; - static constexpr AlertType INCORRECT_MESSAGE = Ukey2Alert_AlertType_INCORRECT_MESSAGE; - static constexpr AlertType BAD_MESSAGE_DATA = Ukey2Alert_AlertType_BAD_MESSAGE_DATA; - static constexpr AlertType BAD_VERSION = Ukey2Alert_AlertType_BAD_VERSION; - static constexpr AlertType BAD_RANDOM = Ukey2Alert_AlertType_BAD_RANDOM; - static constexpr AlertType BAD_HANDSHAKE_CIPHER = Ukey2Alert_AlertType_BAD_HANDSHAKE_CIPHER; - static constexpr AlertType BAD_NEXT_PROTOCOL = Ukey2Alert_AlertType_BAD_NEXT_PROTOCOL; - static constexpr AlertType BAD_PUBLIC_KEY = Ukey2Alert_AlertType_BAD_PUBLIC_KEY; - static constexpr AlertType INTERNAL_ERROR = Ukey2Alert_AlertType_INTERNAL_ERROR; - static inline bool AlertType_IsValid(int value) { - return Ukey2Alert_AlertType_IsValid(value); - } - static constexpr AlertType AlertType_MIN = Ukey2Alert_AlertType_AlertType_MIN; - static constexpr AlertType AlertType_MAX = Ukey2Alert_AlertType_AlertType_MAX; - static constexpr int AlertType_ARRAYSIZE = Ukey2Alert_AlertType_AlertType_ARRAYSIZE; - template - static inline const ::std::string& AlertType_Name(T value) { - return Ukey2Alert_AlertType_Name(value); - } - static inline bool AlertType_Parse( - ::absl::string_view name, AlertType* PROTOBUF_NONNULL value) { - return Ukey2Alert_AlertType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - enum : int { - kErrorMessageFieldNumber = 2, - kTypeFieldNumber = 1, - }; - // optional string error_message = 2; - bool has_error_message() const; - void clear_error_message() ; - const ::std::string& error_message() const; - template - void set_error_message(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_error_message(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_error_message(); - void set_allocated_error_message(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_error_message() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_error_message(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_error_message(); - - public: - // optional .securegcm.Ukey2Alert.AlertType type = 1; - bool has_type() const; - void clear_type() ; - ::securegcm::Ukey2Alert_AlertType type() const; - void set_type(::securegcm::Ukey2Alert_AlertType value); - - private: - ::securegcm::Ukey2Alert_AlertType _internal_type() const; - void _internal_set_type(::securegcm::Ukey2Alert_AlertType value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.Ukey2Alert) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Ukey2Alert& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::ArenaStringPtr error_message_; - int type_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<21> Ukey2Alert_class_data_; -// ------------------------------------------------------------------- - -class Ukey2ClientInit final : public ::google::protobuf::MessageLite -/* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientInit) */ { - public: - inline Ukey2ClientInit() : Ukey2ClientInit(nullptr) {} - ~Ukey2ClientInit() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Ukey2ClientInit* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(Ukey2ClientInit)); - } -#endif - - template - explicit PROTOBUF_CONSTEXPR Ukey2ClientInit(::google::protobuf::internal::ConstantInitialized); - - inline Ukey2ClientInit(const Ukey2ClientInit& from) : Ukey2ClientInit(nullptr, from) {} - inline Ukey2ClientInit(Ukey2ClientInit&& from) noexcept - : Ukey2ClientInit(nullptr, ::std::move(from)) {} - inline Ukey2ClientInit& operator=(const Ukey2ClientInit& from) { - CopyFrom(from); - return *this; - } - inline Ukey2ClientInit& operator=(Ukey2ClientInit&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - inline const ::std::string& unknown_fields() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.unknown_fields<::std::string>(::google::protobuf::internal::GetEmptyString); - } - inline ::std::string* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::std::string>(); - } - - static const Ukey2ClientInit& default_instance() { - return *reinterpret_cast( - &_Ukey2ClientInit_default_instance_); - } - static constexpr int kIndexInFileMessages = 3; - friend void swap(Ukey2ClientInit& a, Ukey2ClientInit& b) { a.Swap(&b); } - inline void Swap(Ukey2ClientInit* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2ClientInit* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2ClientInit* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - return ::google::protobuf::MessageLite::DefaultConstruct(arena); - } - void CopyFrom(const Ukey2ClientInit& from); - void MergeFrom(const Ukey2ClientInit& from) { Ukey2ClientInit::MergeImpl(*this, from); } - - private: - static void MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(Ukey2ClientInit* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "securegcm.Ukey2ClientInit"; } - - explicit Ukey2ClientInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - Ukey2ClientInit(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Ukey2ClientInit& from); - Ukey2ClientInit( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Ukey2ClientInit&& from) noexcept - : Ukey2ClientInit(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_(); - - // nested types ---------------------------------------------------- - using CipherCommitment = Ukey2ClientInit_CipherCommitment; - - // accessors ------------------------------------------------------- - enum : int { - kCipherCommitmentsFieldNumber = 3, - kRandomFieldNumber = 2, - kNextProtocolFieldNumber = 4, - kVersionFieldNumber = 1, - }; - // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; - int cipher_commitments_size() const; - private: - int _internal_cipher_commitments_size() const; - - public: - void clear_cipher_commitments() ; - ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL mutable_cipher_commitments(int index); - ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL mutable_cipher_commitments(); - - private: - const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& _internal_cipher_commitments() const; - ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL _internal_mutable_cipher_commitments(); - public: - const ::securegcm::Ukey2ClientInit_CipherCommitment& cipher_commitments(int index) const; - ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL add_cipher_commitments(); - const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& cipher_commitments() const; - // optional bytes random = 2; - bool has_random() const; - void clear_random() ; - const ::std::string& random() const; - template - void set_random(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_random(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_random(); - void set_allocated_random(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_random() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_random(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_random(); - - public: - // optional string next_protocol = 4; - bool has_next_protocol() const; - void clear_next_protocol() ; - const ::std::string& next_protocol() const; - template - void set_next_protocol(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_next_protocol(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_next_protocol(); - void set_allocated_next_protocol(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_next_protocol() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_next_protocol(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_next_protocol(); - - public: - // optional int32 version = 1; - bool has_version() const; - void clear_version() ; - ::int32_t version() const; - void set_version(::int32_t value); - - private: - ::int32_t _internal_version() const; - void _internal_set_version(::int32_t value); - - public: - // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientInit) - private: - class _Internal; - friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 4, - 1, 0, - 2> - _table_; - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Ukey2ClientInit& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment > cipher_commitments_; - ::google::protobuf::internal::ArenaStringPtr random_; - ::google::protobuf::internal::ArenaStringPtr next_protocol_; - ::int32_t version_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; - -extern const ::google::protobuf::internal::ClassDataLite<26> Ukey2ClientInit_class_data_; - -// =================================================================== - - - - -// =================================================================== - - -#ifdef __GNUC__ -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// Ukey2Message - -// optional .securegcm.Ukey2Message.Type message_type = 1; -inline bool Ukey2Message::has_message_type() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void Ukey2Message::clear_message_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.message_type_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::securegcm::Ukey2Message_Type Ukey2Message::message_type() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2Message.message_type) - return _internal_message_type(); -} -inline void Ukey2Message::set_message_type(::securegcm::Ukey2Message_Type value) { - _internal_set_message_type(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:securegcm.Ukey2Message.message_type) -} -inline ::securegcm::Ukey2Message_Type Ukey2Message::_internal_message_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::securegcm::Ukey2Message_Type>(_impl_.message_type_); -} -inline void Ukey2Message::_internal_set_message_type(::securegcm::Ukey2Message_Type value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::Ukey2Message_Type_internal_data_)); - _impl_.message_type_ = value; -} - -// optional bytes message_data = 2; -inline bool Ukey2Message::has_message_data() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void Ukey2Message::clear_message_data() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.message_data_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Ukey2Message::message_data() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.Ukey2Message.message_data) - return _internal_message_data(); -} -template -PROTOBUF_ALWAYS_INLINE void Ukey2Message::set_message_data(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.message_data_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2Message.message_data) -} -inline ::std::string* PROTOBUF_NONNULL Ukey2Message::mutable_message_data() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_message_data(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2Message.message_data) - return _s; -} -inline const ::std::string& Ukey2Message::_internal_message_data() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.message_data_.Get(); -} -inline void Ukey2Message::_internal_set_message_data(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.message_data_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Ukey2Message::_internal_mutable_message_data() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.message_data_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Ukey2Message::release_message_data() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.Ukey2Message.message_data) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.message_data_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.message_data_.Set("", GetArena()); - } - return released; -} -inline void Ukey2Message::set_allocated_message_data(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.message_data_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.message_data_.IsDefault()) { - _impl_.message_data_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2Message.message_data) -} - -// ------------------------------------------------------------------- - -// Ukey2Alert - -// optional .securegcm.Ukey2Alert.AlertType type = 1; -inline bool Ukey2Alert::has_type() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void Ukey2Alert::clear_type() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.type_ = 1; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::securegcm::Ukey2Alert_AlertType Ukey2Alert::type() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2Alert.type) - return _internal_type(); -} -inline void Ukey2Alert::set_type(::securegcm::Ukey2Alert_AlertType value) { - _internal_set_type(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:securegcm.Ukey2Alert.type) -} -inline ::securegcm::Ukey2Alert_AlertType Ukey2Alert::_internal_type() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::securegcm::Ukey2Alert_AlertType>(_impl_.type_); -} -inline void Ukey2Alert::_internal_set_type(::securegcm::Ukey2Alert_AlertType value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::Ukey2Alert_AlertType_internal_data_)); - _impl_.type_ = value; -} - -// optional string error_message = 2; -inline bool Ukey2Alert::has_error_message() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void Ukey2Alert::clear_error_message() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_message_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Ukey2Alert::error_message() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.Ukey2Alert.error_message) - return _internal_error_message(); -} -template -PROTOBUF_ALWAYS_INLINE void Ukey2Alert::set_error_message(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.error_message_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2Alert.error_message) -} -inline ::std::string* PROTOBUF_NONNULL Ukey2Alert::mutable_error_message() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_error_message(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2Alert.error_message) - return _s; -} -inline const ::std::string& Ukey2Alert::_internal_error_message() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.error_message_.Get(); -} -inline void Ukey2Alert::_internal_set_error_message(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.error_message_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Ukey2Alert::_internal_mutable_error_message() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.error_message_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Ukey2Alert::release_error_message() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.Ukey2Alert.error_message) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.error_message_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.error_message_.Set("", GetArena()); - } - return released; -} -inline void Ukey2Alert::set_allocated_error_message(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.error_message_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.error_message_.IsDefault()) { - _impl_.error_message_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2Alert.error_message) -} - -// ------------------------------------------------------------------- - -// Ukey2ClientInit_CipherCommitment - -// optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; -inline bool Ukey2ClientInit_CipherCommitment::has_handshake_cipher() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void Ukey2ClientInit_CipherCommitment::clear_handshake_cipher() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.handshake_cipher_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline ::securegcm::Ukey2HandshakeCipher Ukey2ClientInit_CipherCommitment::handshake_cipher() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.CipherCommitment.handshake_cipher) - return _internal_handshake_cipher(); -} -inline void Ukey2ClientInit_CipherCommitment::set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { - _internal_set_handshake_cipher(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.CipherCommitment.handshake_cipher) -} -inline ::securegcm::Ukey2HandshakeCipher Ukey2ClientInit_CipherCommitment::_internal_handshake_cipher() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::securegcm::Ukey2HandshakeCipher>(_impl_.handshake_cipher_); -} -inline void Ukey2ClientInit_CipherCommitment::_internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::Ukey2HandshakeCipher_internal_data_)); - _impl_.handshake_cipher_ = value; -} - -// optional bytes commitment = 2; -inline bool Ukey2ClientInit_CipherCommitment::has_commitment() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void Ukey2ClientInit_CipherCommitment::clear_commitment() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.commitment_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Ukey2ClientInit_CipherCommitment::commitment() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.CipherCommitment.commitment) - return _internal_commitment(); -} -template -PROTOBUF_ALWAYS_INLINE void Ukey2ClientInit_CipherCommitment::set_commitment(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.commitment_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.CipherCommitment.commitment) -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::mutable_commitment() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_commitment(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.CipherCommitment.commitment) - return _s; -} -inline const ::std::string& Ukey2ClientInit_CipherCommitment::_internal_commitment() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.commitment_.Get(); -} -inline void Ukey2ClientInit_CipherCommitment::_internal_set_commitment(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.commitment_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit_CipherCommitment::_internal_mutable_commitment() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.commitment_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientInit_CipherCommitment::release_commitment() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.CipherCommitment.commitment) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.commitment_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.commitment_.Set("", GetArena()); - } - return released; -} -inline void Ukey2ClientInit_CipherCommitment::set_allocated_commitment(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.commitment_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.commitment_.IsDefault()) { - _impl_.commitment_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.CipherCommitment.commitment) -} - -// ------------------------------------------------------------------- - -// Ukey2ClientInit - -// optional int32 version = 1; -inline bool Ukey2ClientInit::has_version() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); - return value; -} -inline void Ukey2ClientInit::clear_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.version_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::int32_t Ukey2ClientInit::version() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.version) - return _internal_version(); -} -inline void Ukey2ClientInit::set_version(::int32_t value) { - _internal_set_version(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.version) -} -inline ::int32_t Ukey2ClientInit::_internal_version() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.version_; -} -inline void Ukey2ClientInit::_internal_set_version(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.version_ = value; -} - -// optional bytes random = 2; -inline bool Ukey2ClientInit::has_random() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void Ukey2ClientInit::clear_random() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.random_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& Ukey2ClientInit::random() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.random) - return _internal_random(); -} -template -PROTOBUF_ALWAYS_INLINE void Ukey2ClientInit::set_random(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.random_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.random) -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::mutable_random() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_random(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.random) - return _s; -} -inline const ::std::string& Ukey2ClientInit::_internal_random() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.random_.Get(); -} -inline void Ukey2ClientInit::_internal_set_random(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.random_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::_internal_mutable_random() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.random_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientInit::release_random() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.random) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.random_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.random_.Set("", GetArena()); - } - return released; -} -inline void Ukey2ClientInit::set_allocated_random(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.random_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.random_.IsDefault()) { - _impl_.random_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.random) -} - -// repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; -inline int Ukey2ClientInit::_internal_cipher_commitments_size() const { - return _internal_cipher_commitments().size(); -} -inline int Ukey2ClientInit::cipher_commitments_size() const { - return _internal_cipher_commitments_size(); -} -inline void Ukey2ClientInit::clear_cipher_commitments() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.cipher_commitments_.Clear(); - ClearHasBitForRepeated(_impl_._has_bits_[0], - 0x00000001U); -} -inline ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL Ukey2ClientInit::mutable_cipher_commitments(int index) - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.cipher_commitments) - return _internal_mutable_cipher_commitments()->Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL Ukey2ClientInit::mutable_cipher_commitments() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:securegcm.Ukey2ClientInit.cipher_commitments) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_cipher_commitments(); -} -inline const ::securegcm::Ukey2ClientInit_CipherCommitment& Ukey2ClientInit::cipher_commitments(int index) const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.cipher_commitments) - return _internal_cipher_commitments().Get(index); -} -inline ::securegcm::Ukey2ClientInit_CipherCommitment* PROTOBUF_NONNULL Ukey2ClientInit::add_cipher_commitments() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::securegcm::Ukey2ClientInit_CipherCommitment* _add = - _internal_mutable_cipher_commitments()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:securegcm.Ukey2ClientInit.cipher_commitments) - return _add; -} -inline const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& Ukey2ClientInit::cipher_commitments() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_list:securegcm.Ukey2ClientInit.cipher_commitments) - return _internal_cipher_commitments(); -} -inline const ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>& -Ukey2ClientInit::_internal_cipher_commitments() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.cipher_commitments_; -} -inline ::google::protobuf::RepeatedPtrField<::securegcm::Ukey2ClientInit_CipherCommitment>* PROTOBUF_NONNULL -Ukey2ClientInit::_internal_mutable_cipher_commitments() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.cipher_commitments_; -} - -// optional string next_protocol = 4; -inline bool Ukey2ClientInit::has_next_protocol() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); - return value; -} -inline void Ukey2ClientInit::clear_next_protocol() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.next_protocol_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline const ::std::string& Ukey2ClientInit::next_protocol() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.next_protocol) - return _internal_next_protocol(); -} -template -PROTOBUF_ALWAYS_INLINE void Ukey2ClientInit::set_next_protocol(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - _impl_.next_protocol_.Set(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.next_protocol) -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::mutable_next_protocol() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - ::std::string* _s = _internal_mutable_next_protocol(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.next_protocol) - return _s; -} -inline const ::std::string& Ukey2ClientInit::_internal_next_protocol() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.next_protocol_.Get(); -} -inline void Ukey2ClientInit::_internal_set_next_protocol(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.next_protocol_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ClientInit::_internal_mutable_next_protocol() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.next_protocol_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientInit::release_next_protocol() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.next_protocol) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - auto* released = _impl_.next_protocol_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.next_protocol_.Set("", GetArena()); - } - return released; -} -inline void Ukey2ClientInit::set_allocated_next_protocol(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); - } - _impl_.next_protocol_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.next_protocol_.IsDefault()) { - _impl_.next_protocol_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.next_protocol) -} - -// ------------------------------------------------------------------- - -// Ukey2ServerInit - -// optional int32 version = 1; -inline bool Ukey2ServerInit::has_version() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); - return value; -} -inline void Ukey2ServerInit::clear_version() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.version_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000004U); -} -inline ::int32_t Ukey2ServerInit::version() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.version) - return _internal_version(); -} -inline void Ukey2ServerInit::set_version(::int32_t value) { - _internal_set_version(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.version) -} -inline ::int32_t Ukey2ServerInit::_internal_version() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.version_; -} -inline void Ukey2ServerInit::_internal_set_version(::int32_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.version_ = value; -} - -// optional bytes random = 2; -inline bool Ukey2ServerInit::has_random() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void Ukey2ServerInit::clear_random() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.random_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Ukey2ServerInit::random() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.random) - return _internal_random(); -} -template -PROTOBUF_ALWAYS_INLINE void Ukey2ServerInit::set_random(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.random_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.random) -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::mutable_random() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_random(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ServerInit.random) - return _s; -} -inline const ::std::string& Ukey2ServerInit::_internal_random() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.random_.Get(); -} -inline void Ukey2ServerInit::_internal_set_random(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.random_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::_internal_mutable_random() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.random_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Ukey2ServerInit::release_random() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.Ukey2ServerInit.random) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.random_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.random_.Set("", GetArena()); - } - return released; -} -inline void Ukey2ServerInit::set_allocated_random(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.random_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.random_.IsDefault()) { - _impl_.random_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ServerInit.random) -} - -// optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; -inline bool Ukey2ServerInit::has_handshake_cipher() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); - return value; -} -inline void Ukey2ServerInit::clear_handshake_cipher() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.handshake_cipher_ = 0; - ClearHasBit(_impl_._has_bits_[0], - 0x00000008U); -} -inline ::securegcm::Ukey2HandshakeCipher Ukey2ServerInit::handshake_cipher() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.handshake_cipher) - return _internal_handshake_cipher(); -} -inline void Ukey2ServerInit::set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { - _internal_set_handshake_cipher(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.handshake_cipher) -} -inline ::securegcm::Ukey2HandshakeCipher Ukey2ServerInit::_internal_handshake_cipher() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return static_cast<::securegcm::Ukey2HandshakeCipher>(_impl_.handshake_cipher_); -} -inline void Ukey2ServerInit::_internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - - assert(::google::protobuf::internal::ValidateEnum( - value, ::securegcm::Ukey2HandshakeCipher_internal_data_)); - _impl_.handshake_cipher_ = value; -} - -// optional bytes public_key = 4; -inline bool Ukey2ServerInit::has_public_key() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); - return value; -} -inline void Ukey2ServerInit::clear_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.public_key_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000002U); -} -inline const ::std::string& Ukey2ServerInit::public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.public_key) - return _internal_public_key(); -} -template -PROTOBUF_ALWAYS_INLINE void Ukey2ServerInit::set_public_key(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.public_key) -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::mutable_public_key() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - ::std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ServerInit.public_key) - return _s; -} -inline const ::std::string& Ukey2ServerInit::_internal_public_key() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.public_key_.Get(); -} -inline void Ukey2ServerInit::_internal_set_public_key(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.public_key_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ServerInit::_internal_mutable_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.public_key_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Ukey2ServerInit::release_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.Ukey2ServerInit.public_key) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - auto* released = _impl_.public_key_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.public_key_.Set("", GetArena()); - } - return released; -} -inline void Ukey2ServerInit::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); - } - _impl_.public_key_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ServerInit.public_key) -} - -// ------------------------------------------------------------------- - -// Ukey2ClientFinished - -// optional bytes public_key = 1; -inline bool Ukey2ClientFinished::has_public_key() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); - return value; -} -inline void Ukey2ClientFinished::clear_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.public_key_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], - 0x00000001U); -} -inline const ::std::string& Ukey2ClientFinished::public_key() const - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientFinished.public_key) - return _internal_public_key(); -} -template -PROTOBUF_ALWAYS_INLINE void Ukey2ClientFinished::set_public_key(Arg_&& arg, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - _impl_.public_key_.SetBytes(static_cast(arg), args..., GetArena()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientFinished.public_key) -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ClientFinished::mutable_public_key() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - ::std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientFinished.public_key) - return _s; -} -inline const ::std::string& Ukey2ClientFinished::_internal_public_key() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.public_key_.Get(); -} -inline void Ukey2ClientFinished::_internal_set_public_key(const ::std::string& value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.public_key_.Set(value, GetArena()); -} -inline ::std::string* PROTOBUF_NONNULL Ukey2ClientFinished::_internal_mutable_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - return _impl_.public_key_.Mutable( GetArena()); -} -inline ::std::string* PROTOBUF_NULLABLE Ukey2ClientFinished::release_public_key() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientFinished.public_key) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { - return nullptr; - } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - auto* released = _impl_.public_key_.Release(); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { - _impl_.public_key_.Set("", GetArena()); - } - return released; -} -inline void Ukey2ClientFinished::set_allocated_public_key(::std::string* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); - } - _impl_.public_key_.SetAllocated(value, GetArena()); - if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.public_key_.IsDefault()) { - _impl_.public_key_.Set("", GetArena()); - } - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientFinished.public_key) -} - -#ifdef __GNUC__ -#pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) -} // namespace securegcm - - -namespace google { -namespace protobuf { - -template <> -struct is_proto_enum<::securegcm::Ukey2Message_Type> : std::true_type {}; -template <> -struct is_proto_enum<::securegcm::Ukey2Alert_AlertType> : std::true_type {}; -template <> -struct is_proto_enum<::securegcm::Ukey2HandshakeCipher> : std::true_type {}; - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include "google/protobuf/port_undef.inc" - -#endif // proto_2fukey_2eproto_2epb_2eh diff --git a/third_party/ukey2/compiled_proto/src/main/proto/passwordless_auth_payloads.pb.cc b/third_party/ukey2/compiled_proto/src/main/proto/passwordless_auth_payloads.pb.cc deleted file mode 100644 index 754a9d8b..00000000 --- a/third_party/ukey2/compiled_proto/src/main/proto/passwordless_auth_payloads.pb.cc +++ /dev/null @@ -1,328 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/passwordless_auth_payloads.proto - -#include "proto/passwordless_auth_payloads.pb.h" - -#include - -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG -namespace securegcm { -constexpr IdentityAssertion::IdentityAssertion( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : browser_data_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , counter_(int64_t{0}) - , user_approval_(0){} -struct IdentityAssertionDefaultTypeInternal { - constexpr IdentityAssertionDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~IdentityAssertionDefaultTypeInternal() {} - union { - IdentityAssertion _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IdentityAssertionDefaultTypeInternal _IdentityAssertion_default_instance_; -} // namespace securegcm -namespace securegcm { - -// =================================================================== - -class IdentityAssertion::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_browser_data_hash(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_counter(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_user_approval(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -IdentityAssertion::IdentityAssertion(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:securegcm.IdentityAssertion) -} -IdentityAssertion::IdentityAssertion(const IdentityAssertion& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - browser_data_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - browser_data_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_browser_data_hash()) { - browser_data_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_browser_data_hash(), - GetArenaForAllocation()); - } - ::memcpy(&counter_, &from.counter_, - static_cast(reinterpret_cast(&user_approval_) - - reinterpret_cast(&counter_)) + sizeof(user_approval_)); - // @@protoc_insertion_point(copy_constructor:securegcm.IdentityAssertion) -} - -inline void IdentityAssertion::SharedCtor() { -browser_data_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - browser_data_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&counter_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&user_approval_) - - reinterpret_cast(&counter_)) + sizeof(user_approval_)); -} - -IdentityAssertion::~IdentityAssertion() { - // @@protoc_insertion_point(destructor:securegcm.IdentityAssertion) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void IdentityAssertion::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - browser_data_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void IdentityAssertion::ArenaDtor(void* object) { - IdentityAssertion* _this = reinterpret_cast< IdentityAssertion* >(object); - (void)_this; -} -void IdentityAssertion::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void IdentityAssertion::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void IdentityAssertion::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.IdentityAssertion) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - browser_data_hash_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000006u) { - ::memset(&counter_, 0, static_cast( - reinterpret_cast(&user_approval_) - - reinterpret_cast(&counter_)) + sizeof(user_approval_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* IdentityAssertion::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional bytes browser_data_hash = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_browser_data_hash(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int64 counter = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _Internal::set_has_counter(&has_bits); - counter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional int32 user_approval = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_user_approval(&has_bits); - user_approval_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* IdentityAssertion::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:securegcm.IdentityAssertion) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional bytes browser_data_hash = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteBytesMaybeAliased( - 1, this->_internal_browser_data_hash(), target); - } - - // optional int64 counter = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_counter(), target); - } - - // optional int32 user_approval = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_user_approval(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.IdentityAssertion) - return target; -} - -size_t IdentityAssertion::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.IdentityAssertion) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional bytes browser_data_hash = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_browser_data_hash()); - } - - // optional int64 counter = 2; - if (cached_has_bits & 0x00000002u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_counter()); - } - - // optional int32 user_approval = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_user_approval()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IdentityAssertion::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void IdentityAssertion::MergeFrom(const IdentityAssertion& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.IdentityAssertion) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_browser_data_hash(from._internal_browser_data_hash()); - } - if (cached_has_bits & 0x00000002u) { - counter_ = from.counter_; - } - if (cached_has_bits & 0x00000004u) { - user_approval_ = from.user_approval_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void IdentityAssertion::CopyFrom(const IdentityAssertion& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.IdentityAssertion) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IdentityAssertion::IsInitialized() const { - return true; -} - -void IdentityAssertion::InternalSwap(IdentityAssertion* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &browser_data_hash_, lhs_arena, - &other->browser_data_hash_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(IdentityAssertion, user_approval_) - + sizeof(IdentityAssertion::user_approval_) - - PROTOBUF_FIELD_OFFSET(IdentityAssertion, counter_)>( - reinterpret_cast(&counter_), - reinterpret_cast(&other->counter_)); -} - -std::string IdentityAssertion::GetTypeName() const { - return "securegcm.IdentityAssertion"; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::securegcm::IdentityAssertion* Arena::CreateMaybeMessage< ::securegcm::IdentityAssertion >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::IdentityAssertion >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/third_party/ukey2/compiled_proto/src/main/proto/passwordless_auth_payloads.pb.h b/third_party/ukey2/compiled_proto/src/main/proto/passwordless_auth_payloads.pb.h deleted file mode 100644 index 46aa66b9..00000000 --- a/third_party/ukey2/compiled_proto/src/main/proto/passwordless_auth_payloads.pb.h +++ /dev/null @@ -1,387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/passwordless_auth_payloads.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fpasswordless_5fauth_5fpayloads_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fpasswordless_5fauth_5fpayloads_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3019000 -#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 3019004 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proto_2fpasswordless_5fauth_5fpayloads_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fpasswordless_5fauth_5fpayloads_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; -}; -namespace securegcm { -class IdentityAssertion; -struct IdentityAssertionDefaultTypeInternal; -extern IdentityAssertionDefaultTypeInternal _IdentityAssertion_default_instance_; -} // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> ::securegcm::IdentityAssertion* Arena::CreateMaybeMessage<::securegcm::IdentityAssertion>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace securegcm { - -// =================================================================== - -class IdentityAssertion final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.IdentityAssertion) */ { - public: - inline IdentityAssertion() : IdentityAssertion(nullptr) {} - ~IdentityAssertion() override; - explicit constexpr IdentityAssertion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - IdentityAssertion(const IdentityAssertion& from); - IdentityAssertion(IdentityAssertion&& from) noexcept - : IdentityAssertion() { - *this = ::std::move(from); - } - - inline IdentityAssertion& operator=(const IdentityAssertion& from) { - CopyFrom(from); - return *this; - } - inline IdentityAssertion& operator=(IdentityAssertion&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const IdentityAssertion& default_instance() { - return *internal_default_instance(); - } - static inline const IdentityAssertion* internal_default_instance() { - return reinterpret_cast( - &_IdentityAssertion_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(IdentityAssertion& a, IdentityAssertion& b) { - a.Swap(&b); - } - inline void Swap(IdentityAssertion* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(IdentityAssertion* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - IdentityAssertion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const IdentityAssertion& from); - void MergeFrom(const IdentityAssertion& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(IdentityAssertion* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.IdentityAssertion"; - } - protected: - explicit IdentityAssertion(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kBrowserDataHashFieldNumber = 1, - kCounterFieldNumber = 2, - kUserApprovalFieldNumber = 3, - }; - // optional bytes browser_data_hash = 1; - bool has_browser_data_hash() const; - private: - bool _internal_has_browser_data_hash() const; - public: - void clear_browser_data_hash(); - const std::string& browser_data_hash() const; - template - void set_browser_data_hash(ArgT0&& arg0, ArgT... args); - std::string* mutable_browser_data_hash(); - PROTOBUF_NODISCARD std::string* release_browser_data_hash(); - void set_allocated_browser_data_hash(std::string* browser_data_hash); - private: - const std::string& _internal_browser_data_hash() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_browser_data_hash(const std::string& value); - std::string* _internal_mutable_browser_data_hash(); - public: - - // optional int64 counter = 2; - bool has_counter() const; - private: - bool _internal_has_counter() const; - public: - void clear_counter(); - int64_t counter() const; - void set_counter(int64_t value); - private: - int64_t _internal_counter() const; - void _internal_set_counter(int64_t value); - public: - - // optional int32 user_approval = 3; - bool has_user_approval() const; - private: - bool _internal_has_user_approval() const; - public: - void clear_user_approval(); - int32_t user_approval() const; - void set_user_approval(int32_t value); - private: - int32_t _internal_user_approval() const; - void _internal_set_user_approval(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.IdentityAssertion) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr browser_data_hash_; - int64_t counter_; - int32_t user_approval_; - friend struct ::TableStruct_proto_2fpasswordless_5fauth_5fpayloads_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// IdentityAssertion - -// optional bytes browser_data_hash = 1; -inline bool IdentityAssertion::_internal_has_browser_data_hash() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool IdentityAssertion::has_browser_data_hash() const { - return _internal_has_browser_data_hash(); -} -inline void IdentityAssertion::clear_browser_data_hash() { - browser_data_hash_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& IdentityAssertion::browser_data_hash() const { - // @@protoc_insertion_point(field_get:securegcm.IdentityAssertion.browser_data_hash) - return _internal_browser_data_hash(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void IdentityAssertion::set_browser_data_hash(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - browser_data_hash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.IdentityAssertion.browser_data_hash) -} -inline std::string* IdentityAssertion::mutable_browser_data_hash() { - std::string* _s = _internal_mutable_browser_data_hash(); - // @@protoc_insertion_point(field_mutable:securegcm.IdentityAssertion.browser_data_hash) - return _s; -} -inline const std::string& IdentityAssertion::_internal_browser_data_hash() const { - return browser_data_hash_.Get(); -} -inline void IdentityAssertion::_internal_set_browser_data_hash(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - browser_data_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* IdentityAssertion::_internal_mutable_browser_data_hash() { - _has_bits_[0] |= 0x00000001u; - return browser_data_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* IdentityAssertion::release_browser_data_hash() { - // @@protoc_insertion_point(field_release:securegcm.IdentityAssertion.browser_data_hash) - if (!_internal_has_browser_data_hash()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = browser_data_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (browser_data_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - browser_data_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void IdentityAssertion::set_allocated_browser_data_hash(std::string* browser_data_hash) { - if (browser_data_hash != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - browser_data_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), browser_data_hash, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (browser_data_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - browser_data_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.IdentityAssertion.browser_data_hash) -} - -// optional int64 counter = 2; -inline bool IdentityAssertion::_internal_has_counter() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool IdentityAssertion::has_counter() const { - return _internal_has_counter(); -} -inline void IdentityAssertion::clear_counter() { - counter_ = int64_t{0}; - _has_bits_[0] &= ~0x00000002u; -} -inline int64_t IdentityAssertion::_internal_counter() const { - return counter_; -} -inline int64_t IdentityAssertion::counter() const { - // @@protoc_insertion_point(field_get:securegcm.IdentityAssertion.counter) - return _internal_counter(); -} -inline void IdentityAssertion::_internal_set_counter(int64_t value) { - _has_bits_[0] |= 0x00000002u; - counter_ = value; -} -inline void IdentityAssertion::set_counter(int64_t value) { - _internal_set_counter(value); - // @@protoc_insertion_point(field_set:securegcm.IdentityAssertion.counter) -} - -// optional int32 user_approval = 3; -inline bool IdentityAssertion::_internal_has_user_approval() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool IdentityAssertion::has_user_approval() const { - return _internal_has_user_approval(); -} -inline void IdentityAssertion::clear_user_approval() { - user_approval_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline int32_t IdentityAssertion::_internal_user_approval() const { - return user_approval_; -} -inline int32_t IdentityAssertion::user_approval() const { - // @@protoc_insertion_point(field_get:securegcm.IdentityAssertion.user_approval) - return _internal_user_approval(); -} -inline void IdentityAssertion::_internal_set_user_approval(int32_t value) { - _has_bits_[0] |= 0x00000004u; - user_approval_ = value; -} -inline void IdentityAssertion::set_user_approval(int32_t value) { - _internal_set_user_approval(value); - // @@protoc_insertion_point(field_set:securegcm.IdentityAssertion.user_approval) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace securegcm - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fpasswordless_5fauth_5fpayloads_2eproto diff --git a/third_party/ukey2/compiled_proto/src/main/proto/proximity_payloads.pb.cc b/third_party/ukey2/compiled_proto/src/main/proto/proximity_payloads.pb.cc deleted file mode 100644 index 2700dcd8..00000000 --- a/third_party/ukey2/compiled_proto/src/main/proto/proximity_payloads.pb.cc +++ /dev/null @@ -1,716 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/proximity_payloads.proto - -#include "proto/proximity_payloads.pb.h" - -#include - -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -PROTOBUF_PRAGMA_INIT_SEG -namespace securegcm { -constexpr CloudToDeviceProximityAuthPairing::CloudToDeviceProximityAuthPairing( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : initiating_device_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , initiating_device_bt_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , ephemeral_symmetric_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , additional_metadata_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} -struct CloudToDeviceProximityAuthPairingDefaultTypeInternal { - constexpr CloudToDeviceProximityAuthPairingDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~CloudToDeviceProximityAuthPairingDefaultTypeInternal() {} - union { - CloudToDeviceProximityAuthPairing _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CloudToDeviceProximityAuthPairingDefaultTypeInternal _CloudToDeviceProximityAuthPairing_default_instance_; -constexpr DeviceProximityCallback::DeviceProximityCallback( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) - : callback_bluetooth_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) - , source_device_type_(0) - - , protocol_version_(0){} -struct DeviceProximityCallbackDefaultTypeInternal { - constexpr DeviceProximityCallbackDefaultTypeInternal() - : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} - ~DeviceProximityCallbackDefaultTypeInternal() {} - union { - DeviceProximityCallback _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeviceProximityCallbackDefaultTypeInternal _DeviceProximityCallback_default_instance_; -} // namespace securegcm -namespace securegcm { - -// =================================================================== - -class CloudToDeviceProximityAuthPairing::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_initiating_device_name(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_initiating_device_bt_address(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_ephemeral_symmetric_key(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } - static void set_has_additional_metadata(HasBits* has_bits) { - (*has_bits)[0] |= 8u; - } -}; - -CloudToDeviceProximityAuthPairing::CloudToDeviceProximityAuthPairing(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:securegcm.CloudToDeviceProximityAuthPairing) -} -CloudToDeviceProximityAuthPairing::CloudToDeviceProximityAuthPairing(const CloudToDeviceProximityAuthPairing& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - initiating_device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - initiating_device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_initiating_device_name()) { - initiating_device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_initiating_device_name(), - GetArenaForAllocation()); - } - initiating_device_bt_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - initiating_device_bt_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_initiating_device_bt_address()) { - initiating_device_bt_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_initiating_device_bt_address(), - GetArenaForAllocation()); - } - ephemeral_symmetric_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ephemeral_symmetric_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_ephemeral_symmetric_key()) { - ephemeral_symmetric_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ephemeral_symmetric_key(), - GetArenaForAllocation()); - } - additional_metadata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - additional_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_additional_metadata()) { - additional_metadata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_additional_metadata(), - GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:securegcm.CloudToDeviceProximityAuthPairing) -} - -inline void CloudToDeviceProximityAuthPairing::SharedCtor() { -initiating_device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - initiating_device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -initiating_device_bt_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - initiating_device_bt_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -ephemeral_symmetric_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - ephemeral_symmetric_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -additional_metadata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - additional_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -CloudToDeviceProximityAuthPairing::~CloudToDeviceProximityAuthPairing() { - // @@protoc_insertion_point(destructor:securegcm.CloudToDeviceProximityAuthPairing) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void CloudToDeviceProximityAuthPairing::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - initiating_device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - initiating_device_bt_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - ephemeral_symmetric_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - additional_metadata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void CloudToDeviceProximityAuthPairing::ArenaDtor(void* object) { - CloudToDeviceProximityAuthPairing* _this = reinterpret_cast< CloudToDeviceProximityAuthPairing* >(object); - (void)_this; -} -void CloudToDeviceProximityAuthPairing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void CloudToDeviceProximityAuthPairing::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void CloudToDeviceProximityAuthPairing::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.CloudToDeviceProximityAuthPairing) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - initiating_device_name_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000002u) { - initiating_device_bt_address_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000004u) { - ephemeral_symmetric_key_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000008u) { - additional_metadata_.ClearNonDefaultToEmpty(); - } - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* CloudToDeviceProximityAuthPairing::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string initiating_device_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_initiating_device_name(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional string initiating_device_bt_address = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_initiating_device_bt_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes ephemeral_symmetric_key = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_ephemeral_symmetric_key(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional bytes additional_metadata = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_additional_metadata(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* CloudToDeviceProximityAuthPairing::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:securegcm.CloudToDeviceProximityAuthPairing) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string initiating_device_name = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_initiating_device_name(), target); - } - - // optional string initiating_device_bt_address = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->WriteStringMaybeAliased( - 2, this->_internal_initiating_device_bt_address(), target); - } - - // optional bytes ephemeral_symmetric_key = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->WriteBytesMaybeAliased( - 3, this->_internal_ephemeral_symmetric_key(), target); - } - - // optional bytes additional_metadata = 4; - if (cached_has_bits & 0x00000008u) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_additional_metadata(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.CloudToDeviceProximityAuthPairing) - return target; -} - -size_t CloudToDeviceProximityAuthPairing::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.CloudToDeviceProximityAuthPairing) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - // optional string initiating_device_name = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_initiating_device_name()); - } - - // optional string initiating_device_bt_address = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_initiating_device_bt_address()); - } - - // optional bytes ephemeral_symmetric_key = 3; - if (cached_has_bits & 0x00000004u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_ephemeral_symmetric_key()); - } - - // optional bytes additional_metadata = 4; - if (cached_has_bits & 0x00000008u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_additional_metadata()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CloudToDeviceProximityAuthPairing::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void CloudToDeviceProximityAuthPairing::MergeFrom(const CloudToDeviceProximityAuthPairing& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.CloudToDeviceProximityAuthPairing) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { - if (cached_has_bits & 0x00000001u) { - _internal_set_initiating_device_name(from._internal_initiating_device_name()); - } - if (cached_has_bits & 0x00000002u) { - _internal_set_initiating_device_bt_address(from._internal_initiating_device_bt_address()); - } - if (cached_has_bits & 0x00000004u) { - _internal_set_ephemeral_symmetric_key(from._internal_ephemeral_symmetric_key()); - } - if (cached_has_bits & 0x00000008u) { - _internal_set_additional_metadata(from._internal_additional_metadata()); - } - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void CloudToDeviceProximityAuthPairing::CopyFrom(const CloudToDeviceProximityAuthPairing& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.CloudToDeviceProximityAuthPairing) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CloudToDeviceProximityAuthPairing::IsInitialized() const { - return true; -} - -void CloudToDeviceProximityAuthPairing::InternalSwap(CloudToDeviceProximityAuthPairing* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &initiating_device_name_, lhs_arena, - &other->initiating_device_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &initiating_device_bt_address_, lhs_arena, - &other->initiating_device_bt_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &ephemeral_symmetric_key_, lhs_arena, - &other->ephemeral_symmetric_key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &additional_metadata_, lhs_arena, - &other->additional_metadata_, rhs_arena - ); -} - -std::string CloudToDeviceProximityAuthPairing::GetTypeName() const { - return "securegcm.CloudToDeviceProximityAuthPairing"; -} - - -// =================================================================== - -class DeviceProximityCallback::_Internal { - public: - using HasBits = decltype(std::declval()._has_bits_); - static void set_has_callback_bluetooth_address(HasBits* has_bits) { - (*has_bits)[0] |= 1u; - } - static void set_has_source_device_type(HasBits* has_bits) { - (*has_bits)[0] |= 2u; - } - static void set_has_protocol_version(HasBits* has_bits) { - (*has_bits)[0] |= 4u; - } -}; - -DeviceProximityCallback::DeviceProximityCallback(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { - SharedCtor(); - if (!is_message_owned) { - RegisterArenaDtor(arena); - } - // @@protoc_insertion_point(arena_constructor:securegcm.DeviceProximityCallback) -} -DeviceProximityCallback::DeviceProximityCallback(const DeviceProximityCallback& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite(), - _has_bits_(from._has_bits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - callback_bluetooth_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - callback_bluetooth_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (from._internal_has_callback_bluetooth_address()) { - callback_bluetooth_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_callback_bluetooth_address(), - GetArenaForAllocation()); - } - ::memcpy(&source_device_type_, &from.source_device_type_, - static_cast(reinterpret_cast(&protocol_version_) - - reinterpret_cast(&source_device_type_)) + sizeof(protocol_version_)); - // @@protoc_insertion_point(copy_constructor:securegcm.DeviceProximityCallback) -} - -inline void DeviceProximityCallback::SharedCtor() { -callback_bluetooth_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - callback_bluetooth_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -::memset(reinterpret_cast(this) + static_cast( - reinterpret_cast(&source_device_type_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&protocol_version_) - - reinterpret_cast(&source_device_type_)) + sizeof(protocol_version_)); -} - -DeviceProximityCallback::~DeviceProximityCallback() { - // @@protoc_insertion_point(destructor:securegcm.DeviceProximityCallback) - if (GetArenaForAllocation() != nullptr) return; - SharedDtor(); - _internal_metadata_.Delete(); -} - -inline void DeviceProximityCallback::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - callback_bluetooth_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); -} - -void DeviceProximityCallback::ArenaDtor(void* object) { - DeviceProximityCallback* _this = reinterpret_cast< DeviceProximityCallback* >(object); - (void)_this; -} -void DeviceProximityCallback::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { -} -void DeviceProximityCallback::SetCachedSize(int size) const { - _cached_size_.Set(size); -} - -void DeviceProximityCallback::Clear() { -// @@protoc_insertion_point(message_clear_start:securegcm.DeviceProximityCallback) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000001u) { - callback_bluetooth_address_.ClearNonDefaultToEmpty(); - } - if (cached_has_bits & 0x00000006u) { - ::memset(&source_device_type_, 0, static_cast( - reinterpret_cast(&protocol_version_) - - reinterpret_cast(&source_device_type_)) + sizeof(protocol_version_)); - } - _has_bits_.Clear(); - _internal_metadata_.Clear(); -} - -const char* DeviceProximityCallback::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - _Internal::HasBits has_bits{}; - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); - switch (tag >> 3) { - // optional string callback_bluetooth_address = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_callback_bluetooth_address(); - ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // optional .securegcm.DeviceType source_device_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - if (PROTOBUF_PREDICT_TRUE(::securegcm::DeviceType_IsValid(val))) { - _internal_set_source_device_type(static_cast<::securegcm::DeviceType>(val)); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); - } - } else - goto handle_unusual; - continue; - // optional int32 protocol_version = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _Internal::set_has_protocol_version(&has_bits); - protocol_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); - } 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(), - ptr, ctx); - CHK_(ptr != nullptr); - } // while -message_done: - _has_bits_.Or(has_bits); - return ptr; -failure: - ptr = nullptr; - goto message_done; -#undef CHK_ -} - -uint8_t* DeviceProximityCallback::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:securegcm.DeviceProximityCallback) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - // optional string callback_bluetooth_address = 1; - if (cached_has_bits & 0x00000001u) { - target = stream->WriteStringMaybeAliased( - 1, this->_internal_callback_bluetooth_address(), target); - } - - // optional .securegcm.DeviceType source_device_type = 2; - if (cached_has_bits & 0x00000002u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( - 2, this->_internal_source_device_type(), target); - } - - // optional int32 protocol_version = 3; - if (cached_has_bits & 0x00000004u) { - target = stream->EnsureSpace(target); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_protocol_version(), target); - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = stream->WriteRaw(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(), - static_cast(_internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target); - } - // @@protoc_insertion_point(serialize_to_array_end:securegcm.DeviceProximityCallback) - return target; -} - -size_t DeviceProximityCallback::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:securegcm.DeviceProximityCallback) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - // optional string callback_bluetooth_address = 1; - if (cached_has_bits & 0x00000001u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_callback_bluetooth_address()); - } - - // optional .securegcm.DeviceType source_device_type = 2; - if (cached_has_bits & 0x00000002u) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_source_device_type()); - } - - // optional int32 protocol_version = 3; - if (cached_has_bits & 0x00000004u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_protocol_version()); - } - - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); - } - int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DeviceProximityCallback::CheckTypeAndMergeFrom( - const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { - MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( - &from)); -} - -void DeviceProximityCallback::MergeFrom(const DeviceProximityCallback& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.DeviceProximityCallback) - GOOGLE_DCHECK_NE(&from, this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { - if (cached_has_bits & 0x00000001u) { - _internal_set_callback_bluetooth_address(from._internal_callback_bluetooth_address()); - } - if (cached_has_bits & 0x00000002u) { - source_device_type_ = from.source_device_type_; - } - if (cached_has_bits & 0x00000004u) { - protocol_version_ = from.protocol_version_; - } - _has_bits_[0] |= cached_has_bits; - } - _internal_metadata_.MergeFrom(from._internal_metadata_); -} - -void DeviceProximityCallback::CopyFrom(const DeviceProximityCallback& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.DeviceProximityCallback) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeviceProximityCallback::IsInitialized() const { - return true; -} - -void DeviceProximityCallback::InternalSwap(DeviceProximityCallback* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_has_bits_[0], other->_has_bits_[0]); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), - &callback_bluetooth_address_, lhs_arena, - &other->callback_bluetooth_address_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(DeviceProximityCallback, protocol_version_) - + sizeof(DeviceProximityCallback::protocol_version_) - - PROTOBUF_FIELD_OFFSET(DeviceProximityCallback, source_device_type_)>( - reinterpret_cast(&source_device_type_), - reinterpret_cast(&other->source_device_type_)); -} - -std::string DeviceProximityCallback::GetTypeName() const { - return "securegcm.DeviceProximityCallback"; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::securegcm::CloudToDeviceProximityAuthPairing* Arena::CreateMaybeMessage< ::securegcm::CloudToDeviceProximityAuthPairing >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::CloudToDeviceProximityAuthPairing >(arena); -} -template<> PROTOBUF_NOINLINE ::securegcm::DeviceProximityCallback* Arena::CreateMaybeMessage< ::securegcm::DeviceProximityCallback >(Arena* arena) { - return Arena::CreateMessageInternal< ::securegcm::DeviceProximityCallback >(arena); -} -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) -#include diff --git a/third_party/ukey2/compiled_proto/src/main/proto/proximity_payloads.pb.h b/third_party/ukey2/compiled_proto/src/main/proto/proximity_payloads.pb.h deleted file mode 100644 index f1a14b2e..00000000 --- a/third_party/ukey2/compiled_proto/src/main/proto/proximity_payloads.pb.h +++ /dev/null @@ -1,882 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/proximity_payloads.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fproximity_5fpayloads_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fproximity_5fpayloads_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3019000 -#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 3019004 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include "securegcm.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proto_2fproximity_5fpayloads_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fproximity_5fpayloads_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; -}; -namespace securegcm { -class CloudToDeviceProximityAuthPairing; -struct CloudToDeviceProximityAuthPairingDefaultTypeInternal; -extern CloudToDeviceProximityAuthPairingDefaultTypeInternal _CloudToDeviceProximityAuthPairing_default_instance_; -class DeviceProximityCallback; -struct DeviceProximityCallbackDefaultTypeInternal; -extern DeviceProximityCallbackDefaultTypeInternal _DeviceProximityCallback_default_instance_; -} // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> ::securegcm::CloudToDeviceProximityAuthPairing* Arena::CreateMaybeMessage<::securegcm::CloudToDeviceProximityAuthPairing>(Arena*); -template<> ::securegcm::DeviceProximityCallback* Arena::CreateMaybeMessage<::securegcm::DeviceProximityCallback>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace securegcm { - -// =================================================================== - -class CloudToDeviceProximityAuthPairing final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.CloudToDeviceProximityAuthPairing) */ { - public: - inline CloudToDeviceProximityAuthPairing() : CloudToDeviceProximityAuthPairing(nullptr) {} - ~CloudToDeviceProximityAuthPairing() override; - explicit constexpr CloudToDeviceProximityAuthPairing(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - CloudToDeviceProximityAuthPairing(const CloudToDeviceProximityAuthPairing& from); - CloudToDeviceProximityAuthPairing(CloudToDeviceProximityAuthPairing&& from) noexcept - : CloudToDeviceProximityAuthPairing() { - *this = ::std::move(from); - } - - inline CloudToDeviceProximityAuthPairing& operator=(const CloudToDeviceProximityAuthPairing& from) { - CopyFrom(from); - return *this; - } - inline CloudToDeviceProximityAuthPairing& operator=(CloudToDeviceProximityAuthPairing&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const CloudToDeviceProximityAuthPairing& default_instance() { - return *internal_default_instance(); - } - static inline const CloudToDeviceProximityAuthPairing* internal_default_instance() { - return reinterpret_cast( - &_CloudToDeviceProximityAuthPairing_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(CloudToDeviceProximityAuthPairing& a, CloudToDeviceProximityAuthPairing& b) { - a.Swap(&b); - } - inline void Swap(CloudToDeviceProximityAuthPairing* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(CloudToDeviceProximityAuthPairing* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - CloudToDeviceProximityAuthPairing* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const CloudToDeviceProximityAuthPairing& from); - void MergeFrom(const CloudToDeviceProximityAuthPairing& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(CloudToDeviceProximityAuthPairing* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.CloudToDeviceProximityAuthPairing"; - } - protected: - explicit CloudToDeviceProximityAuthPairing(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kInitiatingDeviceNameFieldNumber = 1, - kInitiatingDeviceBtAddressFieldNumber = 2, - kEphemeralSymmetricKeyFieldNumber = 3, - kAdditionalMetadataFieldNumber = 4, - }; - // optional string initiating_device_name = 1; - bool has_initiating_device_name() const; - private: - bool _internal_has_initiating_device_name() const; - public: - void clear_initiating_device_name(); - const std::string& initiating_device_name() const; - template - void set_initiating_device_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_initiating_device_name(); - PROTOBUF_NODISCARD std::string* release_initiating_device_name(); - void set_allocated_initiating_device_name(std::string* initiating_device_name); - private: - const std::string& _internal_initiating_device_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_initiating_device_name(const std::string& value); - std::string* _internal_mutable_initiating_device_name(); - public: - - // optional string initiating_device_bt_address = 2; - bool has_initiating_device_bt_address() const; - private: - bool _internal_has_initiating_device_bt_address() const; - public: - void clear_initiating_device_bt_address(); - const std::string& initiating_device_bt_address() const; - template - void set_initiating_device_bt_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_initiating_device_bt_address(); - PROTOBUF_NODISCARD std::string* release_initiating_device_bt_address(); - void set_allocated_initiating_device_bt_address(std::string* initiating_device_bt_address); - private: - const std::string& _internal_initiating_device_bt_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_initiating_device_bt_address(const std::string& value); - std::string* _internal_mutable_initiating_device_bt_address(); - public: - - // optional bytes ephemeral_symmetric_key = 3; - bool has_ephemeral_symmetric_key() const; - private: - bool _internal_has_ephemeral_symmetric_key() const; - public: - void clear_ephemeral_symmetric_key(); - const std::string& ephemeral_symmetric_key() const; - template - void set_ephemeral_symmetric_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_ephemeral_symmetric_key(); - PROTOBUF_NODISCARD std::string* release_ephemeral_symmetric_key(); - void set_allocated_ephemeral_symmetric_key(std::string* ephemeral_symmetric_key); - private: - const std::string& _internal_ephemeral_symmetric_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_ephemeral_symmetric_key(const std::string& value); - std::string* _internal_mutable_ephemeral_symmetric_key(); - public: - - // optional bytes additional_metadata = 4; - bool has_additional_metadata() const; - private: - bool _internal_has_additional_metadata() const; - public: - void clear_additional_metadata(); - const std::string& additional_metadata() const; - template - void set_additional_metadata(ArgT0&& arg0, ArgT... args); - std::string* mutable_additional_metadata(); - PROTOBUF_NODISCARD std::string* release_additional_metadata(); - void set_allocated_additional_metadata(std::string* additional_metadata); - private: - const std::string& _internal_additional_metadata() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_additional_metadata(const std::string& value); - std::string* _internal_mutable_additional_metadata(); - public: - - // @@protoc_insertion_point(class_scope:securegcm.CloudToDeviceProximityAuthPairing) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr initiating_device_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr initiating_device_bt_address_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ephemeral_symmetric_key_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr additional_metadata_; - friend struct ::TableStruct_proto_2fproximity_5fpayloads_2eproto; -}; -// ------------------------------------------------------------------- - -class DeviceProximityCallback final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.DeviceProximityCallback) */ { - public: - inline DeviceProximityCallback() : DeviceProximityCallback(nullptr) {} - ~DeviceProximityCallback() override; - explicit constexpr DeviceProximityCallback(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - DeviceProximityCallback(const DeviceProximityCallback& from); - DeviceProximityCallback(DeviceProximityCallback&& from) noexcept - : DeviceProximityCallback() { - *this = ::std::move(from); - } - - inline DeviceProximityCallback& operator=(const DeviceProximityCallback& from) { - CopyFrom(from); - return *this; - } - inline DeviceProximityCallback& operator=(DeviceProximityCallback&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const DeviceProximityCallback& default_instance() { - return *internal_default_instance(); - } - static inline const DeviceProximityCallback* internal_default_instance() { - return reinterpret_cast( - &_DeviceProximityCallback_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(DeviceProximityCallback& a, DeviceProximityCallback& b) { - a.Swap(&b); - } - inline void Swap(DeviceProximityCallback* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(DeviceProximityCallback* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - DeviceProximityCallback* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const DeviceProximityCallback& from); - void MergeFrom(const DeviceProximityCallback& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(DeviceProximityCallback* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.DeviceProximityCallback"; - } - protected: - explicit DeviceProximityCallback(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCallbackBluetoothAddressFieldNumber = 1, - kSourceDeviceTypeFieldNumber = 2, - kProtocolVersionFieldNumber = 3, - }; - // optional string callback_bluetooth_address = 1; - bool has_callback_bluetooth_address() const; - private: - bool _internal_has_callback_bluetooth_address() const; - public: - void clear_callback_bluetooth_address(); - const std::string& callback_bluetooth_address() const; - template - void set_callback_bluetooth_address(ArgT0&& arg0, ArgT... args); - std::string* mutable_callback_bluetooth_address(); - PROTOBUF_NODISCARD std::string* release_callback_bluetooth_address(); - void set_allocated_callback_bluetooth_address(std::string* callback_bluetooth_address); - private: - const std::string& _internal_callback_bluetooth_address() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_callback_bluetooth_address(const std::string& value); - std::string* _internal_mutable_callback_bluetooth_address(); - public: - - // optional .securegcm.DeviceType source_device_type = 2; - bool has_source_device_type() const; - private: - bool _internal_has_source_device_type() const; - public: - void clear_source_device_type(); - ::securegcm::DeviceType source_device_type() const; - void set_source_device_type(::securegcm::DeviceType value); - private: - ::securegcm::DeviceType _internal_source_device_type() const; - void _internal_set_source_device_type(::securegcm::DeviceType value); - public: - - // optional int32 protocol_version = 3; - bool has_protocol_version() const; - private: - bool _internal_has_protocol_version() const; - public: - void clear_protocol_version(); - int32_t protocol_version() const; - void set_protocol_version(int32_t value); - private: - int32_t _internal_protocol_version() const; - void _internal_set_protocol_version(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.DeviceProximityCallback) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr callback_bluetooth_address_; - int source_device_type_; - int32_t protocol_version_; - friend struct ::TableStruct_proto_2fproximity_5fpayloads_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// CloudToDeviceProximityAuthPairing - -// optional string initiating_device_name = 1; -inline bool CloudToDeviceProximityAuthPairing::_internal_has_initiating_device_name() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool CloudToDeviceProximityAuthPairing::has_initiating_device_name() const { - return _internal_has_initiating_device_name(); -} -inline void CloudToDeviceProximityAuthPairing::clear_initiating_device_name() { - initiating_device_name_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& CloudToDeviceProximityAuthPairing::initiating_device_name() const { - // @@protoc_insertion_point(field_get:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_name) - return _internal_initiating_device_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CloudToDeviceProximityAuthPairing::set_initiating_device_name(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - initiating_device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_name) -} -inline std::string* CloudToDeviceProximityAuthPairing::mutable_initiating_device_name() { - std::string* _s = _internal_mutable_initiating_device_name(); - // @@protoc_insertion_point(field_mutable:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_name) - return _s; -} -inline const std::string& CloudToDeviceProximityAuthPairing::_internal_initiating_device_name() const { - return initiating_device_name_.Get(); -} -inline void CloudToDeviceProximityAuthPairing::_internal_set_initiating_device_name(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - initiating_device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* CloudToDeviceProximityAuthPairing::_internal_mutable_initiating_device_name() { - _has_bits_[0] |= 0x00000001u; - return initiating_device_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* CloudToDeviceProximityAuthPairing::release_initiating_device_name() { - // @@protoc_insertion_point(field_release:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_name) - if (!_internal_has_initiating_device_name()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = initiating_device_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (initiating_device_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - initiating_device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void CloudToDeviceProximityAuthPairing::set_allocated_initiating_device_name(std::string* initiating_device_name) { - if (initiating_device_name != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - initiating_device_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), initiating_device_name, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (initiating_device_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - initiating_device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_name) -} - -// optional string initiating_device_bt_address = 2; -inline bool CloudToDeviceProximityAuthPairing::_internal_has_initiating_device_bt_address() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool CloudToDeviceProximityAuthPairing::has_initiating_device_bt_address() const { - return _internal_has_initiating_device_bt_address(); -} -inline void CloudToDeviceProximityAuthPairing::clear_initiating_device_bt_address() { - initiating_device_bt_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& CloudToDeviceProximityAuthPairing::initiating_device_bt_address() const { - // @@protoc_insertion_point(field_get:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_bt_address) - return _internal_initiating_device_bt_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CloudToDeviceProximityAuthPairing::set_initiating_device_bt_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - initiating_device_bt_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_bt_address) -} -inline std::string* CloudToDeviceProximityAuthPairing::mutable_initiating_device_bt_address() { - std::string* _s = _internal_mutable_initiating_device_bt_address(); - // @@protoc_insertion_point(field_mutable:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_bt_address) - return _s; -} -inline const std::string& CloudToDeviceProximityAuthPairing::_internal_initiating_device_bt_address() const { - return initiating_device_bt_address_.Get(); -} -inline void CloudToDeviceProximityAuthPairing::_internal_set_initiating_device_bt_address(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - initiating_device_bt_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* CloudToDeviceProximityAuthPairing::_internal_mutable_initiating_device_bt_address() { - _has_bits_[0] |= 0x00000002u; - return initiating_device_bt_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* CloudToDeviceProximityAuthPairing::release_initiating_device_bt_address() { - // @@protoc_insertion_point(field_release:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_bt_address) - if (!_internal_has_initiating_device_bt_address()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = initiating_device_bt_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (initiating_device_bt_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - initiating_device_bt_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void CloudToDeviceProximityAuthPairing::set_allocated_initiating_device_bt_address(std::string* initiating_device_bt_address) { - if (initiating_device_bt_address != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - initiating_device_bt_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), initiating_device_bt_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (initiating_device_bt_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - initiating_device_bt_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_bt_address) -} - -// optional bytes ephemeral_symmetric_key = 3; -inline bool CloudToDeviceProximityAuthPairing::_internal_has_ephemeral_symmetric_key() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool CloudToDeviceProximityAuthPairing::has_ephemeral_symmetric_key() const { - return _internal_has_ephemeral_symmetric_key(); -} -inline void CloudToDeviceProximityAuthPairing::clear_ephemeral_symmetric_key() { - ephemeral_symmetric_key_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000004u; -} -inline const std::string& CloudToDeviceProximityAuthPairing::ephemeral_symmetric_key() const { - // @@protoc_insertion_point(field_get:securegcm.CloudToDeviceProximityAuthPairing.ephemeral_symmetric_key) - return _internal_ephemeral_symmetric_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CloudToDeviceProximityAuthPairing::set_ephemeral_symmetric_key(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000004u; - ephemeral_symmetric_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.CloudToDeviceProximityAuthPairing.ephemeral_symmetric_key) -} -inline std::string* CloudToDeviceProximityAuthPairing::mutable_ephemeral_symmetric_key() { - std::string* _s = _internal_mutable_ephemeral_symmetric_key(); - // @@protoc_insertion_point(field_mutable:securegcm.CloudToDeviceProximityAuthPairing.ephemeral_symmetric_key) - return _s; -} -inline const std::string& CloudToDeviceProximityAuthPairing::_internal_ephemeral_symmetric_key() const { - return ephemeral_symmetric_key_.Get(); -} -inline void CloudToDeviceProximityAuthPairing::_internal_set_ephemeral_symmetric_key(const std::string& value) { - _has_bits_[0] |= 0x00000004u; - ephemeral_symmetric_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* CloudToDeviceProximityAuthPairing::_internal_mutable_ephemeral_symmetric_key() { - _has_bits_[0] |= 0x00000004u; - return ephemeral_symmetric_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* CloudToDeviceProximityAuthPairing::release_ephemeral_symmetric_key() { - // @@protoc_insertion_point(field_release:securegcm.CloudToDeviceProximityAuthPairing.ephemeral_symmetric_key) - if (!_internal_has_ephemeral_symmetric_key()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000004u; - auto* p = ephemeral_symmetric_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ephemeral_symmetric_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ephemeral_symmetric_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void CloudToDeviceProximityAuthPairing::set_allocated_ephemeral_symmetric_key(std::string* ephemeral_symmetric_key) { - if (ephemeral_symmetric_key != nullptr) { - _has_bits_[0] |= 0x00000004u; - } else { - _has_bits_[0] &= ~0x00000004u; - } - ephemeral_symmetric_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ephemeral_symmetric_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (ephemeral_symmetric_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - ephemeral_symmetric_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.CloudToDeviceProximityAuthPairing.ephemeral_symmetric_key) -} - -// optional bytes additional_metadata = 4; -inline bool CloudToDeviceProximityAuthPairing::_internal_has_additional_metadata() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool CloudToDeviceProximityAuthPairing::has_additional_metadata() const { - return _internal_has_additional_metadata(); -} -inline void CloudToDeviceProximityAuthPairing::clear_additional_metadata() { - additional_metadata_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000008u; -} -inline const std::string& CloudToDeviceProximityAuthPairing::additional_metadata() const { - // @@protoc_insertion_point(field_get:securegcm.CloudToDeviceProximityAuthPairing.additional_metadata) - return _internal_additional_metadata(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void CloudToDeviceProximityAuthPairing::set_additional_metadata(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000008u; - additional_metadata_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.CloudToDeviceProximityAuthPairing.additional_metadata) -} -inline std::string* CloudToDeviceProximityAuthPairing::mutable_additional_metadata() { - std::string* _s = _internal_mutable_additional_metadata(); - // @@protoc_insertion_point(field_mutable:securegcm.CloudToDeviceProximityAuthPairing.additional_metadata) - return _s; -} -inline const std::string& CloudToDeviceProximityAuthPairing::_internal_additional_metadata() const { - return additional_metadata_.Get(); -} -inline void CloudToDeviceProximityAuthPairing::_internal_set_additional_metadata(const std::string& value) { - _has_bits_[0] |= 0x00000008u; - additional_metadata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* CloudToDeviceProximityAuthPairing::_internal_mutable_additional_metadata() { - _has_bits_[0] |= 0x00000008u; - return additional_metadata_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* CloudToDeviceProximityAuthPairing::release_additional_metadata() { - // @@protoc_insertion_point(field_release:securegcm.CloudToDeviceProximityAuthPairing.additional_metadata) - if (!_internal_has_additional_metadata()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000008u; - auto* p = additional_metadata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (additional_metadata_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - additional_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void CloudToDeviceProximityAuthPairing::set_allocated_additional_metadata(std::string* additional_metadata) { - if (additional_metadata != nullptr) { - _has_bits_[0] |= 0x00000008u; - } else { - _has_bits_[0] &= ~0x00000008u; - } - additional_metadata_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), additional_metadata, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (additional_metadata_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - additional_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.CloudToDeviceProximityAuthPairing.additional_metadata) -} - -// ------------------------------------------------------------------- - -// DeviceProximityCallback - -// optional string callback_bluetooth_address = 1; -inline bool DeviceProximityCallback::_internal_has_callback_bluetooth_address() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool DeviceProximityCallback::has_callback_bluetooth_address() const { - return _internal_has_callback_bluetooth_address(); -} -inline void DeviceProximityCallback::clear_callback_bluetooth_address() { - callback_bluetooth_address_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& DeviceProximityCallback::callback_bluetooth_address() const { - // @@protoc_insertion_point(field_get:securegcm.DeviceProximityCallback.callback_bluetooth_address) - return _internal_callback_bluetooth_address(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void DeviceProximityCallback::set_callback_bluetooth_address(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - callback_bluetooth_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.DeviceProximityCallback.callback_bluetooth_address) -} -inline std::string* DeviceProximityCallback::mutable_callback_bluetooth_address() { - std::string* _s = _internal_mutable_callback_bluetooth_address(); - // @@protoc_insertion_point(field_mutable:securegcm.DeviceProximityCallback.callback_bluetooth_address) - return _s; -} -inline const std::string& DeviceProximityCallback::_internal_callback_bluetooth_address() const { - return callback_bluetooth_address_.Get(); -} -inline void DeviceProximityCallback::_internal_set_callback_bluetooth_address(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - callback_bluetooth_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* DeviceProximityCallback::_internal_mutable_callback_bluetooth_address() { - _has_bits_[0] |= 0x00000001u; - return callback_bluetooth_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* DeviceProximityCallback::release_callback_bluetooth_address() { - // @@protoc_insertion_point(field_release:securegcm.DeviceProximityCallback.callback_bluetooth_address) - if (!_internal_has_callback_bluetooth_address()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = callback_bluetooth_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (callback_bluetooth_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - callback_bluetooth_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void DeviceProximityCallback::set_allocated_callback_bluetooth_address(std::string* callback_bluetooth_address) { - if (callback_bluetooth_address != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - callback_bluetooth_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), callback_bluetooth_address, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (callback_bluetooth_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - callback_bluetooth_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.DeviceProximityCallback.callback_bluetooth_address) -} - -// optional .securegcm.DeviceType source_device_type = 2; -inline bool DeviceProximityCallback::_internal_has_source_device_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool DeviceProximityCallback::has_source_device_type() const { - return _internal_has_source_device_type(); -} -inline void DeviceProximityCallback::clear_source_device_type() { - source_device_type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::securegcm::DeviceType DeviceProximityCallback::_internal_source_device_type() const { - return static_cast< ::securegcm::DeviceType >(source_device_type_); -} -inline ::securegcm::DeviceType DeviceProximityCallback::source_device_type() const { - // @@protoc_insertion_point(field_get:securegcm.DeviceProximityCallback.source_device_type) - return _internal_source_device_type(); -} -inline void DeviceProximityCallback::_internal_set_source_device_type(::securegcm::DeviceType value) { - assert(::securegcm::DeviceType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - source_device_type_ = value; -} -inline void DeviceProximityCallback::set_source_device_type(::securegcm::DeviceType value) { - _internal_set_source_device_type(value); - // @@protoc_insertion_point(field_set:securegcm.DeviceProximityCallback.source_device_type) -} - -// optional int32 protocol_version = 3; -inline bool DeviceProximityCallback::_internal_has_protocol_version() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool DeviceProximityCallback::has_protocol_version() const { - return _internal_has_protocol_version(); -} -inline void DeviceProximityCallback::clear_protocol_version() { - protocol_version_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline int32_t DeviceProximityCallback::_internal_protocol_version() const { - return protocol_version_; -} -inline int32_t DeviceProximityCallback::protocol_version() const { - // @@protoc_insertion_point(field_get:securegcm.DeviceProximityCallback.protocol_version) - return _internal_protocol_version(); -} -inline void DeviceProximityCallback::_internal_set_protocol_version(int32_t value) { - _has_bits_[0] |= 0x00000004u; - protocol_version_ = value; -} -inline void DeviceProximityCallback::set_protocol_version(int32_t value) { - _internal_set_protocol_version(value); - // @@protoc_insertion_point(field_set:securegcm.DeviceProximityCallback.protocol_version) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace securegcm - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fproximity_5fpayloads_2eproto diff --git a/third_party/ukey2/include/proto/ukey.pb.h b/third_party/ukey2/include/proto/ukey.pb.h deleted file mode 100644 index 8c316a30..00000000 --- a/third_party/ukey2/include/proto/ukey.pb.h +++ /dev/null @@ -1,2085 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: proto/ukey.proto - -#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fukey_2eproto -#define GOOGLE_PROTOBUF_INCLUDED_proto_2fukey_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3019000 -#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 3019004 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_proto_2fukey_2eproto -PROTOBUF_NAMESPACE_OPEN -namespace internal { -class AnyMetadata; -} // namespace internal -PROTOBUF_NAMESPACE_CLOSE - -// Internal implementation detail -- do not use these members. -struct TableStruct_proto_2fukey_2eproto { - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[6] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; - static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; - static const uint32_t offsets[]; -}; -namespace securegcm { -class Ukey2Alert; -struct Ukey2AlertDefaultTypeInternal; -extern Ukey2AlertDefaultTypeInternal _Ukey2Alert_default_instance_; -class Ukey2ClientFinished; -struct Ukey2ClientFinishedDefaultTypeInternal; -extern Ukey2ClientFinishedDefaultTypeInternal _Ukey2ClientFinished_default_instance_; -class Ukey2ClientInit; -struct Ukey2ClientInitDefaultTypeInternal; -extern Ukey2ClientInitDefaultTypeInternal _Ukey2ClientInit_default_instance_; -class Ukey2ClientInit_CipherCommitment; -struct Ukey2ClientInit_CipherCommitmentDefaultTypeInternal; -extern Ukey2ClientInit_CipherCommitmentDefaultTypeInternal _Ukey2ClientInit_CipherCommitment_default_instance_; -class Ukey2Message; -struct Ukey2MessageDefaultTypeInternal; -extern Ukey2MessageDefaultTypeInternal _Ukey2Message_default_instance_; -class Ukey2ServerInit; -struct Ukey2ServerInitDefaultTypeInternal; -extern Ukey2ServerInitDefaultTypeInternal _Ukey2ServerInit_default_instance_; -} // namespace securegcm -PROTOBUF_NAMESPACE_OPEN -template<> ::securegcm::Ukey2Alert* Arena::CreateMaybeMessage<::securegcm::Ukey2Alert>(Arena*); -template<> ::securegcm::Ukey2ClientFinished* Arena::CreateMaybeMessage<::securegcm::Ukey2ClientFinished>(Arena*); -template<> ::securegcm::Ukey2ClientInit* Arena::CreateMaybeMessage<::securegcm::Ukey2ClientInit>(Arena*); -template<> ::securegcm::Ukey2ClientInit_CipherCommitment* Arena::CreateMaybeMessage<::securegcm::Ukey2ClientInit_CipherCommitment>(Arena*); -template<> ::securegcm::Ukey2Message* Arena::CreateMaybeMessage<::securegcm::Ukey2Message>(Arena*); -template<> ::securegcm::Ukey2ServerInit* Arena::CreateMaybeMessage<::securegcm::Ukey2ServerInit>(Arena*); -PROTOBUF_NAMESPACE_CLOSE -namespace securegcm { - -enum Ukey2Message_Type : int { - Ukey2Message_Type_UNKNOWN_DO_NOT_USE = 0, - Ukey2Message_Type_ALERT = 1, - Ukey2Message_Type_CLIENT_INIT = 2, - Ukey2Message_Type_SERVER_INIT = 3, - Ukey2Message_Type_CLIENT_FINISH = 4 -}; -bool Ukey2Message_Type_IsValid(int value); -constexpr Ukey2Message_Type Ukey2Message_Type_Type_MIN = Ukey2Message_Type_UNKNOWN_DO_NOT_USE; -constexpr Ukey2Message_Type Ukey2Message_Type_Type_MAX = Ukey2Message_Type_CLIENT_FINISH; -constexpr int Ukey2Message_Type_Type_ARRAYSIZE = Ukey2Message_Type_Type_MAX + 1; - -const std::string& Ukey2Message_Type_Name(Ukey2Message_Type value); -template -inline const std::string& Ukey2Message_Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Ukey2Message_Type_Name."); - return Ukey2Message_Type_Name(static_cast(enum_t_value)); -} -bool Ukey2Message_Type_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Ukey2Message_Type* value); -enum Ukey2Alert_AlertType : int { - Ukey2Alert_AlertType_BAD_MESSAGE = 1, - Ukey2Alert_AlertType_BAD_MESSAGE_TYPE = 2, - Ukey2Alert_AlertType_INCORRECT_MESSAGE = 3, - Ukey2Alert_AlertType_BAD_MESSAGE_DATA = 4, - Ukey2Alert_AlertType_BAD_VERSION = 100, - Ukey2Alert_AlertType_BAD_RANDOM = 101, - Ukey2Alert_AlertType_BAD_HANDSHAKE_CIPHER = 102, - Ukey2Alert_AlertType_BAD_NEXT_PROTOCOL = 103, - Ukey2Alert_AlertType_BAD_PUBLIC_KEY = 104, - Ukey2Alert_AlertType_INTERNAL_ERROR = 200 -}; -bool Ukey2Alert_AlertType_IsValid(int value); -constexpr Ukey2Alert_AlertType Ukey2Alert_AlertType_AlertType_MIN = Ukey2Alert_AlertType_BAD_MESSAGE; -constexpr Ukey2Alert_AlertType Ukey2Alert_AlertType_AlertType_MAX = Ukey2Alert_AlertType_INTERNAL_ERROR; -constexpr int Ukey2Alert_AlertType_AlertType_ARRAYSIZE = Ukey2Alert_AlertType_AlertType_MAX + 1; - -const std::string& Ukey2Alert_AlertType_Name(Ukey2Alert_AlertType value); -template -inline const std::string& Ukey2Alert_AlertType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Ukey2Alert_AlertType_Name."); - return Ukey2Alert_AlertType_Name(static_cast(enum_t_value)); -} -bool Ukey2Alert_AlertType_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Ukey2Alert_AlertType* value); -enum Ukey2HandshakeCipher : int { - RESERVED = 0, - P256_SHA512 = 100, - CURVE25519_SHA512 = 200 -}; -bool Ukey2HandshakeCipher_IsValid(int value); -constexpr Ukey2HandshakeCipher Ukey2HandshakeCipher_MIN = RESERVED; -constexpr Ukey2HandshakeCipher Ukey2HandshakeCipher_MAX = CURVE25519_SHA512; -constexpr int Ukey2HandshakeCipher_ARRAYSIZE = Ukey2HandshakeCipher_MAX + 1; - -const std::string& Ukey2HandshakeCipher_Name(Ukey2HandshakeCipher value); -template -inline const std::string& Ukey2HandshakeCipher_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Ukey2HandshakeCipher_Name."); - return Ukey2HandshakeCipher_Name(static_cast(enum_t_value)); -} -bool Ukey2HandshakeCipher_Parse( - ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Ukey2HandshakeCipher* value); -// =================================================================== - -class Ukey2Message final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2Message) */ { - public: - inline Ukey2Message() : Ukey2Message(nullptr) {} - ~Ukey2Message() override; - explicit constexpr Ukey2Message(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Ukey2Message(const Ukey2Message& from); - Ukey2Message(Ukey2Message&& from) noexcept - : Ukey2Message() { - *this = ::std::move(from); - } - - inline Ukey2Message& operator=(const Ukey2Message& from) { - CopyFrom(from); - return *this; - } - inline Ukey2Message& operator=(Ukey2Message&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Ukey2Message& default_instance() { - return *internal_default_instance(); - } - static inline const Ukey2Message* internal_default_instance() { - return reinterpret_cast( - &_Ukey2Message_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - friend void swap(Ukey2Message& a, Ukey2Message& b) { - a.Swap(&b); - } - inline void Swap(Ukey2Message* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2Message* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2Message* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Ukey2Message& from); - void MergeFrom(const Ukey2Message& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2Message* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2Message"; - } - protected: - explicit Ukey2Message(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef Ukey2Message_Type Type; - static constexpr Type UNKNOWN_DO_NOT_USE = - Ukey2Message_Type_UNKNOWN_DO_NOT_USE; - static constexpr Type ALERT = - Ukey2Message_Type_ALERT; - static constexpr Type CLIENT_INIT = - Ukey2Message_Type_CLIENT_INIT; - static constexpr Type SERVER_INIT = - Ukey2Message_Type_SERVER_INIT; - static constexpr Type CLIENT_FINISH = - Ukey2Message_Type_CLIENT_FINISH; - static inline bool Type_IsValid(int value) { - return Ukey2Message_Type_IsValid(value); - } - static constexpr Type Type_MIN = - Ukey2Message_Type_Type_MIN; - static constexpr Type Type_MAX = - Ukey2Message_Type_Type_MAX; - static constexpr int Type_ARRAYSIZE = - Ukey2Message_Type_Type_ARRAYSIZE; - template - static inline const std::string& Type_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function Type_Name."); - return Ukey2Message_Type_Name(enum_t_value); - } - static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - Type* value) { - return Ukey2Message_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kMessageDataFieldNumber = 2, - kMessageTypeFieldNumber = 1, - }; - // optional bytes message_data = 2; - bool has_message_data() const; - private: - bool _internal_has_message_data() const; - public: - void clear_message_data(); - const std::string& message_data() const; - template - void set_message_data(ArgT0&& arg0, ArgT... args); - std::string* mutable_message_data(); - PROTOBUF_NODISCARD std::string* release_message_data(); - void set_allocated_message_data(std::string* message_data); - private: - const std::string& _internal_message_data() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_message_data(const std::string& value); - std::string* _internal_mutable_message_data(); - public: - - // optional .securegcm.Ukey2Message.Type message_type = 1; - bool has_message_type() const; - private: - bool _internal_has_message_type() const; - public: - void clear_message_type(); - ::securegcm::Ukey2Message_Type message_type() const; - void set_message_type(::securegcm::Ukey2Message_Type value); - private: - ::securegcm::Ukey2Message_Type _internal_message_type() const; - void _internal_set_message_type(::securegcm::Ukey2Message_Type value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.Ukey2Message) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_data_; - int message_type_; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; -// ------------------------------------------------------------------- - -class Ukey2Alert final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2Alert) */ { - public: - inline Ukey2Alert() : Ukey2Alert(nullptr) {} - ~Ukey2Alert() override; - explicit constexpr Ukey2Alert(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Ukey2Alert(const Ukey2Alert& from); - Ukey2Alert(Ukey2Alert&& from) noexcept - : Ukey2Alert() { - *this = ::std::move(from); - } - - inline Ukey2Alert& operator=(const Ukey2Alert& from) { - CopyFrom(from); - return *this; - } - inline Ukey2Alert& operator=(Ukey2Alert&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Ukey2Alert& default_instance() { - return *internal_default_instance(); - } - static inline const Ukey2Alert* internal_default_instance() { - return reinterpret_cast( - &_Ukey2Alert_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - friend void swap(Ukey2Alert& a, Ukey2Alert& b) { - a.Swap(&b); - } - inline void Swap(Ukey2Alert* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2Alert* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2Alert* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Ukey2Alert& from); - void MergeFrom(const Ukey2Alert& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2Alert* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2Alert"; - } - protected: - explicit Ukey2Alert(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef Ukey2Alert_AlertType AlertType; - static constexpr AlertType BAD_MESSAGE = - Ukey2Alert_AlertType_BAD_MESSAGE; - static constexpr AlertType BAD_MESSAGE_TYPE = - Ukey2Alert_AlertType_BAD_MESSAGE_TYPE; - static constexpr AlertType INCORRECT_MESSAGE = - Ukey2Alert_AlertType_INCORRECT_MESSAGE; - static constexpr AlertType BAD_MESSAGE_DATA = - Ukey2Alert_AlertType_BAD_MESSAGE_DATA; - static constexpr AlertType BAD_VERSION = - Ukey2Alert_AlertType_BAD_VERSION; - static constexpr AlertType BAD_RANDOM = - Ukey2Alert_AlertType_BAD_RANDOM; - static constexpr AlertType BAD_HANDSHAKE_CIPHER = - Ukey2Alert_AlertType_BAD_HANDSHAKE_CIPHER; - static constexpr AlertType BAD_NEXT_PROTOCOL = - Ukey2Alert_AlertType_BAD_NEXT_PROTOCOL; - static constexpr AlertType BAD_PUBLIC_KEY = - Ukey2Alert_AlertType_BAD_PUBLIC_KEY; - static constexpr AlertType INTERNAL_ERROR = - Ukey2Alert_AlertType_INTERNAL_ERROR; - static inline bool AlertType_IsValid(int value) { - return Ukey2Alert_AlertType_IsValid(value); - } - static constexpr AlertType AlertType_MIN = - Ukey2Alert_AlertType_AlertType_MIN; - static constexpr AlertType AlertType_MAX = - Ukey2Alert_AlertType_AlertType_MAX; - static constexpr int AlertType_ARRAYSIZE = - Ukey2Alert_AlertType_AlertType_ARRAYSIZE; - template - static inline const std::string& AlertType_Name(T enum_t_value) { - static_assert(::std::is_same::value || - ::std::is_integral::value, - "Incorrect type passed to function AlertType_Name."); - return Ukey2Alert_AlertType_Name(enum_t_value); - } - static inline bool AlertType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, - AlertType* value) { - return Ukey2Alert_AlertType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - enum : int { - kErrorMessageFieldNumber = 2, - kTypeFieldNumber = 1, - }; - // optional string error_message = 2; - bool has_error_message() const; - private: - bool _internal_has_error_message() const; - public: - void clear_error_message(); - const std::string& error_message() const; - template - void set_error_message(ArgT0&& arg0, ArgT... args); - std::string* mutable_error_message(); - PROTOBUF_NODISCARD std::string* release_error_message(); - void set_allocated_error_message(std::string* error_message); - private: - const std::string& _internal_error_message() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_error_message(const std::string& value); - std::string* _internal_mutable_error_message(); - public: - - // optional .securegcm.Ukey2Alert.AlertType type = 1; - bool has_type() const; - private: - bool _internal_has_type() const; - public: - void clear_type(); - ::securegcm::Ukey2Alert_AlertType type() const; - void set_type(::securegcm::Ukey2Alert_AlertType value); - private: - ::securegcm::Ukey2Alert_AlertType _internal_type() const; - void _internal_set_type(::securegcm::Ukey2Alert_AlertType value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.Ukey2Alert) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr error_message_; - int type_; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; -// ------------------------------------------------------------------- - -class Ukey2ClientInit_CipherCommitment final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientInit.CipherCommitment) */ { - public: - inline Ukey2ClientInit_CipherCommitment() : Ukey2ClientInit_CipherCommitment(nullptr) {} - ~Ukey2ClientInit_CipherCommitment() override; - explicit constexpr Ukey2ClientInit_CipherCommitment(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Ukey2ClientInit_CipherCommitment(const Ukey2ClientInit_CipherCommitment& from); - Ukey2ClientInit_CipherCommitment(Ukey2ClientInit_CipherCommitment&& from) noexcept - : Ukey2ClientInit_CipherCommitment() { - *this = ::std::move(from); - } - - inline Ukey2ClientInit_CipherCommitment& operator=(const Ukey2ClientInit_CipherCommitment& from) { - CopyFrom(from); - return *this; - } - inline Ukey2ClientInit_CipherCommitment& operator=(Ukey2ClientInit_CipherCommitment&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Ukey2ClientInit_CipherCommitment& default_instance() { - return *internal_default_instance(); - } - static inline const Ukey2ClientInit_CipherCommitment* internal_default_instance() { - return reinterpret_cast( - &_Ukey2ClientInit_CipherCommitment_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - friend void swap(Ukey2ClientInit_CipherCommitment& a, Ukey2ClientInit_CipherCommitment& b) { - a.Swap(&b); - } - inline void Swap(Ukey2ClientInit_CipherCommitment* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2ClientInit_CipherCommitment* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2ClientInit_CipherCommitment* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Ukey2ClientInit_CipherCommitment& from); - void MergeFrom(const Ukey2ClientInit_CipherCommitment& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2ClientInit_CipherCommitment* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2ClientInit.CipherCommitment"; - } - protected: - explicit Ukey2ClientInit_CipherCommitment(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kCommitmentFieldNumber = 2, - kHandshakeCipherFieldNumber = 1, - }; - // optional bytes commitment = 2; - bool has_commitment() const; - private: - bool _internal_has_commitment() const; - public: - void clear_commitment(); - const std::string& commitment() const; - template - void set_commitment(ArgT0&& arg0, ArgT... args); - std::string* mutable_commitment(); - PROTOBUF_NODISCARD std::string* release_commitment(); - void set_allocated_commitment(std::string* commitment); - private: - const std::string& _internal_commitment() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_commitment(const std::string& value); - std::string* _internal_mutable_commitment(); - public: - - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; - bool has_handshake_cipher() const; - private: - bool _internal_has_handshake_cipher() const; - public: - void clear_handshake_cipher(); - ::securegcm::Ukey2HandshakeCipher handshake_cipher() const; - void set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - private: - ::securegcm::Ukey2HandshakeCipher _internal_handshake_cipher() const; - void _internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientInit.CipherCommitment) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr commitment_; - int handshake_cipher_; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; -// ------------------------------------------------------------------- - -class Ukey2ClientInit final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientInit) */ { - public: - inline Ukey2ClientInit() : Ukey2ClientInit(nullptr) {} - ~Ukey2ClientInit() override; - explicit constexpr Ukey2ClientInit(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Ukey2ClientInit(const Ukey2ClientInit& from); - Ukey2ClientInit(Ukey2ClientInit&& from) noexcept - : Ukey2ClientInit() { - *this = ::std::move(from); - } - - inline Ukey2ClientInit& operator=(const Ukey2ClientInit& from) { - CopyFrom(from); - return *this; - } - inline Ukey2ClientInit& operator=(Ukey2ClientInit&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Ukey2ClientInit& default_instance() { - return *internal_default_instance(); - } - static inline const Ukey2ClientInit* internal_default_instance() { - return reinterpret_cast( - &_Ukey2ClientInit_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(Ukey2ClientInit& a, Ukey2ClientInit& b) { - a.Swap(&b); - } - inline void Swap(Ukey2ClientInit* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2ClientInit* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2ClientInit* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Ukey2ClientInit& from); - void MergeFrom(const Ukey2ClientInit& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2ClientInit* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2ClientInit"; - } - protected: - explicit Ukey2ClientInit(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - typedef Ukey2ClientInit_CipherCommitment CipherCommitment; - - // accessors ------------------------------------------------------- - - enum : int { - kCipherCommitmentsFieldNumber = 3, - kRandomFieldNumber = 2, - kNextProtocolFieldNumber = 4, - kVersionFieldNumber = 1, - }; - // repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; - int cipher_commitments_size() const; - private: - int _internal_cipher_commitments_size() const; - public: - void clear_cipher_commitments(); - ::securegcm::Ukey2ClientInit_CipherCommitment* mutable_cipher_commitments(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment >* - mutable_cipher_commitments(); - private: - const ::securegcm::Ukey2ClientInit_CipherCommitment& _internal_cipher_commitments(int index) const; - ::securegcm::Ukey2ClientInit_CipherCommitment* _internal_add_cipher_commitments(); - public: - const ::securegcm::Ukey2ClientInit_CipherCommitment& cipher_commitments(int index) const; - ::securegcm::Ukey2ClientInit_CipherCommitment* add_cipher_commitments(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment >& - cipher_commitments() const; - - // optional bytes random = 2; - bool has_random() const; - private: - bool _internal_has_random() const; - public: - void clear_random(); - const std::string& random() const; - template - void set_random(ArgT0&& arg0, ArgT... args); - std::string* mutable_random(); - PROTOBUF_NODISCARD std::string* release_random(); - void set_allocated_random(std::string* random); - private: - const std::string& _internal_random() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_random(const std::string& value); - std::string* _internal_mutable_random(); - public: - - // optional string next_protocol = 4; - bool has_next_protocol() const; - private: - bool _internal_has_next_protocol() const; - public: - void clear_next_protocol(); - const std::string& next_protocol() const; - template - void set_next_protocol(ArgT0&& arg0, ArgT... args); - std::string* mutable_next_protocol(); - PROTOBUF_NODISCARD std::string* release_next_protocol(); - void set_allocated_next_protocol(std::string* next_protocol); - private: - const std::string& _internal_next_protocol() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_next_protocol(const std::string& value); - std::string* _internal_mutable_next_protocol(); - public: - - // optional int32 version = 1; - bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - int32_t version() const; - void set_version(int32_t value); - private: - int32_t _internal_version() const; - void _internal_set_version(int32_t value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientInit) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment > cipher_commitments_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr random_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr next_protocol_; - int32_t version_; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; -// ------------------------------------------------------------------- - -class Ukey2ServerInit final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2ServerInit) */ { - public: - inline Ukey2ServerInit() : Ukey2ServerInit(nullptr) {} - ~Ukey2ServerInit() override; - explicit constexpr Ukey2ServerInit(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Ukey2ServerInit(const Ukey2ServerInit& from); - Ukey2ServerInit(Ukey2ServerInit&& from) noexcept - : Ukey2ServerInit() { - *this = ::std::move(from); - } - - inline Ukey2ServerInit& operator=(const Ukey2ServerInit& from) { - CopyFrom(from); - return *this; - } - inline Ukey2ServerInit& operator=(Ukey2ServerInit&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Ukey2ServerInit& default_instance() { - return *internal_default_instance(); - } - static inline const Ukey2ServerInit* internal_default_instance() { - return reinterpret_cast( - &_Ukey2ServerInit_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - friend void swap(Ukey2ServerInit& a, Ukey2ServerInit& b) { - a.Swap(&b); - } - inline void Swap(Ukey2ServerInit* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2ServerInit* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2ServerInit* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Ukey2ServerInit& from); - void MergeFrom(const Ukey2ServerInit& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2ServerInit* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2ServerInit"; - } - protected: - explicit Ukey2ServerInit(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kRandomFieldNumber = 2, - kPublicKeyFieldNumber = 4, - kVersionFieldNumber = 1, - kHandshakeCipherFieldNumber = 3, - }; - // optional bytes random = 2; - bool has_random() const; - private: - bool _internal_has_random() const; - public: - void clear_random(); - const std::string& random() const; - template - void set_random(ArgT0&& arg0, ArgT... args); - std::string* mutable_random(); - PROTOBUF_NODISCARD std::string* release_random(); - void set_allocated_random(std::string* random); - private: - const std::string& _internal_random() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_random(const std::string& value); - std::string* _internal_mutable_random(); - public: - - // optional bytes public_key = 4; - bool has_public_key() const; - private: - bool _internal_has_public_key() const; - public: - void clear_public_key(); - const std::string& public_key() const; - template - void set_public_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: - - // optional int32 version = 1; - bool has_version() const; - private: - bool _internal_has_version() const; - public: - void clear_version(); - int32_t version() const; - void set_version(int32_t value); - private: - int32_t _internal_version() const; - void _internal_set_version(int32_t value); - public: - - // optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; - bool has_handshake_cipher() const; - private: - bool _internal_has_handshake_cipher() const; - public: - void clear_handshake_cipher(); - ::securegcm::Ukey2HandshakeCipher handshake_cipher() const; - void set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - private: - ::securegcm::Ukey2HandshakeCipher _internal_handshake_cipher() const; - void _internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value); - public: - - // @@protoc_insertion_point(class_scope:securegcm.Ukey2ServerInit) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr random_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - int32_t version_; - int handshake_cipher_; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; -// ------------------------------------------------------------------- - -class Ukey2ClientFinished final : - public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.Ukey2ClientFinished) */ { - public: - inline Ukey2ClientFinished() : Ukey2ClientFinished(nullptr) {} - ~Ukey2ClientFinished() override; - explicit constexpr Ukey2ClientFinished(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - Ukey2ClientFinished(const Ukey2ClientFinished& from); - Ukey2ClientFinished(Ukey2ClientFinished&& from) noexcept - : Ukey2ClientFinished() { - *this = ::std::move(from); - } - - inline Ukey2ClientFinished& operator=(const Ukey2ClientFinished& from) { - CopyFrom(from); - return *this; - } - inline Ukey2ClientFinished& operator=(Ukey2ClientFinished&& from) noexcept { - 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); - } - return *this; - } - - inline const std::string& unknown_fields() const { - return _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); - } - inline std::string* mutable_unknown_fields() { - return _internal_metadata_.mutable_unknown_fields(); - } - - static const Ukey2ClientFinished& default_instance() { - return *internal_default_instance(); - } - static inline const Ukey2ClientFinished* internal_default_instance() { - return reinterpret_cast( - &_Ukey2ClientFinished_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - friend void swap(Ukey2ClientFinished& a, Ukey2ClientFinished& b) { - a.Swap(&b); - } - inline void Swap(Ukey2ClientFinished* other) { - if (other == this) return; - #ifdef PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() != nullptr && - GetOwningArena() == other->GetOwningArena()) { - #else // PROTOBUF_FORCE_COPY_IN_SWAP - if (GetOwningArena() == other->GetOwningArena()) { - #endif // !PROTOBUF_FORCE_COPY_IN_SWAP - InternalSwap(other); - } else { - ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(Ukey2ClientFinished* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - Ukey2ClientFinished* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; - void CopyFrom(const Ukey2ClientFinished& from); - void MergeFrom(const Ukey2ClientFinished& from); - PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; - uint8_t* _InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - void InternalSwap(Ukey2ClientFinished* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "securegcm.Ukey2ClientFinished"; - } - protected: - explicit Ukey2ClientFinished(::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: - - std::string GetTypeName() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - enum : int { - kPublicKeyFieldNumber = 1, - }; - // optional bytes public_key = 1; - bool has_public_key() const; - private: - bool _internal_has_public_key() const; - public: - void clear_public_key(); - const std::string& public_key() const; - template - void set_public_key(ArgT0&& arg0, ArgT... args); - std::string* mutable_public_key(); - PROTOBUF_NODISCARD std::string* release_public_key(); - void set_allocated_public_key(std::string* public_key); - private: - const std::string& _internal_public_key() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value); - std::string* _internal_mutable_public_key(); - public: - - // @@protoc_insertion_point(class_scope:securegcm.Ukey2ClientFinished) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_; - friend struct ::TableStruct_proto_2fukey_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Ukey2Message - -// optional .securegcm.Ukey2Message.Type message_type = 1; -inline bool Ukey2Message::_internal_has_message_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool Ukey2Message::has_message_type() const { - return _internal_has_message_type(); -} -inline void Ukey2Message::clear_message_type() { - message_type_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::securegcm::Ukey2Message_Type Ukey2Message::_internal_message_type() const { - return static_cast< ::securegcm::Ukey2Message_Type >(message_type_); -} -inline ::securegcm::Ukey2Message_Type Ukey2Message::message_type() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2Message.message_type) - return _internal_message_type(); -} -inline void Ukey2Message::_internal_set_message_type(::securegcm::Ukey2Message_Type value) { - assert(::securegcm::Ukey2Message_Type_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - message_type_ = value; -} -inline void Ukey2Message::set_message_type(::securegcm::Ukey2Message_Type value) { - _internal_set_message_type(value); - // @@protoc_insertion_point(field_set:securegcm.Ukey2Message.message_type) -} - -// optional bytes message_data = 2; -inline bool Ukey2Message::_internal_has_message_data() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool Ukey2Message::has_message_data() const { - return _internal_has_message_data(); -} -inline void Ukey2Message::clear_message_data() { - message_data_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& Ukey2Message::message_data() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2Message.message_data) - return _internal_message_data(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2Message::set_message_data(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - message_data_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2Message.message_data) -} -inline std::string* Ukey2Message::mutable_message_data() { - std::string* _s = _internal_mutable_message_data(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2Message.message_data) - return _s; -} -inline const std::string& Ukey2Message::_internal_message_data() const { - return message_data_.Get(); -} -inline void Ukey2Message::_internal_set_message_data(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - message_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Ukey2Message::_internal_mutable_message_data() { - _has_bits_[0] |= 0x00000001u; - return message_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Ukey2Message::release_message_data() { - // @@protoc_insertion_point(field_release:securegcm.Ukey2Message.message_data) - if (!_internal_has_message_data()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = message_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (message_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - message_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void Ukey2Message::set_allocated_message_data(std::string* message_data) { - if (message_data != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - message_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message_data, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (message_data_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - message_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2Message.message_data) -} - -// ------------------------------------------------------------------- - -// Ukey2Alert - -// optional .securegcm.Ukey2Alert.AlertType type = 1; -inline bool Ukey2Alert::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool Ukey2Alert::has_type() const { - return _internal_has_type(); -} -inline void Ukey2Alert::clear_type() { - type_ = 1; - _has_bits_[0] &= ~0x00000002u; -} -inline ::securegcm::Ukey2Alert_AlertType Ukey2Alert::_internal_type() const { - return static_cast< ::securegcm::Ukey2Alert_AlertType >(type_); -} -inline ::securegcm::Ukey2Alert_AlertType Ukey2Alert::type() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2Alert.type) - return _internal_type(); -} -inline void Ukey2Alert::_internal_set_type(::securegcm::Ukey2Alert_AlertType value) { - assert(::securegcm::Ukey2Alert_AlertType_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - type_ = value; -} -inline void Ukey2Alert::set_type(::securegcm::Ukey2Alert_AlertType value) { - _internal_set_type(value); - // @@protoc_insertion_point(field_set:securegcm.Ukey2Alert.type) -} - -// optional string error_message = 2; -inline bool Ukey2Alert::_internal_has_error_message() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool Ukey2Alert::has_error_message() const { - return _internal_has_error_message(); -} -inline void Ukey2Alert::clear_error_message() { - error_message_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& Ukey2Alert::error_message() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2Alert.error_message) - return _internal_error_message(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2Alert::set_error_message(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - error_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2Alert.error_message) -} -inline std::string* Ukey2Alert::mutable_error_message() { - std::string* _s = _internal_mutable_error_message(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2Alert.error_message) - return _s; -} -inline const std::string& Ukey2Alert::_internal_error_message() const { - return error_message_.Get(); -} -inline void Ukey2Alert::_internal_set_error_message(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - error_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Ukey2Alert::_internal_mutable_error_message() { - _has_bits_[0] |= 0x00000001u; - return error_message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Ukey2Alert::release_error_message() { - // @@protoc_insertion_point(field_release:securegcm.Ukey2Alert.error_message) - if (!_internal_has_error_message()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = error_message_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (error_message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - error_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void Ukey2Alert::set_allocated_error_message(std::string* error_message) { - if (error_message != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - error_message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), error_message, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (error_message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - error_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2Alert.error_message) -} - -// ------------------------------------------------------------------- - -// Ukey2ClientInit_CipherCommitment - -// optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 1; -inline bool Ukey2ClientInit_CipherCommitment::_internal_has_handshake_cipher() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool Ukey2ClientInit_CipherCommitment::has_handshake_cipher() const { - return _internal_has_handshake_cipher(); -} -inline void Ukey2ClientInit_CipherCommitment::clear_handshake_cipher() { - handshake_cipher_ = 0; - _has_bits_[0] &= ~0x00000002u; -} -inline ::securegcm::Ukey2HandshakeCipher Ukey2ClientInit_CipherCommitment::_internal_handshake_cipher() const { - return static_cast< ::securegcm::Ukey2HandshakeCipher >(handshake_cipher_); -} -inline ::securegcm::Ukey2HandshakeCipher Ukey2ClientInit_CipherCommitment::handshake_cipher() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.CipherCommitment.handshake_cipher) - return _internal_handshake_cipher(); -} -inline void Ukey2ClientInit_CipherCommitment::_internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { - assert(::securegcm::Ukey2HandshakeCipher_IsValid(value)); - _has_bits_[0] |= 0x00000002u; - handshake_cipher_ = value; -} -inline void Ukey2ClientInit_CipherCommitment::set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { - _internal_set_handshake_cipher(value); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.CipherCommitment.handshake_cipher) -} - -// optional bytes commitment = 2; -inline bool Ukey2ClientInit_CipherCommitment::_internal_has_commitment() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool Ukey2ClientInit_CipherCommitment::has_commitment() const { - return _internal_has_commitment(); -} -inline void Ukey2ClientInit_CipherCommitment::clear_commitment() { - commitment_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& Ukey2ClientInit_CipherCommitment::commitment() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.CipherCommitment.commitment) - return _internal_commitment(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ClientInit_CipherCommitment::set_commitment(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - commitment_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.CipherCommitment.commitment) -} -inline std::string* Ukey2ClientInit_CipherCommitment::mutable_commitment() { - std::string* _s = _internal_mutable_commitment(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.CipherCommitment.commitment) - return _s; -} -inline const std::string& Ukey2ClientInit_CipherCommitment::_internal_commitment() const { - return commitment_.Get(); -} -inline void Ukey2ClientInit_CipherCommitment::_internal_set_commitment(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - commitment_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Ukey2ClientInit_CipherCommitment::_internal_mutable_commitment() { - _has_bits_[0] |= 0x00000001u; - return commitment_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Ukey2ClientInit_CipherCommitment::release_commitment() { - // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.CipherCommitment.commitment) - if (!_internal_has_commitment()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = commitment_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (commitment_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - commitment_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void Ukey2ClientInit_CipherCommitment::set_allocated_commitment(std::string* commitment) { - if (commitment != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - commitment_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), commitment, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (commitment_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - commitment_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.CipherCommitment.commitment) -} - -// ------------------------------------------------------------------- - -// Ukey2ClientInit - -// optional int32 version = 1; -inline bool Ukey2ClientInit::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool Ukey2ClientInit::has_version() const { - return _internal_has_version(); -} -inline void Ukey2ClientInit::clear_version() { - version_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline int32_t Ukey2ClientInit::_internal_version() const { - return version_; -} -inline int32_t Ukey2ClientInit::version() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.version) - return _internal_version(); -} -inline void Ukey2ClientInit::_internal_set_version(int32_t value) { - _has_bits_[0] |= 0x00000004u; - version_ = value; -} -inline void Ukey2ClientInit::set_version(int32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.version) -} - -// optional bytes random = 2; -inline bool Ukey2ClientInit::_internal_has_random() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool Ukey2ClientInit::has_random() const { - return _internal_has_random(); -} -inline void Ukey2ClientInit::clear_random() { - random_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& Ukey2ClientInit::random() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.random) - return _internal_random(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ClientInit::set_random(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - random_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.random) -} -inline std::string* Ukey2ClientInit::mutable_random() { - std::string* _s = _internal_mutable_random(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.random) - return _s; -} -inline const std::string& Ukey2ClientInit::_internal_random() const { - return random_.Get(); -} -inline void Ukey2ClientInit::_internal_set_random(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - random_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Ukey2ClientInit::_internal_mutable_random() { - _has_bits_[0] |= 0x00000001u; - return random_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Ukey2ClientInit::release_random() { - // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.random) - if (!_internal_has_random()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = random_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (random_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void Ukey2ClientInit::set_allocated_random(std::string* random) { - if (random != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - random_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), random, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (random_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.random) -} - -// repeated .securegcm.Ukey2ClientInit.CipherCommitment cipher_commitments = 3; -inline int Ukey2ClientInit::_internal_cipher_commitments_size() const { - return cipher_commitments_.size(); -} -inline int Ukey2ClientInit::cipher_commitments_size() const { - return _internal_cipher_commitments_size(); -} -inline void Ukey2ClientInit::clear_cipher_commitments() { - cipher_commitments_.Clear(); -} -inline ::securegcm::Ukey2ClientInit_CipherCommitment* Ukey2ClientInit::mutable_cipher_commitments(int index) { - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.cipher_commitments) - return cipher_commitments_.Mutable(index); -} -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment >* -Ukey2ClientInit::mutable_cipher_commitments() { - // @@protoc_insertion_point(field_mutable_list:securegcm.Ukey2ClientInit.cipher_commitments) - return &cipher_commitments_; -} -inline const ::securegcm::Ukey2ClientInit_CipherCommitment& Ukey2ClientInit::_internal_cipher_commitments(int index) const { - return cipher_commitments_.Get(index); -} -inline const ::securegcm::Ukey2ClientInit_CipherCommitment& Ukey2ClientInit::cipher_commitments(int index) const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.cipher_commitments) - return _internal_cipher_commitments(index); -} -inline ::securegcm::Ukey2ClientInit_CipherCommitment* Ukey2ClientInit::_internal_add_cipher_commitments() { - return cipher_commitments_.Add(); -} -inline ::securegcm::Ukey2ClientInit_CipherCommitment* Ukey2ClientInit::add_cipher_commitments() { - ::securegcm::Ukey2ClientInit_CipherCommitment* _add = _internal_add_cipher_commitments(); - // @@protoc_insertion_point(field_add:securegcm.Ukey2ClientInit.cipher_commitments) - return _add; -} -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::securegcm::Ukey2ClientInit_CipherCommitment >& -Ukey2ClientInit::cipher_commitments() const { - // @@protoc_insertion_point(field_list:securegcm.Ukey2ClientInit.cipher_commitments) - return cipher_commitments_; -} - -// optional string next_protocol = 4; -inline bool Ukey2ClientInit::_internal_has_next_protocol() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool Ukey2ClientInit::has_next_protocol() const { - return _internal_has_next_protocol(); -} -inline void Ukey2ClientInit::clear_next_protocol() { - next_protocol_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& Ukey2ClientInit::next_protocol() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientInit.next_protocol) - return _internal_next_protocol(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ClientInit::set_next_protocol(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - next_protocol_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientInit.next_protocol) -} -inline std::string* Ukey2ClientInit::mutable_next_protocol() { - std::string* _s = _internal_mutable_next_protocol(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientInit.next_protocol) - return _s; -} -inline const std::string& Ukey2ClientInit::_internal_next_protocol() const { - return next_protocol_.Get(); -} -inline void Ukey2ClientInit::_internal_set_next_protocol(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - next_protocol_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Ukey2ClientInit::_internal_mutable_next_protocol() { - _has_bits_[0] |= 0x00000002u; - return next_protocol_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Ukey2ClientInit::release_next_protocol() { - // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientInit.next_protocol) - if (!_internal_has_next_protocol()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = next_protocol_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (next_protocol_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - next_protocol_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void Ukey2ClientInit::set_allocated_next_protocol(std::string* next_protocol) { - if (next_protocol != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - next_protocol_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), next_protocol, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (next_protocol_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - next_protocol_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientInit.next_protocol) -} - -// ------------------------------------------------------------------- - -// Ukey2ServerInit - -// optional int32 version = 1; -inline bool Ukey2ServerInit::_internal_has_version() const { - bool value = (_has_bits_[0] & 0x00000004u) != 0; - return value; -} -inline bool Ukey2ServerInit::has_version() const { - return _internal_has_version(); -} -inline void Ukey2ServerInit::clear_version() { - version_ = 0; - _has_bits_[0] &= ~0x00000004u; -} -inline int32_t Ukey2ServerInit::_internal_version() const { - return version_; -} -inline int32_t Ukey2ServerInit::version() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.version) - return _internal_version(); -} -inline void Ukey2ServerInit::_internal_set_version(int32_t value) { - _has_bits_[0] |= 0x00000004u; - version_ = value; -} -inline void Ukey2ServerInit::set_version(int32_t value) { - _internal_set_version(value); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.version) -} - -// optional bytes random = 2; -inline bool Ukey2ServerInit::_internal_has_random() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool Ukey2ServerInit::has_random() const { - return _internal_has_random(); -} -inline void Ukey2ServerInit::clear_random() { - random_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& Ukey2ServerInit::random() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.random) - return _internal_random(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ServerInit::set_random(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - random_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.random) -} -inline std::string* Ukey2ServerInit::mutable_random() { - std::string* _s = _internal_mutable_random(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ServerInit.random) - return _s; -} -inline const std::string& Ukey2ServerInit::_internal_random() const { - return random_.Get(); -} -inline void Ukey2ServerInit::_internal_set_random(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - random_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Ukey2ServerInit::_internal_mutable_random() { - _has_bits_[0] |= 0x00000001u; - return random_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Ukey2ServerInit::release_random() { - // @@protoc_insertion_point(field_release:securegcm.Ukey2ServerInit.random) - if (!_internal_has_random()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = random_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (random_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void Ukey2ServerInit::set_allocated_random(std::string* random) { - if (random != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - random_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), random, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (random_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - random_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ServerInit.random) -} - -// optional .securegcm.Ukey2HandshakeCipher handshake_cipher = 3; -inline bool Ukey2ServerInit::_internal_has_handshake_cipher() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; - return value; -} -inline bool Ukey2ServerInit::has_handshake_cipher() const { - return _internal_has_handshake_cipher(); -} -inline void Ukey2ServerInit::clear_handshake_cipher() { - handshake_cipher_ = 0; - _has_bits_[0] &= ~0x00000008u; -} -inline ::securegcm::Ukey2HandshakeCipher Ukey2ServerInit::_internal_handshake_cipher() const { - return static_cast< ::securegcm::Ukey2HandshakeCipher >(handshake_cipher_); -} -inline ::securegcm::Ukey2HandshakeCipher Ukey2ServerInit::handshake_cipher() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.handshake_cipher) - return _internal_handshake_cipher(); -} -inline void Ukey2ServerInit::_internal_set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { - assert(::securegcm::Ukey2HandshakeCipher_IsValid(value)); - _has_bits_[0] |= 0x00000008u; - handshake_cipher_ = value; -} -inline void Ukey2ServerInit::set_handshake_cipher(::securegcm::Ukey2HandshakeCipher value) { - _internal_set_handshake_cipher(value); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.handshake_cipher) -} - -// optional bytes public_key = 4; -inline bool Ukey2ServerInit::_internal_has_public_key() const { - bool value = (_has_bits_[0] & 0x00000002u) != 0; - return value; -} -inline bool Ukey2ServerInit::has_public_key() const { - return _internal_has_public_key(); -} -inline void Ukey2ServerInit::clear_public_key() { - public_key_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000002u; -} -inline const std::string& Ukey2ServerInit::public_key() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ServerInit.public_key) - return _internal_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ServerInit::set_public_key(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000002u; - public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ServerInit.public_key) -} -inline std::string* Ukey2ServerInit::mutable_public_key() { - std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ServerInit.public_key) - return _s; -} -inline const std::string& Ukey2ServerInit::_internal_public_key() const { - return public_key_.Get(); -} -inline void Ukey2ServerInit::_internal_set_public_key(const std::string& value) { - _has_bits_[0] |= 0x00000002u; - public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Ukey2ServerInit::_internal_mutable_public_key() { - _has_bits_[0] |= 0x00000002u; - return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Ukey2ServerInit::release_public_key() { - // @@protoc_insertion_point(field_release:securegcm.Ukey2ServerInit.public_key) - if (!_internal_has_public_key()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000002u; - auto* p = public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void Ukey2ServerInit::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { - _has_bits_[0] |= 0x00000002u; - } else { - _has_bits_[0] &= ~0x00000002u; - } - public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ServerInit.public_key) -} - -// ------------------------------------------------------------------- - -// Ukey2ClientFinished - -// optional bytes public_key = 1; -inline bool Ukey2ClientFinished::_internal_has_public_key() const { - bool value = (_has_bits_[0] & 0x00000001u) != 0; - return value; -} -inline bool Ukey2ClientFinished::has_public_key() const { - return _internal_has_public_key(); -} -inline void Ukey2ClientFinished::clear_public_key() { - public_key_.ClearToEmpty(); - _has_bits_[0] &= ~0x00000001u; -} -inline const std::string& Ukey2ClientFinished::public_key() const { - // @@protoc_insertion_point(field_get:securegcm.Ukey2ClientFinished.public_key) - return _internal_public_key(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void Ukey2ClientFinished::set_public_key(ArgT0&& arg0, ArgT... args) { - _has_bits_[0] |= 0x00000001u; - public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:securegcm.Ukey2ClientFinished.public_key) -} -inline std::string* Ukey2ClientFinished::mutable_public_key() { - std::string* _s = _internal_mutable_public_key(); - // @@protoc_insertion_point(field_mutable:securegcm.Ukey2ClientFinished.public_key) - return _s; -} -inline const std::string& Ukey2ClientFinished::_internal_public_key() const { - return public_key_.Get(); -} -inline void Ukey2ClientFinished::_internal_set_public_key(const std::string& value) { - _has_bits_[0] |= 0x00000001u; - public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); -} -inline std::string* Ukey2ClientFinished::_internal_mutable_public_key() { - _has_bits_[0] |= 0x00000001u; - return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); -} -inline std::string* Ukey2ClientFinished::release_public_key() { - // @@protoc_insertion_point(field_release:securegcm.Ukey2ClientFinished.public_key) - if (!_internal_has_public_key()) { - return nullptr; - } - _has_bits_[0] &= ~0x00000001u; - auto* p = public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - return p; -} -inline void Ukey2ClientFinished::set_allocated_public_key(std::string* public_key) { - if (public_key != nullptr) { - _has_bits_[0] |= 0x00000001u; - } else { - _has_bits_[0] &= ~0x00000001u; - } - public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key, - GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { - public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:securegcm.Ukey2ClientFinished.public_key) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace securegcm - -PROTOBUF_NAMESPACE_OPEN - -template <> struct is_proto_enum< ::securegcm::Ukey2Message_Type> : ::std::true_type {}; -template <> struct is_proto_enum< ::securegcm::Ukey2Alert_AlertType> : ::std::true_type {}; -template <> struct is_proto_enum< ::securegcm::Ukey2HandshakeCipher> : ::std::true_type {}; - -PROTOBUF_NAMESPACE_CLOSE - -// @@protoc_insertion_point(global_scope) - -#include -#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fukey_2eproto From 06aa6a8db79dd6f34956076a682d887b465a26b8 Mon Sep 17 00:00:00 2001 From: bourdakos1 Date: Wed, 14 Jan 2026 15:53:48 -0500 Subject: [PATCH 2/2] Remove protobuf clone and compile from SPM build/test actions --- .github/workflows/validate.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 485d7a94..8240cb4b 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -28,8 +28,6 @@ jobs: uses: actions/checkout@v6 with: submodules: true - - name: setup protobuf - uses: ./.github/actions/swift-protobuf - name: Build run: swift build @@ -40,8 +38,6 @@ jobs: - uses: actions/checkout@v6 with: submodules: true - - name: setup protobuf - uses: ./.github/actions/swift-protobuf - name: Test run: swift test