From d8644b1563de535b647cdc28935e6d0a81437aa4 Mon Sep 17 00:00:00 2001 From: Anay Wadhera Date: Mon, 22 May 2023 10:28:16 -0700 Subject: [PATCH] Update compiled_protos --- .../proto/offline_wire_formats.pb.cc | 2139 +++++++++++++- .../proto/offline_wire_formats.pb.h | 2554 ++++++++++++++++- .../proto/analytics/connections_log.pb.cc | 589 +++- .../proto/analytics/connections_log.pb.h | 661 ++++- compiled_proto/proto/connections_enums.pb.cc | 191 +- compiled_proto/proto/connections_enums.pb.h | 41 +- .../proto/errorcode/error_code_enums.pb.cc | 933 ++++-- .../proto/errorcode/error_code_enums.pb.h | 127 +- compiled_proto/proto/mediums/ble_frames.pb.h | 2 +- compiled_proto/proto/mediums/nfc_frames.pb.h | 2 +- .../mediums/web_rtc_signaling_frames.pb.h | 2 +- compiled_proto/proto/sharing_enums.pb.cc | 838 ++++-- compiled_proto/proto/sharing_enums.pb.h | 199 +- 13 files changed, 7506 insertions(+), 772 deletions(-) diff --git a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc index 1b0fa4a5..33628b31 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.cc @@ -39,6 +39,8 @@ constexpr V1Frame::V1Frame( , keep_alive_(nullptr) , disconnection_(nullptr) , paired_key_encryption_(nullptr) + , authentication_message_(nullptr) + , authentication_result_(nullptr) , type_(0) {} struct V1FrameDefaultTypeInternal { @@ -62,7 +64,8 @@ constexpr ConnectionRequestFrame::ConnectionRequestFrame( , nonce_(0) , keep_alive_interval_millis_(0) , keep_alive_timeout_millis_(0) - , device_type_(0){} + , device_type_(0) + , _oneof_case_{}{} struct ConnectionRequestFrameDefaultTypeInternal { constexpr ConnectionRequestFrameDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -78,7 +81,9 @@ constexpr ConnectionResponseFrame::ConnectionResponseFrame( , os_info_(nullptr) , status_(0) , response_(0) -{} + + , multiplex_socket_bitmask_(0) + , nearby_connections_version_(0){} struct ConnectionResponseFrameDefaultTypeInternal { constexpr ConnectionResponseFrameDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -211,6 +216,7 @@ constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials : ssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , gateway_(nullptr) + , ip_v6_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) , port_(0) , frequency_(0){} struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal { @@ -309,7 +315,9 @@ struct KeepAliveFrameDefaultTypeInternal { }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT KeepAliveFrameDefaultTypeInternal _KeepAliveFrame_default_instance_; constexpr DisconnectionFrame::DisconnectionFrame( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : request_safe_to_disconnect_(false) + , ack_safe_to_disconnect_(false){} struct DisconnectionFrameDefaultTypeInternal { constexpr DisconnectionFrameDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -331,6 +339,30 @@ struct PairedKeyEncryptionFrameDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PairedKeyEncryptionFrameDefaultTypeInternal _PairedKeyEncryptionFrame_default_instance_; +constexpr AuthenticationMessageFrame::AuthenticationMessageFrame( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : auth_message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} +struct AuthenticationMessageFrameDefaultTypeInternal { + constexpr AuthenticationMessageFrameDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~AuthenticationMessageFrameDefaultTypeInternal() {} + union { + AuthenticationMessageFrame _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AuthenticationMessageFrameDefaultTypeInternal _AuthenticationMessageFrame_default_instance_; +constexpr AuthenticationResultFrame::AuthenticationResultFrame( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : result_(0){} +struct AuthenticationResultFrameDefaultTypeInternal { + constexpr AuthenticationResultFrameDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~AuthenticationResultFrameDefaultTypeInternal() {} + union { + AuthenticationResultFrame _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AuthenticationResultFrameDefaultTypeInternal _AuthenticationResultFrame_default_instance_; constexpr MediumMetadata::MediumMetadata( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : bssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) @@ -456,6 +488,48 @@ struct OsInfoDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OsInfoDefaultTypeInternal _OsInfo_default_instance_; +constexpr ConnectionsDevice::ConnectionsDevice( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , connectivity_info_list_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , endpoint_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , endpoint_type_(0) +{} +struct ConnectionsDeviceDefaultTypeInternal { + constexpr ConnectionsDeviceDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~ConnectionsDeviceDefaultTypeInternal() {} + union { + ConnectionsDevice _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionsDeviceDefaultTypeInternal _ConnectionsDevice_default_instance_; +constexpr PresenceDevice::PresenceDevice( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : discovery_medium_() + , _discovery_medium_cached_byte_size_(0) + , actions_() + , _actions_cached_byte_size_(0) + , identity_type_() + , _identity_type_cached_byte_size_(0) + , endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , connectivity_info_list_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , device_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , device_image_url_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , device_id_(int64_t{0}) + , endpoint_type_(0) + + , device_type_(0) +{} +struct PresenceDeviceDefaultTypeInternal { + constexpr PresenceDeviceDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PresenceDeviceDefaultTypeInternal() {} + union { + PresenceDevice _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PresenceDeviceDefaultTypeInternal _PresenceDevice_default_instance_; } // namespace connections } // namespace nearby } // namespace location @@ -530,15 +604,19 @@ bool V1Frame_FrameType_IsValid(int value) { case 5: case 6: case 7: + case 8: + case 9: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed V1Frame_FrameType_strings[8] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed V1Frame_FrameType_strings[10] = {}; static const char V1Frame_FrameType_names[] = + "AUTHENTICATION_MESSAGE" + "AUTHENTICATION_RESULT" "BANDWIDTH_UPGRADE_NEGOTIATION" "CONNECTION_REQUEST" "CONNECTION_RESPONSE" @@ -549,25 +627,29 @@ static const char V1Frame_FrameType_names[] = "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 }, + { {V1Frame_FrameType_names + 0, 22}, 8 }, + { {V1Frame_FrameType_names + 22, 21}, 9 }, + { {V1Frame_FrameType_names + 43, 29}, 4 }, + { {V1Frame_FrameType_names + 72, 18}, 1 }, + { {V1Frame_FrameType_names + 90, 19}, 2 }, + { {V1Frame_FrameType_names + 109, 13}, 6 }, + { {V1Frame_FrameType_names + 122, 10}, 5 }, + { {V1Frame_FrameType_names + 132, 21}, 7 }, + { {V1Frame_FrameType_names + 153, 16}, 3 }, + { {V1Frame_FrameType_names + 169, 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 + 9, // 0 -> UNKNOWN_FRAME_TYPE + 3, // 1 -> CONNECTION_REQUEST + 4, // 2 -> CONNECTION_RESPONSE + 8, // 3 -> PAYLOAD_TRANSFER + 2, // 4 -> BANDWIDTH_UPGRADE_NEGOTIATION + 6, // 5 -> KEEP_ALIVE + 5, // 6 -> DISCONNECTION + 7, // 7 -> PAIRED_KEY_ENCRYPTION + 0, // 8 -> AUTHENTICATION_MESSAGE + 1, // 9 -> AUTHENTICATION_RESULT }; const std::string& V1Frame_FrameType_Name( @@ -576,12 +658,12 @@ const std::string& V1Frame_FrameType_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( V1Frame_FrameType_entries, V1Frame_FrameType_entries_by_number, - 8, V1Frame_FrameType_strings); + 10, V1Frame_FrameType_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( V1Frame_FrameType_entries, V1Frame_FrameType_entries_by_number, - 8, value); + 10, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : V1Frame_FrameType_strings[idx].get(); } @@ -589,7 +671,7 @@ 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); + V1Frame_FrameType_entries, 10, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -604,6 +686,8 @@ 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::AUTHENTICATION_MESSAGE; +constexpr V1Frame_FrameType V1Frame::AUTHENTICATION_RESULT; constexpr V1Frame_FrameType V1Frame::FrameType_MIN; constexpr V1Frame_FrameType V1Frame::FrameType_MAX; constexpr int V1Frame::FrameType_ARRAYSIZE; @@ -905,29 +989,33 @@ bool PayloadTransferFrame_ControlMessage_EventType_IsValid(int value) { case 0: case 1: case 2: + case 3: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadTransferFrame_ControlMessage_EventType_strings[3] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadTransferFrame_ControlMessage_EventType_strings[4] = {}; static const char PayloadTransferFrame_ControlMessage_EventType_names[] = "PAYLOAD_CANCELED" "PAYLOAD_ERROR" + "PAYLOAD_RECEIVED_ACK" "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 }, + { {PayloadTransferFrame_ControlMessage_EventType_names + 29, 20}, 3 }, + { {PayloadTransferFrame_ControlMessage_EventType_names + 49, 18}, 0 }, }; static const int PayloadTransferFrame_ControlMessage_EventType_entries_by_number[] = { - 2, // 0 -> UNKNOWN_EVENT_TYPE + 3, // 0 -> UNKNOWN_EVENT_TYPE 1, // 1 -> PAYLOAD_ERROR 0, // 2 -> PAYLOAD_CANCELED + 2, // 3 -> PAYLOAD_RECEIVED_ACK }; const std::string& PayloadTransferFrame_ControlMessage_EventType_Name( @@ -936,12 +1024,12 @@ const std::string& PayloadTransferFrame_ControlMessage_EventType_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( PayloadTransferFrame_ControlMessage_EventType_entries, PayloadTransferFrame_ControlMessage_EventType_entries_by_number, - 3, PayloadTransferFrame_ControlMessage_EventType_strings); + 4, 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); + 4, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : PayloadTransferFrame_ControlMessage_EventType_strings[idx].get(); } @@ -949,7 +1037,7 @@ 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); + PayloadTransferFrame_ControlMessage_EventType_entries, 4, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -959,6 +1047,7 @@ bool PayloadTransferFrame_ControlMessage_EventType_Parse( 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::PAYLOAD_RECEIVED_ACK; constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::EventType_MIN; constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::EventType_MAX; constexpr int PayloadTransferFrame_ControlMessage::EventType_ARRAYSIZE; @@ -1353,6 +1442,144 @@ constexpr OsInfo_OsType OsInfo::OsType_MIN; constexpr OsInfo_OsType OsInfo::OsType_MAX; constexpr int OsInfo::OsType_ARRAYSIZE; #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +bool PresenceDevice_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 PresenceDevice_DeviceType_strings[7] = {}; + +static const char PresenceDevice_DeviceType_names[] = + "DISPLAY" + "LAPTOP" + "PHONE" + "TABLET" + "TV" + "UNKNOWN" + "WATCH"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PresenceDevice_DeviceType_entries[] = { + { {PresenceDevice_DeviceType_names + 0, 7}, 3 }, + { {PresenceDevice_DeviceType_names + 7, 6}, 4 }, + { {PresenceDevice_DeviceType_names + 13, 5}, 1 }, + { {PresenceDevice_DeviceType_names + 18, 6}, 2 }, + { {PresenceDevice_DeviceType_names + 24, 2}, 5 }, + { {PresenceDevice_DeviceType_names + 26, 7}, 0 }, + { {PresenceDevice_DeviceType_names + 33, 5}, 6 }, +}; + +static const int PresenceDevice_DeviceType_entries_by_number[] = { + 5, // 0 -> UNKNOWN + 2, // 1 -> PHONE + 3, // 2 -> TABLET + 0, // 3 -> DISPLAY + 1, // 4 -> LAPTOP + 4, // 5 -> TV + 6, // 6 -> WATCH +}; + +const std::string& PresenceDevice_DeviceType_Name( + PresenceDevice_DeviceType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + PresenceDevice_DeviceType_entries, + PresenceDevice_DeviceType_entries_by_number, + 7, PresenceDevice_DeviceType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + PresenceDevice_DeviceType_entries, + PresenceDevice_DeviceType_entries_by_number, + 7, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + PresenceDevice_DeviceType_strings[idx].get(); +} +bool PresenceDevice_DeviceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PresenceDevice_DeviceType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + PresenceDevice_DeviceType_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 PresenceDevice_DeviceType PresenceDevice::UNKNOWN; +constexpr PresenceDevice_DeviceType PresenceDevice::PHONE; +constexpr PresenceDevice_DeviceType PresenceDevice::TABLET; +constexpr PresenceDevice_DeviceType PresenceDevice::DISPLAY; +constexpr PresenceDevice_DeviceType PresenceDevice::LAPTOP; +constexpr PresenceDevice_DeviceType PresenceDevice::TV; +constexpr PresenceDevice_DeviceType PresenceDevice::WATCH; +constexpr PresenceDevice_DeviceType PresenceDevice::DeviceType_MIN; +constexpr PresenceDevice_DeviceType PresenceDevice::DeviceType_MAX; +constexpr int PresenceDevice::DeviceType_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) +bool EndpointType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed EndpointType_strings[3] = {}; + +static const char EndpointType_names[] = + "CONNECTIONS_ENDPOINT" + "PRESENCE_ENDPOINT" + "UNKNOWN_ENDPOINT"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EndpointType_entries[] = { + { {EndpointType_names + 0, 20}, 1 }, + { {EndpointType_names + 20, 17}, 2 }, + { {EndpointType_names + 37, 16}, 0 }, +}; + +static const int EndpointType_entries_by_number[] = { + 2, // 0 -> UNKNOWN_ENDPOINT + 0, // 1 -> CONNECTIONS_ENDPOINT + 1, // 2 -> PRESENCE_ENDPOINT +}; + +const std::string& EndpointType_Name( + EndpointType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + EndpointType_entries, + EndpointType_entries_by_number, + 3, EndpointType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + EndpointType_entries, + EndpointType_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + EndpointType_strings[idx].get(); +} +bool EndpointType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EndpointType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + EndpointType_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} // =================================================================== @@ -1612,7 +1839,7 @@ class V1Frame::_Internal { public: using HasBits = decltype(std::declval()._has_bits_); static void set_has_type(HasBits* has_bits) { - (*has_bits)[0] |= 128u; + (*has_bits)[0] |= 512u; } static const ::location::nearby::connections::ConnectionRequestFrame& connection_request(const V1Frame* msg); static void set_has_connection_request(HasBits* has_bits) { @@ -1642,6 +1869,14 @@ class V1Frame::_Internal { static void set_has_paired_key_encryption(HasBits* has_bits) { (*has_bits)[0] |= 64u; } + static const ::location::nearby::connections::AuthenticationMessageFrame& authentication_message(const V1Frame* msg); + static void set_has_authentication_message(HasBits* has_bits) { + (*has_bits)[0] |= 128u; + } + static const ::location::nearby::connections::AuthenticationResultFrame& authentication_result(const V1Frame* msg); + static void set_has_authentication_result(HasBits* has_bits) { + (*has_bits)[0] |= 256u; + } }; const ::location::nearby::connections::ConnectionRequestFrame& @@ -1672,6 +1907,14 @@ const ::location::nearby::connections::PairedKeyEncryptionFrame& V1Frame::_Internal::paired_key_encryption(const V1Frame* msg) { return *msg->paired_key_encryption_; } +const ::location::nearby::connections::AuthenticationMessageFrame& +V1Frame::_Internal::authentication_message(const V1Frame* msg) { + return *msg->authentication_message_; +} +const ::location::nearby::connections::AuthenticationResultFrame& +V1Frame::_Internal::authentication_result(const V1Frame* msg) { + return *msg->authentication_result_; +} V1Frame::V1Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) { @@ -1720,6 +1963,16 @@ V1Frame::V1Frame(const V1Frame& from) } else { paired_key_encryption_ = nullptr; } + if (from._internal_has_authentication_message()) { + authentication_message_ = new ::location::nearby::connections::AuthenticationMessageFrame(*from.authentication_message_); + } else { + authentication_message_ = nullptr; + } + if (from._internal_has_authentication_result()) { + authentication_result_ = new ::location::nearby::connections::AuthenticationResultFrame(*from.authentication_result_); + } else { + authentication_result_ = nullptr; + } type_ = from.type_; // @@protoc_insertion_point(copy_constructor:location.nearby.connections.V1Frame) } @@ -1747,6 +2000,8 @@ inline void V1Frame::SharedDtor() { if (this != internal_default_instance()) delete keep_alive_; if (this != internal_default_instance()) delete disconnection_; if (this != internal_default_instance()) delete paired_key_encryption_; + if (this != internal_default_instance()) delete authentication_message_; + if (this != internal_default_instance()) delete authentication_result_; } void V1Frame::ArenaDtor(void* object) { @@ -1766,7 +2021,7 @@ void V1Frame::Clear() { (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000007fu) { + if (cached_has_bits & 0x000000ffu) { if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(connection_request_ != nullptr); connection_request_->Clear(); @@ -1795,6 +2050,14 @@ void V1Frame::Clear() { GOOGLE_DCHECK(paired_key_encryption_ != nullptr); paired_key_encryption_->Clear(); } + if (cached_has_bits & 0x00000080u) { + GOOGLE_DCHECK(authentication_message_ != nullptr); + authentication_message_->Clear(); + } + } + if (cached_has_bits & 0x00000100u) { + GOOGLE_DCHECK(authentication_result_ != nullptr); + authentication_result_->Clear(); } type_ = 0; _has_bits_.Clear(); @@ -1877,6 +2140,22 @@ const char* V1Frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::in } else goto handle_unusual; continue; + // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_authentication_message(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ctx->ParseMessage(_internal_mutable_authentication_result(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1909,7 +2188,7 @@ uint8_t* V1Frame::_InternalSerialize( cached_has_bits = _has_bits_[0]; // optional .location.nearby.connections.V1Frame.FrameType type = 1; - if (cached_has_bits & 0x00000080u) { + if (cached_has_bits & 0x00000200u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( 1, this->_internal_type(), target); @@ -1971,6 +2250,22 @@ uint8_t* V1Frame::_InternalSerialize( 8, _Internal::paired_key_encryption(this), target, stream); } + // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; + if (cached_has_bits & 0x00000080u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 9, _Internal::authentication_message(this), target, stream); + } + + // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; + if (cached_has_bits & 0x00000100u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 10, _Internal::authentication_result(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); @@ -2038,8 +2333,24 @@ size_t V1Frame::ByteSizeLong() const { *paired_key_encryption_); } - // optional .location.nearby.connections.V1Frame.FrameType type = 1; + // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; if (cached_has_bits & 0x00000080u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *authentication_message_); + } + + } + if (cached_has_bits & 0x00000300u) { + // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; + if (cached_has_bits & 0x00000100u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *authentication_result_); + } + + // optional .location.nearby.connections.V1Frame.FrameType type = 1; + if (cached_has_bits & 0x00000200u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); } @@ -2089,6 +2400,14 @@ void V1Frame::MergeFrom(const V1Frame& from) { _internal_mutable_paired_key_encryption()->::location::nearby::connections::PairedKeyEncryptionFrame::MergeFrom(from._internal_paired_key_encryption()); } if (cached_has_bits & 0x00000080u) { + _internal_mutable_authentication_message()->::location::nearby::connections::AuthenticationMessageFrame::MergeFrom(from._internal_authentication_message()); + } + } + if (cached_has_bits & 0x00000300u) { + if (cached_has_bits & 0x00000100u) { + _internal_mutable_authentication_result()->::location::nearby::connections::AuthenticationResultFrame::MergeFrom(from._internal_authentication_result()); + } + if (cached_has_bits & 0x00000200u) { type_ = from.type_; } _has_bits_[0] |= cached_has_bits; @@ -2160,12 +2479,52 @@ class ConnectionRequestFrame::_Internal { static void set_has_device_info(HasBits* has_bits) { (*has_bits)[0] |= 16u; } + static const ::location::nearby::connections::ConnectionsDevice& connections_device(const ConnectionRequestFrame* msg); + static const ::location::nearby::connections::PresenceDevice& presence_device(const ConnectionRequestFrame* msg); }; const ::location::nearby::connections::MediumMetadata& ConnectionRequestFrame::_Internal::medium_metadata(const ConnectionRequestFrame* msg) { return *msg->medium_metadata_; } +const ::location::nearby::connections::ConnectionsDevice& +ConnectionRequestFrame::_Internal::connections_device(const ConnectionRequestFrame* msg) { + return *msg->Device_.connections_device_; +} +const ::location::nearby::connections::PresenceDevice& +ConnectionRequestFrame::_Internal::presence_device(const ConnectionRequestFrame* msg) { + return *msg->Device_.presence_device_; +} +void ConnectionRequestFrame::set_allocated_connections_device(::location::nearby::connections::ConnectionsDevice* connections_device) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_Device(); + if (connections_device) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::ConnectionsDevice>::GetOwningArena(connections_device); + if (message_arena != submessage_arena) { + connections_device = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, connections_device, submessage_arena); + } + set_has_connections_device(); + Device_.connections_device_ = connections_device; + } + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.connections_device) +} +void ConnectionRequestFrame::set_allocated_presence_device(::location::nearby::connections::PresenceDevice* presence_device) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_Device(); + if (presence_device) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::PresenceDevice>::GetOwningArena(presence_device); + if (message_arena != submessage_arena) { + presence_device = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, presence_device, submessage_arena); + } + set_has_presence_device(); + Device_.presence_device_ = presence_device; + } + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.presence_device) +} ConnectionRequestFrame::ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), @@ -2229,6 +2588,20 @@ ConnectionRequestFrame::ConnectionRequestFrame(const ConnectionRequestFrame& fro ::memcpy(&nonce_, &from.nonce_, static_cast(reinterpret_cast(&device_type_) - reinterpret_cast(&nonce_)) + sizeof(device_type_)); + clear_has_Device(); + switch (from.Device_case()) { + case kConnectionsDevice: { + _internal_mutable_connections_device()->::location::nearby::connections::ConnectionsDevice::MergeFrom(from._internal_connections_device()); + break; + } + case kPresenceDevice: { + _internal_mutable_presence_device()->::location::nearby::connections::PresenceDevice::MergeFrom(from._internal_presence_device()); + break; + } + case DEVICE_NOT_SET: { + break; + } + } // @@protoc_insertion_point(copy_constructor:location.nearby.connections.ConnectionRequestFrame) } @@ -2257,6 +2630,7 @@ device_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString reinterpret_cast(&medium_metadata_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&device_type_) - reinterpret_cast(&medium_metadata_)) + sizeof(device_type_)); +clear_has_Device(); } ConnectionRequestFrame::~ConnectionRequestFrame() { @@ -2274,6 +2648,9 @@ inline void ConnectionRequestFrame::SharedDtor() { endpoint_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); device_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete medium_metadata_; + if (has_Device()) { + clear_Device(); + } } void ConnectionRequestFrame::ArenaDtor(void* object) { @@ -2286,6 +2663,29 @@ void ConnectionRequestFrame::SetCachedSize(int size) const { _cached_size_.Set(size); } +void ConnectionRequestFrame::clear_Device() { +// @@protoc_insertion_point(one_of_clear_start:location.nearby.connections.ConnectionRequestFrame) + switch (Device_case()) { + case kConnectionsDevice: { + if (GetArenaForAllocation() == nullptr) { + delete Device_.connections_device_; + } + break; + } + case kPresenceDevice: { + if (GetArenaForAllocation() == nullptr) { + delete Device_.presence_device_; + } + break; + } + case DEVICE_NOT_SET: { + break; + } + } + _oneof_case_[0] = DEVICE_NOT_SET; +} + + void ConnectionRequestFrame::Clear() { // @@protoc_insertion_point(message_clear_start:location.nearby.connections.ConnectionRequestFrame) uint32_t cached_has_bits = 0; @@ -2325,6 +2725,7 @@ void ConnectionRequestFrame::Clear() { reinterpret_cast(&device_type_) - reinterpret_cast(&keep_alive_timeout_millis_)) + sizeof(device_type_)); } + clear_Device(); _has_bits_.Clear(); _internal_metadata_.Clear(); } @@ -2428,7 +2829,7 @@ const char* ConnectionRequestFrame::_InternalParse(const char* ptr, ::PROTOBUF_N } else goto handle_unusual; continue; - // optional int32 device_type = 10 [default = 0]; + // optional int32 device_type = 10 [default = 0, deprecated = true]; case 10: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { _Internal::set_has_device_type(&has_bits); @@ -2437,7 +2838,7 @@ const char* ConnectionRequestFrame::_InternalParse(const char* ptr, ::PROTOBUF_N } else goto handle_unusual; continue; - // optional bytes device_info = 11; + // optional bytes device_info = 11 [deprecated = true]; case 11: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { auto str = _internal_mutable_device_info(); @@ -2446,6 +2847,22 @@ const char* ConnectionRequestFrame::_InternalParse(const char* ptr, ::PROTOBUF_N } else goto handle_unusual; continue; + // .location.nearby.connections.ConnectionsDevice connections_device = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_connections_device(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .location.nearby.connections.PresenceDevice presence_device = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_presence_device(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2534,18 +2951,35 @@ uint8_t* ConnectionRequestFrame::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_keep_alive_timeout_millis(), target); } - // optional int32 device_type = 10 [default = 0]; + // optional int32 device_type = 10 [default = 0, deprecated = true]; 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; + // optional bytes device_info = 11 [deprecated = true]; if (cached_has_bits & 0x00000010u) { target = stream->WriteBytesMaybeAliased( 11, this->_internal_device_info(), target); } + switch (Device_case()) { + case kConnectionsDevice: { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 12, _Internal::connections_device(this), target, stream); + break; + } + case kPresenceDevice: { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 13, _Internal::presence_device(this), target, stream); + break; + } + default: ; + } 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); @@ -2602,7 +3036,7 @@ size_t ConnectionRequestFrame::ByteSizeLong() const { this->_internal_endpoint_info()); } - // optional bytes device_info = 11; + // optional bytes device_info = 11 [deprecated = true]; if (cached_has_bits & 0x00000010u) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( @@ -2633,12 +3067,31 @@ size_t ConnectionRequestFrame::ByteSizeLong() const { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_keep_alive_timeout_millis()); } - // optional int32 device_type = 10 [default = 0]; + // optional int32 device_type = 10 [default = 0, deprecated = true]; if (cached_has_bits & 0x00000200u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_device_type()); } } + switch (Device_case()) { + // .location.nearby.connections.ConnectionsDevice connections_device = 12; + case kConnectionsDevice: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *Device_.connections_device_); + break; + } + // .location.nearby.connections.PresenceDevice presence_device = 13; + case kPresenceDevice: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *Device_.presence_device_); + break; + } + case DEVICE_NOT_SET: { + break; + } + } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); } @@ -2697,6 +3150,19 @@ void ConnectionRequestFrame::MergeFrom(const ConnectionRequestFrame& from) { } _has_bits_[0] |= cached_has_bits; } + switch (from.Device_case()) { + case kConnectionsDevice: { + _internal_mutable_connections_device()->::location::nearby::connections::ConnectionsDevice::MergeFrom(from._internal_connections_device()); + break; + } + case kPresenceDevice: { + _internal_mutable_presence_device()->::location::nearby::connections::PresenceDevice::MergeFrom(from._internal_presence_device()); + break; + } + case DEVICE_NOT_SET: { + break; + } + } _internal_metadata_.MergeFrom(from._internal_metadata_); } @@ -2749,6 +3215,8 @@ void ConnectionRequestFrame::InternalSwap(ConnectionRequestFrame* other) { - PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, medium_metadata_)>( reinterpret_cast(&medium_metadata_), reinterpret_cast(&other->medium_metadata_)); + swap(Device_, other->Device_); + swap(_oneof_case_[0], other->_oneof_case_[0]); } std::string ConnectionRequestFrame::GetTypeName() const { @@ -2774,6 +3242,12 @@ class ConnectionResponseFrame::_Internal { static void set_has_os_info(HasBits* has_bits) { (*has_bits)[0] |= 2u; } + static void set_has_multiplex_socket_bitmask(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_nearby_connections_version(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } }; const ::location::nearby::connections::OsInfo& @@ -2807,8 +3281,8 @@ ConnectionResponseFrame::ConnectionResponseFrame(const ConnectionResponseFrame& os_info_ = nullptr; } ::memcpy(&status_, &from.status_, - static_cast(reinterpret_cast(&response_) - - reinterpret_cast(&status_)) + sizeof(response_)); + static_cast(reinterpret_cast(&nearby_connections_version_) - + reinterpret_cast(&status_)) + sizeof(nearby_connections_version_)); // @@protoc_insertion_point(copy_constructor:location.nearby.connections.ConnectionResponseFrame) } @@ -2819,8 +3293,8 @@ handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStr #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&os_info_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&response_) - - reinterpret_cast(&os_info_)) + sizeof(response_)); + 0, static_cast(reinterpret_cast(&nearby_connections_version_) - + reinterpret_cast(&os_info_)) + sizeof(nearby_connections_version_)); } ConnectionResponseFrame::~ConnectionResponseFrame() { @@ -2862,10 +3336,10 @@ void ConnectionResponseFrame::Clear() { os_info_->Clear(); } } - if (cached_has_bits & 0x0000000cu) { + if (cached_has_bits & 0x0000003cu) { ::memset(&status_, 0, static_cast( - reinterpret_cast(&response_) - - reinterpret_cast(&status_)) + sizeof(response_)); + reinterpret_cast(&nearby_connections_version_) - + reinterpret_cast(&status_)) + sizeof(nearby_connections_version_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -2917,6 +3391,24 @@ const char* ConnectionResponseFrame::_InternalParse(const char* ptr, ::PROTOBUF_ } else goto handle_unusual; continue; + // optional int32 multiplex_socket_bitmask = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _Internal::set_has_multiplex_socket_bitmask(&has_bits); + multiplex_socket_bitmask_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional int32 nearby_connections_version = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _Internal::set_has_nearby_connections_version(&has_bits); + nearby_connections_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -2975,6 +3467,18 @@ uint8_t* ConnectionResponseFrame::_InternalSerialize( 4, _Internal::os_info(this), target, stream); } + // optional int32 multiplex_socket_bitmask = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_multiplex_socket_bitmask(), target); + } + + // optional int32 nearby_connections_version = 6; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(6, this->_internal_nearby_connections_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); @@ -2992,7 +3496,7 @@ size_t ConnectionResponseFrame::ByteSizeLong() const { (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x0000003fu) { // optional bytes handshake_data = 2; if (cached_has_bits & 0x00000001u) { total_size += 1 + @@ -3018,6 +3522,16 @@ size_t ConnectionResponseFrame::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_response()); } + // optional int32 multiplex_socket_bitmask = 5; + if (cached_has_bits & 0x00000010u) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_multiplex_socket_bitmask()); + } + + // optional int32 nearby_connections_version = 6; + if (cached_has_bits & 0x00000020u) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_nearby_connections_version()); + } + } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); @@ -3040,7 +3554,7 @@ void ConnectionResponseFrame::MergeFrom(const ConnectionResponseFrame& from) { (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { _internal_set_handshake_data(from._internal_handshake_data()); } @@ -3053,6 +3567,12 @@ void ConnectionResponseFrame::MergeFrom(const ConnectionResponseFrame& from) { if (cached_has_bits & 0x00000008u) { response_ = from.response_; } + if (cached_has_bits & 0x00000010u) { + multiplex_socket_bitmask_ = from.multiplex_socket_bitmask_; + } + if (cached_has_bits & 0x00000020u) { + nearby_connections_version_ = from.nearby_connections_version_; + } _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -3081,8 +3601,8 @@ void ConnectionResponseFrame::InternalSwap(ConnectionResponseFrame* other) { &other->handshake_data_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, response_) - + sizeof(ConnectionResponseFrame::response_) + PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, nearby_connections_version_) + + sizeof(ConnectionResponseFrame::nearby_connections_version_) - PROTOBUF_FIELD_OFFSET(ConnectionResponseFrame, os_info_)>( reinterpret_cast(&os_info_), reinterpret_cast(&other->os_info_)); @@ -5563,14 +6083,17 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_I (*has_bits)[0] |= 2u; } static void set_has_port(HasBits* has_bits) { - (*has_bits)[0] |= 8u; + (*has_bits)[0] |= 16u; } static void set_has_frequency(HasBits* has_bits) { - (*has_bits)[0] |= 16u; + (*has_bits)[0] |= 32u; } static void set_has_gateway(HasBits* has_bits) { (*has_bits)[0] |= 4u; } + static void set_has_ip_v6_address(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } }; const ::PROTOBUF_NAMESPACE_ID::internal::LazyString BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_{{{"0.0.0.0", 7}}, {nullptr}}; @@ -5608,6 +6131,14 @@ BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Bandwidt gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, from._internal_gateway(), GetArenaForAllocation()); } + ip_v6_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + ip_v6_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_ip_v6_address()) { + ip_v6_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ip_v6_address(), + GetArenaForAllocation()); + } ::memcpy(&port_, &from.port_, static_cast(reinterpret_cast(&frequency_) - reinterpret_cast(&port_)) + sizeof(frequency_)); @@ -5624,6 +6155,10 @@ password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlr password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING gateway_.UnsafeSetDefault(nullptr); +ip_v6_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + ip_v6_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&port_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&frequency_) - @@ -5642,6 +6177,7 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia ssid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); gateway_.DestroyNoArena(nullptr); + ip_v6_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); } void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ArenaDtor(void* object) { @@ -5661,7 +6197,7 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Cle (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { ssid_.ClearNonDefaultToEmpty(); } @@ -5671,8 +6207,11 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Cle 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 & 0x00000008u) { + ip_v6_address_.ClearNonDefaultToEmpty(); + } } - if (cached_has_bits & 0x00000018u) { + if (cached_has_bits & 0x00000030u) { ::memset(&port_, 0, static_cast( reinterpret_cast(&frequency_) - reinterpret_cast(&port_)) + sizeof(frequency_)); @@ -5733,6 +6272,15 @@ const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia } else goto handle_unusual; continue; + // optional bytes ip_v6_address = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_ip_v6_address(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5777,13 +6325,13 @@ uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials: } // optional int32 port = 3; - if (cached_has_bits & 0x00000008u) { + if (cached_has_bits & 0x00000010u) { 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) { + if (cached_has_bits & 0x00000020u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_frequency(), target); } @@ -5794,6 +6342,12 @@ uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials: 5, this->_internal_gateway(), target); } + // optional bytes ip_v6_address = 6; + if (cached_has_bits & 0x00000008u) { + target = stream->WriteBytesMaybeAliased( + 6, this->_internal_ip_v6_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); @@ -5811,7 +6365,7 @@ size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::B (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x0000003fu) { // optional string ssid = 1; if (cached_has_bits & 0x00000001u) { total_size += 1 + @@ -5833,13 +6387,20 @@ size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::B this->_internal_gateway()); } - // optional int32 port = 3; + // optional bytes ip_v6_address = 6; if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_ip_v6_address()); + } + + // optional int32 port = 3; + if (cached_has_bits & 0x00000010u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_port()); } // optional int32 frequency = 4; - if (cached_has_bits & 0x00000010u) { + if (cached_has_bits & 0x00000020u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_frequency()); } @@ -5865,7 +6426,7 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Mer (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { _internal_set_ssid(from._internal_ssid()); } @@ -5876,9 +6437,12 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Mer _internal_set_gateway(from._internal_gateway()); } if (cached_has_bits & 0x00000008u) { - port_ = from.port_; + _internal_set_ip_v6_address(from._internal_ip_v6_address()); } if (cached_has_bits & 0x00000010u) { + port_ = from.port_; + } + if (cached_has_bits & 0x00000020u) { frequency_ = from.frequency_; } _has_bits_[0] |= cached_has_bits; @@ -5918,6 +6482,11 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Int &gateway_, lhs_arena, &other->gateway_, rhs_arena ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &ip_v6_address_, lhs_arena, + &other->ip_v6_address_, rhs_arena + ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, frequency_) + sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::frequency_) @@ -7648,6 +8217,13 @@ std::string KeepAliveFrame::GetTypeName() const { class DisconnectionFrame::_Internal { public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_request_safe_to_disconnect(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } + static void set_has_ack_safe_to_disconnect(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } }; DisconnectionFrame::DisconnectionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, @@ -7660,12 +8236,20 @@ DisconnectionFrame::DisconnectionFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena, // @@protoc_insertion_point(arena_constructor:location.nearby.connections.DisconnectionFrame) } DisconnectionFrame::DisconnectionFrame(const DisconnectionFrame& from) - : ::PROTOBUF_NAMESPACE_ID::MessageLite() { + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); + ::memcpy(&request_safe_to_disconnect_, &from.request_safe_to_disconnect_, + static_cast(reinterpret_cast(&ack_safe_to_disconnect_) - + reinterpret_cast(&request_safe_to_disconnect_)) + sizeof(ack_safe_to_disconnect_)); // @@protoc_insertion_point(copy_constructor:location.nearby.connections.DisconnectionFrame) } inline void DisconnectionFrame::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&request_safe_to_disconnect_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&ack_safe_to_disconnect_) - + reinterpret_cast(&request_safe_to_disconnect_)) + sizeof(ack_safe_to_disconnect_)); } DisconnectionFrame::~DisconnectionFrame() { @@ -7695,14 +8279,42 @@ void DisconnectionFrame::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + ::memset(&request_safe_to_disconnect_, 0, static_cast( + reinterpret_cast(&ack_safe_to_disconnect_) - + reinterpret_cast(&request_safe_to_disconnect_)) + sizeof(ack_safe_to_disconnect_)); + _has_bits_.Clear(); _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 + _Internal::HasBits has_bits{}; while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // optional bool request_safe_to_disconnect = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _Internal::set_has_request_safe_to_disconnect(&has_bits); + request_safe_to_disconnect_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional bool ack_safe_to_disconnect = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _Internal::set_has_ack_safe_to_disconnect(&has_bits); + ack_safe_to_disconnect_ = ::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); @@ -7715,6 +8327,7 @@ const char* DisconnectionFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMES CHK_(ptr != nullptr); } // while message_done: + _has_bits_.Or(has_bits); return ptr; failure: ptr = nullptr; @@ -7728,6 +8341,19 @@ uint8_t* DisconnectionFrame::_InternalSerialize( uint32_t cached_has_bits = 0; (void) cached_has_bits; + cached_has_bits = _has_bits_[0]; + // optional bool request_safe_to_disconnect = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_request_safe_to_disconnect(), target); + } + + // optional bool ack_safe_to_disconnect = 2; + if (cached_has_bits & 0x00000002u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(2, this->_internal_ack_safe_to_disconnect(), 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); @@ -7744,6 +8370,19 @@ size_t DisconnectionFrame::ByteSizeLong() const { // 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 bool request_safe_to_disconnect = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + 1; + } + + // optional bool ack_safe_to_disconnect = 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(); } @@ -7764,6 +8403,16 @@ void DisconnectionFrame::MergeFrom(const DisconnectionFrame& from) { 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) { + request_safe_to_disconnect_ = from.request_safe_to_disconnect_; + } + if (cached_has_bits & 0x00000002u) { + ack_safe_to_disconnect_ = from.ack_safe_to_disconnect_; + } + _has_bits_[0] |= cached_has_bits; + } _internal_metadata_.MergeFrom(from._internal_metadata_); } @@ -7781,6 +8430,13 @@ bool DisconnectionFrame::IsInitialized() const { void DisconnectionFrame::InternalSwap(DisconnectionFrame* 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(DisconnectionFrame, ack_safe_to_disconnect_) + + sizeof(DisconnectionFrame::ack_safe_to_disconnect_) + - PROTOBUF_FIELD_OFFSET(DisconnectionFrame, request_safe_to_disconnect_)>( + reinterpret_cast(&request_safe_to_disconnect_), + reinterpret_cast(&other->request_safe_to_disconnect_)); } std::string DisconnectionFrame::GetTypeName() const { @@ -7997,6 +8653,402 @@ std::string PairedKeyEncryptionFrame::GetTypeName() const { } +// =================================================================== + +class AuthenticationMessageFrame::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_auth_message(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +AuthenticationMessageFrame::AuthenticationMessageFrame(::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.AuthenticationMessageFrame) +} +AuthenticationMessageFrame::AuthenticationMessageFrame(const AuthenticationMessageFrame& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + auth_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + auth_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_auth_message()) { + auth_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_auth_message(), + GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.AuthenticationMessageFrame) +} + +inline void AuthenticationMessageFrame::SharedCtor() { +auth_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + auth_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AuthenticationMessageFrame::~AuthenticationMessageFrame() { + // @@protoc_insertion_point(destructor:location.nearby.connections.AuthenticationMessageFrame) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete(); +} + +inline void AuthenticationMessageFrame::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + auth_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void AuthenticationMessageFrame::ArenaDtor(void* object) { + AuthenticationMessageFrame* _this = reinterpret_cast< AuthenticationMessageFrame* >(object); + (void)_this; +} +void AuthenticationMessageFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AuthenticationMessageFrame::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AuthenticationMessageFrame::Clear() { +// @@protoc_insertion_point(message_clear_start:location.nearby.connections.AuthenticationMessageFrame) + 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) { + auth_message_.ClearNonDefaultToEmpty(); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AuthenticationMessageFrame::_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 auth_message = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_auth_message(); + 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* AuthenticationMessageFrame::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.AuthenticationMessageFrame) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional bytes auth_message = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->WriteBytesMaybeAliased( + 1, this->_internal_auth_message(), 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.AuthenticationMessageFrame) + return target; +} + +size_t AuthenticationMessageFrame::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AuthenticationMessageFrame) + 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 auth_message = 1; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_auth_message()); + } + + 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 AuthenticationMessageFrame::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AuthenticationMessageFrame::MergeFrom(const AuthenticationMessageFrame& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AuthenticationMessageFrame) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_auth_message()) { + _internal_set_auth_message(from._internal_auth_message()); + } + _internal_metadata_.MergeFrom(from._internal_metadata_); +} + +void AuthenticationMessageFrame::CopyFrom(const AuthenticationMessageFrame& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AuthenticationMessageFrame) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthenticationMessageFrame::IsInitialized() const { + return true; +} + +void AuthenticationMessageFrame::InternalSwap(AuthenticationMessageFrame* 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(), + &auth_message_, lhs_arena, + &other->auth_message_, rhs_arena + ); +} + +std::string AuthenticationMessageFrame::GetTypeName() const { + return "location.nearby.connections.AuthenticationMessageFrame"; +} + + +// =================================================================== + +class AuthenticationResultFrame::_Internal { + public: + using HasBits = decltype(std::declval()._has_bits_); + static void set_has_result(HasBits* has_bits) { + (*has_bits)[0] |= 1u; + } +}; + +AuthenticationResultFrame::AuthenticationResultFrame(::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.AuthenticationResultFrame) +} +AuthenticationResultFrame::AuthenticationResultFrame(const AuthenticationResultFrame& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_) { + _internal_metadata_.MergeFrom(from._internal_metadata_); + result_ = from.result_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.AuthenticationResultFrame) +} + +inline void AuthenticationResultFrame::SharedCtor() { +result_ = 0; +} + +AuthenticationResultFrame::~AuthenticationResultFrame() { + // @@protoc_insertion_point(destructor:location.nearby.connections.AuthenticationResultFrame) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete(); +} + +inline void AuthenticationResultFrame::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void AuthenticationResultFrame::ArenaDtor(void* object) { + AuthenticationResultFrame* _this = reinterpret_cast< AuthenticationResultFrame* >(object); + (void)_this; +} +void AuthenticationResultFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AuthenticationResultFrame::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AuthenticationResultFrame::Clear() { +// @@protoc_insertion_point(message_clear_start:location.nearby.connections.AuthenticationResultFrame) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + result_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* AuthenticationResultFrame::_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 result = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _Internal::set_has_result(&has_bits); + result_ = ::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* AuthenticationResultFrame::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.AuthenticationResultFrame) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + cached_has_bits = _has_bits_[0]; + // optional int32 result = 1; + if (cached_has_bits & 0x00000001u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_result(), 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.AuthenticationResultFrame) + return target; +} + +size_t AuthenticationResultFrame::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.AuthenticationResultFrame) + 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 result = 1; + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_result()); + } + + 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 AuthenticationResultFrame::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void AuthenticationResultFrame::MergeFrom(const AuthenticationResultFrame& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.AuthenticationResultFrame) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_has_result()) { + _internal_set_result(from._internal_result()); + } + _internal_metadata_.MergeFrom(from._internal_metadata_); +} + +void AuthenticationResultFrame::CopyFrom(const AuthenticationResultFrame& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.AuthenticationResultFrame) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AuthenticationResultFrame::IsInitialized() const { + return true; +} + +void AuthenticationResultFrame::InternalSwap(AuthenticationResultFrame* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_has_bits_[0], other->_has_bits_[0]); + swap(result_, other->result_); +} + +std::string AuthenticationResultFrame::GetTypeName() const { + return "location.nearby.connections.AuthenticationResultFrame"; +} + + // =================================================================== class MediumMetadata::_Internal { @@ -10145,6 +11197,957 @@ std::string OsInfo::GetTypeName() const { } +// =================================================================== + +class ConnectionsDevice::_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_type(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } + static void set_has_connectivity_info_list(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_endpoint_info(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } +}; + +ConnectionsDevice::ConnectionsDevice(::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.ConnectionsDevice) +} +ConnectionsDevice::ConnectionsDevice(const ConnectionsDevice& 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()); + } + connectivity_info_list_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_connectivity_info_list()) { + connectivity_info_list_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_connectivity_info_list(), + 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()); + } + endpoint_type_ = from.endpoint_type_; + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.ConnectionsDevice) +} + +inline void ConnectionsDevice::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 +connectivity_info_list_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + connectivity_info_list_.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 +endpoint_type_ = 0; +} + +ConnectionsDevice::~ConnectionsDevice() { + // @@protoc_insertion_point(destructor:location.nearby.connections.ConnectionsDevice) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete(); +} + +inline void ConnectionsDevice::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + connectivity_info_list_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + endpoint_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void ConnectionsDevice::ArenaDtor(void* object) { + ConnectionsDevice* _this = reinterpret_cast< ConnectionsDevice* >(object); + (void)_this; +} +void ConnectionsDevice::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void ConnectionsDevice::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void ConnectionsDevice::Clear() { +// @@protoc_insertion_point(message_clear_start:location.nearby.connections.ConnectionsDevice) + 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) { + endpoint_id_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + connectivity_info_list_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + endpoint_info_.ClearNonDefaultToEmpty(); + } + } + endpoint_type_ = 0; + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* ConnectionsDevice::_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 .location.nearby.connections.EndpointType endpoint_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::EndpointType_IsValid(val))) { + _internal_set_endpoint_type(static_cast<::location::nearby::connections::EndpointType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; + // optional bytes connectivity_info_list = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_connectivity_info_list(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional bytes endpoint_info = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_endpoint_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* ConnectionsDevice::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.ConnectionsDevice) + 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 .location.nearby.connections.EndpointType endpoint_type = 2; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_endpoint_type(), target); + } + + // optional bytes connectivity_info_list = 3; + if (cached_has_bits & 0x00000002u) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_connectivity_info_list(), target); + } + + // optional bytes endpoint_info = 4; + if (cached_has_bits & 0x00000004u) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_endpoint_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.ConnectionsDevice) + return target; +} + +size_t ConnectionsDevice::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.ConnectionsDevice) + 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 endpoint_id = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_endpoint_id()); + } + + // optional bytes connectivity_info_list = 3; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_connectivity_info_list()); + } + + // optional bytes endpoint_info = 4; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_endpoint_info()); + } + + // optional .location.nearby.connections.EndpointType endpoint_type = 2; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_endpoint_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 ConnectionsDevice::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void ConnectionsDevice::MergeFrom(const ConnectionsDevice& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.ConnectionsDevice) + 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_endpoint_id(from._internal_endpoint_id()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_connectivity_info_list(from._internal_connectivity_info_list()); + } + if (cached_has_bits & 0x00000004u) { + _internal_set_endpoint_info(from._internal_endpoint_info()); + } + if (cached_has_bits & 0x00000008u) { + endpoint_type_ = from.endpoint_type_; + } + _has_bits_[0] |= cached_has_bits; + } + _internal_metadata_.MergeFrom(from._internal_metadata_); +} + +void ConnectionsDevice::CopyFrom(const ConnectionsDevice& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.ConnectionsDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ConnectionsDevice::IsInitialized() const { + return true; +} + +void ConnectionsDevice::InternalSwap(ConnectionsDevice* 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 + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &connectivity_info_list_, lhs_arena, + &other->connectivity_info_list_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &endpoint_info_, lhs_arena, + &other->endpoint_info_, rhs_arena + ); + swap(endpoint_type_, other->endpoint_type_); +} + +std::string ConnectionsDevice::GetTypeName() const { + return "location.nearby.connections.ConnectionsDevice"; +} + + +// =================================================================== + +class PresenceDevice::_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_type(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_connectivity_info_list(HasBits* has_bits) { + (*has_bits)[0] |= 2u; + } + static void set_has_device_id(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } + static void set_has_device_name(HasBits* has_bits) { + (*has_bits)[0] |= 4u; + } + static void set_has_device_type(HasBits* has_bits) { + (*has_bits)[0] |= 64u; + } + static void set_has_device_image_url(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } +}; + +PresenceDevice::PresenceDevice(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned), + discovery_medium_(arena), + actions_(arena), + identity_type_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:location.nearby.connections.PresenceDevice) +} +PresenceDevice::PresenceDevice(const PresenceDevice& from) + : ::PROTOBUF_NAMESPACE_ID::MessageLite(), + _has_bits_(from._has_bits_), + discovery_medium_(from.discovery_medium_), + actions_(from.actions_), + identity_type_(from.identity_type_) { + _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()); + } + connectivity_info_list_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (from._internal_has_connectivity_info_list()) { + connectivity_info_list_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_connectivity_info_list(), + GetArenaForAllocation()); + } + 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()); + } + 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()); + } + ::memcpy(&device_id_, &from.device_id_, + static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&device_id_)) + sizeof(device_type_)); + // @@protoc_insertion_point(copy_constructor:location.nearby.connections.PresenceDevice) +} + +inline void PresenceDevice::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 +connectivity_info_list_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +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 +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 +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&device_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&device_type_) - + reinterpret_cast(&device_id_)) + sizeof(device_type_)); +} + +PresenceDevice::~PresenceDevice() { + // @@protoc_insertion_point(destructor:location.nearby.connections.PresenceDevice) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete(); +} + +inline void PresenceDevice::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + connectivity_info_list_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + device_image_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void PresenceDevice::ArenaDtor(void* object) { + PresenceDevice* _this = reinterpret_cast< PresenceDevice* >(object); + (void)_this; +} +void PresenceDevice::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PresenceDevice::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PresenceDevice::Clear() { +// @@protoc_insertion_point(message_clear_start:location.nearby.connections.PresenceDevice) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + discovery_medium_.Clear(); + actions_.Clear(); + identity_type_.Clear(); + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x00000001u) { + endpoint_id_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000002u) { + connectivity_info_list_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000004u) { + device_name_.ClearNonDefaultToEmpty(); + } + if (cached_has_bits & 0x00000008u) { + device_image_url_.ClearNonDefaultToEmpty(); + } + } + if (cached_has_bits & 0x00000070u) { + ::memset(&device_id_, 0, static_cast( + reinterpret_cast(&device_type_) - + reinterpret_cast(&device_id_)) + sizeof(device_type_)); + } + _has_bits_.Clear(); + _internal_metadata_.Clear(); +} + +const char* PresenceDevice::_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 .location.nearby.connections.EndpointType endpoint_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::EndpointType_IsValid(val))) { + _internal_set_endpoint_type(static_cast<::location::nearby::connections::EndpointType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; + // optional bytes connectivity_info_list = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_connectivity_info_list(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional int64 device_id = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _Internal::set_has_device_id(&has_bits); + device_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional string device_name = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + auto str = _internal_mutable_device_name(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::PresenceDevice_DeviceType_IsValid(val))) { + _internal_set_device_type(static_cast<::location::nearby::connections::PresenceDevice_DeviceType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(6, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; + // optional string device_image_url = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + auto str = _internal_mutable_device_image_url(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_discovery_medium(), ptr, ctx, ::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid, &_internal_metadata_, 8); + CHK_(ptr); + } else if (static_cast(tag) == 64) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(val))) { + _internal_add_discovery_medium(static_cast<::location::nearby::connections::ConnectionRequestFrame_Medium>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; + // repeated int32 actions = 9 [packed = true]; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_actions(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 72) { + _internal_add_actions(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated int64 identity_type = 10 [packed = true]; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt64Parser(_internal_mutable_identity_type(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 80) { + _internal_add_identity_type(::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* PresenceDevice::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.PresenceDevice) + 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 .location.nearby.connections.EndpointType endpoint_type = 2; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_endpoint_type(), target); + } + + // optional bytes connectivity_info_list = 3; + if (cached_has_bits & 0x00000002u) { + target = stream->WriteBytesMaybeAliased( + 3, this->_internal_connectivity_info_list(), target); + } + + // optional int64 device_id = 4; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_device_id(), target); + } + + // optional string device_name = 5; + if (cached_has_bits & 0x00000004u) { + target = stream->WriteStringMaybeAliased( + 5, this->_internal_device_name(), target); + } + + // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 6, this->_internal_device_type(), target); + } + + // optional string device_image_url = 7; + if (cached_has_bits & 0x00000008u) { + target = stream->WriteStringMaybeAliased( + 7, this->_internal_device_image_url(), target); + } + + // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; + { + int byte_size = _discovery_medium_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 8, discovery_medium_, byte_size, target); + } + } + + // repeated int32 actions = 9 [packed = true]; + { + int byte_size = _actions_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteInt32Packed( + 9, _internal_actions(), byte_size, target); + } + } + + // repeated int64 identity_type = 10 [packed = true]; + { + int byte_size = _identity_type_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteInt64Packed( + 10, _internal_identity_type(), 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.PresenceDevice) + return target; +} + +size_t PresenceDevice::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.PresenceDevice) + 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 discovery_medium = 8 [packed = true]; + { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_discovery_medium_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + this->_internal_discovery_medium(static_cast(i))); + } + 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); + _discovery_medium_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // repeated int32 actions = 9 [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; + } + + // repeated int64 identity_type = 10 [packed = true]; + { + size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + Int64Size(this->identity_type_); + 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); + _identity_type_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x0000007fu) { + // optional string endpoint_id = 1; + if (cached_has_bits & 0x00000001u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_endpoint_id()); + } + + // optional bytes connectivity_info_list = 3; + if (cached_has_bits & 0x00000002u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_connectivity_info_list()); + } + + // optional string device_name = 5; + if (cached_has_bits & 0x00000004u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_device_name()); + } + + // optional string device_image_url = 7; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_device_image_url()); + } + + // optional int64 device_id = 4; + if (cached_has_bits & 0x00000010u) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_device_id()); + } + + // optional .location.nearby.connections.EndpointType endpoint_type = 2; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_endpoint_type()); + } + + // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; + if (cached_has_bits & 0x00000040u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(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 PresenceDevice::CheckTypeAndMergeFrom( + const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) { + MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast( + &from)); +} + +void PresenceDevice::MergeFrom(const PresenceDevice& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.PresenceDevice) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + discovery_medium_.MergeFrom(from.discovery_medium_); + actions_.MergeFrom(from.actions_); + identity_type_.MergeFrom(from.identity_type_); + cached_has_bits = from._has_bits_[0]; + if (cached_has_bits & 0x0000007fu) { + if (cached_has_bits & 0x00000001u) { + _internal_set_endpoint_id(from._internal_endpoint_id()); + } + if (cached_has_bits & 0x00000002u) { + _internal_set_connectivity_info_list(from._internal_connectivity_info_list()); + } + if (cached_has_bits & 0x00000004u) { + _internal_set_device_name(from._internal_device_name()); + } + if (cached_has_bits & 0x00000008u) { + _internal_set_device_image_url(from._internal_device_image_url()); + } + if (cached_has_bits & 0x00000010u) { + device_id_ = from.device_id_; + } + if (cached_has_bits & 0x00000020u) { + endpoint_type_ = from.endpoint_type_; + } + if (cached_has_bits & 0x00000040u) { + device_type_ = from.device_type_; + } + _has_bits_[0] |= cached_has_bits; + } + _internal_metadata_.MergeFrom(from._internal_metadata_); +} + +void PresenceDevice::CopyFrom(const PresenceDevice& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.PresenceDevice) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PresenceDevice::IsInitialized() const { + return true; +} + +void PresenceDevice::InternalSwap(PresenceDevice* 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]); + discovery_medium_.InternalSwap(&other->discovery_medium_); + actions_.InternalSwap(&other->actions_); + identity_type_.InternalSwap(&other->identity_type_); + ::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(), + &connectivity_info_list_, lhs_arena, + &other->connectivity_info_list_, rhs_arena + ); + ::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(), + &device_image_url_, lhs_arena, + &other->device_image_url_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PresenceDevice, device_type_) + + sizeof(PresenceDevice::device_type_) + - PROTOBUF_FIELD_OFFSET(PresenceDevice, device_id_)>( + reinterpret_cast(&device_id_), + reinterpret_cast(&other->device_id_)); +} + +std::string PresenceDevice::GetTypeName() const { + return "location.nearby.connections.PresenceDevice"; +} + + // @@protoc_insertion_point(namespace_scope) } // namespace connections } // namespace nearby @@ -10213,6 +12216,12 @@ template<> PROTOBUF_NOINLINE ::location::nearby::connections::DisconnectionFrame 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::AuthenticationMessageFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::AuthenticationMessageFrame >(Arena* arena) { + return Arena::CreateMessageInternal< ::location::nearby::connections::AuthenticationMessageFrame >(arena); +} +template<> PROTOBUF_NOINLINE ::location::nearby::connections::AuthenticationResultFrame* Arena::CreateMaybeMessage< ::location::nearby::connections::AuthenticationResultFrame >(Arena* arena) { + return Arena::CreateMessageInternal< ::location::nearby::connections::AuthenticationResultFrame >(arena); +} template<> PROTOBUF_NOINLINE ::location::nearby::connections::MediumMetadata* Arena::CreateMaybeMessage< ::location::nearby::connections::MediumMetadata >(Arena* arena) { return Arena::CreateMessageInternal< ::location::nearby::connections::MediumMetadata >(arena); } @@ -10240,6 +12249,12 @@ template<> PROTOBUF_NOINLINE ::location::nearby::connections::LocationStandard* template<> PROTOBUF_NOINLINE ::location::nearby::connections::OsInfo* Arena::CreateMaybeMessage< ::location::nearby::connections::OsInfo >(Arena* arena) { return Arena::CreateMessageInternal< ::location::nearby::connections::OsInfo >(arena); } +template<> PROTOBUF_NOINLINE ::location::nearby::connections::ConnectionsDevice* Arena::CreateMaybeMessage< ::location::nearby::connections::ConnectionsDevice >(Arena* arena) { + return Arena::CreateMessageInternal< ::location::nearby::connections::ConnectionsDevice >(arena); +} +template<> PROTOBUF_NOINLINE ::location::nearby::connections::PresenceDevice* Arena::CreateMaybeMessage< ::location::nearby::connections::PresenceDevice >(Arena* arena) { + return Arena::CreateMessageInternal< ::location::nearby::connections::PresenceDevice >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h index 6c8a4783..c75669f6 100644 --- a/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h +++ b/compiled_proto/connections/implementation/proto/offline_wire_formats.pb.h @@ -45,7 +45,7 @@ struct TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fforma 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[30] + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[34] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; @@ -54,6 +54,12 @@ struct TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fforma namespace location { namespace nearby { namespace connections { +class AuthenticationMessageFrame; +struct AuthenticationMessageFrameDefaultTypeInternal; +extern AuthenticationMessageFrameDefaultTypeInternal _AuthenticationMessageFrame_default_instance_; +class AuthenticationResultFrame; +struct AuthenticationResultFrameDefaultTypeInternal; +extern AuthenticationResultFrameDefaultTypeInternal _AuthenticationResultFrame_default_instance_; class AvailableChannels; struct AvailableChannelsDefaultTypeInternal; extern AvailableChannelsDefaultTypeInternal _AvailableChannels_default_instance_; @@ -93,6 +99,9 @@ extern ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default class ConnectionResponseFrame; struct ConnectionResponseFrameDefaultTypeInternal; extern ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_; +class ConnectionsDevice; +struct ConnectionsDeviceDefaultTypeInternal; +extern ConnectionsDeviceDefaultTypeInternal _ConnectionsDevice_default_instance_; class DisconnectionFrame; struct DisconnectionFrameDefaultTypeInternal; extern DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_; @@ -129,6 +138,9 @@ extern PayloadTransferFrame_PayloadChunkDefaultTypeInternal _PayloadTransferFram class PayloadTransferFrame_PayloadHeader; struct PayloadTransferFrame_PayloadHeaderDefaultTypeInternal; extern PayloadTransferFrame_PayloadHeaderDefaultTypeInternal _PayloadTransferFrame_PayloadHeader_default_instance_; +class PresenceDevice; +struct PresenceDeviceDefaultTypeInternal; +extern PresenceDeviceDefaultTypeInternal _PresenceDevice_default_instance_; class V1Frame; struct V1FrameDefaultTypeInternal; extern V1FrameDefaultTypeInternal _V1Frame_default_instance_; @@ -148,6 +160,8 @@ extern WifiLanUsableChannelsDefaultTypeInternal _WifiLanUsableChannels_default_i } // namespace nearby } // namespace location PROTOBUF_NAMESPACE_OPEN +template<> ::location::nearby::connections::AuthenticationMessageFrame* Arena::CreateMaybeMessage<::location::nearby::connections::AuthenticationMessageFrame>(Arena*); +template<> ::location::nearby::connections::AuthenticationResultFrame* Arena::CreateMaybeMessage<::location::nearby::connections::AuthenticationResultFrame>(Arena*); 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*); @@ -161,6 +175,7 @@ template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_Upg 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::ConnectionsDevice* Arena::CreateMaybeMessage<::location::nearby::connections::ConnectionsDevice>(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*); @@ -173,6 +188,7 @@ template<> ::location::nearby::connections::PayloadTransferFrame* Arena::CreateM 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::PresenceDevice* Arena::CreateMaybeMessage<::location::nearby::connections::PresenceDevice>(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*); @@ -210,11 +226,13 @@ enum V1Frame_FrameType : int { V1Frame_FrameType_BANDWIDTH_UPGRADE_NEGOTIATION = 4, V1Frame_FrameType_KEEP_ALIVE = 5, V1Frame_FrameType_DISCONNECTION = 6, - V1Frame_FrameType_PAIRED_KEY_ENCRYPTION = 7 + V1Frame_FrameType_PAIRED_KEY_ENCRYPTION = 7, + V1Frame_FrameType_AUTHENTICATION_MESSAGE = 8, + V1Frame_FrameType_AUTHENTICATION_RESULT = 9 }; 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 V1Frame_FrameType V1Frame_FrameType_FrameType_MAX = V1Frame_FrameType_AUTHENTICATION_RESULT; constexpr int V1Frame_FrameType_FrameType_ARRAYSIZE = V1Frame_FrameType_FrameType_MAX + 1; const std::string& V1Frame_FrameType_Name(V1Frame_FrameType value); @@ -318,11 +336,12 @@ bool PayloadTransferFrame_PayloadChunk_Flags_Parse( enum PayloadTransferFrame_ControlMessage_EventType : int { PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE = 0, PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_ERROR = 1, - PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED = 2 + PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED = 2, + PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_RECEIVED_ACK = 3 }; 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 PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage_EventType_EventType_MAX = PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_RECEIVED_ACK; constexpr int PayloadTransferFrame_ControlMessage_EventType_EventType_ARRAYSIZE = PayloadTransferFrame_ControlMessage_EventType_EventType_MAX + 1; const std::string& PayloadTransferFrame_ControlMessage_EventType_Name(PayloadTransferFrame_ControlMessage_EventType value); @@ -450,6 +469,50 @@ inline const std::string& OsInfo_OsType_Name(T enum_t_value) { } bool OsInfo_OsType_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OsInfo_OsType* value); +enum PresenceDevice_DeviceType : int { + PresenceDevice_DeviceType_UNKNOWN = 0, + PresenceDevice_DeviceType_PHONE = 1, + PresenceDevice_DeviceType_TABLET = 2, + PresenceDevice_DeviceType_DISPLAY = 3, + PresenceDevice_DeviceType_LAPTOP = 4, + PresenceDevice_DeviceType_TV = 5, + PresenceDevice_DeviceType_WATCH = 6 +}; +bool PresenceDevice_DeviceType_IsValid(int value); +constexpr PresenceDevice_DeviceType PresenceDevice_DeviceType_DeviceType_MIN = PresenceDevice_DeviceType_UNKNOWN; +constexpr PresenceDevice_DeviceType PresenceDevice_DeviceType_DeviceType_MAX = PresenceDevice_DeviceType_WATCH; +constexpr int PresenceDevice_DeviceType_DeviceType_ARRAYSIZE = PresenceDevice_DeviceType_DeviceType_MAX + 1; + +const std::string& PresenceDevice_DeviceType_Name(PresenceDevice_DeviceType value); +template +inline const std::string& PresenceDevice_DeviceType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PresenceDevice_DeviceType_Name."); + return PresenceDevice_DeviceType_Name(static_cast(enum_t_value)); +} +bool PresenceDevice_DeviceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PresenceDevice_DeviceType* value); +enum EndpointType : int { + UNKNOWN_ENDPOINT = 0, + CONNECTIONS_ENDPOINT = 1, + PRESENCE_ENDPOINT = 2 +}; +bool EndpointType_IsValid(int value); +constexpr EndpointType EndpointType_MIN = UNKNOWN_ENDPOINT; +constexpr EndpointType EndpointType_MAX = PRESENCE_ENDPOINT; +constexpr int EndpointType_ARRAYSIZE = EndpointType_MAX + 1; + +const std::string& EndpointType_Name(EndpointType value); +template +inline const std::string& EndpointType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function EndpointType_Name."); + return EndpointType_Name(static_cast(enum_t_value)); +} +bool EndpointType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EndpointType* value); // =================================================================== class OfflineFrame final : @@ -767,6 +830,10 @@ class V1Frame final : V1Frame_FrameType_DISCONNECTION; static constexpr FrameType PAIRED_KEY_ENCRYPTION = V1Frame_FrameType_PAIRED_KEY_ENCRYPTION; + static constexpr FrameType AUTHENTICATION_MESSAGE = + V1Frame_FrameType_AUTHENTICATION_MESSAGE; + static constexpr FrameType AUTHENTICATION_RESULT = + V1Frame_FrameType_AUTHENTICATION_RESULT; static inline bool FrameType_IsValid(int value) { return V1Frame_FrameType_IsValid(value); } @@ -798,6 +865,8 @@ class V1Frame final : kKeepAliveFieldNumber = 6, kDisconnectionFieldNumber = 7, kPairedKeyEncryptionFieldNumber = 8, + kAuthenticationMessageFieldNumber = 9, + kAuthenticationResultFieldNumber = 10, kTypeFieldNumber = 1, }; // optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2; @@ -926,6 +995,42 @@ class V1Frame final : ::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption); ::location::nearby::connections::PairedKeyEncryptionFrame* unsafe_arena_release_paired_key_encryption(); + // optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; + bool has_authentication_message() const; + private: + bool _internal_has_authentication_message() const; + public: + void clear_authentication_message(); + const ::location::nearby::connections::AuthenticationMessageFrame& authentication_message() const; + PROTOBUF_NODISCARD ::location::nearby::connections::AuthenticationMessageFrame* release_authentication_message(); + ::location::nearby::connections::AuthenticationMessageFrame* mutable_authentication_message(); + void set_allocated_authentication_message(::location::nearby::connections::AuthenticationMessageFrame* authentication_message); + private: + const ::location::nearby::connections::AuthenticationMessageFrame& _internal_authentication_message() const; + ::location::nearby::connections::AuthenticationMessageFrame* _internal_mutable_authentication_message(); + public: + void unsafe_arena_set_allocated_authentication_message( + ::location::nearby::connections::AuthenticationMessageFrame* authentication_message); + ::location::nearby::connections::AuthenticationMessageFrame* unsafe_arena_release_authentication_message(); + + // optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; + bool has_authentication_result() const; + private: + bool _internal_has_authentication_result() const; + public: + void clear_authentication_result(); + const ::location::nearby::connections::AuthenticationResultFrame& authentication_result() const; + PROTOBUF_NODISCARD ::location::nearby::connections::AuthenticationResultFrame* release_authentication_result(); + ::location::nearby::connections::AuthenticationResultFrame* mutable_authentication_result(); + void set_allocated_authentication_result(::location::nearby::connections::AuthenticationResultFrame* authentication_result); + private: + const ::location::nearby::connections::AuthenticationResultFrame& _internal_authentication_result() const; + ::location::nearby::connections::AuthenticationResultFrame* _internal_mutable_authentication_result(); + public: + void unsafe_arena_set_allocated_authentication_result( + ::location::nearby::connections::AuthenticationResultFrame* authentication_result); + ::location::nearby::connections::AuthenticationResultFrame* unsafe_arena_release_authentication_result(); + // optional .location.nearby.connections.V1Frame.FrameType type = 1; bool has_type() const; private: @@ -955,6 +1060,8 @@ class V1Frame final : ::location::nearby::connections::KeepAliveFrame* keep_alive_; ::location::nearby::connections::DisconnectionFrame* disconnection_; ::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption_; + ::location::nearby::connections::AuthenticationMessageFrame* authentication_message_; + ::location::nearby::connections::AuthenticationResultFrame* authentication_result_; int type_; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; @@ -1001,6 +1108,12 @@ class ConnectionRequestFrame final : static const ConnectionRequestFrame& default_instance() { return *internal_default_instance(); } + enum DeviceCase { + kConnectionsDevice = 12, + kPresenceDevice = 13, + DEVICE_NOT_SET = 0, + }; + static inline const ConnectionRequestFrame* internal_default_instance() { return reinterpret_cast( &_ConnectionRequestFrame_default_instance_); @@ -1130,6 +1243,8 @@ class ConnectionRequestFrame final : kKeepAliveIntervalMillisFieldNumber = 8, kKeepAliveTimeoutMillisFieldNumber = 9, kDeviceTypeFieldNumber = 10, + kConnectionsDeviceFieldNumber = 12, + kPresenceDeviceFieldNumber = 13, }; // repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5; int mediums_size() const; @@ -1220,18 +1335,18 @@ class ConnectionRequestFrame final : std::string* _internal_mutable_endpoint_info(); public: - // optional bytes device_info = 11; - bool has_device_info() const; + // optional bytes device_info = 11 [deprecated = true]; + PROTOBUF_DEPRECATED bool has_device_info() const; private: bool _internal_has_device_info() const; public: - void clear_device_info(); - const std::string& device_info() const; + PROTOBUF_DEPRECATED void clear_device_info(); + PROTOBUF_DEPRECATED 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); + PROTOBUF_DEPRECATED void set_device_info(ArgT0&& arg0, ArgT... args); + PROTOBUF_DEPRECATED std::string* mutable_device_info(); + PROTOBUF_NODISCARD PROTOBUF_DEPRECATED std::string* release_device_info(); + PROTOBUF_DEPRECATED 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); @@ -1295,22 +1410,65 @@ class ConnectionRequestFrame final : void _internal_set_keep_alive_timeout_millis(int32_t value); public: - // optional int32 device_type = 10 [default = 0]; - bool has_device_type() const; + // optional int32 device_type = 10 [default = 0, deprecated = true]; + PROTOBUF_DEPRECATED 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); + PROTOBUF_DEPRECATED void clear_device_type(); + PROTOBUF_DEPRECATED int32_t device_type() const; + PROTOBUF_DEPRECATED void set_device_type(int32_t value); private: int32_t _internal_device_type() const; void _internal_set_device_type(int32_t value); public: + // .location.nearby.connections.ConnectionsDevice connections_device = 12; + bool has_connections_device() const; + private: + bool _internal_has_connections_device() const; + public: + void clear_connections_device(); + const ::location::nearby::connections::ConnectionsDevice& connections_device() const; + PROTOBUF_NODISCARD ::location::nearby::connections::ConnectionsDevice* release_connections_device(); + ::location::nearby::connections::ConnectionsDevice* mutable_connections_device(); + void set_allocated_connections_device(::location::nearby::connections::ConnectionsDevice* connections_device); + private: + const ::location::nearby::connections::ConnectionsDevice& _internal_connections_device() const; + ::location::nearby::connections::ConnectionsDevice* _internal_mutable_connections_device(); + public: + void unsafe_arena_set_allocated_connections_device( + ::location::nearby::connections::ConnectionsDevice* connections_device); + ::location::nearby::connections::ConnectionsDevice* unsafe_arena_release_connections_device(); + + // .location.nearby.connections.PresenceDevice presence_device = 13; + bool has_presence_device() const; + private: + bool _internal_has_presence_device() const; + public: + void clear_presence_device(); + const ::location::nearby::connections::PresenceDevice& presence_device() const; + PROTOBUF_NODISCARD ::location::nearby::connections::PresenceDevice* release_presence_device(); + ::location::nearby::connections::PresenceDevice* mutable_presence_device(); + void set_allocated_presence_device(::location::nearby::connections::PresenceDevice* presence_device); + private: + const ::location::nearby::connections::PresenceDevice& _internal_presence_device() const; + ::location::nearby::connections::PresenceDevice* _internal_mutable_presence_device(); + public: + void unsafe_arena_set_allocated_presence_device( + ::location::nearby::connections::PresenceDevice* presence_device); + ::location::nearby::connections::PresenceDevice* unsafe_arena_release_presence_device(); + + void clear_Device(); + DeviceCase Device_case() const; // @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionRequestFrame) private: class _Internal; + void set_has_connections_device(); + void set_has_presence_device(); + + inline bool has_Device() const; + inline void clear_has_Device(); template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; @@ -1328,6 +1486,14 @@ class ConnectionRequestFrame final : int32_t keep_alive_interval_millis_; int32_t keep_alive_timeout_millis_; int32_t device_type_; + union DeviceUnion { + constexpr DeviceUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::location::nearby::connections::ConnectionsDevice* connections_device_; + ::location::nearby::connections::PresenceDevice* presence_device_; + } Device_; + uint32_t _oneof_case_[1]; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; // ------------------------------------------------------------------- @@ -1477,6 +1643,8 @@ class ConnectionResponseFrame final : kOsInfoFieldNumber = 4, kStatusFieldNumber = 1, kResponseFieldNumber = 3, + kMultiplexSocketBitmaskFieldNumber = 5, + kNearbyConnectionsVersionFieldNumber = 6, }; // optional bytes handshake_data = 2; bool has_handshake_data() const; @@ -1540,6 +1708,32 @@ class ConnectionResponseFrame final : void _internal_set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value); public: + // optional int32 multiplex_socket_bitmask = 5; + bool has_multiplex_socket_bitmask() const; + private: + bool _internal_has_multiplex_socket_bitmask() const; + public: + void clear_multiplex_socket_bitmask(); + int32_t multiplex_socket_bitmask() const; + void set_multiplex_socket_bitmask(int32_t value); + private: + int32_t _internal_multiplex_socket_bitmask() const; + void _internal_set_multiplex_socket_bitmask(int32_t value); + public: + + // optional int32 nearby_connections_version = 6; + bool has_nearby_connections_version() const; + private: + bool _internal_has_nearby_connections_version() const; + public: + void clear_nearby_connections_version(); + int32_t nearby_connections_version() const; + void set_nearby_connections_version(int32_t value); + private: + int32_t _internal_nearby_connections_version() const; + void _internal_set_nearby_connections_version(int32_t value); + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionResponseFrame) private: class _Internal; @@ -1553,6 +1747,8 @@ class ConnectionResponseFrame final : ::location::nearby::connections::OsInfo* os_info_; int32_t status_; int response_; + int32_t multiplex_socket_bitmask_; + int32_t nearby_connections_version_; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; // ------------------------------------------------------------------- @@ -2132,6 +2328,8 @@ class PayloadTransferFrame_ControlMessage final : PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_ERROR; static constexpr EventType PAYLOAD_CANCELED = PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED; + static constexpr EventType PAYLOAD_RECEIVED_ACK = + PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_RECEIVED_ACK; static inline bool EventType_IsValid(int value) { return PayloadTransferFrame_ControlMessage_EventType_IsValid(value); } @@ -3284,6 +3482,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials fin kSsidFieldNumber = 1, kPasswordFieldNumber = 2, kGatewayFieldNumber = 5, + kIpV6AddressFieldNumber = 6, kPortFieldNumber = 3, kFrequencyFieldNumber = 4, }; @@ -3341,6 +3540,24 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials fin std::string* _internal_mutable_gateway(); public: + // optional bytes ip_v6_address = 6; + bool has_ip_v6_address() const; + private: + bool _internal_has_ip_v6_address() const; + public: + void clear_ip_v6_address(); + const std::string& ip_v6_address() const; + template + void set_ip_v6_address(ArgT0&& arg0, ArgT... args); + std::string* mutable_ip_v6_address(); + PROTOBUF_NODISCARD std::string* release_ip_v6_address(); + void set_allocated_ip_v6_address(std::string* ip_v6_address); + private: + const std::string& _internal_ip_v6_address() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_ip_v6_address(const std::string& value); + std::string* _internal_mutable_ip_v6_address(); + public: + // optional int32 port = 3; bool has_port() const; private: @@ -3380,6 +3597,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials fin ::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_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ip_v6_address_; int32_t port_; int32_t frequency_; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; @@ -4678,6 +4896,36 @@ class DisconnectionFrame final : // accessors ------------------------------------------------------- + enum : int { + kRequestSafeToDisconnectFieldNumber = 1, + kAckSafeToDisconnectFieldNumber = 2, + }; + // optional bool request_safe_to_disconnect = 1; + bool has_request_safe_to_disconnect() const; + private: + bool _internal_has_request_safe_to_disconnect() const; + public: + void clear_request_safe_to_disconnect(); + bool request_safe_to_disconnect() const; + void set_request_safe_to_disconnect(bool value); + private: + bool _internal_request_safe_to_disconnect() const; + void _internal_set_request_safe_to_disconnect(bool value); + public: + + // optional bool ack_safe_to_disconnect = 2; + bool has_ack_safe_to_disconnect() const; + private: + bool _internal_has_ack_safe_to_disconnect() const; + public: + void clear_ack_safe_to_disconnect(); + bool ack_safe_to_disconnect() const; + void set_ack_safe_to_disconnect(bool value); + private: + bool _internal_ack_safe_to_disconnect() const; + void _internal_set_ack_safe_to_disconnect(bool value); + public: + // @@protoc_insertion_point(class_scope:location.nearby.connections.DisconnectionFrame) private: class _Internal; @@ -4685,7 +4933,10 @@ class DisconnectionFrame final : 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 request_safe_to_disconnect_; + bool ack_safe_to_disconnect_; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; // ------------------------------------------------------------------- @@ -4837,6 +5088,295 @@ class PairedKeyEncryptionFrame final : }; // ------------------------------------------------------------------- +class AuthenticationMessageFrame final : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.AuthenticationMessageFrame) */ { + public: + inline AuthenticationMessageFrame() : AuthenticationMessageFrame(nullptr) {} + ~AuthenticationMessageFrame() override; + explicit constexpr AuthenticationMessageFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AuthenticationMessageFrame(const AuthenticationMessageFrame& from); + AuthenticationMessageFrame(AuthenticationMessageFrame&& from) noexcept + : AuthenticationMessageFrame() { + *this = ::std::move(from); + } + + inline AuthenticationMessageFrame& operator=(const AuthenticationMessageFrame& from) { + CopyFrom(from); + return *this; + } + inline AuthenticationMessageFrame& operator=(AuthenticationMessageFrame&& 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 AuthenticationMessageFrame& default_instance() { + return *internal_default_instance(); + } + static inline const AuthenticationMessageFrame* internal_default_instance() { + return reinterpret_cast( + &_AuthenticationMessageFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = + 21; + + friend void swap(AuthenticationMessageFrame& a, AuthenticationMessageFrame& b) { + a.Swap(&b); + } + inline void Swap(AuthenticationMessageFrame* 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(AuthenticationMessageFrame* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AuthenticationMessageFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; + void CopyFrom(const AuthenticationMessageFrame& from); + void MergeFrom(const AuthenticationMessageFrame& 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(AuthenticationMessageFrame* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "location.nearby.connections.AuthenticationMessageFrame"; + } + protected: + explicit AuthenticationMessageFrame(::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 { + kAuthMessageFieldNumber = 1, + }; + // optional bytes auth_message = 1; + bool has_auth_message() const; + private: + bool _internal_has_auth_message() const; + public: + void clear_auth_message(); + const std::string& auth_message() const; + template + void set_auth_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_auth_message(); + PROTOBUF_NODISCARD std::string* release_auth_message(); + void set_allocated_auth_message(std::string* auth_message); + private: + const std::string& _internal_auth_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_auth_message(const std::string& value); + std::string* _internal_mutable_auth_message(); + public: + + // @@protoc_insertion_point(class_scope:location.nearby.connections.AuthenticationMessageFrame) + 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 auth_message_; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; +// ------------------------------------------------------------------- + +class AuthenticationResultFrame final : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.AuthenticationResultFrame) */ { + public: + inline AuthenticationResultFrame() : AuthenticationResultFrame(nullptr) {} + ~AuthenticationResultFrame() override; + explicit constexpr AuthenticationResultFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AuthenticationResultFrame(const AuthenticationResultFrame& from); + AuthenticationResultFrame(AuthenticationResultFrame&& from) noexcept + : AuthenticationResultFrame() { + *this = ::std::move(from); + } + + inline AuthenticationResultFrame& operator=(const AuthenticationResultFrame& from) { + CopyFrom(from); + return *this; + } + inline AuthenticationResultFrame& operator=(AuthenticationResultFrame&& 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 AuthenticationResultFrame& default_instance() { + return *internal_default_instance(); + } + static inline const AuthenticationResultFrame* internal_default_instance() { + return reinterpret_cast( + &_AuthenticationResultFrame_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(AuthenticationResultFrame& a, AuthenticationResultFrame& b) { + a.Swap(&b); + } + inline void Swap(AuthenticationResultFrame* 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(AuthenticationResultFrame* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AuthenticationResultFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; + void CopyFrom(const AuthenticationResultFrame& from); + void MergeFrom(const AuthenticationResultFrame& 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(AuthenticationResultFrame* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "location.nearby.connections.AuthenticationResultFrame"; + } + protected: + explicit AuthenticationResultFrame(::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 { + kResultFieldNumber = 1, + }; + // optional int32 result = 1; + bool has_result() const; + private: + bool _internal_has_result() const; + public: + void clear_result(); + int32_t result() const; + void set_result(int32_t value); + private: + int32_t _internal_result() const; + void _internal_set_result(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:location.nearby.connections.AuthenticationResultFrame) + 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 result_; + 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: @@ -4883,7 +5423,7 @@ class MediumMetadata final : &_MediumMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 23; friend void swap(MediumMetadata& a, MediumMetadata& b) { a.Swap(&b); @@ -5210,7 +5750,7 @@ class AvailableChannels final : &_AvailableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 24; friend void swap(AvailableChannels& a, AvailableChannels& b) { a.Swap(&b); @@ -5361,7 +5901,7 @@ class WifiDirectCliUsableChannels final : &_WifiDirectCliUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 25; friend void swap(WifiDirectCliUsableChannels& a, WifiDirectCliUsableChannels& b) { a.Swap(&b); @@ -5512,7 +6052,7 @@ class WifiLanUsableChannels final : &_WifiLanUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 26; friend void swap(WifiLanUsableChannels& a, WifiLanUsableChannels& b) { a.Swap(&b); @@ -5663,7 +6203,7 @@ class WifiAwareUsableChannels final : &_WifiAwareUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 27; friend void swap(WifiAwareUsableChannels& a, WifiAwareUsableChannels& b) { a.Swap(&b); @@ -5814,7 +6354,7 @@ class WifiHotspotStaUsableChannels final : &_WifiHotspotStaUsableChannels_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 28; friend void swap(WifiHotspotStaUsableChannels& a, WifiHotspotStaUsableChannels& b) { a.Swap(&b); @@ -5965,7 +6505,7 @@ class LocationHint final : &_LocationHint_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 29; friend void swap(LocationHint& a, LocationHint& b) { a.Swap(&b); @@ -6127,7 +6667,7 @@ class LocationStandard final : &_LocationStandard_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 30; friend void swap(LocationStandard& a, LocationStandard& b) { a.Swap(&b); @@ -6279,7 +6819,7 @@ class OsInfo final : &_OsInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 31; friend void swap(OsInfo& a, OsInfo& b) { a.Swap(&b); @@ -6407,6 +6947,566 @@ class OsInfo final : int type_; friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; }; +// ------------------------------------------------------------------- + +class ConnectionsDevice final : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionsDevice) */ { + public: + inline ConnectionsDevice() : ConnectionsDevice(nullptr) {} + ~ConnectionsDevice() override; + explicit constexpr ConnectionsDevice(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ConnectionsDevice(const ConnectionsDevice& from); + ConnectionsDevice(ConnectionsDevice&& from) noexcept + : ConnectionsDevice() { + *this = ::std::move(from); + } + + inline ConnectionsDevice& operator=(const ConnectionsDevice& from) { + CopyFrom(from); + return *this; + } + inline ConnectionsDevice& operator=(ConnectionsDevice&& 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 ConnectionsDevice& default_instance() { + return *internal_default_instance(); + } + static inline const ConnectionsDevice* internal_default_instance() { + return reinterpret_cast( + &_ConnectionsDevice_default_instance_); + } + static constexpr int kIndexInFileMessages = + 32; + + friend void swap(ConnectionsDevice& a, ConnectionsDevice& b) { + a.Swap(&b); + } + inline void Swap(ConnectionsDevice* 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(ConnectionsDevice* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ConnectionsDevice* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; + void CopyFrom(const ConnectionsDevice& from); + void MergeFrom(const ConnectionsDevice& 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(ConnectionsDevice* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "location.nearby.connections.ConnectionsDevice"; + } + protected: + explicit ConnectionsDevice(::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, + kConnectivityInfoListFieldNumber = 3, + kEndpointInfoFieldNumber = 4, + kEndpointTypeFieldNumber = 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 bytes connectivity_info_list = 3; + bool has_connectivity_info_list() const; + private: + bool _internal_has_connectivity_info_list() const; + public: + void clear_connectivity_info_list(); + const std::string& connectivity_info_list() const; + template + void set_connectivity_info_list(ArgT0&& arg0, ArgT... args); + std::string* mutable_connectivity_info_list(); + PROTOBUF_NODISCARD std::string* release_connectivity_info_list(); + void set_allocated_connectivity_info_list(std::string* connectivity_info_list); + private: + const std::string& _internal_connectivity_info_list() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_connectivity_info_list(const std::string& value); + std::string* _internal_mutable_connectivity_info_list(); + public: + + // optional bytes endpoint_info = 4; + 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 .location.nearby.connections.EndpointType endpoint_type = 2; + bool has_endpoint_type() const; + private: + bool _internal_has_endpoint_type() const; + public: + void clear_endpoint_type(); + ::location::nearby::connections::EndpointType endpoint_type() const; + void set_endpoint_type(::location::nearby::connections::EndpointType value); + private: + ::location::nearby::connections::EndpointType _internal_endpoint_type() const; + void _internal_set_endpoint_type(::location::nearby::connections::EndpointType value); + public: + + // @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionsDevice) + 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_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr connectivity_info_list_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_info_; + int endpoint_type_; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; +// ------------------------------------------------------------------- + +class PresenceDevice final : + public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PresenceDevice) */ { + public: + inline PresenceDevice() : PresenceDevice(nullptr) {} + ~PresenceDevice() override; + explicit constexpr PresenceDevice(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PresenceDevice(const PresenceDevice& from); + PresenceDevice(PresenceDevice&& from) noexcept + : PresenceDevice() { + *this = ::std::move(from); + } + + inline PresenceDevice& operator=(const PresenceDevice& from) { + CopyFrom(from); + return *this; + } + inline PresenceDevice& operator=(PresenceDevice&& 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 PresenceDevice& default_instance() { + return *internal_default_instance(); + } + static inline const PresenceDevice* internal_default_instance() { + return reinterpret_cast( + &_PresenceDevice_default_instance_); + } + static constexpr int kIndexInFileMessages = + 33; + + friend void swap(PresenceDevice& a, PresenceDevice& b) { + a.Swap(&b); + } + inline void Swap(PresenceDevice* 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(PresenceDevice* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PresenceDevice* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; + void CopyFrom(const PresenceDevice& from); + void MergeFrom(const PresenceDevice& 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(PresenceDevice* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "location.nearby.connections.PresenceDevice"; + } + protected: + explicit PresenceDevice(::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 PresenceDevice_DeviceType DeviceType; + static constexpr DeviceType UNKNOWN = + PresenceDevice_DeviceType_UNKNOWN; + static constexpr DeviceType PHONE = + PresenceDevice_DeviceType_PHONE; + static constexpr DeviceType TABLET = + PresenceDevice_DeviceType_TABLET; + static constexpr DeviceType DISPLAY = + PresenceDevice_DeviceType_DISPLAY; + static constexpr DeviceType LAPTOP = + PresenceDevice_DeviceType_LAPTOP; + static constexpr DeviceType TV = + PresenceDevice_DeviceType_TV; + static constexpr DeviceType WATCH = + PresenceDevice_DeviceType_WATCH; + static inline bool DeviceType_IsValid(int value) { + return PresenceDevice_DeviceType_IsValid(value); + } + static constexpr DeviceType DeviceType_MIN = + PresenceDevice_DeviceType_DeviceType_MIN; + static constexpr DeviceType DeviceType_MAX = + PresenceDevice_DeviceType_DeviceType_MAX; + static constexpr int DeviceType_ARRAYSIZE = + PresenceDevice_DeviceType_DeviceType_ARRAYSIZE; + template + static 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 PresenceDevice_DeviceType_Name(enum_t_value); + } + static inline bool DeviceType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + DeviceType* value) { + return PresenceDevice_DeviceType_Parse(name, value); + } + + // accessors ------------------------------------------------------- + + enum : int { + kDiscoveryMediumFieldNumber = 8, + kActionsFieldNumber = 9, + kIdentityTypeFieldNumber = 10, + kEndpointIdFieldNumber = 1, + kConnectivityInfoListFieldNumber = 3, + kDeviceNameFieldNumber = 5, + kDeviceImageUrlFieldNumber = 7, + kDeviceIdFieldNumber = 4, + kEndpointTypeFieldNumber = 2, + kDeviceTypeFieldNumber = 6, + }; + // repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; + int discovery_medium_size() const; + private: + int _internal_discovery_medium_size() const; + public: + void clear_discovery_medium(); + private: + ::location::nearby::connections::ConnectionRequestFrame_Medium _internal_discovery_medium(int index) const; + void _internal_add_discovery_medium(::location::nearby::connections::ConnectionRequestFrame_Medium value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_discovery_medium(); + public: + ::location::nearby::connections::ConnectionRequestFrame_Medium discovery_medium(int index) const; + void set_discovery_medium(int index, ::location::nearby::connections::ConnectionRequestFrame_Medium value); + void add_discovery_medium(::location::nearby::connections::ConnectionRequestFrame_Medium value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& discovery_medium() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_discovery_medium(); + + // repeated int32 actions = 9 [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(); + + // repeated int64 identity_type = 10 [packed = true]; + int identity_type_size() const; + private: + int _internal_identity_type_size() const; + public: + void clear_identity_type(); + private: + int64_t _internal_identity_type(int index) const; + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& + _internal_identity_type() const; + void _internal_add_identity_type(int64_t value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* + _internal_mutable_identity_type(); + public: + int64_t identity_type(int index) const; + void set_identity_type(int index, int64_t value); + void add_identity_type(int64_t value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& + identity_type() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* + mutable_identity_type(); + + // 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 bytes connectivity_info_list = 3; + bool has_connectivity_info_list() const; + private: + bool _internal_has_connectivity_info_list() const; + public: + void clear_connectivity_info_list(); + const std::string& connectivity_info_list() const; + template + void set_connectivity_info_list(ArgT0&& arg0, ArgT... args); + std::string* mutable_connectivity_info_list(); + PROTOBUF_NODISCARD std::string* release_connectivity_info_list(); + void set_allocated_connectivity_info_list(std::string* connectivity_info_list); + private: + const std::string& _internal_connectivity_info_list() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_connectivity_info_list(const std::string& value); + std::string* _internal_mutable_connectivity_info_list(); + public: + + // optional string device_name = 5; + 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 string device_image_url = 7; + 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 int64 device_id = 4; + bool has_device_id() const; + private: + bool _internal_has_device_id() const; + public: + void clear_device_id(); + int64_t device_id() const; + void set_device_id(int64_t value); + private: + int64_t _internal_device_id() const; + void _internal_set_device_id(int64_t value); + public: + + // optional .location.nearby.connections.EndpointType endpoint_type = 2; + bool has_endpoint_type() const; + private: + bool _internal_has_endpoint_type() const; + public: + void clear_endpoint_type(); + ::location::nearby::connections::EndpointType endpoint_type() const; + void set_endpoint_type(::location::nearby::connections::EndpointType value); + private: + ::location::nearby::connections::EndpointType _internal_endpoint_type() const; + void _internal_set_endpoint_type(::location::nearby::connections::EndpointType value); + public: + + // optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; + bool has_device_type() const; + private: + bool _internal_has_device_type() const; + public: + void clear_device_type(); + ::location::nearby::connections::PresenceDevice_DeviceType device_type() const; + void set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value); + private: + ::location::nearby::connections::PresenceDevice_DeviceType _internal_device_type() const; + void _internal_set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value); + public: + + // @@protoc_insertion_point(class_scope:location.nearby.connections.PresenceDevice) + 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 discovery_medium_; + mutable std::atomic _discovery_medium_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > actions_; + mutable std::atomic _actions_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > identity_type_; + mutable std::atomic _identity_type_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr connectivity_info_list_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_image_url_; + int64_t device_id_; + int endpoint_type_; + int device_type_; + friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto; +}; // =================================================================== @@ -6543,7 +7643,7 @@ inline void OfflineFrame::set_allocated_v1(::location::nearby::connections::V1Fr // optional .location.nearby.connections.V1Frame.FrameType type = 1; inline bool V1Frame::_internal_has_type() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; + bool value = (_has_bits_[0] & 0x00000200u) != 0; return value; } inline bool V1Frame::has_type() const { @@ -6551,7 +7651,7 @@ inline bool V1Frame::has_type() const { } inline void V1Frame::clear_type() { type_ = 0; - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000200u; } inline ::location::nearby::connections::V1Frame_FrameType V1Frame::_internal_type() const { return static_cast< ::location::nearby::connections::V1Frame_FrameType >(type_); @@ -6562,7 +7662,7 @@ inline ::location::nearby::connections::V1Frame_FrameType V1Frame::type() const } inline void V1Frame::_internal_set_type(::location::nearby::connections::V1Frame_FrameType value) { assert(::location::nearby::connections::V1Frame_FrameType_IsValid(value)); - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000200u; type_ = value; } inline void V1Frame::set_type(::location::nearby::connections::V1Frame_FrameType value) { @@ -7200,6 +8300,186 @@ inline void V1Frame::set_allocated_paired_key_encryption(::location::nearby::con // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.paired_key_encryption) } +// optional .location.nearby.connections.AuthenticationMessageFrame authentication_message = 9; +inline bool V1Frame::_internal_has_authentication_message() const { + bool value = (_has_bits_[0] & 0x00000080u) != 0; + PROTOBUF_ASSUME(!value || authentication_message_ != nullptr); + return value; +} +inline bool V1Frame::has_authentication_message() const { + return _internal_has_authentication_message(); +} +inline void V1Frame::clear_authentication_message() { + if (authentication_message_ != nullptr) authentication_message_->Clear(); + _has_bits_[0] &= ~0x00000080u; +} +inline const ::location::nearby::connections::AuthenticationMessageFrame& V1Frame::_internal_authentication_message() const { + const ::location::nearby::connections::AuthenticationMessageFrame* p = authentication_message_; + return p != nullptr ? *p : reinterpret_cast( + ::location::nearby::connections::_AuthenticationMessageFrame_default_instance_); +} +inline const ::location::nearby::connections::AuthenticationMessageFrame& V1Frame::authentication_message() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.authentication_message) + return _internal_authentication_message(); +} +inline void V1Frame::unsafe_arena_set_allocated_authentication_message( + ::location::nearby::connections::AuthenticationMessageFrame* authentication_message) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authentication_message_); + } + authentication_message_ = authentication_message; + if (authentication_message) { + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.authentication_message) +} +inline ::location::nearby::connections::AuthenticationMessageFrame* V1Frame::release_authentication_message() { + _has_bits_[0] &= ~0x00000080u; + ::location::nearby::connections::AuthenticationMessageFrame* temp = authentication_message_; + authentication_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::AuthenticationMessageFrame* V1Frame::unsafe_arena_release_authentication_message() { + // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.authentication_message) + _has_bits_[0] &= ~0x00000080u; + ::location::nearby::connections::AuthenticationMessageFrame* temp = authentication_message_; + authentication_message_ = nullptr; + return temp; +} +inline ::location::nearby::connections::AuthenticationMessageFrame* V1Frame::_internal_mutable_authentication_message() { + _has_bits_[0] |= 0x00000080u; + if (authentication_message_ == nullptr) { + auto* p = CreateMaybeMessage<::location::nearby::connections::AuthenticationMessageFrame>(GetArenaForAllocation()); + authentication_message_ = p; + } + return authentication_message_; +} +inline ::location::nearby::connections::AuthenticationMessageFrame* V1Frame::mutable_authentication_message() { + ::location::nearby::connections::AuthenticationMessageFrame* _msg = _internal_mutable_authentication_message(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.authentication_message) + return _msg; +} +inline void V1Frame::set_allocated_authentication_message(::location::nearby::connections::AuthenticationMessageFrame* authentication_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete authentication_message_; + } + if (authentication_message) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::AuthenticationMessageFrame>::GetOwningArena(authentication_message); + if (message_arena != submessage_arena) { + authentication_message = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, authentication_message, submessage_arena); + } + _has_bits_[0] |= 0x00000080u; + } else { + _has_bits_[0] &= ~0x00000080u; + } + authentication_message_ = authentication_message; + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.authentication_message) +} + +// optional .location.nearby.connections.AuthenticationResultFrame authentication_result = 10; +inline bool V1Frame::_internal_has_authentication_result() const { + bool value = (_has_bits_[0] & 0x00000100u) != 0; + PROTOBUF_ASSUME(!value || authentication_result_ != nullptr); + return value; +} +inline bool V1Frame::has_authentication_result() const { + return _internal_has_authentication_result(); +} +inline void V1Frame::clear_authentication_result() { + if (authentication_result_ != nullptr) authentication_result_->Clear(); + _has_bits_[0] &= ~0x00000100u; +} +inline const ::location::nearby::connections::AuthenticationResultFrame& V1Frame::_internal_authentication_result() const { + const ::location::nearby::connections::AuthenticationResultFrame* p = authentication_result_; + return p != nullptr ? *p : reinterpret_cast( + ::location::nearby::connections::_AuthenticationResultFrame_default_instance_); +} +inline const ::location::nearby::connections::AuthenticationResultFrame& V1Frame::authentication_result() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.V1Frame.authentication_result) + return _internal_authentication_result(); +} +inline void V1Frame::unsafe_arena_set_allocated_authentication_result( + ::location::nearby::connections::AuthenticationResultFrame* authentication_result) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(authentication_result_); + } + authentication_result_ = authentication_result; + if (authentication_result) { + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.V1Frame.authentication_result) +} +inline ::location::nearby::connections::AuthenticationResultFrame* V1Frame::release_authentication_result() { + _has_bits_[0] &= ~0x00000100u; + ::location::nearby::connections::AuthenticationResultFrame* temp = authentication_result_; + authentication_result_ = 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::AuthenticationResultFrame* V1Frame::unsafe_arena_release_authentication_result() { + // @@protoc_insertion_point(field_release:location.nearby.connections.V1Frame.authentication_result) + _has_bits_[0] &= ~0x00000100u; + ::location::nearby::connections::AuthenticationResultFrame* temp = authentication_result_; + authentication_result_ = nullptr; + return temp; +} +inline ::location::nearby::connections::AuthenticationResultFrame* V1Frame::_internal_mutable_authentication_result() { + _has_bits_[0] |= 0x00000100u; + if (authentication_result_ == nullptr) { + auto* p = CreateMaybeMessage<::location::nearby::connections::AuthenticationResultFrame>(GetArenaForAllocation()); + authentication_result_ = p; + } + return authentication_result_; +} +inline ::location::nearby::connections::AuthenticationResultFrame* V1Frame::mutable_authentication_result() { + ::location::nearby::connections::AuthenticationResultFrame* _msg = _internal_mutable_authentication_result(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.V1Frame.authentication_result) + return _msg; +} +inline void V1Frame::set_allocated_authentication_result(::location::nearby::connections::AuthenticationResultFrame* authentication_result) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete authentication_result_; + } + if (authentication_result) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::AuthenticationResultFrame>::GetOwningArena(authentication_result); + if (message_arena != submessage_arena) { + authentication_result = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, authentication_result, submessage_arena); + } + _has_bits_[0] |= 0x00000100u; + } else { + _has_bits_[0] &= ~0x00000100u; + } + authentication_result_ = authentication_result; + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.V1Frame.authentication_result) +} + // ------------------------------------------------------------------- // ConnectionRequestFrame @@ -7699,7 +8979,7 @@ inline void ConnectionRequestFrame::set_keep_alive_timeout_millis(int32_t value) // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.keep_alive_timeout_millis) } -// optional int32 device_type = 10 [default = 0]; +// optional int32 device_type = 10 [default = 0, deprecated = true]; inline bool ConnectionRequestFrame::_internal_has_device_type() const { bool value = (_has_bits_[0] & 0x00000200u) != 0; return value; @@ -7727,7 +9007,7 @@ inline void ConnectionRequestFrame::set_device_type(int32_t value) { // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.device_type) } -// optional bytes device_info = 11; +// optional bytes device_info = 11 [deprecated = true]; inline bool ConnectionRequestFrame::_internal_has_device_info() const { bool value = (_has_bits_[0] & 0x00000010u) != 0; return value; @@ -7796,6 +9076,163 @@ inline void ConnectionRequestFrame::set_allocated_device_info(std::string* devic // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionRequestFrame.device_info) } +// .location.nearby.connections.ConnectionsDevice connections_device = 12; +inline bool ConnectionRequestFrame::_internal_has_connections_device() const { + return Device_case() == kConnectionsDevice; +} +inline bool ConnectionRequestFrame::has_connections_device() const { + return _internal_has_connections_device(); +} +inline void ConnectionRequestFrame::set_has_connections_device() { + _oneof_case_[0] = kConnectionsDevice; +} +inline void ConnectionRequestFrame::clear_connections_device() { + if (_internal_has_connections_device()) { + if (GetArenaForAllocation() == nullptr) { + delete Device_.connections_device_; + } + clear_has_Device(); + } +} +inline ::location::nearby::connections::ConnectionsDevice* ConnectionRequestFrame::release_connections_device() { + // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.connections_device) + if (_internal_has_connections_device()) { + clear_has_Device(); + ::location::nearby::connections::ConnectionsDevice* temp = Device_.connections_device_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + Device_.connections_device_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::location::nearby::connections::ConnectionsDevice& ConnectionRequestFrame::_internal_connections_device() const { + return _internal_has_connections_device() + ? *Device_.connections_device_ + : reinterpret_cast< ::location::nearby::connections::ConnectionsDevice&>(::location::nearby::connections::_ConnectionsDevice_default_instance_); +} +inline const ::location::nearby::connections::ConnectionsDevice& ConnectionRequestFrame::connections_device() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.connections_device) + return _internal_connections_device(); +} +inline ::location::nearby::connections::ConnectionsDevice* ConnectionRequestFrame::unsafe_arena_release_connections_device() { + // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.connections.ConnectionRequestFrame.connections_device) + if (_internal_has_connections_device()) { + clear_has_Device(); + ::location::nearby::connections::ConnectionsDevice* temp = Device_.connections_device_; + Device_.connections_device_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ConnectionRequestFrame::unsafe_arena_set_allocated_connections_device(::location::nearby::connections::ConnectionsDevice* connections_device) { + clear_Device(); + if (connections_device) { + set_has_connections_device(); + Device_.connections_device_ = connections_device; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionRequestFrame.connections_device) +} +inline ::location::nearby::connections::ConnectionsDevice* ConnectionRequestFrame::_internal_mutable_connections_device() { + if (!_internal_has_connections_device()) { + clear_Device(); + set_has_connections_device(); + Device_.connections_device_ = CreateMaybeMessage< ::location::nearby::connections::ConnectionsDevice >(GetArenaForAllocation()); + } + return Device_.connections_device_; +} +inline ::location::nearby::connections::ConnectionsDevice* ConnectionRequestFrame::mutable_connections_device() { + ::location::nearby::connections::ConnectionsDevice* _msg = _internal_mutable_connections_device(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.connections_device) + return _msg; +} + +// .location.nearby.connections.PresenceDevice presence_device = 13; +inline bool ConnectionRequestFrame::_internal_has_presence_device() const { + return Device_case() == kPresenceDevice; +} +inline bool ConnectionRequestFrame::has_presence_device() const { + return _internal_has_presence_device(); +} +inline void ConnectionRequestFrame::set_has_presence_device() { + _oneof_case_[0] = kPresenceDevice; +} +inline void ConnectionRequestFrame::clear_presence_device() { + if (_internal_has_presence_device()) { + if (GetArenaForAllocation() == nullptr) { + delete Device_.presence_device_; + } + clear_has_Device(); + } +} +inline ::location::nearby::connections::PresenceDevice* ConnectionRequestFrame::release_presence_device() { + // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionRequestFrame.presence_device) + if (_internal_has_presence_device()) { + clear_has_Device(); + ::location::nearby::connections::PresenceDevice* temp = Device_.presence_device_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + Device_.presence_device_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::location::nearby::connections::PresenceDevice& ConnectionRequestFrame::_internal_presence_device() const { + return _internal_has_presence_device() + ? *Device_.presence_device_ + : reinterpret_cast< ::location::nearby::connections::PresenceDevice&>(::location::nearby::connections::_PresenceDevice_default_instance_); +} +inline const ::location::nearby::connections::PresenceDevice& ConnectionRequestFrame::presence_device() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.presence_device) + return _internal_presence_device(); +} +inline ::location::nearby::connections::PresenceDevice* ConnectionRequestFrame::unsafe_arena_release_presence_device() { + // @@protoc_insertion_point(field_unsafe_arena_release:location.nearby.connections.ConnectionRequestFrame.presence_device) + if (_internal_has_presence_device()) { + clear_has_Device(); + ::location::nearby::connections::PresenceDevice* temp = Device_.presence_device_; + Device_.presence_device_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ConnectionRequestFrame::unsafe_arena_set_allocated_presence_device(::location::nearby::connections::PresenceDevice* presence_device) { + clear_Device(); + if (presence_device) { + set_has_presence_device(); + Device_.presence_device_ = presence_device; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.ConnectionRequestFrame.presence_device) +} +inline ::location::nearby::connections::PresenceDevice* ConnectionRequestFrame::_internal_mutable_presence_device() { + if (!_internal_has_presence_device()) { + clear_Device(); + set_has_presence_device(); + Device_.presence_device_ = CreateMaybeMessage< ::location::nearby::connections::PresenceDevice >(GetArenaForAllocation()); + } + return Device_.presence_device_; +} +inline ::location::nearby::connections::PresenceDevice* ConnectionRequestFrame::mutable_presence_device() { + ::location::nearby::connections::PresenceDevice* _msg = _internal_mutable_presence_device(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionRequestFrame.presence_device) + return _msg; +} + +inline bool ConnectionRequestFrame::has_Device() const { + return Device_case() != DEVICE_NOT_SET; +} +inline void ConnectionRequestFrame::clear_has_Device() { + _oneof_case_[0] = DEVICE_NOT_SET; +} +inline ConnectionRequestFrame::DeviceCase ConnectionRequestFrame::Device_case() const { + return ConnectionRequestFrame::DeviceCase(_oneof_case_[0]); +} // ------------------------------------------------------------------- // ConnectionResponseFrame @@ -8016,6 +9453,62 @@ inline void ConnectionResponseFrame::set_allocated_os_info(::location::nearby::c // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionResponseFrame.os_info) } +// optional int32 multiplex_socket_bitmask = 5; +inline bool ConnectionResponseFrame::_internal_has_multiplex_socket_bitmask() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool ConnectionResponseFrame::has_multiplex_socket_bitmask() const { + return _internal_has_multiplex_socket_bitmask(); +} +inline void ConnectionResponseFrame::clear_multiplex_socket_bitmask() { + multiplex_socket_bitmask_ = 0; + _has_bits_[0] &= ~0x00000010u; +} +inline int32_t ConnectionResponseFrame::_internal_multiplex_socket_bitmask() const { + return multiplex_socket_bitmask_; +} +inline int32_t ConnectionResponseFrame::multiplex_socket_bitmask() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.multiplex_socket_bitmask) + return _internal_multiplex_socket_bitmask(); +} +inline void ConnectionResponseFrame::_internal_set_multiplex_socket_bitmask(int32_t value) { + _has_bits_[0] |= 0x00000010u; + multiplex_socket_bitmask_ = value; +} +inline void ConnectionResponseFrame::set_multiplex_socket_bitmask(int32_t value) { + _internal_set_multiplex_socket_bitmask(value); + // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.multiplex_socket_bitmask) +} + +// optional int32 nearby_connections_version = 6; +inline bool ConnectionResponseFrame::_internal_has_nearby_connections_version() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool ConnectionResponseFrame::has_nearby_connections_version() const { + return _internal_has_nearby_connections_version(); +} +inline void ConnectionResponseFrame::clear_nearby_connections_version() { + nearby_connections_version_ = 0; + _has_bits_[0] &= ~0x00000020u; +} +inline int32_t ConnectionResponseFrame::_internal_nearby_connections_version() const { + return nearby_connections_version_; +} +inline int32_t ConnectionResponseFrame::nearby_connections_version() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionResponseFrame.nearby_connections_version) + return _internal_nearby_connections_version(); +} +inline void ConnectionResponseFrame::_internal_set_nearby_connections_version(int32_t value) { + _has_bits_[0] |= 0x00000020u; + nearby_connections_version_ = value; +} +inline void ConnectionResponseFrame::set_nearby_connections_version(int32_t value) { + _internal_set_nearby_connections_version(value); + // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionResponseFrame.nearby_connections_version) +} + // ------------------------------------------------------------------- // PayloadTransferFrame_PayloadHeader @@ -9620,7 +11113,7 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia // optional int32 port = 3; inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_port() const { - bool value = (_has_bits_[0] & 0x00000008u) != 0; + bool value = (_has_bits_[0] & 0x00000010u) != 0; return value; } inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_port() const { @@ -9628,7 +11121,7 @@ inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_port() { port_ = 0; - _has_bits_[0] &= ~0x00000008u; + _has_bits_[0] &= ~0x00000010u; } inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_port() const { return port_; @@ -9638,7 +11131,7 @@ inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCreden return _internal_port(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_port(int32_t value) { - _has_bits_[0] |= 0x00000008u; + _has_bits_[0] |= 0x00000010u; port_ = value; } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_port(int32_t value) { @@ -9648,7 +11141,7 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia // optional int32 frequency = 4; inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_frequency() const { - bool value = (_has_bits_[0] & 0x00000010u) != 0; + bool value = (_has_bits_[0] & 0x00000020u) != 0; return value; } inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_frequency() const { @@ -9656,7 +11149,7 @@ inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_frequency() { frequency_ = 0; - _has_bits_[0] &= ~0x00000010u; + _has_bits_[0] &= ~0x00000020u; } inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_frequency() const { return frequency_; @@ -9666,7 +11159,7 @@ inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCreden return _internal_frequency(); } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_frequency(int32_t value) { - _has_bits_[0] |= 0x00000010u; + _has_bits_[0] |= 0x00000020u; frequency_ = value; } inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_frequency(int32_t value) { @@ -9734,6 +11227,75 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway) } +// optional bytes ip_v6_address = 6; +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_ip_v6_address() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_ip_v6_address() const { + return _internal_has_ip_v6_address(); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_ip_v6_address() { + ip_v6_address_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ip_v6_address() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ip_v6_address) + return _internal_ip_v6_address(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_ip_v6_address(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + ip_v6_address_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ip_v6_address) +} +inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_ip_v6_address() { + std::string* _s = _internal_mutable_ip_v6_address(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ip_v6_address) + return _s; +} +inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_ip_v6_address() const { + return ip_v6_address_.Get(); +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_ip_v6_address(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + ip_v6_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_ip_v6_address() { + _has_bits_[0] |= 0x00000008u; + return ip_v6_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_ip_v6_address() { + // @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.ip_v6_address) + if (!_internal_has_ip_v6_address()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + auto* p = ip_v6_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (ip_v6_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + ip_v6_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_ip_v6_address(std::string* ip_v6_address) { + if (ip_v6_address != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + ip_v6_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ip_v6_address, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (ip_v6_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + ip_v6_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.WifiDirectCredentials.ip_v6_address) +} + // ------------------------------------------------------------------- // BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials @@ -10970,6 +12532,62 @@ inline void KeepAliveFrame::set_ack(bool value) { // DisconnectionFrame +// optional bool request_safe_to_disconnect = 1; +inline bool DisconnectionFrame::_internal_has_request_safe_to_disconnect() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool DisconnectionFrame::has_request_safe_to_disconnect() const { + return _internal_has_request_safe_to_disconnect(); +} +inline void DisconnectionFrame::clear_request_safe_to_disconnect() { + request_safe_to_disconnect_ = false; + _has_bits_[0] &= ~0x00000001u; +} +inline bool DisconnectionFrame::_internal_request_safe_to_disconnect() const { + return request_safe_to_disconnect_; +} +inline bool DisconnectionFrame::request_safe_to_disconnect() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.DisconnectionFrame.request_safe_to_disconnect) + return _internal_request_safe_to_disconnect(); +} +inline void DisconnectionFrame::_internal_set_request_safe_to_disconnect(bool value) { + _has_bits_[0] |= 0x00000001u; + request_safe_to_disconnect_ = value; +} +inline void DisconnectionFrame::set_request_safe_to_disconnect(bool value) { + _internal_set_request_safe_to_disconnect(value); + // @@protoc_insertion_point(field_set:location.nearby.connections.DisconnectionFrame.request_safe_to_disconnect) +} + +// optional bool ack_safe_to_disconnect = 2; +inline bool DisconnectionFrame::_internal_has_ack_safe_to_disconnect() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool DisconnectionFrame::has_ack_safe_to_disconnect() const { + return _internal_has_ack_safe_to_disconnect(); +} +inline void DisconnectionFrame::clear_ack_safe_to_disconnect() { + ack_safe_to_disconnect_ = false; + _has_bits_[0] &= ~0x00000002u; +} +inline bool DisconnectionFrame::_internal_ack_safe_to_disconnect() const { + return ack_safe_to_disconnect_; +} +inline bool DisconnectionFrame::ack_safe_to_disconnect() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.DisconnectionFrame.ack_safe_to_disconnect) + return _internal_ack_safe_to_disconnect(); +} +inline void DisconnectionFrame::_internal_set_ack_safe_to_disconnect(bool value) { + _has_bits_[0] |= 0x00000002u; + ack_safe_to_disconnect_ = value; +} +inline void DisconnectionFrame::set_ack_safe_to_disconnect(bool value) { + _internal_set_ack_safe_to_disconnect(value); + // @@protoc_insertion_point(field_set:location.nearby.connections.DisconnectionFrame.ack_safe_to_disconnect) +} + // ------------------------------------------------------------------- // PairedKeyEncryptionFrame @@ -11045,6 +12663,111 @@ inline void PairedKeyEncryptionFrame::set_allocated_signed_data(std::string* sig // ------------------------------------------------------------------- +// AuthenticationMessageFrame + +// optional bytes auth_message = 1; +inline bool AuthenticationMessageFrame::_internal_has_auth_message() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool AuthenticationMessageFrame::has_auth_message() const { + return _internal_has_auth_message(); +} +inline void AuthenticationMessageFrame::clear_auth_message() { + auth_message_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& AuthenticationMessageFrame::auth_message() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.AuthenticationMessageFrame.auth_message) + return _internal_auth_message(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AuthenticationMessageFrame::set_auth_message(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000001u; + auth_message_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:location.nearby.connections.AuthenticationMessageFrame.auth_message) +} +inline std::string* AuthenticationMessageFrame::mutable_auth_message() { + std::string* _s = _internal_mutable_auth_message(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.AuthenticationMessageFrame.auth_message) + return _s; +} +inline const std::string& AuthenticationMessageFrame::_internal_auth_message() const { + return auth_message_.Get(); +} +inline void AuthenticationMessageFrame::_internal_set_auth_message(const std::string& value) { + _has_bits_[0] |= 0x00000001u; + auth_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* AuthenticationMessageFrame::_internal_mutable_auth_message() { + _has_bits_[0] |= 0x00000001u; + return auth_message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* AuthenticationMessageFrame::release_auth_message() { + // @@protoc_insertion_point(field_release:location.nearby.connections.AuthenticationMessageFrame.auth_message) + if (!_internal_has_auth_message()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000001u; + auto* p = auth_message_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (auth_message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + auth_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void AuthenticationMessageFrame::set_allocated_auth_message(std::string* auth_message) { + if (auth_message != nullptr) { + _has_bits_[0] |= 0x00000001u; + } else { + _has_bits_[0] &= ~0x00000001u; + } + auth_message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), auth_message, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (auth_message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + auth_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.AuthenticationMessageFrame.auth_message) +} + +// ------------------------------------------------------------------- + +// AuthenticationResultFrame + +// optional int32 result = 1; +inline bool AuthenticationResultFrame::_internal_has_result() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool AuthenticationResultFrame::has_result() const { + return _internal_has_result(); +} +inline void AuthenticationResultFrame::clear_result() { + result_ = 0; + _has_bits_[0] &= ~0x00000001u; +} +inline int32_t AuthenticationResultFrame::_internal_result() const { + return result_; +} +inline int32_t AuthenticationResultFrame::result() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.AuthenticationResultFrame.result) + return _internal_result(); +} +inline void AuthenticationResultFrame::_internal_set_result(int32_t value) { + _has_bits_[0] |= 0x00000001u; + result_ = value; +} +inline void AuthenticationResultFrame::set_result(int32_t value) { + _internal_set_result(value); + // @@protoc_insertion_point(field_set:location.nearby.connections.AuthenticationResultFrame.result) +} + +// ------------------------------------------------------------------- + // MediumMetadata // optional bool supports_5_ghz = 1; @@ -12141,6 +13864,751 @@ inline void OsInfo::set_type(::location::nearby::connections::OsInfo_OsType valu // @@protoc_insertion_point(field_set:location.nearby.connections.OsInfo.type) } +// ------------------------------------------------------------------- + +// ConnectionsDevice + +// optional string endpoint_id = 1; +inline bool ConnectionsDevice::_internal_has_endpoint_id() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool ConnectionsDevice::has_endpoint_id() const { + return _internal_has_endpoint_id(); +} +inline void ConnectionsDevice::clear_endpoint_id() { + endpoint_id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& ConnectionsDevice::endpoint_id() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionsDevice.endpoint_id) + return _internal_endpoint_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ConnectionsDevice::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.ConnectionsDevice.endpoint_id) +} +inline std::string* ConnectionsDevice::mutable_endpoint_id() { + std::string* _s = _internal_mutable_endpoint_id(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionsDevice.endpoint_id) + return _s; +} +inline const std::string& ConnectionsDevice::_internal_endpoint_id() const { + return endpoint_id_.Get(); +} +inline void ConnectionsDevice::_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* ConnectionsDevice::_internal_mutable_endpoint_id() { + _has_bits_[0] |= 0x00000001u; + return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ConnectionsDevice::release_endpoint_id() { + // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionsDevice.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 ConnectionsDevice::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.ConnectionsDevice.endpoint_id) +} + +// optional .location.nearby.connections.EndpointType endpoint_type = 2; +inline bool ConnectionsDevice::_internal_has_endpoint_type() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool ConnectionsDevice::has_endpoint_type() const { + return _internal_has_endpoint_type(); +} +inline void ConnectionsDevice::clear_endpoint_type() { + endpoint_type_ = 0; + _has_bits_[0] &= ~0x00000008u; +} +inline ::location::nearby::connections::EndpointType ConnectionsDevice::_internal_endpoint_type() const { + return static_cast< ::location::nearby::connections::EndpointType >(endpoint_type_); +} +inline ::location::nearby::connections::EndpointType ConnectionsDevice::endpoint_type() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionsDevice.endpoint_type) + return _internal_endpoint_type(); +} +inline void ConnectionsDevice::_internal_set_endpoint_type(::location::nearby::connections::EndpointType value) { + assert(::location::nearby::connections::EndpointType_IsValid(value)); + _has_bits_[0] |= 0x00000008u; + endpoint_type_ = value; +} +inline void ConnectionsDevice::set_endpoint_type(::location::nearby::connections::EndpointType value) { + _internal_set_endpoint_type(value); + // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionsDevice.endpoint_type) +} + +// optional bytes connectivity_info_list = 3; +inline bool ConnectionsDevice::_internal_has_connectivity_info_list() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool ConnectionsDevice::has_connectivity_info_list() const { + return _internal_has_connectivity_info_list(); +} +inline void ConnectionsDevice::clear_connectivity_info_list() { + connectivity_info_list_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& ConnectionsDevice::connectivity_info_list() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionsDevice.connectivity_info_list) + return _internal_connectivity_info_list(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ConnectionsDevice::set_connectivity_info_list(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + connectivity_info_list_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionsDevice.connectivity_info_list) +} +inline std::string* ConnectionsDevice::mutable_connectivity_info_list() { + std::string* _s = _internal_mutable_connectivity_info_list(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionsDevice.connectivity_info_list) + return _s; +} +inline const std::string& ConnectionsDevice::_internal_connectivity_info_list() const { + return connectivity_info_list_.Get(); +} +inline void ConnectionsDevice::_internal_set_connectivity_info_list(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + connectivity_info_list_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ConnectionsDevice::_internal_mutable_connectivity_info_list() { + _has_bits_[0] |= 0x00000002u; + return connectivity_info_list_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ConnectionsDevice::release_connectivity_info_list() { + // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionsDevice.connectivity_info_list) + if (!_internal_has_connectivity_info_list()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + auto* p = connectivity_info_list_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (connectivity_info_list_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void ConnectionsDevice::set_allocated_connectivity_info_list(std::string* connectivity_info_list) { + if (connectivity_info_list != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + connectivity_info_list_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), connectivity_info_list, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (connectivity_info_list_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.ConnectionsDevice.connectivity_info_list) +} + +// optional bytes endpoint_info = 4; +inline bool ConnectionsDevice::_internal_has_endpoint_info() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool ConnectionsDevice::has_endpoint_info() const { + return _internal_has_endpoint_info(); +} +inline void ConnectionsDevice::clear_endpoint_info() { + endpoint_info_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& ConnectionsDevice::endpoint_info() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionsDevice.endpoint_info) + return _internal_endpoint_info(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ConnectionsDevice::set_endpoint_info(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + endpoint_info_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionsDevice.endpoint_info) +} +inline std::string* ConnectionsDevice::mutable_endpoint_info() { + std::string* _s = _internal_mutable_endpoint_info(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.ConnectionsDevice.endpoint_info) + return _s; +} +inline const std::string& ConnectionsDevice::_internal_endpoint_info() const { + return endpoint_info_.Get(); +} +inline void ConnectionsDevice::_internal_set_endpoint_info(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + endpoint_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* ConnectionsDevice::_internal_mutable_endpoint_info() { + _has_bits_[0] |= 0x00000004u; + return endpoint_info_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* ConnectionsDevice::release_endpoint_info() { + // @@protoc_insertion_point(field_release:location.nearby.connections.ConnectionsDevice.endpoint_info) + if (!_internal_has_endpoint_info()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + 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 ConnectionsDevice::set_allocated_endpoint_info(std::string* endpoint_info) { + if (endpoint_info != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + 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.ConnectionsDevice.endpoint_info) +} + +// ------------------------------------------------------------------- + +// PresenceDevice + +// optional string endpoint_id = 1; +inline bool PresenceDevice::_internal_has_endpoint_id() const { + bool value = (_has_bits_[0] & 0x00000001u) != 0; + return value; +} +inline bool PresenceDevice::has_endpoint_id() const { + return _internal_has_endpoint_id(); +} +inline void PresenceDevice::clear_endpoint_id() { + endpoint_id_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000001u; +} +inline const std::string& PresenceDevice::endpoint_id() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.endpoint_id) + return _internal_endpoint_id(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PresenceDevice::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.PresenceDevice.endpoint_id) +} +inline std::string* PresenceDevice::mutable_endpoint_id() { + std::string* _s = _internal_mutable_endpoint_id(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.PresenceDevice.endpoint_id) + return _s; +} +inline const std::string& PresenceDevice::_internal_endpoint_id() const { + return endpoint_id_.Get(); +} +inline void PresenceDevice::_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* PresenceDevice::_internal_mutable_endpoint_id() { + _has_bits_[0] |= 0x00000001u; + return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* PresenceDevice::release_endpoint_id() { + // @@protoc_insertion_point(field_release:location.nearby.connections.PresenceDevice.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 PresenceDevice::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.PresenceDevice.endpoint_id) +} + +// optional .location.nearby.connections.EndpointType endpoint_type = 2; +inline bool PresenceDevice::_internal_has_endpoint_type() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool PresenceDevice::has_endpoint_type() const { + return _internal_has_endpoint_type(); +} +inline void PresenceDevice::clear_endpoint_type() { + endpoint_type_ = 0; + _has_bits_[0] &= ~0x00000020u; +} +inline ::location::nearby::connections::EndpointType PresenceDevice::_internal_endpoint_type() const { + return static_cast< ::location::nearby::connections::EndpointType >(endpoint_type_); +} +inline ::location::nearby::connections::EndpointType PresenceDevice::endpoint_type() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.endpoint_type) + return _internal_endpoint_type(); +} +inline void PresenceDevice::_internal_set_endpoint_type(::location::nearby::connections::EndpointType value) { + assert(::location::nearby::connections::EndpointType_IsValid(value)); + _has_bits_[0] |= 0x00000020u; + endpoint_type_ = value; +} +inline void PresenceDevice::set_endpoint_type(::location::nearby::connections::EndpointType value) { + _internal_set_endpoint_type(value); + // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.endpoint_type) +} + +// optional bytes connectivity_info_list = 3; +inline bool PresenceDevice::_internal_has_connectivity_info_list() const { + bool value = (_has_bits_[0] & 0x00000002u) != 0; + return value; +} +inline bool PresenceDevice::has_connectivity_info_list() const { + return _internal_has_connectivity_info_list(); +} +inline void PresenceDevice::clear_connectivity_info_list() { + connectivity_info_list_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000002u; +} +inline const std::string& PresenceDevice::connectivity_info_list() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.connectivity_info_list) + return _internal_connectivity_info_list(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PresenceDevice::set_connectivity_info_list(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000002u; + connectivity_info_list_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.connectivity_info_list) +} +inline std::string* PresenceDevice::mutable_connectivity_info_list() { + std::string* _s = _internal_mutable_connectivity_info_list(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.PresenceDevice.connectivity_info_list) + return _s; +} +inline const std::string& PresenceDevice::_internal_connectivity_info_list() const { + return connectivity_info_list_.Get(); +} +inline void PresenceDevice::_internal_set_connectivity_info_list(const std::string& value) { + _has_bits_[0] |= 0x00000002u; + connectivity_info_list_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* PresenceDevice::_internal_mutable_connectivity_info_list() { + _has_bits_[0] |= 0x00000002u; + return connectivity_info_list_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* PresenceDevice::release_connectivity_info_list() { + // @@protoc_insertion_point(field_release:location.nearby.connections.PresenceDevice.connectivity_info_list) + if (!_internal_has_connectivity_info_list()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000002u; + auto* p = connectivity_info_list_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (connectivity_info_list_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + return p; +} +inline void PresenceDevice::set_allocated_connectivity_info_list(std::string* connectivity_info_list) { + if (connectivity_info_list != nullptr) { + _has_bits_[0] |= 0x00000002u; + } else { + _has_bits_[0] &= ~0x00000002u; + } + connectivity_info_list_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), connectivity_info_list, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (connectivity_info_list_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + connectivity_info_list_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:location.nearby.connections.PresenceDevice.connectivity_info_list) +} + +// optional int64 device_id = 4; +inline bool PresenceDevice::_internal_has_device_id() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool PresenceDevice::has_device_id() const { + return _internal_has_device_id(); +} +inline void PresenceDevice::clear_device_id() { + device_id_ = int64_t{0}; + _has_bits_[0] &= ~0x00000010u; +} +inline int64_t PresenceDevice::_internal_device_id() const { + return device_id_; +} +inline int64_t PresenceDevice::device_id() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.device_id) + return _internal_device_id(); +} +inline void PresenceDevice::_internal_set_device_id(int64_t value) { + _has_bits_[0] |= 0x00000010u; + device_id_ = value; +} +inline void PresenceDevice::set_device_id(int64_t value) { + _internal_set_device_id(value); + // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.device_id) +} + +// optional string device_name = 5; +inline bool PresenceDevice::_internal_has_device_name() const { + bool value = (_has_bits_[0] & 0x00000004u) != 0; + return value; +} +inline bool PresenceDevice::has_device_name() const { + return _internal_has_device_name(); +} +inline void PresenceDevice::clear_device_name() { + device_name_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000004u; +} +inline const std::string& PresenceDevice::device_name() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.device_name) + return _internal_device_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PresenceDevice::set_device_name(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000004u; + device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.device_name) +} +inline std::string* PresenceDevice::mutable_device_name() { + std::string* _s = _internal_mutable_device_name(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.PresenceDevice.device_name) + return _s; +} +inline const std::string& PresenceDevice::_internal_device_name() const { + return device_name_.Get(); +} +inline void PresenceDevice::_internal_set_device_name(const std::string& value) { + _has_bits_[0] |= 0x00000004u; + device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* PresenceDevice::_internal_mutable_device_name() { + _has_bits_[0] |= 0x00000004u; + return device_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* PresenceDevice::release_device_name() { + // @@protoc_insertion_point(field_release:location.nearby.connections.PresenceDevice.device_name) + if (!_internal_has_device_name()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000004u; + 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 PresenceDevice::set_allocated_device_name(std::string* device_name) { + if (device_name != nullptr) { + _has_bits_[0] |= 0x00000004u; + } else { + _has_bits_[0] &= ~0x00000004u; + } + 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:location.nearby.connections.PresenceDevice.device_name) +} + +// optional .location.nearby.connections.PresenceDevice.DeviceType device_type = 6; +inline bool PresenceDevice::_internal_has_device_type() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool PresenceDevice::has_device_type() const { + return _internal_has_device_type(); +} +inline void PresenceDevice::clear_device_type() { + device_type_ = 0; + _has_bits_[0] &= ~0x00000040u; +} +inline ::location::nearby::connections::PresenceDevice_DeviceType PresenceDevice::_internal_device_type() const { + return static_cast< ::location::nearby::connections::PresenceDevice_DeviceType >(device_type_); +} +inline ::location::nearby::connections::PresenceDevice_DeviceType PresenceDevice::device_type() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.device_type) + return _internal_device_type(); +} +inline void PresenceDevice::_internal_set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value) { + assert(::location::nearby::connections::PresenceDevice_DeviceType_IsValid(value)); + _has_bits_[0] |= 0x00000040u; + device_type_ = value; +} +inline void PresenceDevice::set_device_type(::location::nearby::connections::PresenceDevice_DeviceType value) { + _internal_set_device_type(value); + // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.device_type) +} + +// optional string device_image_url = 7; +inline bool PresenceDevice::_internal_has_device_image_url() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool PresenceDevice::has_device_image_url() const { + return _internal_has_device_image_url(); +} +inline void PresenceDevice::clear_device_image_url() { + device_image_url_.ClearToEmpty(); + _has_bits_[0] &= ~0x00000008u; +} +inline const std::string& PresenceDevice::device_image_url() const { + // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.device_image_url) + return _internal_device_image_url(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void PresenceDevice::set_device_image_url(ArgT0&& arg0, ArgT... args) { + _has_bits_[0] |= 0x00000008u; + device_image_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.device_image_url) +} +inline std::string* PresenceDevice::mutable_device_image_url() { + std::string* _s = _internal_mutable_device_image_url(); + // @@protoc_insertion_point(field_mutable:location.nearby.connections.PresenceDevice.device_image_url) + return _s; +} +inline const std::string& PresenceDevice::_internal_device_image_url() const { + return device_image_url_.Get(); +} +inline void PresenceDevice::_internal_set_device_image_url(const std::string& value) { + _has_bits_[0] |= 0x00000008u; + device_image_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* PresenceDevice::_internal_mutable_device_image_url() { + _has_bits_[0] |= 0x00000008u; + return device_image_url_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* PresenceDevice::release_device_image_url() { + // @@protoc_insertion_point(field_release:location.nearby.connections.PresenceDevice.device_image_url) + if (!_internal_has_device_image_url()) { + return nullptr; + } + _has_bits_[0] &= ~0x00000008u; + 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 PresenceDevice::set_allocated_device_image_url(std::string* device_image_url) { + if (device_image_url != nullptr) { + _has_bits_[0] |= 0x00000008u; + } else { + _has_bits_[0] &= ~0x00000008u; + } + 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:location.nearby.connections.PresenceDevice.device_image_url) +} + +// repeated .location.nearby.connections.ConnectionRequestFrame.Medium discovery_medium = 8 [packed = true]; +inline int PresenceDevice::_internal_discovery_medium_size() const { + return discovery_medium_.size(); +} +inline int PresenceDevice::discovery_medium_size() const { + return _internal_discovery_medium_size(); +} +inline void PresenceDevice::clear_discovery_medium() { + discovery_medium_.Clear(); +} +inline ::location::nearby::connections::ConnectionRequestFrame_Medium PresenceDevice::_internal_discovery_medium(int index) const { + return static_cast< ::location::nearby::connections::ConnectionRequestFrame_Medium >(discovery_medium_.Get(index)); +} +inline ::location::nearby::connections::ConnectionRequestFrame_Medium PresenceDevice::discovery_medium(int index) const { + // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.discovery_medium) + return _internal_discovery_medium(index); +} +inline void PresenceDevice::set_discovery_medium(int index, ::location::nearby::connections::ConnectionRequestFrame_Medium value) { + assert(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(value)); + discovery_medium_.Set(index, value); + // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.discovery_medium) +} +inline void PresenceDevice::_internal_add_discovery_medium(::location::nearby::connections::ConnectionRequestFrame_Medium value) { + assert(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(value)); + discovery_medium_.Add(value); +} +inline void PresenceDevice::add_discovery_medium(::location::nearby::connections::ConnectionRequestFrame_Medium value) { + _internal_add_discovery_medium(value); + // @@protoc_insertion_point(field_add:location.nearby.connections.PresenceDevice.discovery_medium) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +PresenceDevice::discovery_medium() const { + // @@protoc_insertion_point(field_list:location.nearby.connections.PresenceDevice.discovery_medium) + return discovery_medium_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +PresenceDevice::_internal_mutable_discovery_medium() { + return &discovery_medium_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +PresenceDevice::mutable_discovery_medium() { + // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.PresenceDevice.discovery_medium) + return _internal_mutable_discovery_medium(); +} + +// repeated int32 actions = 9 [packed = true]; +inline int PresenceDevice::_internal_actions_size() const { + return actions_.size(); +} +inline int PresenceDevice::actions_size() const { + return _internal_actions_size(); +} +inline void PresenceDevice::clear_actions() { + actions_.Clear(); +} +inline int32_t PresenceDevice::_internal_actions(int index) const { + return actions_.Get(index); +} +inline int32_t PresenceDevice::actions(int index) const { + // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.actions) + return _internal_actions(index); +} +inline void PresenceDevice::set_actions(int index, int32_t value) { + actions_.Set(index, value); + // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.actions) +} +inline void PresenceDevice::_internal_add_actions(int32_t value) { + actions_.Add(value); +} +inline void PresenceDevice::add_actions(int32_t value) { + _internal_add_actions(value); + // @@protoc_insertion_point(field_add:location.nearby.connections.PresenceDevice.actions) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +PresenceDevice::_internal_actions() const { + return actions_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& +PresenceDevice::actions() const { + // @@protoc_insertion_point(field_list:location.nearby.connections.PresenceDevice.actions) + return _internal_actions(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +PresenceDevice::_internal_mutable_actions() { + return &actions_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* +PresenceDevice::mutable_actions() { + // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.PresenceDevice.actions) + return _internal_mutable_actions(); +} + +// repeated int64 identity_type = 10 [packed = true]; +inline int PresenceDevice::_internal_identity_type_size() const { + return identity_type_.size(); +} +inline int PresenceDevice::identity_type_size() const { + return _internal_identity_type_size(); +} +inline void PresenceDevice::clear_identity_type() { + identity_type_.Clear(); +} +inline int64_t PresenceDevice::_internal_identity_type(int index) const { + return identity_type_.Get(index); +} +inline int64_t PresenceDevice::identity_type(int index) const { + // @@protoc_insertion_point(field_get:location.nearby.connections.PresenceDevice.identity_type) + return _internal_identity_type(index); +} +inline void PresenceDevice::set_identity_type(int index, int64_t value) { + identity_type_.Set(index, value); + // @@protoc_insertion_point(field_set:location.nearby.connections.PresenceDevice.identity_type) +} +inline void PresenceDevice::_internal_add_identity_type(int64_t value) { + identity_type_.Add(value); +} +inline void PresenceDevice::add_identity_type(int64_t value) { + _internal_add_identity_type(value); + // @@protoc_insertion_point(field_add:location.nearby.connections.PresenceDevice.identity_type) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& +PresenceDevice::_internal_identity_type() const { + return identity_type_; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >& +PresenceDevice::identity_type() const { + // @@protoc_insertion_point(field_list:location.nearby.connections.PresenceDevice.identity_type) + return _internal_identity_type(); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* +PresenceDevice::_internal_mutable_identity_type() { + return &identity_type_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* +PresenceDevice::mutable_identity_type() { + // @@protoc_insertion_point(field_mutable_list:location.nearby.connections.PresenceDevice.identity_type) + return _internal_mutable_identity_type(); +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -12202,6 +14670,14 @@ inline void OsInfo::set_type(::location::nearby::connections::OsInfo_OsType valu // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -12223,6 +14699,8 @@ template <> struct is_proto_enum< ::location::nearby::connections::BandwidthUpgr 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 {}; template <> struct is_proto_enum< ::location::nearby::connections::OsInfo_OsType> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::connections::PresenceDevice_DeviceType> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::connections::EndpointType> : ::std::true_type {}; PROTOBUF_NAMESPACE_CLOSE diff --git a/compiled_proto/internal/proto/analytics/connections_log.pb.cc b/compiled_proto/internal/proto/analytics/connections_log.pb.cc index 4fbe867a..82410f52 100644 --- a/compiled_proto/internal/proto/analytics/connections_log.pb.cc +++ b/compiled_proto/internal/proto/analytics/connections_log.pb.cc @@ -186,7 +186,11 @@ constexpr ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnec , disconnection_reason_(0) - , client_flow_id_(int64_t{0}){} + , client_flow_id_(int64_t{0}) + , type_(0) + + , safe_disconnection_result_(0) +{} struct ConnectionsLog_EstablishedConnectionDefaultTypeInternal { constexpr ConnectionsLog_EstablishedConnectionDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -267,7 +271,9 @@ constexpr ConnectionsLog_AdvertisingMetadata::ConnectionsLog_AdvertisingMetadata : connected_ap_frequency_(0) , supports_extended_ble_advertisements_(false) , supports_nfc_technology_(false) - , multiple_advertisement_supported_(false){} + , multiple_advertisement_supported_(false) + , power_level_(-1) +{} struct ConnectionsLog_AdvertisingMetadataDefaultTypeInternal { constexpr ConnectionsLog_AdvertisingMetadataDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -281,7 +287,9 @@ constexpr ConnectionsLog_DiscoveryMetadata::ConnectionsLog_DiscoveryMetadata( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) : connected_ap_frequency_(0) , supports_extended_ble_advertisements_(false) - , supports_nfc_technology_(false){} + , supports_nfc_technology_(false) + , power_level_(-1) +{} struct ConnectionsLog_DiscoveryMetadataDefaultTypeInternal { constexpr ConnectionsLog_DiscoveryMetadataDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -301,13 +309,15 @@ constexpr ConnectionsLog_ConnectionAttemptMetadata::ConnectionsLog_ConnectionAtt , frequency_(0) , try_counts_(0) + , max_tx_speed_(0) , is_tdls_used_(false) , wifi_hotspot_status_(false) - , max_tx_speed_(0) + , is_mcc_mode_(false) , max_rx_speed_(0) , wifi_channel_width_(0) , send_buffer_size_(0) - , receive_buffer_size_(0){} + , receive_buffer_size_(0) + , connected_ap_frequency_(0){} struct ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal { constexpr ConnectionsLog_ConnectionAttemptMetadataDefaultTypeInternal() : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} @@ -344,6 +354,69 @@ namespace location { namespace nearby { namespace analytics { namespace proto { +bool ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_strings[3] = {}; + +static const char ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_names[] = + "SAFE_DISCONNECTION" + "UNKNOWN_SAFE_DISCONNECTION_RESULT" + "UNSAFE_DISCONNECTION"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries[] = { + { {ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_names + 0, 18}, 1 }, + { {ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_names + 18, 33}, 0 }, + { {ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_names + 51, 20}, 2 }, +}; + +static const int ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries_by_number[] = { + 1, // 0 -> UNKNOWN_SAFE_DISCONNECTION_RESULT + 0, // 1 -> SAFE_DISCONNECTION + 2, // 2 -> UNSAFE_DISCONNECTION +}; + +const std::string& ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name( + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries, + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries_by_number, + 3, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries, + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_strings[idx].get(); +} +bool ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_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 ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::UNKNOWN_SAFE_DISCONNECTION_RESULT; +constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::SAFE_DISCONNECTION; +constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::UNSAFE_DISCONNECTION; +constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::SafeDisconnectionResult_MIN; +constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::SafeDisconnectionResult_MAX; +constexpr int ConnectionsLog_EstablishedConnection::SafeDisconnectionResult_ARRAYSIZE; +#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912)) // =================================================================== @@ -3626,6 +3699,12 @@ class ConnectionsLog_EstablishedConnection::_Internal { static void set_has_connection_token(HasBits* has_bits) { (*has_bits)[0] |= 1u; } + static void set_has_type(HasBits* has_bits) { + (*has_bits)[0] |= 32u; + } + static void set_has_safe_disconnection_result(HasBits* has_bits) { + (*has_bits)[0] |= 64u; + } }; ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnection(::PROTOBUF_NAMESPACE_ID::Arena* arena, @@ -3654,8 +3733,8 @@ ConnectionsLog_EstablishedConnection::ConnectionsLog_EstablishedConnection(const GetArenaForAllocation()); } ::memcpy(&duration_millis_, &from.duration_millis_, - static_cast(reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); + static_cast(reinterpret_cast(&safe_disconnection_result_) - + reinterpret_cast(&duration_millis_)) + sizeof(safe_disconnection_result_)); // @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) } @@ -3666,8 +3745,8 @@ connection_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyS #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&duration_millis_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); + 0, static_cast(reinterpret_cast(&safe_disconnection_result_) - + reinterpret_cast(&duration_millis_)) + sizeof(safe_disconnection_result_)); } ConnectionsLog_EstablishedConnection::~ConnectionsLog_EstablishedConnection() { @@ -3704,10 +3783,10 @@ void ConnectionsLog_EstablishedConnection::Clear() { if (cached_has_bits & 0x00000001u) { connection_token_.ClearNonDefaultToEmpty(); } - if (cached_has_bits & 0x0000001eu) { + if (cached_has_bits & 0x0000007eu) { ::memset(&duration_millis_, 0, static_cast( - reinterpret_cast(&client_flow_id_) - - reinterpret_cast(&duration_millis_)) + sizeof(client_flow_id_)); + reinterpret_cast(&safe_disconnection_result_) - + reinterpret_cast(&duration_millis_)) + sizeof(safe_disconnection_result_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -3799,6 +3878,32 @@ const char* ConnectionsLog_EstablishedConnection::_InternalParse(const char* ptr } else goto handle_unusual; continue; + // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::ConnectionAttemptType_IsValid(val))) { + _internal_set_type(static_cast<::location::nearby::proto::connections::ConnectionAttemptType>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; + // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(val))) { + _internal_set_safe_disconnection_result(static_cast<::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(9, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -3878,6 +3983,20 @@ uint8_t* ConnectionsLog_EstablishedConnection::_InternalSerialize( 7, this->_internal_connection_token(), target); } + // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; + if (cached_has_bits & 0x00000020u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 8, this->_internal_type(), target); + } + + // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; + if (cached_has_bits & 0x00000040u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 9, this->_internal_safe_disconnection_result(), 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); @@ -3909,7 +4028,7 @@ size_t ConnectionsLog_EstablishedConnection::ByteSizeLong() const { } cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x0000007fu) { // optional string connection_token = 7; if (cached_has_bits & 0x00000001u) { total_size += 1 + @@ -3939,6 +4058,18 @@ size_t ConnectionsLog_EstablishedConnection::ByteSizeLong() const { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_client_flow_id()); } + // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; + if (cached_has_bits & 0x00000020u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + } + + // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; + if (cached_has_bits & 0x00000040u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_safe_disconnection_result()); + } + } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); @@ -3963,7 +4094,7 @@ void ConnectionsLog_EstablishedConnection::MergeFrom(const ConnectionsLog_Establ sent_payload_.MergeFrom(from.sent_payload_); received_payload_.MergeFrom(from.received_payload_); cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000001fu) { + if (cached_has_bits & 0x0000007fu) { if (cached_has_bits & 0x00000001u) { _internal_set_connection_token(from._internal_connection_token()); } @@ -3979,6 +4110,12 @@ void ConnectionsLog_EstablishedConnection::MergeFrom(const ConnectionsLog_Establ if (cached_has_bits & 0x00000010u) { client_flow_id_ = from.client_flow_id_; } + if (cached_has_bits & 0x00000020u) { + type_ = from.type_; + } + if (cached_has_bits & 0x00000040u) { + safe_disconnection_result_ = from.safe_disconnection_result_; + } _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -4009,8 +4146,8 @@ void ConnectionsLog_EstablishedConnection::InternalSwap(ConnectionsLog_Establish &other->connection_token_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, client_flow_id_) - + sizeof(ConnectionsLog_EstablishedConnection::client_flow_id_) + PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, safe_disconnection_result_) + + sizeof(ConnectionsLog_EstablishedConnection::safe_disconnection_result_) - PROTOBUF_FIELD_OFFSET(ConnectionsLog_EstablishedConnection, duration_millis_)>( reinterpret_cast(&duration_millis_), reinterpret_cast(&other->duration_millis_)); @@ -4914,6 +5051,26 @@ ConnectionsLog_ErrorCode::ConnectionsLog_ErrorCode(const ConnectionsLog_ErrorCod _internal_set_disconnect_error(from._internal_disconnect_error()); break; } + case kSendPayloadError: { + _internal_set_send_payload_error(from._internal_send_payload_error()); + break; + } + case kReceivePayloadError: { + _internal_set_receive_payload_error(from._internal_receive_payload_error()); + break; + } + case kUpgradeError: { + _internal_set_upgrade_error(from._internal_upgrade_error()); + break; + } + case kAcceptConnectionError: { + _internal_set_accept_connection_error(from._internal_accept_connection_error()); + break; + } + case kRejectConnectionError: { + _internal_set_reject_connection_error(from._internal_reject_connection_error()); + break; + } case ERRORCODEDETAIL_NOT_SET: { break; } @@ -5002,6 +5159,26 @@ void ConnectionsLog_ErrorCode::clear_ErrorCodeDetail() { // No need to clear break; } + case kSendPayloadError: { + // No need to clear + break; + } + case kReceivePayloadError: { + // No need to clear + break; + } + case kUpgradeError: { + // No need to clear + break; + } + case kAcceptConnectionError: { + // No need to clear + break; + } + case kRejectConnectionError: { + // No need to clear + break; + } case ERRORCODEDETAIL_NOT_SET: { break; } @@ -5238,6 +5415,71 @@ const char* ConnectionsLog_ErrorCode::_InternalParse(const char* ptr, ::PROTOBUF } else goto handle_unusual; continue; + // .location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17; + case 17: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 136)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::SendPayloadError_IsValid(val))) { + _internal_set_send_payload_error(static_cast<::location::nearby::errorcode::proto::SendPayloadError>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(17, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; + // .location.nearby.errorcode.proto.ReceivePayloadError receive_payload_error = 18; + case 18: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 144)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::ReceivePayloadError_IsValid(val))) { + _internal_set_receive_payload_error(static_cast<::location::nearby::errorcode::proto::ReceivePayloadError>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(18, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; + // .location.nearby.errorcode.proto.UpgradeError upgrade_error = 19; + case 19: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 152)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::UpgradeError_IsValid(val))) { + _internal_set_upgrade_error(static_cast<::location::nearby::errorcode::proto::UpgradeError>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(19, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; + // .location.nearby.errorcode.proto.AcceptConnectionError accept_connection_error = 20; + case 20: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 160)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::AcceptConnectionError_IsValid(val))) { + _internal_set_accept_connection_error(static_cast<::location::nearby::errorcode::proto::AcceptConnectionError>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(20, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; + // .location.nearby.errorcode.proto.RejectConnectionError reject_connection_error = 21; + case 21: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 168)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::errorcode::proto::RejectConnectionError_IsValid(val))) { + _internal_set_reject_connection_error(static_cast<::location::nearby::errorcode::proto::RejectConnectionError>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(21, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5372,6 +5614,39 @@ uint8_t* ConnectionsLog_ErrorCode::_InternalSerialize( 16, this->_internal_connection_token(), target); } + switch (ErrorCodeDetail_case()) { + case kSendPayloadError: { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 17, this->_internal_send_payload_error(), target); + break; + } + case kReceivePayloadError: { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 18, this->_internal_receive_payload_error(), target); + break; + } + case kUpgradeError: { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 19, this->_internal_upgrade_error(), target); + break; + } + case kAcceptConnectionError: { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 20, this->_internal_accept_connection_error(), target); + break; + } + case kRejectConnectionError: { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 21, this->_internal_reject_connection_error(), target); + break; + } + default: ; + } 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); @@ -5489,6 +5764,36 @@ size_t ConnectionsLog_ErrorCode::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_disconnect_error()); break; } + // .location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17; + case kSendPayloadError: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_send_payload_error()); + break; + } + // .location.nearby.errorcode.proto.ReceivePayloadError receive_payload_error = 18; + case kReceivePayloadError: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_receive_payload_error()); + break; + } + // .location.nearby.errorcode.proto.UpgradeError upgrade_error = 19; + case kUpgradeError: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_upgrade_error()); + break; + } + // .location.nearby.errorcode.proto.AcceptConnectionError accept_connection_error = 20; + case kAcceptConnectionError: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_accept_connection_error()); + break; + } + // .location.nearby.errorcode.proto.RejectConnectionError reject_connection_error = 21; + case kRejectConnectionError: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_reject_connection_error()); + break; + } case ERRORCODEDETAIL_NOT_SET: { break; } @@ -5575,6 +5880,26 @@ void ConnectionsLog_ErrorCode::MergeFrom(const ConnectionsLog_ErrorCode& from) { _internal_set_disconnect_error(from._internal_disconnect_error()); break; } + case kSendPayloadError: { + _internal_set_send_payload_error(from._internal_send_payload_error()); + break; + } + case kReceivePayloadError: { + _internal_set_receive_payload_error(from._internal_receive_payload_error()); + break; + } + case kUpgradeError: { + _internal_set_upgrade_error(from._internal_upgrade_error()); + break; + } + case kAcceptConnectionError: { + _internal_set_accept_connection_error(from._internal_accept_connection_error()); + break; + } + case kRejectConnectionError: { + _internal_set_reject_connection_error(from._internal_reject_connection_error()); + break; + } case ERRORCODEDETAIL_NOT_SET: { break; } @@ -5641,6 +5966,9 @@ class ConnectionsLog_AdvertisingMetadata::_Internal { static void set_has_multiple_advertisement_supported(HasBits* has_bits) { (*has_bits)[0] |= 8u; } + static void set_has_power_level(HasBits* has_bits) { + (*has_bits)[0] |= 16u; + } }; ConnectionsLog_AdvertisingMetadata::ConnectionsLog_AdvertisingMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, @@ -5657,8 +5985,8 @@ ConnectionsLog_AdvertisingMetadata::ConnectionsLog_AdvertisingMetadata(const Con _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&connected_ap_frequency_, &from.connected_ap_frequency_, - static_cast(reinterpret_cast(&multiple_advertisement_supported_) - - reinterpret_cast(&connected_ap_frequency_)) + sizeof(multiple_advertisement_supported_)); + static_cast(reinterpret_cast(&power_level_) - + reinterpret_cast(&connected_ap_frequency_)) + sizeof(power_level_)); // @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata) } @@ -5667,6 +5995,7 @@ inline void ConnectionsLog_AdvertisingMetadata::SharedCtor() { reinterpret_cast(&connected_ap_frequency_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&multiple_advertisement_supported_) - reinterpret_cast(&connected_ap_frequency_)) + sizeof(multiple_advertisement_supported_)); +power_level_ = -1; } ConnectionsLog_AdvertisingMetadata::~ConnectionsLog_AdvertisingMetadata() { @@ -5697,10 +6026,11 @@ void ConnectionsLog_AdvertisingMetadata::Clear() { (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x0000001fu) { ::memset(&connected_ap_frequency_, 0, static_cast( reinterpret_cast(&multiple_advertisement_supported_) - reinterpret_cast(&connected_ap_frequency_)) + sizeof(multiple_advertisement_supported_)); + power_level_ = -1; } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -5749,6 +6079,19 @@ const char* ConnectionsLog_AdvertisingMetadata::_InternalParse(const char* ptr, } else goto handle_unusual; continue; + // optional .location.nearby.proto.connections.PowerLevel power_level = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::PowerLevel_IsValid(val))) { + _internal_set_power_level(static_cast<::location::nearby::proto::connections::PowerLevel>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5804,6 +6147,13 @@ uint8_t* ConnectionsLog_AdvertisingMetadata::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(4, this->_internal_multiple_advertisement_supported(), target); } + // optional .location.nearby.proto.connections.PowerLevel power_level = 5; + if (cached_has_bits & 0x00000010u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 5, this->_internal_power_level(), 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); @@ -5821,7 +6171,7 @@ size_t ConnectionsLog_AdvertisingMetadata::ByteSizeLong() const { (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x0000001fu) { // optional int32 connected_ap_frequency = 2; if (cached_has_bits & 0x00000001u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_connected_ap_frequency()); @@ -5842,6 +6192,12 @@ size_t ConnectionsLog_AdvertisingMetadata::ByteSizeLong() const { total_size += 1 + 1; } + // optional .location.nearby.proto.connections.PowerLevel power_level = 5; + if (cached_has_bits & 0x00000010u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_power_level()); + } + } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); @@ -5864,7 +6220,7 @@ void ConnectionsLog_AdvertisingMetadata::MergeFrom(const ConnectionsLog_Advertis (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x0000000fu) { + if (cached_has_bits & 0x0000001fu) { if (cached_has_bits & 0x00000001u) { connected_ap_frequency_ = from.connected_ap_frequency_; } @@ -5877,6 +6233,9 @@ void ConnectionsLog_AdvertisingMetadata::MergeFrom(const ConnectionsLog_Advertis if (cached_has_bits & 0x00000008u) { multiple_advertisement_supported_ = from.multiple_advertisement_supported_; } + if (cached_has_bits & 0x00000010u) { + power_level_ = from.power_level_; + } _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -5903,6 +6262,7 @@ void ConnectionsLog_AdvertisingMetadata::InternalSwap(ConnectionsLog_Advertising - PROTOBUF_FIELD_OFFSET(ConnectionsLog_AdvertisingMetadata, connected_ap_frequency_)>( reinterpret_cast(&connected_ap_frequency_), reinterpret_cast(&other->connected_ap_frequency_)); + swap(power_level_, other->power_level_); } std::string ConnectionsLog_AdvertisingMetadata::GetTypeName() const { @@ -5924,6 +6284,9 @@ class ConnectionsLog_DiscoveryMetadata::_Internal { static void set_has_supports_nfc_technology(HasBits* has_bits) { (*has_bits)[0] |= 4u; } + static void set_has_power_level(HasBits* has_bits) { + (*has_bits)[0] |= 8u; + } }; ConnectionsLog_DiscoveryMetadata::ConnectionsLog_DiscoveryMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, @@ -5940,8 +6303,8 @@ ConnectionsLog_DiscoveryMetadata::ConnectionsLog_DiscoveryMetadata(const Connect _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); ::memcpy(&connected_ap_frequency_, &from.connected_ap_frequency_, - static_cast(reinterpret_cast(&supports_nfc_technology_) - - reinterpret_cast(&connected_ap_frequency_)) + sizeof(supports_nfc_technology_)); + static_cast(reinterpret_cast(&power_level_) - + reinterpret_cast(&connected_ap_frequency_)) + sizeof(power_level_)); // @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata) } @@ -5950,6 +6313,7 @@ inline void ConnectionsLog_DiscoveryMetadata::SharedCtor() { reinterpret_cast(&connected_ap_frequency_) - reinterpret_cast(this)), 0, static_cast(reinterpret_cast(&supports_nfc_technology_) - reinterpret_cast(&connected_ap_frequency_)) + sizeof(supports_nfc_technology_)); +power_level_ = -1; } ConnectionsLog_DiscoveryMetadata::~ConnectionsLog_DiscoveryMetadata() { @@ -5980,10 +6344,11 @@ void ConnectionsLog_DiscoveryMetadata::Clear() { (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x0000000fu) { ::memset(&connected_ap_frequency_, 0, static_cast( reinterpret_cast(&supports_nfc_technology_) - reinterpret_cast(&connected_ap_frequency_)) + sizeof(supports_nfc_technology_)); + power_level_ = -1; } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -6023,6 +6388,19 @@ const char* ConnectionsLog_DiscoveryMetadata::_InternalParse(const char* ptr, :: } else goto handle_unusual; continue; + // optional .location.nearby.proto.connections.PowerLevel power_level = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + if (PROTOBUF_PREDICT_TRUE(::location::nearby::proto::connections::PowerLevel_IsValid(val))) { + _internal_set_power_level(static_cast<::location::nearby::proto::connections::PowerLevel>(val)); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(4, val, mutable_unknown_fields()); + } + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -6072,6 +6450,13 @@ uint8_t* ConnectionsLog_DiscoveryMetadata::_InternalSerialize( target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_supports_nfc_technology(), target); } + // optional .location.nearby.proto.connections.PowerLevel power_level = 4; + if (cached_has_bits & 0x00000008u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_power_level(), 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); @@ -6089,7 +6474,7 @@ size_t ConnectionsLog_DiscoveryMetadata::ByteSizeLong() const { (void) cached_has_bits; cached_has_bits = _has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x0000000fu) { // optional int32 connected_ap_frequency = 2; if (cached_has_bits & 0x00000001u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_connected_ap_frequency()); @@ -6105,6 +6490,12 @@ size_t ConnectionsLog_DiscoveryMetadata::ByteSizeLong() const { total_size += 1 + 1; } + // optional .location.nearby.proto.connections.PowerLevel power_level = 4; + if (cached_has_bits & 0x00000008u) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_power_level()); + } + } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); @@ -6127,7 +6518,7 @@ void ConnectionsLog_DiscoveryMetadata::MergeFrom(const ConnectionsLog_DiscoveryM (void) cached_has_bits; cached_has_bits = from._has_bits_[0]; - if (cached_has_bits & 0x00000007u) { + if (cached_has_bits & 0x0000000fu) { if (cached_has_bits & 0x00000001u) { connected_ap_frequency_ = from.connected_ap_frequency_; } @@ -6137,6 +6528,9 @@ void ConnectionsLog_DiscoveryMetadata::MergeFrom(const ConnectionsLog_DiscoveryM if (cached_has_bits & 0x00000004u) { supports_nfc_technology_ = from.supports_nfc_technology_; } + if (cached_has_bits & 0x00000008u) { + power_level_ = from.power_level_; + } _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -6163,6 +6557,7 @@ void ConnectionsLog_DiscoveryMetadata::InternalSwap(ConnectionsLog_DiscoveryMeta - PROTOBUF_FIELD_OFFSET(ConnectionsLog_DiscoveryMetadata, connected_ap_frequency_)>( reinterpret_cast(&connected_ap_frequency_), reinterpret_cast(&other->connected_ap_frequency_)); + swap(power_level_, other->power_level_); } std::string ConnectionsLog_DiscoveryMetadata::GetTypeName() const { @@ -6191,29 +6586,35 @@ class ConnectionsLog_ConnectionAttemptMetadata::_Internal { (*has_bits)[0] |= 2u; } static void set_has_is_tdls_used(HasBits* has_bits) { - (*has_bits)[0] |= 64u; + (*has_bits)[0] |= 128u; } static void set_has_try_counts(HasBits* has_bits) { (*has_bits)[0] |= 32u; } static void set_has_wifi_hotspot_status(HasBits* has_bits) { - (*has_bits)[0] |= 128u; - } - static void set_has_max_tx_speed(HasBits* has_bits) { (*has_bits)[0] |= 256u; } - static void set_has_max_rx_speed(HasBits* has_bits) { - (*has_bits)[0] |= 512u; + static void set_has_max_tx_speed(HasBits* has_bits) { + (*has_bits)[0] |= 64u; } - static void set_has_wifi_channel_width(HasBits* has_bits) { + static void set_has_max_rx_speed(HasBits* has_bits) { (*has_bits)[0] |= 1024u; } - static void set_has_send_buffer_size(HasBits* has_bits) { + static void set_has_wifi_channel_width(HasBits* has_bits) { (*has_bits)[0] |= 2048u; } - static void set_has_receive_buffer_size(HasBits* has_bits) { + static void set_has_send_buffer_size(HasBits* has_bits) { (*has_bits)[0] |= 4096u; } + static void set_has_receive_buffer_size(HasBits* has_bits) { + (*has_bits)[0] |= 8192u; + } + static void set_has_connected_ap_frequency(HasBits* has_bits) { + (*has_bits)[0] |= 16384u; + } + static void set_has_is_mcc_mode(HasBits* has_bits) { + (*has_bits)[0] |= 512u; + } }; ConnectionsLog_ConnectionAttemptMetadata::ConnectionsLog_ConnectionAttemptMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena, @@ -6246,8 +6647,8 @@ ConnectionsLog_ConnectionAttemptMetadata::ConnectionsLog_ConnectionAttemptMetada GetArenaForAllocation()); } ::memcpy(&technology_, &from.technology_, - static_cast(reinterpret_cast(&receive_buffer_size_) - - reinterpret_cast(&technology_)) + sizeof(receive_buffer_size_)); + static_cast(reinterpret_cast(&connected_ap_frequency_) - + reinterpret_cast(&technology_)) + sizeof(connected_ap_frequency_)); // @@protoc_insertion_point(copy_constructor:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata) } @@ -6262,8 +6663,8 @@ country_code_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStrin #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING ::memset(reinterpret_cast(this) + static_cast( reinterpret_cast(&technology_) - reinterpret_cast(this)), - 0, static_cast(reinterpret_cast(&receive_buffer_size_) - - reinterpret_cast(&technology_)) + sizeof(receive_buffer_size_)); + 0, static_cast(reinterpret_cast(&connected_ap_frequency_) - + reinterpret_cast(&technology_)) + sizeof(connected_ap_frequency_)); } ConnectionsLog_ConnectionAttemptMetadata::~ConnectionsLog_ConnectionAttemptMetadata() { @@ -6306,13 +6707,13 @@ void ConnectionsLog_ConnectionAttemptMetadata::Clear() { } if (cached_has_bits & 0x000000fcu) { ::memset(&technology_, 0, static_cast( - reinterpret_cast(&wifi_hotspot_status_) - - reinterpret_cast(&technology_)) + sizeof(wifi_hotspot_status_)); + reinterpret_cast(&is_tdls_used_) - + reinterpret_cast(&technology_)) + sizeof(is_tdls_used_)); } - if (cached_has_bits & 0x00001f00u) { - ::memset(&max_tx_speed_, 0, static_cast( - reinterpret_cast(&receive_buffer_size_) - - reinterpret_cast(&max_tx_speed_)) + sizeof(receive_buffer_size_)); + if (cached_has_bits & 0x00007f00u) { + ::memset(&wifi_hotspot_status_, 0, static_cast( + reinterpret_cast(&connected_ap_frequency_) - + reinterpret_cast(&wifi_hotspot_status_)) + sizeof(connected_ap_frequency_)); } _has_bits_.Clear(); _internal_metadata_.Clear(); @@ -6450,6 +6851,24 @@ const char* ConnectionsLog_ConnectionAttemptMetadata::_InternalParse(const char* } else goto handle_unusual; continue; + // optional int32 connected_ap_frequency = 14; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 112)) { + _Internal::set_has_connected_ap_frequency(&has_bits); + connected_ap_frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // optional bool is_mcc_mode = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { + _Internal::set_has_is_mcc_mode(&has_bits); + is_mcc_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -6514,7 +6933,7 @@ uint8_t* ConnectionsLog_ConnectionAttemptMetadata::_InternalSerialize( } // optional bool is_tdls_used = 6; - if (cached_has_bits & 0x00000040u) { + if (cached_has_bits & 0x00000080u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(6, this->_internal_is_tdls_used(), target); } @@ -6526,41 +6945,53 @@ uint8_t* ConnectionsLog_ConnectionAttemptMetadata::_InternalSerialize( } // optional bool wifi_hotspot_status = 8; - if (cached_has_bits & 0x00000080u) { + if (cached_has_bits & 0x00000100u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_wifi_hotspot_status(), target); } // optional int32 max_tx_speed = 9; - if (cached_has_bits & 0x00000100u) { + if (cached_has_bits & 0x00000040u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_max_tx_speed(), target); } // optional int32 max_rx_speed = 10; - if (cached_has_bits & 0x00000200u) { + if (cached_has_bits & 0x00000400u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_max_rx_speed(), target); } // optional int32 wifi_channel_width = 11; - if (cached_has_bits & 0x00000400u) { + if (cached_has_bits & 0x00000800u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(11, this->_internal_wifi_channel_width(), target); } // optional int32 send_buffer_size = 12; - if (cached_has_bits & 0x00000800u) { + if (cached_has_bits & 0x00001000u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(12, this->_internal_send_buffer_size(), target); } // optional int32 receive_buffer_size = 13; - if (cached_has_bits & 0x00001000u) { + if (cached_has_bits & 0x00002000u) { target = stream->EnsureSpace(target); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->_internal_receive_buffer_size(), target); } + // optional int32 connected_ap_frequency = 14; + if (cached_has_bits & 0x00004000u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(14, this->_internal_connected_ap_frequency(), target); + } + + // optional bool is_mcc_mode = 15; + if (cached_has_bits & 0x00000200u) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(15, this->_internal_is_mcc_mode(), 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); @@ -6615,43 +7046,53 @@ size_t ConnectionsLog_ConnectionAttemptMetadata::ByteSizeLong() const { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_try_counts()); } - // optional bool is_tdls_used = 6; + // optional int32 max_tx_speed = 9; if (cached_has_bits & 0x00000040u) { - total_size += 1 + 1; + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_max_tx_speed()); } - // optional bool wifi_hotspot_status = 8; + // optional bool is_tdls_used = 6; if (cached_has_bits & 0x00000080u) { total_size += 1 + 1; } } - if (cached_has_bits & 0x00001f00u) { - // optional int32 max_tx_speed = 9; + if (cached_has_bits & 0x00007f00u) { + // optional bool wifi_hotspot_status = 8; if (cached_has_bits & 0x00000100u) { - total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_max_tx_speed()); + total_size += 1 + 1; + } + + // optional bool is_mcc_mode = 15; + if (cached_has_bits & 0x00000200u) { + total_size += 1 + 1; } // optional int32 max_rx_speed = 10; - if (cached_has_bits & 0x00000200u) { + if (cached_has_bits & 0x00000400u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_max_rx_speed()); } // optional int32 wifi_channel_width = 11; - if (cached_has_bits & 0x00000400u) { + if (cached_has_bits & 0x00000800u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_wifi_channel_width()); } // optional int32 send_buffer_size = 12; - if (cached_has_bits & 0x00000800u) { + if (cached_has_bits & 0x00001000u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_send_buffer_size()); } // optional int32 receive_buffer_size = 13; - if (cached_has_bits & 0x00001000u) { + if (cached_has_bits & 0x00002000u) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_receive_buffer_size()); } + // optional int32 connected_ap_frequency = 14; + if (cached_has_bits & 0x00004000u) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_connected_ap_frequency()); + } + } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { total_size += _internal_metadata_.unknown_fields(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size(); @@ -6694,29 +7135,35 @@ void ConnectionsLog_ConnectionAttemptMetadata::MergeFrom(const ConnectionsLog_Co try_counts_ = from.try_counts_; } if (cached_has_bits & 0x00000040u) { - is_tdls_used_ = from.is_tdls_used_; + max_tx_speed_ = from.max_tx_speed_; } if (cached_has_bits & 0x00000080u) { - wifi_hotspot_status_ = from.wifi_hotspot_status_; + is_tdls_used_ = from.is_tdls_used_; } _has_bits_[0] |= cached_has_bits; } - if (cached_has_bits & 0x00001f00u) { + if (cached_has_bits & 0x00007f00u) { if (cached_has_bits & 0x00000100u) { - max_tx_speed_ = from.max_tx_speed_; + wifi_hotspot_status_ = from.wifi_hotspot_status_; } if (cached_has_bits & 0x00000200u) { - max_rx_speed_ = from.max_rx_speed_; + is_mcc_mode_ = from.is_mcc_mode_; } if (cached_has_bits & 0x00000400u) { - wifi_channel_width_ = from.wifi_channel_width_; + max_rx_speed_ = from.max_rx_speed_; } if (cached_has_bits & 0x00000800u) { - send_buffer_size_ = from.send_buffer_size_; + wifi_channel_width_ = from.wifi_channel_width_; } if (cached_has_bits & 0x00001000u) { + send_buffer_size_ = from.send_buffer_size_; + } + if (cached_has_bits & 0x00002000u) { receive_buffer_size_ = from.receive_buffer_size_; } + if (cached_has_bits & 0x00004000u) { + connected_ap_frequency_ = from.connected_ap_frequency_; + } _has_bits_[0] |= cached_has_bits; } _internal_metadata_.MergeFrom(from._internal_metadata_); @@ -6750,8 +7197,8 @@ void ConnectionsLog_ConnectionAttemptMetadata::InternalSwap(ConnectionsLog_Conne &other->country_code_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, receive_buffer_size_) - + sizeof(ConnectionsLog_ConnectionAttemptMetadata::receive_buffer_size_) + PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, connected_ap_frequency_) + + sizeof(ConnectionsLog_ConnectionAttemptMetadata::connected_ap_frequency_) - PROTOBUF_FIELD_OFFSET(ConnectionsLog_ConnectionAttemptMetadata, technology_)>( reinterpret_cast(&technology_), reinterpret_cast(&other->technology_)); diff --git a/compiled_proto/internal/proto/analytics/connections_log.pb.h b/compiled_proto/internal/proto/analytics/connections_log.pb.h index 1a68afa4..c90e49b3 100644 --- a/compiled_proto/internal/proto/analytics/connections_log.pb.h +++ b/compiled_proto/internal/proto/analytics/connections_log.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#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. @@ -29,6 +29,7 @@ #include #include // IWYU pragma: export #include // IWYU pragma: export +#include #include "proto/connections_enums.pb.h" #include "proto/errorcode/error_code_enums.pb.h" // @@protoc_insertion_point(includes) @@ -135,6 +136,26 @@ namespace nearby { namespace analytics { namespace proto { +enum ConnectionsLog_EstablishedConnection_SafeDisconnectionResult : int { + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNKNOWN_SAFE_DISCONNECTION_RESULT = 0, + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SAFE_DISCONNECTION = 1, + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNSAFE_DISCONNECTION = 2 +}; +bool ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(int value); +constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MIN = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNKNOWN_SAFE_DISCONNECTION_RESULT; +constexpr ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MAX = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNSAFE_DISCONNECTION; +constexpr int ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_ARRAYSIZE = ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MAX + 1; + +const std::string& ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value); +template +inline const std::string& ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name."); + return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(static_cast(enum_t_value)); +} +bool ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsLog_EstablishedConnection_SafeDisconnectionResult* value); // =================================================================== class ConnectionsLog_ClientSession final : @@ -2262,6 +2283,34 @@ class ConnectionsLog_EstablishedConnection final : // nested types ---------------------------------------------------- + typedef ConnectionsLog_EstablishedConnection_SafeDisconnectionResult SafeDisconnectionResult; + static constexpr SafeDisconnectionResult UNKNOWN_SAFE_DISCONNECTION_RESULT = + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNKNOWN_SAFE_DISCONNECTION_RESULT; + static constexpr SafeDisconnectionResult SAFE_DISCONNECTION = + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SAFE_DISCONNECTION; + static constexpr SafeDisconnectionResult UNSAFE_DISCONNECTION = + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_UNSAFE_DISCONNECTION; + static inline bool SafeDisconnectionResult_IsValid(int value) { + return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(value); + } + static constexpr SafeDisconnectionResult SafeDisconnectionResult_MIN = + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MIN; + static constexpr SafeDisconnectionResult SafeDisconnectionResult_MAX = + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_MAX; + static constexpr int SafeDisconnectionResult_ARRAYSIZE = + ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_SafeDisconnectionResult_ARRAYSIZE; + template + static inline const std::string& SafeDisconnectionResult_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SafeDisconnectionResult_Name."); + return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Name(enum_t_value); + } + static inline bool SafeDisconnectionResult_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, + SafeDisconnectionResult* value) { + return ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_Parse(name, value); + } + // accessors ------------------------------------------------------- enum : int { @@ -2272,6 +2321,8 @@ class ConnectionsLog_EstablishedConnection final : kMediumFieldNumber = 2, kDisconnectionReasonFieldNumber = 5, kClientFlowIdFieldNumber = 6, + kTypeFieldNumber = 8, + kSafeDisconnectionResultFieldNumber = 9, }; // repeated .location.nearby.analytics.proto.ConnectionsLog.Payload sent_payload = 3; int sent_payload_size() const; @@ -2379,6 +2430,32 @@ class ConnectionsLog_EstablishedConnection final : void _internal_set_client_flow_id(int64_t value); public: + // optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; + bool has_type() const; + private: + bool _internal_has_type() const; + public: + void clear_type(); + ::location::nearby::proto::connections::ConnectionAttemptType type() const; + void set_type(::location::nearby::proto::connections::ConnectionAttemptType value); + private: + ::location::nearby::proto::connections::ConnectionAttemptType _internal_type() const; + void _internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value); + public: + + // optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; + bool has_safe_disconnection_result() const; + private: + bool _internal_has_safe_disconnection_result() const; + public: + void clear_safe_disconnection_result(); + ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult safe_disconnection_result() const; + void set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value); + private: + ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult _internal_safe_disconnection_result() const; + void _internal_set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value); + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection) private: class _Internal; @@ -2395,6 +2472,8 @@ class ConnectionsLog_EstablishedConnection final : int medium_; int disconnection_reason_; int64_t client_flow_id_; + int type_; + int safe_disconnection_result_; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; // ------------------------------------------------------------------- @@ -2919,6 +2998,11 @@ class ConnectionsLog_ErrorCode final : kStopListeningIncomingConnectionError = 13, kConnectError = 14, kDisconnectError = 15, + kSendPayloadError = 17, + kReceivePayloadError = 18, + kUpgradeError = 19, + kAcceptConnectionError = 20, + kRejectConnectionError = 21, ERRORCODEDETAIL_NOT_SET = 0, }; @@ -3010,6 +3094,11 @@ class ConnectionsLog_ErrorCode final : kStopListeningIncomingConnectionErrorFieldNumber = 13, kConnectErrorFieldNumber = 14, kDisconnectErrorFieldNumber = 15, + kSendPayloadErrorFieldNumber = 17, + kReceivePayloadErrorFieldNumber = 18, + kUpgradeErrorFieldNumber = 19, + kAcceptConnectionErrorFieldNumber = 20, + kRejectConnectionErrorFieldNumber = 21, }; // optional string service_id = 2; bool has_service_id() const; @@ -3229,6 +3318,71 @@ class ConnectionsLog_ErrorCode final : void _internal_set_disconnect_error(::location::nearby::errorcode::proto::DisconnectError value); public: + // .location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17; + bool has_send_payload_error() const; + private: + bool _internal_has_send_payload_error() const; + public: + void clear_send_payload_error(); + ::location::nearby::errorcode::proto::SendPayloadError send_payload_error() const; + void set_send_payload_error(::location::nearby::errorcode::proto::SendPayloadError value); + private: + ::location::nearby::errorcode::proto::SendPayloadError _internal_send_payload_error() const; + void _internal_set_send_payload_error(::location::nearby::errorcode::proto::SendPayloadError value); + public: + + // .location.nearby.errorcode.proto.ReceivePayloadError receive_payload_error = 18; + bool has_receive_payload_error() const; + private: + bool _internal_has_receive_payload_error() const; + public: + void clear_receive_payload_error(); + ::location::nearby::errorcode::proto::ReceivePayloadError receive_payload_error() const; + void set_receive_payload_error(::location::nearby::errorcode::proto::ReceivePayloadError value); + private: + ::location::nearby::errorcode::proto::ReceivePayloadError _internal_receive_payload_error() const; + void _internal_set_receive_payload_error(::location::nearby::errorcode::proto::ReceivePayloadError value); + public: + + // .location.nearby.errorcode.proto.UpgradeError upgrade_error = 19; + bool has_upgrade_error() const; + private: + bool _internal_has_upgrade_error() const; + public: + void clear_upgrade_error(); + ::location::nearby::errorcode::proto::UpgradeError upgrade_error() const; + void set_upgrade_error(::location::nearby::errorcode::proto::UpgradeError value); + private: + ::location::nearby::errorcode::proto::UpgradeError _internal_upgrade_error() const; + void _internal_set_upgrade_error(::location::nearby::errorcode::proto::UpgradeError value); + public: + + // .location.nearby.errorcode.proto.AcceptConnectionError accept_connection_error = 20; + bool has_accept_connection_error() const; + private: + bool _internal_has_accept_connection_error() const; + public: + void clear_accept_connection_error(); + ::location::nearby::errorcode::proto::AcceptConnectionError accept_connection_error() const; + void set_accept_connection_error(::location::nearby::errorcode::proto::AcceptConnectionError value); + private: + ::location::nearby::errorcode::proto::AcceptConnectionError _internal_accept_connection_error() const; + void _internal_set_accept_connection_error(::location::nearby::errorcode::proto::AcceptConnectionError value); + public: + + // .location.nearby.errorcode.proto.RejectConnectionError reject_connection_error = 21; + bool has_reject_connection_error() const; + private: + bool _internal_has_reject_connection_error() const; + public: + void clear_reject_connection_error(); + ::location::nearby::errorcode::proto::RejectConnectionError reject_connection_error() const; + void set_reject_connection_error(::location::nearby::errorcode::proto::RejectConnectionError value); + private: + ::location::nearby::errorcode::proto::RejectConnectionError _internal_reject_connection_error() const; + void _internal_set_reject_connection_error(::location::nearby::errorcode::proto::RejectConnectionError value); + public: + void clear_ErrorCodeDetail(); ErrorCodeDetailCase ErrorCodeDetail_case() const; // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ErrorCode) @@ -3243,6 +3397,11 @@ class ConnectionsLog_ErrorCode final : void set_has_stop_listening_incoming_connection_error(); void set_has_connect_error(); void set_has_disconnect_error(); + void set_has_send_payload_error(); + void set_has_receive_payload_error(); + void set_has_upgrade_error(); + void set_has_accept_connection_error(); + void set_has_reject_connection_error(); inline bool has_ErrorCodeDetail() const; inline void clear_has_ErrorCodeDetail(); @@ -3271,6 +3430,11 @@ class ConnectionsLog_ErrorCode final : int stop_listening_incoming_connection_error_; int connect_error_; int disconnect_error_; + int send_payload_error_; + int receive_payload_error_; + int upgrade_error_; + int accept_connection_error_; + int reject_connection_error_; } ErrorCodeDetail_; uint32_t _oneof_case_[1]; @@ -3395,6 +3559,7 @@ class ConnectionsLog_AdvertisingMetadata final : kSupportsExtendedBleAdvertisementsFieldNumber = 1, kSupportsNfcTechnologyFieldNumber = 3, kMultipleAdvertisementSupportedFieldNumber = 4, + kPowerLevelFieldNumber = 5, }; // optional int32 connected_ap_frequency = 2; bool has_connected_ap_frequency() const; @@ -3448,6 +3613,19 @@ class ConnectionsLog_AdvertisingMetadata final : void _internal_set_multiple_advertisement_supported(bool value); public: + // optional .location.nearby.proto.connections.PowerLevel power_level = 5; + bool has_power_level() const; + private: + bool _internal_has_power_level() const; + public: + void clear_power_level(); + ::location::nearby::proto::connections::PowerLevel power_level() const; + void set_power_level(::location::nearby::proto::connections::PowerLevel value); + private: + ::location::nearby::proto::connections::PowerLevel _internal_power_level() const; + void _internal_set_power_level(::location::nearby::proto::connections::PowerLevel value); + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata) private: class _Internal; @@ -3461,6 +3639,7 @@ class ConnectionsLog_AdvertisingMetadata final : bool supports_extended_ble_advertisements_; bool supports_nfc_technology_; bool multiple_advertisement_supported_; + int power_level_; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; // ------------------------------------------------------------------- @@ -3581,6 +3760,7 @@ class ConnectionsLog_DiscoveryMetadata final : kConnectedApFrequencyFieldNumber = 2, kSupportsExtendedBleAdvertisementsFieldNumber = 1, kSupportsNfcTechnologyFieldNumber = 3, + kPowerLevelFieldNumber = 4, }; // optional int32 connected_ap_frequency = 2; bool has_connected_ap_frequency() const; @@ -3621,6 +3801,19 @@ class ConnectionsLog_DiscoveryMetadata final : void _internal_set_supports_nfc_technology(bool value); public: + // optional .location.nearby.proto.connections.PowerLevel power_level = 4; + bool has_power_level() const; + private: + bool _internal_has_power_level() const; + public: + void clear_power_level(); + ::location::nearby::proto::connections::PowerLevel power_level() const; + void set_power_level(::location::nearby::proto::connections::PowerLevel value); + private: + ::location::nearby::proto::connections::PowerLevel _internal_power_level() const; + void _internal_set_power_level(::location::nearby::proto::connections::PowerLevel value); + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata) private: class _Internal; @@ -3633,6 +3826,7 @@ class ConnectionsLog_DiscoveryMetadata final : int32_t connected_ap_frequency_; bool supports_extended_ble_advertisements_; bool supports_nfc_technology_; + int power_level_; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; // ------------------------------------------------------------------- @@ -3756,13 +3950,15 @@ class ConnectionsLog_ConnectionAttemptMetadata final : kBandFieldNumber = 2, kFrequencyFieldNumber = 3, kTryCountsFieldNumber = 7, + kMaxTxSpeedFieldNumber = 9, kIsTdlsUsedFieldNumber = 6, kWifiHotspotStatusFieldNumber = 8, - kMaxTxSpeedFieldNumber = 9, + kIsMccModeFieldNumber = 15, kMaxRxSpeedFieldNumber = 10, kWifiChannelWidthFieldNumber = 11, kSendBufferSizeFieldNumber = 12, kReceiveBufferSizeFieldNumber = 13, + kConnectedApFrequencyFieldNumber = 14, }; // optional string network_operator = 4; bool has_network_operator() const; @@ -3852,6 +4048,19 @@ class ConnectionsLog_ConnectionAttemptMetadata final : void _internal_set_try_counts(int32_t value); public: + // optional int32 max_tx_speed = 9; + bool has_max_tx_speed() const; + private: + bool _internal_has_max_tx_speed() const; + public: + void clear_max_tx_speed(); + int32_t max_tx_speed() const; + void set_max_tx_speed(int32_t value); + private: + int32_t _internal_max_tx_speed() const; + void _internal_set_max_tx_speed(int32_t value); + public: + // optional bool is_tdls_used = 6; bool has_is_tdls_used() const; private: @@ -3878,17 +4087,17 @@ class ConnectionsLog_ConnectionAttemptMetadata final : void _internal_set_wifi_hotspot_status(bool value); public: - // optional int32 max_tx_speed = 9; - bool has_max_tx_speed() const; + // optional bool is_mcc_mode = 15; + bool has_is_mcc_mode() const; private: - bool _internal_has_max_tx_speed() const; + bool _internal_has_is_mcc_mode() const; public: - void clear_max_tx_speed(); - int32_t max_tx_speed() const; - void set_max_tx_speed(int32_t value); + void clear_is_mcc_mode(); + bool is_mcc_mode() const; + void set_is_mcc_mode(bool value); private: - int32_t _internal_max_tx_speed() const; - void _internal_set_max_tx_speed(int32_t value); + bool _internal_is_mcc_mode() const; + void _internal_set_is_mcc_mode(bool value); public: // optional int32 max_rx_speed = 10; @@ -3943,6 +4152,19 @@ class ConnectionsLog_ConnectionAttemptMetadata final : void _internal_set_receive_buffer_size(int32_t value); public: + // optional int32 connected_ap_frequency = 14; + bool has_connected_ap_frequency() const; + private: + bool _internal_has_connected_ap_frequency() const; + public: + void clear_connected_ap_frequency(); + int32_t connected_ap_frequency() const; + void set_connected_ap_frequency(int32_t value); + private: + int32_t _internal_connected_ap_frequency() const; + void _internal_set_connected_ap_frequency(int32_t value); + public: + // @@protoc_insertion_point(class_scope:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata) private: class _Internal; @@ -3958,13 +4180,15 @@ class ConnectionsLog_ConnectionAttemptMetadata final : int band_; int32_t frequency_; int32_t try_counts_; + int32_t max_tx_speed_; bool is_tdls_used_; bool wifi_hotspot_status_; - int32_t max_tx_speed_; + bool is_mcc_mode_; int32_t max_rx_speed_; int32_t wifi_channel_width_; int32_t send_buffer_size_; int32_t receive_buffer_size_; + int32_t connected_ap_frequency_; friend struct ::TableStruct_internal_2fproto_2fanalytics_2fconnections_5flog_2eproto; }; // ------------------------------------------------------------------- @@ -6446,6 +6670,64 @@ inline void ConnectionsLog_EstablishedConnection::set_allocated_connection_token // @@protoc_insertion_point(field_set_allocated:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.connection_token) } +// optional .location.nearby.proto.connections.ConnectionAttemptType type = 8; +inline bool ConnectionsLog_EstablishedConnection::_internal_has_type() const { + bool value = (_has_bits_[0] & 0x00000020u) != 0; + return value; +} +inline bool ConnectionsLog_EstablishedConnection::has_type() const { + return _internal_has_type(); +} +inline void ConnectionsLog_EstablishedConnection::clear_type() { + type_ = 0; + _has_bits_[0] &= ~0x00000020u; +} +inline ::location::nearby::proto::connections::ConnectionAttemptType ConnectionsLog_EstablishedConnection::_internal_type() const { + return static_cast< ::location::nearby::proto::connections::ConnectionAttemptType >(type_); +} +inline ::location::nearby::proto::connections::ConnectionAttemptType ConnectionsLog_EstablishedConnection::type() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.type) + return _internal_type(); +} +inline void ConnectionsLog_EstablishedConnection::_internal_set_type(::location::nearby::proto::connections::ConnectionAttemptType value) { + assert(::location::nearby::proto::connections::ConnectionAttemptType_IsValid(value)); + _has_bits_[0] |= 0x00000020u; + type_ = value; +} +inline void ConnectionsLog_EstablishedConnection::set_type(::location::nearby::proto::connections::ConnectionAttemptType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.type) +} + +// optional .location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.SafeDisconnectionResult safe_disconnection_result = 9; +inline bool ConnectionsLog_EstablishedConnection::_internal_has_safe_disconnection_result() const { + bool value = (_has_bits_[0] & 0x00000040u) != 0; + return value; +} +inline bool ConnectionsLog_EstablishedConnection::has_safe_disconnection_result() const { + return _internal_has_safe_disconnection_result(); +} +inline void ConnectionsLog_EstablishedConnection::clear_safe_disconnection_result() { + safe_disconnection_result_ = 0; + _has_bits_[0] &= ~0x00000040u; +} +inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::_internal_safe_disconnection_result() const { + return static_cast< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult >(safe_disconnection_result_); +} +inline ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult ConnectionsLog_EstablishedConnection::safe_disconnection_result() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.safe_disconnection_result) + return _internal_safe_disconnection_result(); +} +inline void ConnectionsLog_EstablishedConnection::_internal_set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value) { + assert(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult_IsValid(value)); + _has_bits_[0] |= 0x00000040u; + safe_disconnection_result_ = value; +} +inline void ConnectionsLog_EstablishedConnection::set_safe_disconnection_result(::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult value) { + _internal_set_safe_disconnection_result(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.EstablishedConnection.safe_disconnection_result) +} + // ------------------------------------------------------------------- // ConnectionsLog_Payload @@ -7462,6 +7744,201 @@ inline void ConnectionsLog_ErrorCode::set_disconnect_error(::location::nearby::e // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.disconnect_error) } +// .location.nearby.errorcode.proto.SendPayloadError send_payload_error = 17; +inline bool ConnectionsLog_ErrorCode::_internal_has_send_payload_error() const { + return ErrorCodeDetail_case() == kSendPayloadError; +} +inline bool ConnectionsLog_ErrorCode::has_send_payload_error() const { + return _internal_has_send_payload_error(); +} +inline void ConnectionsLog_ErrorCode::set_has_send_payload_error() { + _oneof_case_[0] = kSendPayloadError; +} +inline void ConnectionsLog_ErrorCode::clear_send_payload_error() { + if (_internal_has_send_payload_error()) { + ErrorCodeDetail_.send_payload_error_ = 31; + clear_has_ErrorCodeDetail(); + } +} +inline ::location::nearby::errorcode::proto::SendPayloadError ConnectionsLog_ErrorCode::_internal_send_payload_error() const { + if (_internal_has_send_payload_error()) { + return static_cast< ::location::nearby::errorcode::proto::SendPayloadError >(ErrorCodeDetail_.send_payload_error_); + } + return static_cast< ::location::nearby::errorcode::proto::SendPayloadError >(31); +} +inline ::location::nearby::errorcode::proto::SendPayloadError ConnectionsLog_ErrorCode::send_payload_error() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.send_payload_error) + return _internal_send_payload_error(); +} +inline void ConnectionsLog_ErrorCode::_internal_set_send_payload_error(::location::nearby::errorcode::proto::SendPayloadError value) { + assert(::location::nearby::errorcode::proto::SendPayloadError_IsValid(value)); + if (!_internal_has_send_payload_error()) { + clear_ErrorCodeDetail(); + set_has_send_payload_error(); + } + ErrorCodeDetail_.send_payload_error_ = value; +} +inline void ConnectionsLog_ErrorCode::set_send_payload_error(::location::nearby::errorcode::proto::SendPayloadError value) { + _internal_set_send_payload_error(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.send_payload_error) +} + +// .location.nearby.errorcode.proto.ReceivePayloadError receive_payload_error = 18; +inline bool ConnectionsLog_ErrorCode::_internal_has_receive_payload_error() const { + return ErrorCodeDetail_case() == kReceivePayloadError; +} +inline bool ConnectionsLog_ErrorCode::has_receive_payload_error() const { + return _internal_has_receive_payload_error(); +} +inline void ConnectionsLog_ErrorCode::set_has_receive_payload_error() { + _oneof_case_[0] = kReceivePayloadError; +} +inline void ConnectionsLog_ErrorCode::clear_receive_payload_error() { + if (_internal_has_receive_payload_error()) { + ErrorCodeDetail_.receive_payload_error_ = 31; + clear_has_ErrorCodeDetail(); + } +} +inline ::location::nearby::errorcode::proto::ReceivePayloadError ConnectionsLog_ErrorCode::_internal_receive_payload_error() const { + if (_internal_has_receive_payload_error()) { + return static_cast< ::location::nearby::errorcode::proto::ReceivePayloadError >(ErrorCodeDetail_.receive_payload_error_); + } + return static_cast< ::location::nearby::errorcode::proto::ReceivePayloadError >(31); +} +inline ::location::nearby::errorcode::proto::ReceivePayloadError ConnectionsLog_ErrorCode::receive_payload_error() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.receive_payload_error) + return _internal_receive_payload_error(); +} +inline void ConnectionsLog_ErrorCode::_internal_set_receive_payload_error(::location::nearby::errorcode::proto::ReceivePayloadError value) { + assert(::location::nearby::errorcode::proto::ReceivePayloadError_IsValid(value)); + if (!_internal_has_receive_payload_error()) { + clear_ErrorCodeDetail(); + set_has_receive_payload_error(); + } + ErrorCodeDetail_.receive_payload_error_ = value; +} +inline void ConnectionsLog_ErrorCode::set_receive_payload_error(::location::nearby::errorcode::proto::ReceivePayloadError value) { + _internal_set_receive_payload_error(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.receive_payload_error) +} + +// .location.nearby.errorcode.proto.UpgradeError upgrade_error = 19; +inline bool ConnectionsLog_ErrorCode::_internal_has_upgrade_error() const { + return ErrorCodeDetail_case() == kUpgradeError; +} +inline bool ConnectionsLog_ErrorCode::has_upgrade_error() const { + return _internal_has_upgrade_error(); +} +inline void ConnectionsLog_ErrorCode::set_has_upgrade_error() { + _oneof_case_[0] = kUpgradeError; +} +inline void ConnectionsLog_ErrorCode::clear_upgrade_error() { + if (_internal_has_upgrade_error()) { + ErrorCodeDetail_.upgrade_error_ = 31; + clear_has_ErrorCodeDetail(); + } +} +inline ::location::nearby::errorcode::proto::UpgradeError ConnectionsLog_ErrorCode::_internal_upgrade_error() const { + if (_internal_has_upgrade_error()) { + return static_cast< ::location::nearby::errorcode::proto::UpgradeError >(ErrorCodeDetail_.upgrade_error_); + } + return static_cast< ::location::nearby::errorcode::proto::UpgradeError >(31); +} +inline ::location::nearby::errorcode::proto::UpgradeError ConnectionsLog_ErrorCode::upgrade_error() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.upgrade_error) + return _internal_upgrade_error(); +} +inline void ConnectionsLog_ErrorCode::_internal_set_upgrade_error(::location::nearby::errorcode::proto::UpgradeError value) { + assert(::location::nearby::errorcode::proto::UpgradeError_IsValid(value)); + if (!_internal_has_upgrade_error()) { + clear_ErrorCodeDetail(); + set_has_upgrade_error(); + } + ErrorCodeDetail_.upgrade_error_ = value; +} +inline void ConnectionsLog_ErrorCode::set_upgrade_error(::location::nearby::errorcode::proto::UpgradeError value) { + _internal_set_upgrade_error(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.upgrade_error) +} + +// .location.nearby.errorcode.proto.AcceptConnectionError accept_connection_error = 20; +inline bool ConnectionsLog_ErrorCode::_internal_has_accept_connection_error() const { + return ErrorCodeDetail_case() == kAcceptConnectionError; +} +inline bool ConnectionsLog_ErrorCode::has_accept_connection_error() const { + return _internal_has_accept_connection_error(); +} +inline void ConnectionsLog_ErrorCode::set_has_accept_connection_error() { + _oneof_case_[0] = kAcceptConnectionError; +} +inline void ConnectionsLog_ErrorCode::clear_accept_connection_error() { + if (_internal_has_accept_connection_error()) { + ErrorCodeDetail_.accept_connection_error_ = 31; + clear_has_ErrorCodeDetail(); + } +} +inline ::location::nearby::errorcode::proto::AcceptConnectionError ConnectionsLog_ErrorCode::_internal_accept_connection_error() const { + if (_internal_has_accept_connection_error()) { + return static_cast< ::location::nearby::errorcode::proto::AcceptConnectionError >(ErrorCodeDetail_.accept_connection_error_); + } + return static_cast< ::location::nearby::errorcode::proto::AcceptConnectionError >(31); +} +inline ::location::nearby::errorcode::proto::AcceptConnectionError ConnectionsLog_ErrorCode::accept_connection_error() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.accept_connection_error) + return _internal_accept_connection_error(); +} +inline void ConnectionsLog_ErrorCode::_internal_set_accept_connection_error(::location::nearby::errorcode::proto::AcceptConnectionError value) { + assert(::location::nearby::errorcode::proto::AcceptConnectionError_IsValid(value)); + if (!_internal_has_accept_connection_error()) { + clear_ErrorCodeDetail(); + set_has_accept_connection_error(); + } + ErrorCodeDetail_.accept_connection_error_ = value; +} +inline void ConnectionsLog_ErrorCode::set_accept_connection_error(::location::nearby::errorcode::proto::AcceptConnectionError value) { + _internal_set_accept_connection_error(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.accept_connection_error) +} + +// .location.nearby.errorcode.proto.RejectConnectionError reject_connection_error = 21; +inline bool ConnectionsLog_ErrorCode::_internal_has_reject_connection_error() const { + return ErrorCodeDetail_case() == kRejectConnectionError; +} +inline bool ConnectionsLog_ErrorCode::has_reject_connection_error() const { + return _internal_has_reject_connection_error(); +} +inline void ConnectionsLog_ErrorCode::set_has_reject_connection_error() { + _oneof_case_[0] = kRejectConnectionError; +} +inline void ConnectionsLog_ErrorCode::clear_reject_connection_error() { + if (_internal_has_reject_connection_error()) { + ErrorCodeDetail_.reject_connection_error_ = 31; + clear_has_ErrorCodeDetail(); + } +} +inline ::location::nearby::errorcode::proto::RejectConnectionError ConnectionsLog_ErrorCode::_internal_reject_connection_error() const { + if (_internal_has_reject_connection_error()) { + return static_cast< ::location::nearby::errorcode::proto::RejectConnectionError >(ErrorCodeDetail_.reject_connection_error_); + } + return static_cast< ::location::nearby::errorcode::proto::RejectConnectionError >(31); +} +inline ::location::nearby::errorcode::proto::RejectConnectionError ConnectionsLog_ErrorCode::reject_connection_error() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.reject_connection_error) + return _internal_reject_connection_error(); +} +inline void ConnectionsLog_ErrorCode::_internal_set_reject_connection_error(::location::nearby::errorcode::proto::RejectConnectionError value) { + assert(::location::nearby::errorcode::proto::RejectConnectionError_IsValid(value)); + if (!_internal_has_reject_connection_error()) { + clear_ErrorCodeDetail(); + set_has_reject_connection_error(); + } + ErrorCodeDetail_.reject_connection_error_ = value; +} +inline void ConnectionsLog_ErrorCode::set_reject_connection_error(::location::nearby::errorcode::proto::RejectConnectionError value) { + _internal_set_reject_connection_error(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ErrorCode.reject_connection_error) +} + // optional string connection_token = 16; inline bool ConnectionsLog_ErrorCode::_internal_has_connection_token() const { bool value = (_has_bits_[0] & 0x00000002u) != 0; @@ -7656,6 +8133,35 @@ inline void ConnectionsLog_AdvertisingMetadata::set_multiple_advertisement_suppo // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.multiple_advertisement_supported) } +// optional .location.nearby.proto.connections.PowerLevel power_level = 5; +inline bool ConnectionsLog_AdvertisingMetadata::_internal_has_power_level() const { + bool value = (_has_bits_[0] & 0x00000010u) != 0; + return value; +} +inline bool ConnectionsLog_AdvertisingMetadata::has_power_level() const { + return _internal_has_power_level(); +} +inline void ConnectionsLog_AdvertisingMetadata::clear_power_level() { + power_level_ = -1; + _has_bits_[0] &= ~0x00000010u; +} +inline ::location::nearby::proto::connections::PowerLevel ConnectionsLog_AdvertisingMetadata::_internal_power_level() const { + return static_cast< ::location::nearby::proto::connections::PowerLevel >(power_level_); +} +inline ::location::nearby::proto::connections::PowerLevel ConnectionsLog_AdvertisingMetadata::power_level() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.power_level) + return _internal_power_level(); +} +inline void ConnectionsLog_AdvertisingMetadata::_internal_set_power_level(::location::nearby::proto::connections::PowerLevel value) { + assert(::location::nearby::proto::connections::PowerLevel_IsValid(value)); + _has_bits_[0] |= 0x00000010u; + power_level_ = value; +} +inline void ConnectionsLog_AdvertisingMetadata::set_power_level(::location::nearby::proto::connections::PowerLevel value) { + _internal_set_power_level(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.AdvertisingMetadata.power_level) +} + // ------------------------------------------------------------------- // ConnectionsLog_DiscoveryMetadata @@ -7744,6 +8250,35 @@ inline void ConnectionsLog_DiscoveryMetadata::set_supports_nfc_technology(bool v // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.supports_nfc_technology) } +// optional .location.nearby.proto.connections.PowerLevel power_level = 4; +inline bool ConnectionsLog_DiscoveryMetadata::_internal_has_power_level() const { + bool value = (_has_bits_[0] & 0x00000008u) != 0; + return value; +} +inline bool ConnectionsLog_DiscoveryMetadata::has_power_level() const { + return _internal_has_power_level(); +} +inline void ConnectionsLog_DiscoveryMetadata::clear_power_level() { + power_level_ = -1; + _has_bits_[0] &= ~0x00000008u; +} +inline ::location::nearby::proto::connections::PowerLevel ConnectionsLog_DiscoveryMetadata::_internal_power_level() const { + return static_cast< ::location::nearby::proto::connections::PowerLevel >(power_level_); +} +inline ::location::nearby::proto::connections::PowerLevel ConnectionsLog_DiscoveryMetadata::power_level() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.power_level) + return _internal_power_level(); +} +inline void ConnectionsLog_DiscoveryMetadata::_internal_set_power_level(::location::nearby::proto::connections::PowerLevel value) { + assert(::location::nearby::proto::connections::PowerLevel_IsValid(value)); + _has_bits_[0] |= 0x00000008u; + power_level_ = value; +} +inline void ConnectionsLog_DiscoveryMetadata::set_power_level(::location::nearby::proto::connections::PowerLevel value) { + _internal_set_power_level(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.DiscoveryMetadata.power_level) +} + // ------------------------------------------------------------------- // ConnectionsLog_ConnectionAttemptMetadata @@ -7974,7 +8509,7 @@ inline void ConnectionsLog_ConnectionAttemptMetadata::set_allocated_country_code // optional bool is_tdls_used = 6; inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_is_tdls_used() const { - bool value = (_has_bits_[0] & 0x00000040u) != 0; + bool value = (_has_bits_[0] & 0x00000080u) != 0; return value; } inline bool ConnectionsLog_ConnectionAttemptMetadata::has_is_tdls_used() const { @@ -7982,7 +8517,7 @@ inline bool ConnectionsLog_ConnectionAttemptMetadata::has_is_tdls_used() const { } inline void ConnectionsLog_ConnectionAttemptMetadata::clear_is_tdls_used() { is_tdls_used_ = false; - _has_bits_[0] &= ~0x00000040u; + _has_bits_[0] &= ~0x00000080u; } inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_is_tdls_used() const { return is_tdls_used_; @@ -7992,7 +8527,7 @@ inline bool ConnectionsLog_ConnectionAttemptMetadata::is_tdls_used() const { return _internal_is_tdls_used(); } inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_is_tdls_used(bool value) { - _has_bits_[0] |= 0x00000040u; + _has_bits_[0] |= 0x00000080u; is_tdls_used_ = value; } inline void ConnectionsLog_ConnectionAttemptMetadata::set_is_tdls_used(bool value) { @@ -8030,7 +8565,7 @@ inline void ConnectionsLog_ConnectionAttemptMetadata::set_try_counts(int32_t val // optional bool wifi_hotspot_status = 8; inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_wifi_hotspot_status() const { - bool value = (_has_bits_[0] & 0x00000080u) != 0; + bool value = (_has_bits_[0] & 0x00000100u) != 0; return value; } inline bool ConnectionsLog_ConnectionAttemptMetadata::has_wifi_hotspot_status() const { @@ -8038,7 +8573,7 @@ inline bool ConnectionsLog_ConnectionAttemptMetadata::has_wifi_hotspot_status() } inline void ConnectionsLog_ConnectionAttemptMetadata::clear_wifi_hotspot_status() { wifi_hotspot_status_ = false; - _has_bits_[0] &= ~0x00000080u; + _has_bits_[0] &= ~0x00000100u; } inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_wifi_hotspot_status() const { return wifi_hotspot_status_; @@ -8048,7 +8583,7 @@ inline bool ConnectionsLog_ConnectionAttemptMetadata::wifi_hotspot_status() cons return _internal_wifi_hotspot_status(); } inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_wifi_hotspot_status(bool value) { - _has_bits_[0] |= 0x00000080u; + _has_bits_[0] |= 0x00000100u; wifi_hotspot_status_ = value; } inline void ConnectionsLog_ConnectionAttemptMetadata::set_wifi_hotspot_status(bool value) { @@ -8058,7 +8593,7 @@ inline void ConnectionsLog_ConnectionAttemptMetadata::set_wifi_hotspot_status(bo // optional int32 max_tx_speed = 9; inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_max_tx_speed() const { - bool value = (_has_bits_[0] & 0x00000100u) != 0; + bool value = (_has_bits_[0] & 0x00000040u) != 0; return value; } inline bool ConnectionsLog_ConnectionAttemptMetadata::has_max_tx_speed() const { @@ -8066,7 +8601,7 @@ inline bool ConnectionsLog_ConnectionAttemptMetadata::has_max_tx_speed() const { } inline void ConnectionsLog_ConnectionAttemptMetadata::clear_max_tx_speed() { max_tx_speed_ = 0; - _has_bits_[0] &= ~0x00000100u; + _has_bits_[0] &= ~0x00000040u; } inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_max_tx_speed() const { return max_tx_speed_; @@ -8076,7 +8611,7 @@ inline int32_t ConnectionsLog_ConnectionAttemptMetadata::max_tx_speed() const { return _internal_max_tx_speed(); } inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_max_tx_speed(int32_t value) { - _has_bits_[0] |= 0x00000100u; + _has_bits_[0] |= 0x00000040u; max_tx_speed_ = value; } inline void ConnectionsLog_ConnectionAttemptMetadata::set_max_tx_speed(int32_t value) { @@ -8086,7 +8621,7 @@ inline void ConnectionsLog_ConnectionAttemptMetadata::set_max_tx_speed(int32_t v // optional int32 max_rx_speed = 10; inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_max_rx_speed() const { - bool value = (_has_bits_[0] & 0x00000200u) != 0; + bool value = (_has_bits_[0] & 0x00000400u) != 0; return value; } inline bool ConnectionsLog_ConnectionAttemptMetadata::has_max_rx_speed() const { @@ -8094,7 +8629,7 @@ inline bool ConnectionsLog_ConnectionAttemptMetadata::has_max_rx_speed() const { } inline void ConnectionsLog_ConnectionAttemptMetadata::clear_max_rx_speed() { max_rx_speed_ = 0; - _has_bits_[0] &= ~0x00000200u; + _has_bits_[0] &= ~0x00000400u; } inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_max_rx_speed() const { return max_rx_speed_; @@ -8104,7 +8639,7 @@ inline int32_t ConnectionsLog_ConnectionAttemptMetadata::max_rx_speed() const { return _internal_max_rx_speed(); } inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_max_rx_speed(int32_t value) { - _has_bits_[0] |= 0x00000200u; + _has_bits_[0] |= 0x00000400u; max_rx_speed_ = value; } inline void ConnectionsLog_ConnectionAttemptMetadata::set_max_rx_speed(int32_t value) { @@ -8114,7 +8649,7 @@ inline void ConnectionsLog_ConnectionAttemptMetadata::set_max_rx_speed(int32_t v // optional int32 wifi_channel_width = 11; inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_wifi_channel_width() const { - bool value = (_has_bits_[0] & 0x00000400u) != 0; + bool value = (_has_bits_[0] & 0x00000800u) != 0; return value; } inline bool ConnectionsLog_ConnectionAttemptMetadata::has_wifi_channel_width() const { @@ -8122,7 +8657,7 @@ inline bool ConnectionsLog_ConnectionAttemptMetadata::has_wifi_channel_width() c } inline void ConnectionsLog_ConnectionAttemptMetadata::clear_wifi_channel_width() { wifi_channel_width_ = 0; - _has_bits_[0] &= ~0x00000400u; + _has_bits_[0] &= ~0x00000800u; } inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_wifi_channel_width() const { return wifi_channel_width_; @@ -8132,7 +8667,7 @@ inline int32_t ConnectionsLog_ConnectionAttemptMetadata::wifi_channel_width() co return _internal_wifi_channel_width(); } inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_wifi_channel_width(int32_t value) { - _has_bits_[0] |= 0x00000400u; + _has_bits_[0] |= 0x00000800u; wifi_channel_width_ = value; } inline void ConnectionsLog_ConnectionAttemptMetadata::set_wifi_channel_width(int32_t value) { @@ -8142,7 +8677,7 @@ inline void ConnectionsLog_ConnectionAttemptMetadata::set_wifi_channel_width(int // optional int32 send_buffer_size = 12; inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_send_buffer_size() const { - bool value = (_has_bits_[0] & 0x00000800u) != 0; + bool value = (_has_bits_[0] & 0x00001000u) != 0; return value; } inline bool ConnectionsLog_ConnectionAttemptMetadata::has_send_buffer_size() const { @@ -8150,7 +8685,7 @@ inline bool ConnectionsLog_ConnectionAttemptMetadata::has_send_buffer_size() con } inline void ConnectionsLog_ConnectionAttemptMetadata::clear_send_buffer_size() { send_buffer_size_ = 0; - _has_bits_[0] &= ~0x00000800u; + _has_bits_[0] &= ~0x00001000u; } inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_send_buffer_size() const { return send_buffer_size_; @@ -8160,7 +8695,7 @@ inline int32_t ConnectionsLog_ConnectionAttemptMetadata::send_buffer_size() cons return _internal_send_buffer_size(); } inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_send_buffer_size(int32_t value) { - _has_bits_[0] |= 0x00000800u; + _has_bits_[0] |= 0x00001000u; send_buffer_size_ = value; } inline void ConnectionsLog_ConnectionAttemptMetadata::set_send_buffer_size(int32_t value) { @@ -8170,7 +8705,7 @@ inline void ConnectionsLog_ConnectionAttemptMetadata::set_send_buffer_size(int32 // optional int32 receive_buffer_size = 13; inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_receive_buffer_size() const { - bool value = (_has_bits_[0] & 0x00001000u) != 0; + bool value = (_has_bits_[0] & 0x00002000u) != 0; return value; } inline bool ConnectionsLog_ConnectionAttemptMetadata::has_receive_buffer_size() const { @@ -8178,7 +8713,7 @@ inline bool ConnectionsLog_ConnectionAttemptMetadata::has_receive_buffer_size() } inline void ConnectionsLog_ConnectionAttemptMetadata::clear_receive_buffer_size() { receive_buffer_size_ = 0; - _has_bits_[0] &= ~0x00001000u; + _has_bits_[0] &= ~0x00002000u; } inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_receive_buffer_size() const { return receive_buffer_size_; @@ -8188,7 +8723,7 @@ inline int32_t ConnectionsLog_ConnectionAttemptMetadata::receive_buffer_size() c return _internal_receive_buffer_size(); } inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_receive_buffer_size(int32_t value) { - _has_bits_[0] |= 0x00001000u; + _has_bits_[0] |= 0x00002000u; receive_buffer_size_ = value; } inline void ConnectionsLog_ConnectionAttemptMetadata::set_receive_buffer_size(int32_t value) { @@ -8196,6 +8731,62 @@ inline void ConnectionsLog_ConnectionAttemptMetadata::set_receive_buffer_size(in // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.receive_buffer_size) } +// optional int32 connected_ap_frequency = 14; +inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_connected_ap_frequency() const { + bool value = (_has_bits_[0] & 0x00004000u) != 0; + return value; +} +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_connected_ap_frequency() const { + return _internal_has_connected_ap_frequency(); +} +inline void ConnectionsLog_ConnectionAttemptMetadata::clear_connected_ap_frequency() { + connected_ap_frequency_ = 0; + _has_bits_[0] &= ~0x00004000u; +} +inline int32_t ConnectionsLog_ConnectionAttemptMetadata::_internal_connected_ap_frequency() const { + return connected_ap_frequency_; +} +inline int32_t ConnectionsLog_ConnectionAttemptMetadata::connected_ap_frequency() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.connected_ap_frequency) + return _internal_connected_ap_frequency(); +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_connected_ap_frequency(int32_t value) { + _has_bits_[0] |= 0x00004000u; + connected_ap_frequency_ = value; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::set_connected_ap_frequency(int32_t value) { + _internal_set_connected_ap_frequency(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.connected_ap_frequency) +} + +// optional bool is_mcc_mode = 15; +inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_has_is_mcc_mode() const { + bool value = (_has_bits_[0] & 0x00000200u) != 0; + return value; +} +inline bool ConnectionsLog_ConnectionAttemptMetadata::has_is_mcc_mode() const { + return _internal_has_is_mcc_mode(); +} +inline void ConnectionsLog_ConnectionAttemptMetadata::clear_is_mcc_mode() { + is_mcc_mode_ = false; + _has_bits_[0] &= ~0x00000200u; +} +inline bool ConnectionsLog_ConnectionAttemptMetadata::_internal_is_mcc_mode() const { + return is_mcc_mode_; +} +inline bool ConnectionsLog_ConnectionAttemptMetadata::is_mcc_mode() const { + // @@protoc_insertion_point(field_get:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.is_mcc_mode) + return _internal_is_mcc_mode(); +} +inline void ConnectionsLog_ConnectionAttemptMetadata::_internal_set_is_mcc_mode(bool value) { + _has_bits_[0] |= 0x00000200u; + is_mcc_mode_ = value; +} +inline void ConnectionsLog_ConnectionAttemptMetadata::set_is_mcc_mode(bool value) { + _internal_set_is_mcc_mode(value); + // @@protoc_insertion_point(field_set:location.nearby.analytics.proto.ConnectionsLog.ConnectionAttemptMetadata.is_mcc_mode) +} + // ------------------------------------------------------------------- // ConnectionsLog @@ -8619,6 +9210,12 @@ inline void ConnectionsLog::set_allocated_files_migration_phase(std::string* fil } // namespace nearby } // namespace location +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::location::nearby::analytics::proto::ConnectionsLog_EstablishedConnection_SafeDisconnectionResult> : ::std::true_type {}; + +PROTOBUF_NAMESPACE_CLOSE + // @@protoc_insertion_point(global_scope) #include diff --git a/compiled_proto/proto/connections_enums.pb.cc b/compiled_proto/proto/connections_enums.pb.cc index 1b37f696..e5fac4cc 100644 --- a/compiled_proto/proto/connections_enums.pb.cc +++ b/compiled_proto/proto/connections_enums.pb.cc @@ -230,13 +230,14 @@ bool Medium_IsValid(int value) { case 8: case 9: case 10: + case 11: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Medium_strings[11] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Medium_strings[12] = {}; static const char Medium_names[] = "BLE" @@ -245,6 +246,7 @@ static const char Medium_names[] = "MDNS" "NFC" "UNKNOWN_MEDIUM" + "USB" "WEB_RTC" "WIFI_AWARE" "WIFI_DIRECT" @@ -258,25 +260,27 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Medium_entries[] = { { {Medium_names + 21, 4}, 1 }, { {Medium_names + 25, 3}, 7 }, { {Medium_names + 28, 14}, 0 }, - { {Medium_names + 42, 7}, 9 }, - { {Medium_names + 49, 10}, 6 }, - { {Medium_names + 59, 11}, 8 }, - { {Medium_names + 70, 12}, 3 }, - { {Medium_names + 82, 8}, 5 }, + { {Medium_names + 42, 3}, 11 }, + { {Medium_names + 45, 7}, 9 }, + { {Medium_names + 52, 10}, 6 }, + { {Medium_names + 62, 11}, 8 }, + { {Medium_names + 73, 12}, 3 }, + { {Medium_names + 85, 8}, 5 }, }; static const int Medium_entries_by_number[] = { 5, // 0 -> UNKNOWN_MEDIUM 3, // 1 -> MDNS 2, // 2 -> BLUETOOTH - 9, // 3 -> WIFI_HOTSPOT + 10, // 3 -> WIFI_HOTSPOT 0, // 4 -> BLE - 10, // 5 -> WIFI_LAN - 7, // 6 -> WIFI_AWARE + 11, // 5 -> WIFI_LAN + 8, // 6 -> WIFI_AWARE 4, // 7 -> NFC - 8, // 8 -> WIFI_DIRECT - 6, // 9 -> WEB_RTC + 9, // 8 -> WIFI_DIRECT + 7, // 9 -> WEB_RTC 1, // 10 -> BLE_L2CAP + 6, // 11 -> USB }; const std::string& Medium_Name( @@ -285,12 +289,12 @@ const std::string& Medium_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( Medium_entries, Medium_entries_by_number, - 11, Medium_strings); + 12, Medium_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( Medium_entries, Medium_entries_by_number, - 11, value); + 12, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : Medium_strings[idx].get(); } @@ -298,7 +302,7 @@ bool Medium_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Medium* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - Medium_entries, 11, name, &int_value); + Medium_entries, 12, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -844,22 +848,26 @@ bool PayloadStatus_IsValid(int value) { case 7: case 8: case 9: + case 10: + case 11: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadStatus_strings[10] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PayloadStatus_strings[12] = {}; static const char PayloadStatus_names[] = "CONNECTION_CLOSED" "ENDPOINT_IO_ERROR" "ENDPOINT_UNENCRYPTED" "LOCAL_CANCELLATION" + "LOCAL_CLIENT_DISCONNECTION" "LOCAL_ERROR" "MOVED_TO_NEW_MEDIUM" "REMOTE_CANCELLATION" + "REMOTE_CLIENT_DISCONNECTION" "REMOTE_ERROR" "SUCCESS" "UNKNOWN_PAYLOAD_STATUS"; @@ -869,25 +877,29 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadStatus_entries[ { {PayloadStatus_names + 17, 17}, 4 }, { {PayloadStatus_names + 34, 20}, 9 }, { {PayloadStatus_names + 54, 18}, 7 }, - { {PayloadStatus_names + 72, 11}, 2 }, - { {PayloadStatus_names + 83, 19}, 5 }, - { {PayloadStatus_names + 102, 19}, 8 }, - { {PayloadStatus_names + 121, 12}, 3 }, - { {PayloadStatus_names + 133, 7}, 1 }, - { {PayloadStatus_names + 140, 22}, 0 }, + { {PayloadStatus_names + 72, 26}, 10 }, + { {PayloadStatus_names + 98, 11}, 2 }, + { {PayloadStatus_names + 109, 19}, 5 }, + { {PayloadStatus_names + 128, 19}, 8 }, + { {PayloadStatus_names + 147, 27}, 11 }, + { {PayloadStatus_names + 174, 12}, 3 }, + { {PayloadStatus_names + 186, 7}, 1 }, + { {PayloadStatus_names + 193, 22}, 0 }, }; static const int PayloadStatus_entries_by_number[] = { - 9, // 0 -> UNKNOWN_PAYLOAD_STATUS - 8, // 1 -> SUCCESS - 4, // 2 -> LOCAL_ERROR - 7, // 3 -> REMOTE_ERROR + 11, // 0 -> UNKNOWN_PAYLOAD_STATUS + 10, // 1 -> SUCCESS + 5, // 2 -> LOCAL_ERROR + 9, // 3 -> REMOTE_ERROR 1, // 4 -> ENDPOINT_IO_ERROR - 5, // 5 -> MOVED_TO_NEW_MEDIUM + 6, // 5 -> MOVED_TO_NEW_MEDIUM 0, // 6 -> CONNECTION_CLOSED 3, // 7 -> LOCAL_CANCELLATION - 6, // 8 -> REMOTE_CANCELLATION + 7, // 8 -> REMOTE_CANCELLATION 2, // 9 -> ENDPOINT_UNENCRYPTED + 4, // 10 -> LOCAL_CLIENT_DISCONNECTION + 8, // 11 -> REMOTE_CLIENT_DISCONNECTION }; const std::string& PayloadStatus_Name( @@ -896,12 +908,12 @@ const std::string& PayloadStatus_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( PayloadStatus_entries, PayloadStatus_entries_by_number, - 10, PayloadStatus_strings); + 12, PayloadStatus_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( PayloadStatus_entries, PayloadStatus_entries_by_number, - 10, value); + 12, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : PayloadStatus_strings[idx].get(); } @@ -909,7 +921,7 @@ bool PayloadStatus_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadStatus* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - PayloadStatus_entries, 10, name, &int_value); + PayloadStatus_entries, 12, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -993,13 +1005,14 @@ bool BandwidthUpgradeResult_IsValid(int value) { case 16: case 17: case 18: + case 19: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed BandwidthUpgradeResult_strings[17] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed BandwidthUpgradeResult_strings[18] = {}; static const char BandwidthUpgradeResult_names[] = "ALREADY_ON_MEDIUM_ERROR" @@ -1008,6 +1021,7 @@ static const char BandwidthUpgradeResult_names[] = "CHANNEL_ERROR" "MEDIUM_ERROR" "PROTOCOL_ERROR" + "REMOTE_CONNECTION_ERROR" "RESULT_IO_ERROR" "RESULT_REMOTE_ERROR" "UNFINISHED_ERROR" @@ -1027,37 +1041,39 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeResult { {BandwidthUpgradeResult_names + 60, 13}, 6 }, { {BandwidthUpgradeResult_names + 73, 12}, 3 }, { {BandwidthUpgradeResult_names + 85, 14}, 4 }, - { {BandwidthUpgradeResult_names + 99, 15}, 5 }, - { {BandwidthUpgradeResult_names + 114, 19}, 17 }, - { {BandwidthUpgradeResult_names + 133, 16}, 10 }, - { {BandwidthUpgradeResult_names + 149, 32}, 0 }, - { {BandwidthUpgradeResult_names + 181, 20}, 2 }, - { {BandwidthUpgradeResult_names + 201, 22}, 1 }, - { {BandwidthUpgradeResult_names + 223, 20}, 16 }, - { {BandwidthUpgradeResult_names + 243, 23}, 12 }, - { {BandwidthUpgradeResult_names + 266, 24}, 15 }, - { {BandwidthUpgradeResult_names + 290, 25}, 14 }, - { {BandwidthUpgradeResult_names + 315, 21}, 13 }, + { {BandwidthUpgradeResult_names + 99, 23}, 19 }, + { {BandwidthUpgradeResult_names + 122, 15}, 5 }, + { {BandwidthUpgradeResult_names + 137, 19}, 17 }, + { {BandwidthUpgradeResult_names + 156, 16}, 10 }, + { {BandwidthUpgradeResult_names + 172, 32}, 0 }, + { {BandwidthUpgradeResult_names + 204, 20}, 2 }, + { {BandwidthUpgradeResult_names + 224, 22}, 1 }, + { {BandwidthUpgradeResult_names + 246, 20}, 16 }, + { {BandwidthUpgradeResult_names + 266, 23}, 12 }, + { {BandwidthUpgradeResult_names + 289, 24}, 15 }, + { {BandwidthUpgradeResult_names + 313, 25}, 14 }, + { {BandwidthUpgradeResult_names + 338, 21}, 13 }, }; static const int BandwidthUpgradeResult_entries_by_number[] = { - 9, // 0 -> UNKNOWN_BANDWIDTH_UPGRADE_RESULT - 11, // 1 -> UPGRADE_RESULT_SUCCESS - 10, // 2 -> UPGRADE_RESULT_ERROR + 10, // 0 -> UNKNOWN_BANDWIDTH_UPGRADE_RESULT + 12, // 1 -> UPGRADE_RESULT_SUCCESS + 11, // 2 -> UPGRADE_RESULT_ERROR 4, // 3 -> MEDIUM_ERROR 5, // 4 -> PROTOCOL_ERROR - 6, // 5 -> RESULT_IO_ERROR + 7, // 5 -> RESULT_IO_ERROR 3, // 6 -> CHANNEL_ERROR 0, // 7 -> ALREADY_ON_MEDIUM_ERROR - 8, // 10 -> UNFINISHED_ERROR + 9, // 10 -> UNFINISHED_ERROR 2, // 11 -> BLUETOOTH_MEDIUM_ERROR - 13, // 12 -> WIFI_AWARE_MEDIUM_ERROR - 16, // 13 -> WIFI_LAN_MEDIUM_ERROR - 15, // 14 -> WIFI_HOTSPOT_MEDIUM_ERROR - 14, // 15 -> WIFI_DIRECT_MEDIUM_ERROR - 12, // 16 -> WEB_RTC_MEDIUM_ERROR - 7, // 17 -> RESULT_REMOTE_ERROR + 14, // 12 -> WIFI_AWARE_MEDIUM_ERROR + 17, // 13 -> WIFI_LAN_MEDIUM_ERROR + 16, // 14 -> WIFI_HOTSPOT_MEDIUM_ERROR + 15, // 15 -> WIFI_DIRECT_MEDIUM_ERROR + 13, // 16 -> WEB_RTC_MEDIUM_ERROR + 8, // 17 -> RESULT_REMOTE_ERROR 1, // 18 -> ATTEMPT_SKIPPED + 6, // 19 -> REMOTE_CONNECTION_ERROR }; const std::string& BandwidthUpgradeResult_Name( @@ -1066,12 +1082,12 @@ const std::string& BandwidthUpgradeResult_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( BandwidthUpgradeResult_entries, BandwidthUpgradeResult_entries_by_number, - 17, BandwidthUpgradeResult_strings); + 18, BandwidthUpgradeResult_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( BandwidthUpgradeResult_entries, BandwidthUpgradeResult_entries_by_number, - 17, value); + 18, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : BandwidthUpgradeResult_strings[idx].get(); } @@ -1079,7 +1095,7 @@ bool BandwidthUpgradeResult_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeResult* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - BandwidthUpgradeResult_entries, 17, name, &int_value); + BandwidthUpgradeResult_entries, 18, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -1335,6 +1351,69 @@ bool LogSource_Parse( } return success; } +bool PowerLevel_IsValid(int value) { + switch (value) { + case -1: + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PowerLevel_strings[5] = {}; + +static const char PowerLevel_names[] = + "BALANCED_POWER" + "HIGH_POWER" + "LOW_POWER" + "ULTRA_LOW_POWER" + "UNSPECIFIED"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PowerLevel_entries[] = { + { {PowerLevel_names + 0, 14}, 2 }, + { {PowerLevel_names + 14, 10}, 3 }, + { {PowerLevel_names + 24, 9}, 1 }, + { {PowerLevel_names + 33, 15}, -1 }, + { {PowerLevel_names + 48, 11}, 0 }, +}; + +static const int PowerLevel_entries_by_number[] = { + 3, // -1 -> ULTRA_LOW_POWER + 4, // 0 -> UNSPECIFIED + 2, // 1 -> LOW_POWER + 0, // 2 -> BALANCED_POWER + 1, // 3 -> HIGH_POWER +}; + +const std::string& PowerLevel_Name( + PowerLevel value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + PowerLevel_entries, + PowerLevel_entries_by_number, + 5, PowerLevel_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + PowerLevel_entries, + PowerLevel_entries_by_number, + 5, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + PowerLevel_strings[idx].get(); +} +bool PowerLevel_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PowerLevel* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + PowerLevel_entries, 5, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} // @@protoc_insertion_point(namespace_scope) } // namespace connections diff --git a/compiled_proto/proto/connections_enums.pb.h b/compiled_proto/proto/connections_enums.pb.h index d6bc981d..079b18b6 100644 --- a/compiled_proto/proto/connections_enums.pb.h +++ b/compiled_proto/proto/connections_enums.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#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. @@ -135,11 +135,12 @@ enum Medium : int { NFC = 7, WIFI_DIRECT = 8, WEB_RTC = 9, - BLE_L2CAP = 10 + BLE_L2CAP = 10, + USB = 11 }; bool Medium_IsValid(int value); constexpr Medium Medium_MIN = UNKNOWN_MEDIUM; -constexpr Medium Medium_MAX = BLE_L2CAP; +constexpr Medium Medium_MAX = USB; constexpr int Medium_ARRAYSIZE = Medium_MAX + 1; const std::string& Medium_Name(Medium value); @@ -344,11 +345,13 @@ enum PayloadStatus : int { CONNECTION_CLOSED = 6, LOCAL_CANCELLATION = 7, REMOTE_CANCELLATION = 8, - ENDPOINT_UNENCRYPTED = 9 + ENDPOINT_UNENCRYPTED = 9, + LOCAL_CLIENT_DISCONNECTION = 10, + REMOTE_CLIENT_DISCONNECTION = 11 }; bool PayloadStatus_IsValid(int value); constexpr PayloadStatus PayloadStatus_MIN = UNKNOWN_PAYLOAD_STATUS; -constexpr PayloadStatus PayloadStatus_MAX = ENDPOINT_UNENCRYPTED; +constexpr PayloadStatus PayloadStatus_MAX = REMOTE_CLIENT_DISCONNECTION; constexpr int PayloadStatus_ARRAYSIZE = PayloadStatus_MAX + 1; const std::string& PayloadStatus_Name(PayloadStatus value); @@ -399,11 +402,12 @@ enum BandwidthUpgradeResult : int { WIFI_DIRECT_MEDIUM_ERROR = 15, WEB_RTC_MEDIUM_ERROR = 16, RESULT_REMOTE_ERROR = 17, - ATTEMPT_SKIPPED = 18 + ATTEMPT_SKIPPED = 18, + REMOTE_CONNECTION_ERROR = 19 }; bool BandwidthUpgradeResult_IsValid(int value); constexpr BandwidthUpgradeResult BandwidthUpgradeResult_MIN = UNKNOWN_BANDWIDTH_UPGRADE_RESULT; -constexpr BandwidthUpgradeResult BandwidthUpgradeResult_MAX = ATTEMPT_SKIPPED; +constexpr BandwidthUpgradeResult BandwidthUpgradeResult_MAX = REMOTE_CONNECTION_ERROR; constexpr int BandwidthUpgradeResult_ARRAYSIZE = BandwidthUpgradeResult_MAX + 1; const std::string& BandwidthUpgradeResult_Name(BandwidthUpgradeResult value); @@ -491,6 +495,28 @@ inline const std::string& LogSource_Name(T enum_t_value) { } bool LogSource_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LogSource* value); +enum PowerLevel : int { + ULTRA_LOW_POWER = -1, + UNSPECIFIED = 0, + LOW_POWER = 1, + BALANCED_POWER = 2, + HIGH_POWER = 3 +}; +bool PowerLevel_IsValid(int value); +constexpr PowerLevel PowerLevel_MIN = ULTRA_LOW_POWER; +constexpr PowerLevel PowerLevel_MAX = HIGH_POWER; +constexpr int PowerLevel_ARRAYSIZE = PowerLevel_MAX + 1; + +const std::string& PowerLevel_Name(PowerLevel value); +template +inline const std::string& PowerLevel_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PowerLevel_Name."); + return PowerLevel_Name(static_cast(enum_t_value)); +} +bool PowerLevel_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PowerLevel* value); // =================================================================== @@ -533,6 +559,7 @@ template <> struct is_proto_enum< ::location::nearby::proto::connections::Bandwi template <> struct is_proto_enum< ::location::nearby::proto::connections::BandwidthUpgradeResult> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::proto::connections::BandwidthUpgradeErrorStage> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::proto::connections::LogSource> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::proto::connections::PowerLevel> : ::std::true_type {}; PROTOBUF_NAMESPACE_CLOSE diff --git a/compiled_proto/proto/errorcode/error_code_enums.pb.cc b/compiled_proto/proto/errorcode/error_code_enums.pb.cc index 6a8cb413..af5e3559 100644 --- a/compiled_proto/proto/errorcode/error_code_enums.pb.cc +++ b/compiled_proto/proto/errorcode/error_code_enums.pb.cc @@ -107,13 +107,14 @@ bool Event_IsValid(int value) { case 11: case 12: case 13: + case 14: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Event_strings[14] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Event_strings[15] = {}; static const char Event_names[] = "ACCEPT_CONNECTION" @@ -129,7 +130,8 @@ static const char Event_names[] = "STOP_ADVERTISING" "STOP_DISCOVERING" "STOP_LISTENING_INCOMING_CONNECTION" - "UNKNOWN_EVENT"; + "UNKNOWN_EVENT" + "UPGRADE"; static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Event_entries[] = { { {Event_names + 0, 17}, 9 }, @@ -146,6 +148,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Event_entries[] = { { {Event_names + 177, 16}, 6 }, { {Event_names + 193, 34}, 4 }, { {Event_names + 227, 13}, 0 }, + { {Event_names + 240, 7}, 14 }, }; static const int Event_entries_by_number[] = { @@ -163,6 +166,7 @@ static const int Event_entries_by_number[] = { 6, // 11 -> SEND_PAYLOAD 1, // 12 -> CANCEL_PAYLOAD 4, // 13 -> RECEIVE_PAYLOAD + 14, // 14 -> UPGRADE }; const std::string& Event_Name( @@ -171,12 +175,12 @@ const std::string& Event_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( Event_entries, Event_entries_by_number, - 14, Event_strings); + 15, Event_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( Event_entries, Event_entries_by_number, - 14, value); + 15, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : Event_strings[idx].get(); } @@ -184,7 +188,7 @@ bool Event_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Event* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - Event_entries, 14, name, &int_value); + Event_entries, 15, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -865,6 +869,261 @@ bool DisconnectError_Parse( } return success; } +bool SendPayloadError_IsValid(int value) { + switch (value) { + case 31: + case 32: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed SendPayloadError_strings[2] = {}; + +static const char SendPayloadError_names[] = + "SEND_PAYLOAD_FAILED" + "UNKNOWN_SEND_PAYLOAD_ERROR"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SendPayloadError_entries[] = { + { {SendPayloadError_names + 0, 19}, 32 }, + { {SendPayloadError_names + 19, 26}, 31 }, +}; + +static const int SendPayloadError_entries_by_number[] = { + 1, // 31 -> UNKNOWN_SEND_PAYLOAD_ERROR + 0, // 32 -> SEND_PAYLOAD_FAILED +}; + +const std::string& SendPayloadError_Name( + SendPayloadError value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + SendPayloadError_entries, + SendPayloadError_entries_by_number, + 2, SendPayloadError_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + SendPayloadError_entries, + SendPayloadError_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + SendPayloadError_strings[idx].get(); +} +bool SendPayloadError_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SendPayloadError* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + SendPayloadError_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool ReceivePayloadError_IsValid(int value) { + switch (value) { + case 31: + case 32: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ReceivePayloadError_strings[2] = {}; + +static const char ReceivePayloadError_names[] = + "RECEIVE_PAYLOAD_FAILED" + "UNKNOWN_RECEIVE_PAYLOAD_ERROR"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ReceivePayloadError_entries[] = { + { {ReceivePayloadError_names + 0, 22}, 32 }, + { {ReceivePayloadError_names + 22, 29}, 31 }, +}; + +static const int ReceivePayloadError_entries_by_number[] = { + 1, // 31 -> UNKNOWN_RECEIVE_PAYLOAD_ERROR + 0, // 32 -> RECEIVE_PAYLOAD_FAILED +}; + +const std::string& ReceivePayloadError_Name( + ReceivePayloadError value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + ReceivePayloadError_entries, + ReceivePayloadError_entries_by_number, + 2, ReceivePayloadError_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + ReceivePayloadError_entries, + ReceivePayloadError_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + ReceivePayloadError_strings[idx].get(); +} +bool ReceivePayloadError_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ReceivePayloadError* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + ReceivePayloadError_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool UpgradeError_IsValid(int value) { + switch (value) { + case 31: + case 32: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed UpgradeError_strings[2] = {}; + +static const char UpgradeError_names[] = + "CREATE_P2P_GROUP_FAILED" + "UNKNOWN_UPGRADE_ERROR"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry UpgradeError_entries[] = { + { {UpgradeError_names + 0, 23}, 32 }, + { {UpgradeError_names + 23, 21}, 31 }, +}; + +static const int UpgradeError_entries_by_number[] = { + 1, // 31 -> UNKNOWN_UPGRADE_ERROR + 0, // 32 -> CREATE_P2P_GROUP_FAILED +}; + +const std::string& UpgradeError_Name( + UpgradeError value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + UpgradeError_entries, + UpgradeError_entries_by_number, + 2, UpgradeError_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + UpgradeError_entries, + UpgradeError_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + UpgradeError_strings[idx].get(); +} +bool UpgradeError_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UpgradeError* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + UpgradeError_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool AcceptConnectionError_IsValid(int value) { + switch (value) { + case 31: + case 32: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AcceptConnectionError_strings[2] = {}; + +static const char AcceptConnectionError_names[] = + "RESPOND_ACCEPT_CONNECTION_FAILED" + "UNKNOWN_ACCEPT_CONNECTION_ERROR"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AcceptConnectionError_entries[] = { + { {AcceptConnectionError_names + 0, 32}, 32 }, + { {AcceptConnectionError_names + 32, 31}, 31 }, +}; + +static const int AcceptConnectionError_entries_by_number[] = { + 1, // 31 -> UNKNOWN_ACCEPT_CONNECTION_ERROR + 0, // 32 -> RESPOND_ACCEPT_CONNECTION_FAILED +}; + +const std::string& AcceptConnectionError_Name( + AcceptConnectionError value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + AcceptConnectionError_entries, + AcceptConnectionError_entries_by_number, + 2, AcceptConnectionError_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + AcceptConnectionError_entries, + AcceptConnectionError_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + AcceptConnectionError_strings[idx].get(); +} +bool AcceptConnectionError_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AcceptConnectionError* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + AcceptConnectionError_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool RejectConnectionError_IsValid(int value) { + switch (value) { + case 31: + case 32: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed RejectConnectionError_strings[2] = {}; + +static const char RejectConnectionError_names[] = + "RESPOND_REJECT_CONNECTION_FAILED" + "UNKNOWN_REJECT_CONNECTION_ERROR"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry RejectConnectionError_entries[] = { + { {RejectConnectionError_names + 0, 32}, 32 }, + { {RejectConnectionError_names + 32, 31}, 31 }, +}; + +static const int RejectConnectionError_entries_by_number[] = { + 1, // 31 -> UNKNOWN_REJECT_CONNECTION_ERROR + 0, // 32 -> RESPOND_REJECT_CONNECTION_FAILED +}; + +const std::string& RejectConnectionError_Name( + RejectConnectionError value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + RejectConnectionError_entries, + RejectConnectionError_entries_by_number, + 2, RejectConnectionError_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + RejectConnectionError_entries, + RejectConnectionError_entries_by_number, + 2, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + RejectConnectionError_strings[idx].get(); +} +bool RejectConnectionError_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RejectConnectionError* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + RejectConnectionError_entries, 2, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} bool Description_IsValid(int value) { switch (value) { case 0: @@ -1037,13 +1296,29 @@ bool Description_IsValid(int value) { case 169: case 170: case 171: + case 172: + case 173: + case 174: + case 175: + case 176: + case 177: + case 178: + case 179: + case 180: + case 181: + case 182: + case 183: + case 184: + case 185: + case 186: + case 187: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Description_strings[170] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed Description_strings[186] = {}; static const char Description_names[] = "ACQUIRE_P2P_CHANNEL_FAILED" @@ -1068,9 +1343,11 @@ static const char Description_names[] = "BLUETOOTH_SCAN_REJUVENATE_FAILED" "BLUETOOTH_SOCKET_CLOSED_AFTER_CONNECTED" "BLUETOOTH_SOCKET_NOT_IN_LISTENING_STATE" + "BROKEN_PIPE" "BUSY" "CLOSE_SERVER_SOCKET_FAILED" "CONNECTIONS_FEATURE_DISABLED" + "CONNECTION_ABORT" "CONNET_TO_SOCKET_CANCELLED" "CREATE_OFFER_FAILED" "EMPTY_TACHYON_ICE_SERVER" @@ -1081,6 +1358,9 @@ static const char Description_names[] = "FEATURE_BLUETOOTH_NOT_SUPPORTED" "FEATURE_NFC_HOST_CARD_EMULATION_NOT_SUPPORTED" "FEATURE_NFC_NOT_SUPPORTED" + "FEATURE_USB_ACCESSORY_NOT_SUPPORTED" + "FEATURE_USB_HOST_NOT_SUPPORTED" + "FEATURE_USB_PORTS_NOT_FOUND" "FEATURE_WIFI_AWARE_NOT_SUPPORTED" "FEATURE_WIFI_DIRECT_NOT_SUPPORTED" "FEATURE_WIFI_NOT_SUPPORTED" @@ -1113,6 +1393,14 @@ static const char Description_names[] = "JOIN_AWARE_NETWORK_CANCELLED" "L2CAP_UNAVAILABLE" "MULTICAST_NOT_SUPPORTED" + "MULTIPLEX_SOCKET_DISABLED" + "MULTIPLEX_SOCKET_EXECUTION_EXCEPTION" + "MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION" + "MULTIPLEX_SOCKET_IOEXCEPTION" + "MULTIPLEX_SOCKET_NOT_LISTENING" + "MULTIPLEX_SOCKET_TIMEOUT" + "MULTIPLEX_SOCKET_UNKNOWN_ERROR" + "MULTIPLEX_SOCKET_UNKNOWN_RESPONSE_CODE" "NETWORK_ALREADY_JOINED" "NETWORK_ERROR_EHOSTUNREACH" "NETWORK_ERROR_ENETUNREACH" @@ -1201,9 +1489,12 @@ static const char Description_names[] = "UNSUPPORTED_DEVICE_TYPE" "UNSUPPORTED_DEVICE_TYPE_AUTO" "UNSUPPORTED_DEVICE_TYPE_CHROME_OS" + "UNSUPPORTED_DEVICE_TYPE_PHONE" + "UNSUPPORTED_DEVICE_TYPE_TABLET" "UNSUPPORTED_DEVICE_TYPE_TV" "UNSUPPORTED_DEVICE_TYPE_WEAR" "UPDATE_NETWORK_FAILED" + "USER_RESTRICTION_DISALLOWED" "WEBRTC_ALREADY_INITIALIZED" "WEBRTC_CONNECTION_FLOW_EXIST" "WIFI_AWARE_STARTED" @@ -1240,327 +1531,359 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Description_entries[] { {Description_names + 565, 32}, 51 }, { {Description_names + 597, 39}, 57 }, { {Description_names + 636, 39}, 135 }, - { {Description_names + 675, 4}, 99 }, - { {Description_names + 679, 26}, 149 }, - { {Description_names + 705, 28}, 3 }, - { {Description_names + 733, 26}, 90 }, - { {Description_names + 759, 19}, 148 }, - { {Description_names + 778, 24}, 126 }, - { {Description_names + 802, 23}, 44 }, - { {Description_names + 825, 19}, 20 }, - { {Description_names + 844, 28}, 129 }, - { {Description_names + 872, 34}, 6 }, - { {Description_names + 906, 31}, 5 }, - { {Description_names + 937, 45}, 27 }, - { {Description_names + 982, 25}, 26 }, - { {Description_names + 1007, 32}, 36 }, - { {Description_names + 1039, 33}, 93 }, - { {Description_names + 1072, 26}, 76 }, - { {Description_names + 1098, 18}, 138 }, - { {Description_names + 1116, 26}, 162 }, - { {Description_names + 1142, 19}, 144 }, - { {Description_names + 1161, 14}, 98 }, - { {Description_names + 1175, 21}, 19 }, - { {Description_names + 1196, 33}, 11 }, - { {Description_names + 1229, 12}, 106 }, - { {Description_names + 1241, 25}, 58 }, - { {Description_names + 1266, 36}, 136 }, - { {Description_names + 1302, 38}, 137 }, - { {Description_names + 1340, 45}, 56 }, - { {Description_names + 1385, 31}, 10 }, - { {Description_names + 1416, 26}, 9 }, - { {Description_names + 1442, 20}, 65 }, - { {Description_names + 1462, 20}, 66 }, - { {Description_names + 1482, 18}, 108 }, - { {Description_names + 1500, 20}, 62 }, - { {Description_names + 1520, 21}, 61 }, - { {Description_names + 1541, 19}, 32 }, - { {Description_names + 1560, 34}, 12 }, - { {Description_names + 1594, 22}, 142 }, - { {Description_names + 1616, 15}, 68 }, - { {Description_names + 1631, 20}, 146 }, - { {Description_names + 1651, 17}, 23 }, - { {Description_names + 1668, 13}, 75 }, - { {Description_names + 1681, 19}, 140 }, - { {Description_names + 1700, 28}, 86 }, - { {Description_names + 1728, 17}, 164 }, - { {Description_names + 1745, 23}, 30 }, - { {Description_names + 1768, 22}, 85 }, - { {Description_names + 1790, 26}, 101 }, - { {Description_names + 1816, 25}, 102 }, - { {Description_names + 1841, 19}, 87 }, - { {Description_names + 1860, 24}, 83 }, - { {Description_names + 1884, 16}, 81 }, - { {Description_names + 1900, 22}, 80 }, - { {Description_names + 1922, 14}, 107 }, - { {Description_names + 1936, 15}, 31 }, - { {Description_names + 1951, 12}, 67 }, - { {Description_names + 1963, 24}, 2 }, - { {Description_names + 1987, 19}, 52 }, - { {Description_names + 2006, 22}, 8 }, - { {Description_names + 2028, 21}, 59 }, - { {Description_names + 2049, 26}, 21 }, - { {Description_names + 2075, 19}, 53 }, - { {Description_names + 2094, 35}, 13 }, - { {Description_names + 2129, 32}, 43 }, - { {Description_names + 2161, 22}, 7 }, - { {Description_names + 2183, 20}, 60 }, - { {Description_names + 2203, 13}, 42 }, - { {Description_names + 2216, 25}, 37 }, - { {Description_names + 2241, 17}, 147 }, - { {Description_names + 2258, 23}, 113 }, - { {Description_names + 2281, 18}, 139 }, - { {Description_names + 2299, 12}, 171 }, - { {Description_names + 2311, 12}, 25 }, - { {Description_names + 2323, 13}, 92 }, - { {Description_names + 2336, 15}, 1 }, - { {Description_names + 2351, 17}, 40 }, - { {Description_names + 2368, 17}, 33 }, - { {Description_names + 2385, 17}, 34 }, - { {Description_names + 2402, 9}, 91 }, - { {Description_names + 2411, 23}, 38 }, - { {Description_names + 2434, 20}, 84 }, - { {Description_names + 2454, 17}, 77 }, - { {Description_names + 2471, 21}, 94 }, - { {Description_names + 2492, 16}, 41 }, - { {Description_names + 2508, 16}, 95 }, - { {Description_names + 2524, 15}, 97 }, - { {Description_names + 2539, 19}, 155 }, - { {Description_names + 2558, 36}, 127 }, - { {Description_names + 2594, 34}, 134 }, - { {Description_names + 2628, 26}, 72 }, - { {Description_names + 2654, 16}, 100 }, - { {Description_names + 2670, 16}, 55 }, - { {Description_names + 2686, 27}, 45 }, - { {Description_names + 2713, 43}, 46 }, - { {Description_names + 2756, 30}, 49 }, - { {Description_names + 2786, 31}, 48 }, - { {Description_names + 2817, 26}, 47 }, - { {Description_names + 2843, 37}, 50 }, - { {Description_names + 2880, 25}, 161 }, - { {Description_names + 2905, 30}, 69 }, - { {Description_names + 2935, 35}, 70 }, - { {Description_names + 2970, 20}, 22 }, - { {Description_names + 2990, 20}, 143 }, - { {Description_names + 3010, 24}, 79 }, - { {Description_names + 3034, 25}, 131 }, - { {Description_names + 3059, 13}, 78 }, - { {Description_names + 3072, 24}, 64 }, - { {Description_names + 3096, 16}, 141 }, - { {Description_names + 3112, 21}, 39 }, - { {Description_names + 3133, 17}, 4 }, - { {Description_names + 3150, 37}, 115 }, - { {Description_names + 3187, 37}, 124 }, - { {Description_names + 3224, 39}, 125 }, - { {Description_names + 3263, 38}, 120 }, - { {Description_names + 3301, 43}, 118 }, - { {Description_names + 3344, 30}, 116 }, - { {Description_names + 3374, 35}, 117 }, - { {Description_names + 3409, 40}, 121 }, - { {Description_names + 3449, 31}, 119 }, - { {Description_names + 3480, 35}, 122 }, - { {Description_names + 3515, 37}, 123 }, - { {Description_names + 3552, 33}, 114 }, - { {Description_names + 3585, 15}, 160 }, - { {Description_names + 3600, 7}, 24 }, - { {Description_names + 3607, 26}, 54 }, - { {Description_names + 3633, 24}, 63 }, - { {Description_names + 3657, 26}, 128 }, - { {Description_names + 3683, 25}, 132 }, - { {Description_names + 3708, 7}, 0 }, - { {Description_names + 3715, 20}, 71 }, - { {Description_names + 3735, 29}, 133 }, - { {Description_names + 3764, 23}, 166 }, - { {Description_names + 3787, 28}, 168 }, - { {Description_names + 3815, 33}, 167 }, - { {Description_names + 3848, 26}, 169 }, - { {Description_names + 3874, 28}, 170 }, - { {Description_names + 3902, 21}, 104 }, - { {Description_names + 3923, 26}, 145 }, - { {Description_names + 3949, 28}, 112 }, - { {Description_names + 3977, 18}, 150 }, - { {Description_names + 3995, 20}, 73 }, - { {Description_names + 4015, 34}, 109 }, - { {Description_names + 4049, 29}, 110 }, - { {Description_names + 4078, 25}, 154 }, - { {Description_names + 4103, 28}, 88 }, - { {Description_names + 4131, 22}, 111 }, - { {Description_names + 4153, 30}, 35 }, - { {Description_names + 4183, 28}, 89 }, - { {Description_names + 4211, 17}, 130 }, + { {Description_names + 675, 11}, 175 }, + { {Description_names + 686, 4}, 99 }, + { {Description_names + 690, 26}, 149 }, + { {Description_names + 716, 28}, 3 }, + { {Description_names + 744, 16}, 176 }, + { {Description_names + 760, 26}, 90 }, + { {Description_names + 786, 19}, 148 }, + { {Description_names + 805, 24}, 126 }, + { {Description_names + 829, 23}, 44 }, + { {Description_names + 852, 19}, 20 }, + { {Description_names + 871, 28}, 129 }, + { {Description_names + 899, 34}, 6 }, + { {Description_names + 933, 31}, 5 }, + { {Description_names + 964, 45}, 27 }, + { {Description_names + 1009, 25}, 26 }, + { {Description_names + 1034, 35}, 178 }, + { {Description_names + 1069, 30}, 177 }, + { {Description_names + 1099, 27}, 179 }, + { {Description_names + 1126, 32}, 36 }, + { {Description_names + 1158, 33}, 93 }, + { {Description_names + 1191, 26}, 76 }, + { {Description_names + 1217, 18}, 138 }, + { {Description_names + 1235, 26}, 162 }, + { {Description_names + 1261, 19}, 144 }, + { {Description_names + 1280, 14}, 98 }, + { {Description_names + 1294, 21}, 19 }, + { {Description_names + 1315, 33}, 11 }, + { {Description_names + 1348, 12}, 106 }, + { {Description_names + 1360, 25}, 58 }, + { {Description_names + 1385, 36}, 136 }, + { {Description_names + 1421, 38}, 137 }, + { {Description_names + 1459, 45}, 56 }, + { {Description_names + 1504, 31}, 10 }, + { {Description_names + 1535, 26}, 9 }, + { {Description_names + 1561, 20}, 65 }, + { {Description_names + 1581, 20}, 66 }, + { {Description_names + 1601, 18}, 108 }, + { {Description_names + 1619, 20}, 62 }, + { {Description_names + 1639, 21}, 61 }, + { {Description_names + 1660, 19}, 32 }, + { {Description_names + 1679, 34}, 12 }, + { {Description_names + 1713, 22}, 142 }, + { {Description_names + 1735, 15}, 68 }, + { {Description_names + 1750, 20}, 146 }, + { {Description_names + 1770, 17}, 23 }, + { {Description_names + 1787, 13}, 75 }, + { {Description_names + 1800, 19}, 140 }, + { {Description_names + 1819, 28}, 86 }, + { {Description_names + 1847, 17}, 164 }, + { {Description_names + 1864, 23}, 30 }, + { {Description_names + 1887, 25}, 182 }, + { {Description_names + 1912, 36}, 186 }, + { {Description_names + 1948, 38}, 187 }, + { {Description_names + 1986, 28}, 184 }, + { {Description_names + 2014, 30}, 181 }, + { {Description_names + 2044, 24}, 183 }, + { {Description_names + 2068, 30}, 180 }, + { {Description_names + 2098, 38}, 185 }, + { {Description_names + 2136, 22}, 85 }, + { {Description_names + 2158, 26}, 101 }, + { {Description_names + 2184, 25}, 102 }, + { {Description_names + 2209, 19}, 87 }, + { {Description_names + 2228, 24}, 83 }, + { {Description_names + 2252, 16}, 81 }, + { {Description_names + 2268, 22}, 80 }, + { {Description_names + 2290, 14}, 107 }, + { {Description_names + 2304, 15}, 31 }, + { {Description_names + 2319, 12}, 67 }, + { {Description_names + 2331, 24}, 2 }, + { {Description_names + 2355, 19}, 52 }, + { {Description_names + 2374, 22}, 8 }, + { {Description_names + 2396, 21}, 59 }, + { {Description_names + 2417, 26}, 21 }, + { {Description_names + 2443, 19}, 53 }, + { {Description_names + 2462, 35}, 13 }, + { {Description_names + 2497, 32}, 43 }, + { {Description_names + 2529, 22}, 7 }, + { {Description_names + 2551, 20}, 60 }, + { {Description_names + 2571, 13}, 42 }, + { {Description_names + 2584, 25}, 37 }, + { {Description_names + 2609, 17}, 147 }, + { {Description_names + 2626, 23}, 113 }, + { {Description_names + 2649, 18}, 139 }, + { {Description_names + 2667, 12}, 171 }, + { {Description_names + 2679, 12}, 25 }, + { {Description_names + 2691, 13}, 92 }, + { {Description_names + 2704, 15}, 1 }, + { {Description_names + 2719, 17}, 40 }, + { {Description_names + 2736, 17}, 33 }, + { {Description_names + 2753, 17}, 34 }, + { {Description_names + 2770, 9}, 91 }, + { {Description_names + 2779, 23}, 38 }, + { {Description_names + 2802, 20}, 84 }, + { {Description_names + 2822, 17}, 77 }, + { {Description_names + 2839, 21}, 94 }, + { {Description_names + 2860, 16}, 41 }, + { {Description_names + 2876, 16}, 95 }, + { {Description_names + 2892, 15}, 97 }, + { {Description_names + 2907, 19}, 155 }, + { {Description_names + 2926, 36}, 127 }, + { {Description_names + 2962, 34}, 134 }, + { {Description_names + 2996, 26}, 72 }, + { {Description_names + 3022, 16}, 100 }, + { {Description_names + 3038, 16}, 55 }, + { {Description_names + 3054, 27}, 45 }, + { {Description_names + 3081, 43}, 46 }, + { {Description_names + 3124, 30}, 49 }, + { {Description_names + 3154, 31}, 48 }, + { {Description_names + 3185, 26}, 47 }, + { {Description_names + 3211, 37}, 50 }, + { {Description_names + 3248, 25}, 161 }, + { {Description_names + 3273, 30}, 69 }, + { {Description_names + 3303, 35}, 70 }, + { {Description_names + 3338, 20}, 22 }, + { {Description_names + 3358, 20}, 143 }, + { {Description_names + 3378, 24}, 79 }, + { {Description_names + 3402, 25}, 131 }, + { {Description_names + 3427, 13}, 78 }, + { {Description_names + 3440, 24}, 64 }, + { {Description_names + 3464, 16}, 141 }, + { {Description_names + 3480, 21}, 39 }, + { {Description_names + 3501, 17}, 4 }, + { {Description_names + 3518, 37}, 115 }, + { {Description_names + 3555, 37}, 124 }, + { {Description_names + 3592, 39}, 125 }, + { {Description_names + 3631, 38}, 120 }, + { {Description_names + 3669, 43}, 118 }, + { {Description_names + 3712, 30}, 116 }, + { {Description_names + 3742, 35}, 117 }, + { {Description_names + 3777, 40}, 121 }, + { {Description_names + 3817, 31}, 119 }, + { {Description_names + 3848, 35}, 122 }, + { {Description_names + 3883, 37}, 123 }, + { {Description_names + 3920, 33}, 114 }, + { {Description_names + 3953, 15}, 160 }, + { {Description_names + 3968, 7}, 24 }, + { {Description_names + 3975, 26}, 54 }, + { {Description_names + 4001, 24}, 63 }, + { {Description_names + 4025, 26}, 128 }, + { {Description_names + 4051, 25}, 132 }, + { {Description_names + 4076, 7}, 0 }, + { {Description_names + 4083, 20}, 71 }, + { {Description_names + 4103, 29}, 133 }, + { {Description_names + 4132, 23}, 166 }, + { {Description_names + 4155, 28}, 168 }, + { {Description_names + 4183, 33}, 167 }, + { {Description_names + 4216, 29}, 173 }, + { {Description_names + 4245, 30}, 174 }, + { {Description_names + 4275, 26}, 169 }, + { {Description_names + 4301, 28}, 170 }, + { {Description_names + 4329, 21}, 104 }, + { {Description_names + 4350, 27}, 172 }, + { {Description_names + 4377, 26}, 145 }, + { {Description_names + 4403, 28}, 112 }, + { {Description_names + 4431, 18}, 150 }, + { {Description_names + 4449, 20}, 73 }, + { {Description_names + 4469, 34}, 109 }, + { {Description_names + 4503, 29}, 110 }, + { {Description_names + 4532, 25}, 154 }, + { {Description_names + 4557, 28}, 88 }, + { {Description_names + 4585, 22}, 111 }, + { {Description_names + 4607, 30}, 35 }, + { {Description_names + 4637, 28}, 89 }, + { {Description_names + 4665, 17}, 130 }, }; static const int Description_entries_by_number[] = { - 149, // 0 -> UNKNOWN - 95, // 1 -> NULL_SERVICE_ID - 77, // 2 -> NULL_ADVERTISEMENT_BYTES - 24, // 3 -> CONNECTIONS_FEATURE_DISABLED - 130, // 4 -> STALE_SDK_VERSION - 32, // 5 -> FEATURE_BLUETOOTH_NOT_SUPPORTED - 31, // 6 -> FEATURE_BLUETOOTH_LE_NOT_SUPPORTED - 85, // 7 -> NULL_BLUETOOTH_MANAGER - 79, // 8 -> NULL_BLUETOOTH_ADAPTER - 50, // 9 -> INVALID_FAST_PAIR_MODEL_ID - 49, // 10 -> INVALID_FAST_ADVERTISEMENT_DATA - 43, // 11 -> INVALID_ADVERTISEMENT_HEADER_DATA - 57, // 12 -> INVALID_REGULAR_ADVERTISEMENT_DATA - 83, // 13 -> NULL_BLUETOOTH_LE_ADVERTISER_COMPAT + 162, // 0 -> UNKNOWN + 108, // 1 -> NULL_SERVICE_ID + 90, // 2 -> NULL_ADVERTISEMENT_BYTES + 25, // 3 -> CONNECTIONS_FEATURE_DISABLED + 143, // 4 -> STALE_SDK_VERSION + 34, // 5 -> FEATURE_BLUETOOTH_NOT_SUPPORTED + 33, // 6 -> FEATURE_BLUETOOTH_LE_NOT_SUPPORTED + 98, // 7 -> NULL_BLUETOOTH_MANAGER + 92, // 8 -> NULL_BLUETOOTH_ADAPTER + 55, // 9 -> INVALID_FAST_PAIR_MODEL_ID + 54, // 10 -> INVALID_FAST_ADVERTISEMENT_DATA + 48, // 11 -> INVALID_ADVERTISEMENT_HEADER_DATA + 62, // 12 -> INVALID_REGULAR_ADVERTISEMENT_DATA + 96, // 13 -> NULL_BLUETOOTH_LE_ADVERTISER_COMPAT 2, // 14 -> ADVERTISE_FAILED_ALREADY_STARTED 3, // 15 -> ADVERTISE_FAILED_DATA_TOO_LARGE 4, // 16 -> ADVERTISE_FAILED_FEATURE_UNSUPPORTED 5, // 17 -> ADVERTISE_FAILED_INTERNAL_ERROR 6, // 18 -> ADVERTISE_FAILED_TOO_MANY_ADVERTISERS - 42, // 19 -> INTERRUPTED_EXCEPTION - 29, // 20 -> EXECUTION_EXCEPTION - 81, // 21 -> NULL_BLUETOOTH_DEVICE_NAME - 122, // 22 -> SET_SCAN_MODE_FAILED - 61, // 23 -> INVOKE_API_FAILED - 144, // 24 -> TIMEOUT - 93, // 25 -> NULL_NFC_TAG - 34, // 26 -> FEATURE_NFC_NOT_SUPPORTED - 33, // 27 -> FEATURE_NFC_HOST_CARD_EMULATION_NOT_SUPPORTED - 66, // 30 -> MULTICAST_NOT_SUPPORTED - 75, // 31 -> NSD_NOT_ENABLED - 56, // 32 -> INVALID_PORT_NUMBER - 97, // 33 -> NULL_SERVICE_NAME - 98, // 34 -> NULL_SERVICE_TYPE - 167, // 35 -> WITHOUT_CONNECTED_WIFI_NETWORK - 35, // 36 -> FEATURE_WIFI_AWARE_NOT_SUPPORTED - 88, // 37 -> NULL_CONNECTIVITY_MANAGER - 100, // 38 -> NULL_WIFI_AWARE_MANAGER - 129, // 39 -> STALE_ANDROID_VERSION - 96, // 40 -> NULL_SERVICE_INFO - 104, // 41 -> NULL_WORK_SOURCE - 87, // 42 -> NULL_CALLBACK - 84, // 43 -> NULL_BLUETOOTH_LE_SCANNER_COMPAT - 28, // 44 -> EMPTY_WORK_SOURCE_CACHE - 113, // 45 -> SCAN_FAILED_ALREADY_STARTED - 114, // 46 -> SCAN_FAILED_APPLICATION_REGISTRATION_FAILED - 117, // 47 -> SCAN_FAILED_INTERNAL_ERROR - 116, // 48 -> SCAN_FAILED_FEATURE_UNSUPPORTED - 115, // 49 -> SCAN_FAILED_BLUETOOTH_DISABLED - 118, // 50 -> SCAN_FILTERS_NOT_ALLOWED_FOR_LOCATION + 47, // 19 -> INTERRUPTED_EXCEPTION + 31, // 20 -> EXECUTION_EXCEPTION + 94, // 21 -> NULL_BLUETOOTH_DEVICE_NAME + 135, // 22 -> SET_SCAN_MODE_FAILED + 66, // 23 -> INVOKE_API_FAILED + 157, // 24 -> TIMEOUT + 106, // 25 -> NULL_NFC_TAG + 36, // 26 -> FEATURE_NFC_NOT_SUPPORTED + 35, // 27 -> FEATURE_NFC_HOST_CARD_EMULATION_NOT_SUPPORTED + 71, // 30 -> MULTICAST_NOT_SUPPORTED + 88, // 31 -> NSD_NOT_ENABLED + 61, // 32 -> INVALID_PORT_NUMBER + 110, // 33 -> NULL_SERVICE_NAME + 111, // 34 -> NULL_SERVICE_TYPE + 183, // 35 -> WITHOUT_CONNECTED_WIFI_NETWORK + 40, // 36 -> FEATURE_WIFI_AWARE_NOT_SUPPORTED + 101, // 37 -> NULL_CONNECTIVITY_MANAGER + 113, // 38 -> NULL_WIFI_AWARE_MANAGER + 142, // 39 -> STALE_ANDROID_VERSION + 109, // 40 -> NULL_SERVICE_INFO + 117, // 41 -> NULL_WORK_SOURCE + 100, // 42 -> NULL_CALLBACK + 97, // 43 -> NULL_BLUETOOTH_LE_SCANNER_COMPAT + 30, // 44 -> EMPTY_WORK_SOURCE_CACHE + 126, // 45 -> SCAN_FAILED_ALREADY_STARTED + 127, // 46 -> SCAN_FAILED_APPLICATION_REGISTRATION_FAILED + 130, // 47 -> SCAN_FAILED_INTERNAL_ERROR + 129, // 48 -> SCAN_FAILED_FEATURE_UNSUPPORTED + 128, // 49 -> SCAN_FAILED_BLUETOOTH_DISABLED + 131, // 50 -> SCAN_FILTERS_NOT_ALLOWED_FOR_LOCATION 19, // 51 -> BLUETOOTH_SCAN_REJUVENATE_FAILED - 78, // 52 -> NULL_BLE_PERIPHERAL - 82, // 53 -> NULL_BLUETOOTH_GATT - 145, // 54 -> UNEXPECTED_BLUETOOTH_STATE - 112, // 55 -> REMOTE_EXCEPTION - 48, // 56 -> INVALID_BLUETOOTH_SOCKET_STATE_BEFORE_CONNECT + 91, // 52 -> NULL_BLE_PERIPHERAL + 95, // 53 -> NULL_BLUETOOTH_GATT + 158, // 54 -> UNEXPECTED_BLUETOOTH_STATE + 125, // 55 -> REMOTE_EXCEPTION + 53, // 56 -> INVALID_BLUETOOTH_SOCKET_STATE_BEFORE_CONNECT 20, // 57 -> BLUETOOTH_SOCKET_CLOSED_AFTER_CONNECTED - 45, // 58 -> INVALID_BLUETOOTH_CHANNEL - 80, // 59 -> NULL_BLUETOOTH_DEVICE - 86, // 60 -> NULL_BLUETOOTH_PROXY - 55, // 61 -> INVALID_PACKET_LENGTH - 54, // 62 -> INVALID_PACKET_BYTES - 146, // 63 -> UNEXPECTED_EOF_EXCEPTION - 127, // 64 -> SOCKET_CLOSED_OR_TIMEOUT - 51, // 65 -> INVALID_IPV4_ADDRESS - 52, // 66 -> INVALID_IPV6_ADDRESS - 76, // 67 -> NULL_ADDRESS - 59, // 68 -> INVALID_VERSION - 120, // 69 -> SET_CONNECTION_PRIORITY_FAILED - 121, // 70 -> SET_CONNECTION_PRIORITY_INTERRUPTED - 150, // 71 -> UNKNOWN_IO_EXCEPTION - 110, // 72 -> READ_CHARACTERISTIC_FAILED - 161, // 73 -> WIFI_HOTSPOT_ENABLED + 50, // 58 -> INVALID_BLUETOOTH_CHANNEL + 93, // 59 -> NULL_BLUETOOTH_DEVICE + 99, // 60 -> NULL_BLUETOOTH_PROXY + 60, // 61 -> INVALID_PACKET_LENGTH + 59, // 62 -> INVALID_PACKET_BYTES + 159, // 63 -> UNEXPECTED_EOF_EXCEPTION + 140, // 64 -> SOCKET_CLOSED_OR_TIMEOUT + 56, // 65 -> INVALID_IPV4_ADDRESS + 57, // 66 -> INVALID_IPV6_ADDRESS + 89, // 67 -> NULL_ADDRESS + 64, // 68 -> INVALID_VERSION + 133, // 69 -> SET_CONNECTION_PRIORITY_FAILED + 134, // 70 -> SET_CONNECTION_PRIORITY_INTERRUPTED + 163, // 71 -> UNKNOWN_IO_EXCEPTION + 123, // 72 -> READ_CHARACTERISTIC_FAILED + 177, // 73 -> WIFI_HOTSPOT_ENABLED 16, // 74 -> AWARE_UNAVAILABLE - 62, // 75 -> IN_BLACK_LIST - 37, // 76 -> FEATURE_WIFI_NOT_SUPPORTED - 102, // 77 -> NULL_WIFI_MANAGER - 126, // 78 -> SOCKET_CLOSED - 124, // 79 -> SOCKET_ALREADY_CONNECTED - 73, // 80 -> NFC_TECH_NOT_SUPPORTED - 72, // 81 -> NFC_SERVICE_DIED + 67, // 75 -> IN_BLACK_LIST + 42, // 76 -> FEATURE_WIFI_NOT_SUPPORTED + 115, // 77 -> NULL_WIFI_MANAGER + 139, // 78 -> SOCKET_CLOSED + 137, // 79 -> SOCKET_ALREADY_CONNECTED + 86, // 80 -> NFC_TECH_NOT_SUPPORTED + 85, // 81 -> NFC_SERVICE_DIED 18, // 82 -> BIND_NFC_SERVICE_FAILED - 71, // 83 -> NFC_CREATE_SOCKET_FAILED - 101, // 84 -> NULL_WIFI_AWARE_PEER - 67, // 85 -> NETWORK_ALREADY_JOINED - 64, // 86 -> JOIN_AWARE_NETWORK_CANCELLED - 70, // 87 -> NETWORK_UNAVAILABLE - 165, // 88 -> WITHOUT_ACTIVE_AWARE_NETWORK - 168, // 89 -> WITHOUT_JOINED_AWARE_NETWORK - 25, // 90 -> CONNET_TO_SOCKET_CANCELLED - 99, // 91 -> NULL_SSID - 94, // 92 -> NULL_PASSWORD - 36, // 93 -> FEATURE_WIFI_DIRECT_NOT_SUPPORTED - 103, // 94 -> NULL_WIFI_P2P_MANAGER - 105, // 95 -> P2P_GROUP_FORMED + 84, // 83 -> NFC_CREATE_SOCKET_FAILED + 114, // 84 -> NULL_WIFI_AWARE_PEER + 80, // 85 -> NETWORK_ALREADY_JOINED + 69, // 86 -> JOIN_AWARE_NETWORK_CANCELLED + 83, // 87 -> NETWORK_UNAVAILABLE + 181, // 88 -> WITHOUT_ACTIVE_AWARE_NETWORK + 184, // 89 -> WITHOUT_JOINED_AWARE_NETWORK + 27, // 90 -> CONNET_TO_SOCKET_CANCELLED + 112, // 91 -> NULL_SSID + 107, // 92 -> NULL_PASSWORD + 41, // 93 -> FEATURE_WIFI_DIRECT_NOT_SUPPORTED + 116, // 94 -> NULL_WIFI_P2P_MANAGER + 118, // 95 -> P2P_GROUP_FORMED 0, // 96 -> ACQUIRE_P2P_CHANNEL_FAILED - 106, // 97 -> P2P_UNSUPPORTED - 41, // 98 -> INTERNAL_ERROR - 22, // 99 -> BUSY - 111, // 100 -> REFLECTION_ERROR - 68, // 101 -> NETWORK_ERROR_EHOSTUNREACH - 69, // 102 -> NETWORK_ERROR_ENETUNREACH + 119, // 97 -> P2P_UNSUPPORTED + 46, // 98 -> INTERNAL_ERROR + 23, // 99 -> BUSY + 124, // 100 -> REFLECTION_ERROR + 81, // 101 -> NETWORK_ERROR_EHOSTUNREACH + 82, // 102 -> NETWORK_ERROR_ENETUNREACH 1, // 103 -> ADD_NETWORK_FAILED - 157, // 104 -> UPDATE_NETWORK_FAILED + 172, // 104 -> UPDATE_NETWORK_FAILED 8, // 105 -> ALREADY_IN_PROGRESS - 44, // 106 -> INVALID_ARGS - 74, // 107 -> NOT_AUTHORIZED - 53, // 108 -> INVALID_NETWORK_ID - 162, // 109 -> WIFI_MANAGER_ENABLE_NETWORK_FAILED - 163, // 110 -> WIFI_MANAGER_RECONNECT_FAILED - 166, // 111 -> WITHOUT_ACTIVE_NETWORK - 159, // 112 -> WEBRTC_CONNECTION_FLOW_EXIST - 90, // 113 -> NULL_DROID_GUARD_RESULT - 142, // 114 -> TACHYON_SIGNALING_MESSENGER_EXIST - 131, // 115 -> TACHYON_ALREADY_START_RECEIVE_MESSAGE - 136, // 116 -> TACHYON_RECEIVE_MESSAGE_FAILED - 137, // 117 -> TACHYON_RECEIVE_MESSAGE_INTERRUPTED - 135, // 118 -> TACHYON_RECEIVE_MESSAGE_EXECUTION_EXCEPTION - 139, // 119 -> TACHYON_RECEIVE_MESSAGE_TIMEOUT - 134, // 120 -> TACHYON_RECEIVE_MESSAGE_AUTH_EXCEPTION - 138, // 121 -> TACHYON_RECEIVE_MESSAGE_STATUS_EXCEPTION - 140, // 122 -> TACHYON_SEND_MESSAGE_AUTH_EXCEPTION - 141, // 123 -> TACHYON_SEND_MESSAGE_STATUS_EXCEPTION - 132, // 124 -> TACHYON_GET_ICE_SERVER_AUTH_EXCEPTION - 133, // 125 -> TACHYON_GET_ICE_SERVER_STATUS_EXCEPTION - 27, // 126 -> EMPTY_TACHYON_ICE_SERVER - 108, // 127 -> POTENTIAL_WEBRTC_LIB_LOADING_FAILURE - 147, // 128 -> UNEXPECTED_GATT_DESCRIPTOR - 30, // 129 -> FAIL_TO_RECEIVE_L2CAP_PACKET - 169, // 130 -> WITHOUT_PSM_VALUE - 125, // 131 -> SOCKET_BIND_LISTEN_FAILED - 148, // 132 -> UNEXPECTED_PACKET_CONTENT - 151, // 133 -> UNREGISTER_NSD_MANAGER_FAILED - 109, // 134 -> PUBLISH_EMPTY_ADVERTISEMENT_FAILED + 49, // 106 -> INVALID_ARGS + 87, // 107 -> NOT_AUTHORIZED + 58, // 108 -> INVALID_NETWORK_ID + 178, // 109 -> WIFI_MANAGER_ENABLE_NETWORK_FAILED + 179, // 110 -> WIFI_MANAGER_RECONNECT_FAILED + 182, // 111 -> WITHOUT_ACTIVE_NETWORK + 175, // 112 -> WEBRTC_CONNECTION_FLOW_EXIST + 103, // 113 -> NULL_DROID_GUARD_RESULT + 155, // 114 -> TACHYON_SIGNALING_MESSENGER_EXIST + 144, // 115 -> TACHYON_ALREADY_START_RECEIVE_MESSAGE + 149, // 116 -> TACHYON_RECEIVE_MESSAGE_FAILED + 150, // 117 -> TACHYON_RECEIVE_MESSAGE_INTERRUPTED + 148, // 118 -> TACHYON_RECEIVE_MESSAGE_EXECUTION_EXCEPTION + 152, // 119 -> TACHYON_RECEIVE_MESSAGE_TIMEOUT + 147, // 120 -> TACHYON_RECEIVE_MESSAGE_AUTH_EXCEPTION + 151, // 121 -> TACHYON_RECEIVE_MESSAGE_STATUS_EXCEPTION + 153, // 122 -> TACHYON_SEND_MESSAGE_AUTH_EXCEPTION + 154, // 123 -> TACHYON_SEND_MESSAGE_STATUS_EXCEPTION + 145, // 124 -> TACHYON_GET_ICE_SERVER_AUTH_EXCEPTION + 146, // 125 -> TACHYON_GET_ICE_SERVER_STATUS_EXCEPTION + 29, // 126 -> EMPTY_TACHYON_ICE_SERVER + 121, // 127 -> POTENTIAL_WEBRTC_LIB_LOADING_FAILURE + 160, // 128 -> UNEXPECTED_GATT_DESCRIPTOR + 32, // 129 -> FAIL_TO_RECEIVE_L2CAP_PACKET + 185, // 130 -> WITHOUT_PSM_VALUE + 138, // 131 -> SOCKET_BIND_LISTEN_FAILED + 161, // 132 -> UNEXPECTED_PACKET_CONTENT + 164, // 133 -> UNREGISTER_NSD_MANAGER_FAILED + 122, // 134 -> PUBLISH_EMPTY_ADVERTISEMENT_FAILED 21, // 135 -> BLUETOOTH_SOCKET_NOT_IN_LISTENING_STATE - 46, // 136 -> INVALID_BLUETOOTH_SOCKET_SIGNAL_SIZE - 47, // 137 -> INVALID_BLUETOOTH_SOCKET_SIGNAL_STATUS - 38, // 138 -> GET_ADDRESS_FAILED - 91, // 139 -> NULL_LOCAL_ADDRESS - 63, // 140 -> IS_LOOPBACK_ADDRESS - 128, // 141 -> SOCKET_NOT_BOUND - 58, // 142 -> INVALID_REMOTE_ADDRESS - 123, // 143 -> SOCKET_ALREADY_BOUND - 40, // 144 -> HOTSPOT_NOT_STARTED - 158, // 145 -> WEBRTC_ALREADY_INITIALIZED - 60, // 146 -> INVALID_WEBRTC_STATE - 89, // 147 -> NULL_DATA_CHANNEL - 26, // 148 -> CREATE_OFFER_FAILED - 23, // 149 -> CLOSE_SERVER_SOCKET_FAILED - 160, // 150 -> WIFI_AWARE_STARTED + 51, // 136 -> INVALID_BLUETOOTH_SOCKET_SIGNAL_SIZE + 52, // 137 -> INVALID_BLUETOOTH_SOCKET_SIGNAL_STATUS + 43, // 138 -> GET_ADDRESS_FAILED + 104, // 139 -> NULL_LOCAL_ADDRESS + 68, // 140 -> IS_LOOPBACK_ADDRESS + 141, // 141 -> SOCKET_NOT_BOUND + 63, // 142 -> INVALID_REMOTE_ADDRESS + 136, // 143 -> SOCKET_ALREADY_BOUND + 45, // 144 -> HOTSPOT_NOT_STARTED + 174, // 145 -> WEBRTC_ALREADY_INITIALIZED + 65, // 146 -> INVALID_WEBRTC_STATE + 102, // 147 -> NULL_DATA_CHANNEL + 28, // 148 -> CREATE_OFFER_FAILED + 24, // 149 -> CLOSE_SERVER_SOCKET_FAILED + 176, // 150 -> WIFI_AWARE_STARTED 14, // 151 -> AWARE_PUBLISH_SESSION_RAN_OUT 15, // 152 -> AWARE_SUBSCRIBE_SESSION_RAN_OUT 9, // 153 -> AWARE_DATA_PATH_RAN_OUT - 164, // 154 -> WIFI_SIGNAL_STRENGTH_POOR - 107, // 155 -> POTENTIAL_SRD_ISSUE + 180, // 154 -> WIFI_SIGNAL_STRENGTH_POOR + 120, // 155 -> POTENTIAL_SRD_ISSUE 11, // 156 -> AWARE_L2_MESSAGE_HOST_NETWORK_ERROR 13, // 157 -> AWARE_L2_MESSAGE_NETWORK_AVAILABLE_ERROR 12, // 158 -> AWARE_L2_MESSAGE_IP_AVAILABLE_ERROR 10, // 159 -> AWARE_L2_MESSAGE_CANCELLATION_RECEIVED - 143, // 160 -> TIE_BREAK_LOSER - 119, // 161 -> SERVER_SOCKET_UNAVAILABLE - 39, // 162 -> HOSTED_NETWORK_UNAVAILABLE + 156, // 160 -> TIE_BREAK_LOSER + 132, // 161 -> SERVER_SOCKET_UNAVAILABLE + 44, // 162 -> HOSTED_NETWORK_UNAVAILABLE 17, // 163 -> AWARE_UPDATE_PUBLISHING_CONFIG_FAILED - 65, // 164 -> L2CAP_UNAVAILABLE + 70, // 164 -> L2CAP_UNAVAILABLE 7, // 165 -> ALREADY_HAS_GATT_CONNECTION - 152, // 166 -> UNSUPPORTED_DEVICE_TYPE - 154, // 167 -> UNSUPPORTED_DEVICE_TYPE_CHROME_OS - 153, // 168 -> UNSUPPORTED_DEVICE_TYPE_AUTO - 155, // 169 -> UNSUPPORTED_DEVICE_TYPE_TV - 156, // 170 -> UNSUPPORTED_DEVICE_TYPE_WEAR - 92, // 171 -> NULL_MESSAGE + 165, // 166 -> UNSUPPORTED_DEVICE_TYPE + 167, // 167 -> UNSUPPORTED_DEVICE_TYPE_CHROME_OS + 166, // 168 -> UNSUPPORTED_DEVICE_TYPE_AUTO + 170, // 169 -> UNSUPPORTED_DEVICE_TYPE_TV + 171, // 170 -> UNSUPPORTED_DEVICE_TYPE_WEAR + 105, // 171 -> NULL_MESSAGE + 173, // 172 -> USER_RESTRICTION_DISALLOWED + 168, // 173 -> UNSUPPORTED_DEVICE_TYPE_PHONE + 169, // 174 -> UNSUPPORTED_DEVICE_TYPE_TABLET + 22, // 175 -> BROKEN_PIPE + 26, // 176 -> CONNECTION_ABORT + 38, // 177 -> FEATURE_USB_HOST_NOT_SUPPORTED + 37, // 178 -> FEATURE_USB_ACCESSORY_NOT_SUPPORTED + 39, // 179 -> FEATURE_USB_PORTS_NOT_FOUND + 78, // 180 -> MULTIPLEX_SOCKET_UNKNOWN_ERROR + 76, // 181 -> MULTIPLEX_SOCKET_NOT_LISTENING + 72, // 182 -> MULTIPLEX_SOCKET_DISABLED + 77, // 183 -> MULTIPLEX_SOCKET_TIMEOUT + 75, // 184 -> MULTIPLEX_SOCKET_IOEXCEPTION + 79, // 185 -> MULTIPLEX_SOCKET_UNKNOWN_RESPONSE_CODE + 73, // 186 -> MULTIPLEX_SOCKET_EXECUTION_EXCEPTION + 74, // 187 -> MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION }; const std::string& Description_Name( @@ -1569,12 +1892,12 @@ const std::string& Description_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( Description_entries, Description_entries_by_number, - 170, Description_strings); + 186, Description_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( Description_entries, Description_entries_by_number, - 170, value); + 186, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : Description_strings[idx].get(); } @@ -1582,7 +1905,7 @@ bool Description_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Description* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - Description_entries, 170, name, &int_value); + Description_entries, 186, name, &int_value); if (success) { *value = static_cast(int_value); } diff --git a/compiled_proto/proto/errorcode/error_code_enums.pb.h b/compiled_proto/proto/errorcode/error_code_enums.pb.h index 512a5c46..911447bb 100644 --- a/compiled_proto/proto/errorcode/error_code_enums.pb.h +++ b/compiled_proto/proto/errorcode/error_code_enums.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#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. @@ -94,11 +94,12 @@ enum Event : int { REJECT_CONNECTION = 10, SEND_PAYLOAD = 11, CANCEL_PAYLOAD = 12, - RECEIVE_PAYLOAD = 13 + RECEIVE_PAYLOAD = 13, + UPGRADE = 14 }; bool Event_IsValid(int value); constexpr Event Event_MIN = UNKNOWN_EVENT; -constexpr Event Event_MAX = RECEIVE_PAYLOAD; +constexpr Event Event_MAX = UPGRADE; constexpr int Event_ARRAYSIZE = Event_MAX + 1; const std::string& Event_Name(Event value); @@ -336,6 +337,101 @@ inline const std::string& DisconnectError_Name(T enum_t_value) { } bool DisconnectError_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DisconnectError* value); +enum SendPayloadError : int { + UNKNOWN_SEND_PAYLOAD_ERROR = 31, + SEND_PAYLOAD_FAILED = 32 +}; +bool SendPayloadError_IsValid(int value); +constexpr SendPayloadError SendPayloadError_MIN = UNKNOWN_SEND_PAYLOAD_ERROR; +constexpr SendPayloadError SendPayloadError_MAX = SEND_PAYLOAD_FAILED; +constexpr int SendPayloadError_ARRAYSIZE = SendPayloadError_MAX + 1; + +const std::string& SendPayloadError_Name(SendPayloadError value); +template +inline const std::string& SendPayloadError_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SendPayloadError_Name."); + return SendPayloadError_Name(static_cast(enum_t_value)); +} +bool SendPayloadError_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SendPayloadError* value); +enum ReceivePayloadError : int { + UNKNOWN_RECEIVE_PAYLOAD_ERROR = 31, + RECEIVE_PAYLOAD_FAILED = 32 +}; +bool ReceivePayloadError_IsValid(int value); +constexpr ReceivePayloadError ReceivePayloadError_MIN = UNKNOWN_RECEIVE_PAYLOAD_ERROR; +constexpr ReceivePayloadError ReceivePayloadError_MAX = RECEIVE_PAYLOAD_FAILED; +constexpr int ReceivePayloadError_ARRAYSIZE = ReceivePayloadError_MAX + 1; + +const std::string& ReceivePayloadError_Name(ReceivePayloadError value); +template +inline const std::string& ReceivePayloadError_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ReceivePayloadError_Name."); + return ReceivePayloadError_Name(static_cast(enum_t_value)); +} +bool ReceivePayloadError_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ReceivePayloadError* value); +enum UpgradeError : int { + UNKNOWN_UPGRADE_ERROR = 31, + CREATE_P2P_GROUP_FAILED = 32 +}; +bool UpgradeError_IsValid(int value); +constexpr UpgradeError UpgradeError_MIN = UNKNOWN_UPGRADE_ERROR; +constexpr UpgradeError UpgradeError_MAX = CREATE_P2P_GROUP_FAILED; +constexpr int UpgradeError_ARRAYSIZE = UpgradeError_MAX + 1; + +const std::string& UpgradeError_Name(UpgradeError value); +template +inline const std::string& UpgradeError_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function UpgradeError_Name."); + return UpgradeError_Name(static_cast(enum_t_value)); +} +bool UpgradeError_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, UpgradeError* value); +enum AcceptConnectionError : int { + UNKNOWN_ACCEPT_CONNECTION_ERROR = 31, + RESPOND_ACCEPT_CONNECTION_FAILED = 32 +}; +bool AcceptConnectionError_IsValid(int value); +constexpr AcceptConnectionError AcceptConnectionError_MIN = UNKNOWN_ACCEPT_CONNECTION_ERROR; +constexpr AcceptConnectionError AcceptConnectionError_MAX = RESPOND_ACCEPT_CONNECTION_FAILED; +constexpr int AcceptConnectionError_ARRAYSIZE = AcceptConnectionError_MAX + 1; + +const std::string& AcceptConnectionError_Name(AcceptConnectionError value); +template +inline const std::string& AcceptConnectionError_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AcceptConnectionError_Name."); + return AcceptConnectionError_Name(static_cast(enum_t_value)); +} +bool AcceptConnectionError_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AcceptConnectionError* value); +enum RejectConnectionError : int { + UNKNOWN_REJECT_CONNECTION_ERROR = 31, + RESPOND_REJECT_CONNECTION_FAILED = 32 +}; +bool RejectConnectionError_IsValid(int value); +constexpr RejectConnectionError RejectConnectionError_MIN = UNKNOWN_REJECT_CONNECTION_ERROR; +constexpr RejectConnectionError RejectConnectionError_MAX = RESPOND_REJECT_CONNECTION_FAILED; +constexpr int RejectConnectionError_ARRAYSIZE = RejectConnectionError_MAX + 1; + +const std::string& RejectConnectionError_Name(RejectConnectionError value); +template +inline const std::string& RejectConnectionError_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function RejectConnectionError_Name."); + return RejectConnectionError_Name(static_cast(enum_t_value)); +} +bool RejectConnectionError_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RejectConnectionError* value); enum Description : int { UNKNOWN = 0, NULL_SERVICE_ID = 1, @@ -506,11 +602,27 @@ enum Description : int { UNSUPPORTED_DEVICE_TYPE_AUTO = 168, UNSUPPORTED_DEVICE_TYPE_TV = 169, UNSUPPORTED_DEVICE_TYPE_WEAR = 170, - NULL_MESSAGE = 171 + NULL_MESSAGE = 171, + USER_RESTRICTION_DISALLOWED = 172, + UNSUPPORTED_DEVICE_TYPE_PHONE = 173, + UNSUPPORTED_DEVICE_TYPE_TABLET = 174, + BROKEN_PIPE = 175, + CONNECTION_ABORT = 176, + FEATURE_USB_HOST_NOT_SUPPORTED = 177, + FEATURE_USB_ACCESSORY_NOT_SUPPORTED = 178, + FEATURE_USB_PORTS_NOT_FOUND = 179, + MULTIPLEX_SOCKET_UNKNOWN_ERROR = 180, + MULTIPLEX_SOCKET_NOT_LISTENING = 181, + MULTIPLEX_SOCKET_DISABLED = 182, + MULTIPLEX_SOCKET_TIMEOUT = 183, + MULTIPLEX_SOCKET_IOEXCEPTION = 184, + MULTIPLEX_SOCKET_UNKNOWN_RESPONSE_CODE = 185, + MULTIPLEX_SOCKET_EXECUTION_EXCEPTION = 186, + MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION = 187 }; bool Description_IsValid(int value); constexpr Description Description_MIN = UNKNOWN; -constexpr Description Description_MAX = NULL_MESSAGE; +constexpr Description Description_MAX = MULTIPLEX_SOCKET_INTERRUPTED_EXCEPTION; constexpr int Description_ARRAYSIZE = Description_MAX + 1; const std::string& Description_Name(Description value); @@ -559,6 +671,11 @@ template <> struct is_proto_enum< ::location::nearby::errorcode::proto::StartLis template <> struct is_proto_enum< ::location::nearby::errorcode::proto::StopListeningIncomingConnectionError> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::errorcode::proto::ConnectError> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::errorcode::proto::DisconnectError> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::errorcode::proto::SendPayloadError> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::errorcode::proto::ReceivePayloadError> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::errorcode::proto::UpgradeError> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::errorcode::proto::AcceptConnectionError> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::errorcode::proto::RejectConnectionError> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::errorcode::proto::Description> : ::std::true_type {}; PROTOBUF_NAMESPACE_CLOSE diff --git a/compiled_proto/proto/mediums/ble_frames.pb.h b/compiled_proto/proto/mediums/ble_frames.pb.h index 20e3f842..fec28893 100644 --- a/compiled_proto/proto/mediums/ble_frames.pb.h +++ b/compiled_proto/proto/mediums/ble_frames.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#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. diff --git a/compiled_proto/proto/mediums/nfc_frames.pb.h b/compiled_proto/proto/mediums/nfc_frames.pb.h index 3862ba03..761291bd 100644 --- a/compiled_proto/proto/mediums/nfc_frames.pb.h +++ b/compiled_proto/proto/mediums/nfc_frames.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#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. diff --git a/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.h b/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.h index 5111a8f8..3cb8ffb5 100644 --- a/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.h +++ b/compiled_proto/proto/mediums/web_rtc_signaling_frames.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#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. diff --git a/compiled_proto/proto/sharing_enums.pb.cc b/compiled_proto/proto/sharing_enums.pb.cc index 1bd3caf6..0c7a9b0b 100644 --- a/compiled_proto/proto/sharing_enums.pb.cc +++ b/compiled_proto/proto/sharing_enums.pb.cc @@ -76,13 +76,23 @@ bool EventType_IsValid(int value) { case 47: case 48: case 49: + case 50: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed EventType_strings[50] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed EventType_strings[60] = {}; static const char EventType_names[] = "ACCEPT_AGREEMENTS" @@ -91,15 +101,20 @@ static const char EventType_names[] = "ADD_QUICK_SETTINGS_TILE" "ADVERTISE_DEVICE_PRESENCE_END" "ADVERTISE_DEVICE_PRESENCE_START" + "APP_CRASH" + "AUTO_DISMISS_FAST_INITIALIZATION" "CANCEL_CONNECTION" "CANCEL_RECEIVING_ATTACHMENTS" "CANCEL_SENDING_ATTACHMENTS" "DECLINE_AGREEMENTS" + "DEFAULT_OPT_IN" "DESCRIBE_ATTACHMENTS" "DEVICE_SETTINGS" "DISCOVER_SHARE_TARGET" "DISMISS_FAST_INITIALIZATION" "DISMISS_PRIVACY_NOTIFICATION" + "DISPLAY_PHONE_CONSENT" + "DISPLAY_PRIVACY_NOTIFICATION" "ENABLE_NEARBY_SHARING" "ESTABLISH_CONNECTION" "FAST_SHARE_SERVER_RESPONSE" @@ -109,7 +124,9 @@ static const char EventType_names[] = "LAUNCH_PHONE_CONSENT" "LAUNCH_SETUP_ACTIVITY" "OPEN_RECEIVED_ATTACHMENTS" + "PREFERENCES_USAGE" "PROCESS_RECEIVED_ATTACHMENTS_END" + "QR_CODE_LINK_SHOWN" "RECEIVE_ATTACHMENTS_END" "RECEIVE_ATTACHMENTS_START" "RECEIVE_FAST_INITIALIZATION" @@ -125,12 +142,15 @@ static const char EventType_names[] = "SEND_FAST_INITIALIZATION" "SEND_INTRODUCTION" "SEND_START" + "SETUP_WIZARD" "SET_DATA_USAGE" "SET_DEVICE_NAME" "SET_VISIBILITY" "TAP_FEEDBACK" "TAP_HELP" "TAP_PRIVACY_NOTIFICATION" + "TAP_QR_CODE" + "TAP_QUICK_SETTINGS_FILE_SHARE" "TAP_QUICK_SETTINGS_TILE" "TOGGLE_SHOW_NOTIFICATION" "UNKNOWN_EVENT_TYPE" @@ -143,103 +163,123 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EventType_entries[] = { {EventType_names + 54, 23}, 36 }, { {EventType_names + 77, 29}, 8 }, { {EventType_names + 106, 31}, 7 }, - { {EventType_names + 137, 17}, 30 }, - { {EventType_names + 154, 28}, 20 }, - { {EventType_names + 182, 26}, 19 }, - { {EventType_names + 208, 18}, 46 }, - { {EventType_names + 226, 20}, 4 }, - { {EventType_names + 246, 15}, 49 }, - { {EventType_names + 261, 21}, 11 }, - { {EventType_names + 282, 27}, 29 }, - { {EventType_names + 309, 28}, 32 }, - { {EventType_names + 337, 21}, 2 }, - { {EventType_names + 358, 20}, 48 }, - { {EventType_names + 378, 26}, 25 }, - { {EventType_names + 404, 11}, 40 }, - { {EventType_names + 415, 15}, 31 }, - { {EventType_names + 430, 14}, 42 }, - { {EventType_names + 444, 20}, 38 }, - { {EventType_names + 464, 21}, 22 }, - { {EventType_names + 485, 25}, 21 }, - { {EventType_names + 510, 32}, 43 }, - { {EventType_names + 542, 23}, 18 }, - { {EventType_names + 565, 25}, 17 }, - { {EventType_names + 590, 27}, 10 }, - { {EventType_names + 617, 20}, 13 }, - { {EventType_names + 637, 14}, 24 }, - { {EventType_names + 651, 26}, 37 }, - { {EventType_names + 677, 27}, 47 }, - { {EventType_names + 704, 23}, 14 }, - { {EventType_names + 727, 26}, 6 }, - { {EventType_names + 753, 28}, 5 }, - { {EventType_names + 781, 20}, 16 }, - { {EventType_names + 801, 22}, 15 }, - { {EventType_names + 823, 24}, 9 }, - { {EventType_names + 847, 17}, 12 }, - { {EventType_names + 864, 10}, 26 }, - { {EventType_names + 874, 14}, 28 }, - { {EventType_names + 888, 15}, 45 }, - { {EventType_names + 903, 14}, 3 }, - { {EventType_names + 917, 12}, 35 }, - { {EventType_names + 929, 8}, 34 }, - { {EventType_names + 937, 24}, 33 }, - { {EventType_names + 961, 23}, 39 }, - { {EventType_names + 984, 24}, 44 }, - { {EventType_names + 1008, 18}, 0 }, - { {EventType_names + 1026, 10}, 41 }, + { {EventType_names + 137, 9}, 51 }, + { {EventType_names + 146, 32}, 50 }, + { {EventType_names + 178, 17}, 30 }, + { {EventType_names + 195, 28}, 20 }, + { {EventType_names + 223, 26}, 19 }, + { {EventType_names + 249, 18}, 46 }, + { {EventType_names + 267, 14}, 56 }, + { {EventType_names + 281, 20}, 4 }, + { {EventType_names + 301, 15}, 49 }, + { {EventType_names + 316, 21}, 11 }, + { {EventType_names + 337, 27}, 29 }, + { {EventType_names + 364, 28}, 32 }, + { {EventType_names + 392, 21}, 54 }, + { {EventType_names + 413, 28}, 53 }, + { {EventType_names + 441, 21}, 2 }, + { {EventType_names + 462, 20}, 48 }, + { {EventType_names + 482, 26}, 25 }, + { {EventType_names + 508, 11}, 40 }, + { {EventType_names + 519, 15}, 31 }, + { {EventType_names + 534, 14}, 42 }, + { {EventType_names + 548, 20}, 38 }, + { {EventType_names + 568, 21}, 22 }, + { {EventType_names + 589, 25}, 21 }, + { {EventType_names + 614, 17}, 55 }, + { {EventType_names + 631, 32}, 43 }, + { {EventType_names + 663, 18}, 59 }, + { {EventType_names + 681, 23}, 18 }, + { {EventType_names + 704, 25}, 17 }, + { {EventType_names + 729, 27}, 10 }, + { {EventType_names + 756, 20}, 13 }, + { {EventType_names + 776, 14}, 24 }, + { {EventType_names + 790, 26}, 37 }, + { {EventType_names + 816, 27}, 47 }, + { {EventType_names + 843, 23}, 14 }, + { {EventType_names + 866, 26}, 6 }, + { {EventType_names + 892, 28}, 5 }, + { {EventType_names + 920, 20}, 16 }, + { {EventType_names + 940, 22}, 15 }, + { {EventType_names + 962, 24}, 9 }, + { {EventType_names + 986, 17}, 12 }, + { {EventType_names + 1003, 10}, 26 }, + { {EventType_names + 1013, 12}, 57 }, + { {EventType_names + 1025, 14}, 28 }, + { {EventType_names + 1039, 15}, 45 }, + { {EventType_names + 1054, 14}, 3 }, + { {EventType_names + 1068, 12}, 35 }, + { {EventType_names + 1080, 8}, 34 }, + { {EventType_names + 1088, 24}, 33 }, + { {EventType_names + 1112, 11}, 58 }, + { {EventType_names + 1123, 29}, 52 }, + { {EventType_names + 1152, 23}, 39 }, + { {EventType_names + 1175, 24}, 44 }, + { {EventType_names + 1199, 18}, 0 }, + { {EventType_names + 1217, 10}, 41 }, }; static const int EventType_entries_by_number[] = { - 48, // 0 -> UNKNOWN_EVENT_TYPE + 58, // 0 -> UNKNOWN_EVENT_TYPE 0, // 1 -> ACCEPT_AGREEMENTS - 15, // 2 -> ENABLE_NEARBY_SHARING - 42, // 3 -> SET_VISIBILITY - 10, // 4 -> DESCRIBE_ATTACHMENTS - 34, // 5 -> SCAN_FOR_SHARE_TARGETS_START - 33, // 6 -> SCAN_FOR_SHARE_TARGETS_END + 20, // 2 -> ENABLE_NEARBY_SHARING + 50, // 3 -> SET_VISIBILITY + 13, // 4 -> DESCRIBE_ATTACHMENTS + 41, // 5 -> SCAN_FOR_SHARE_TARGETS_START + 40, // 6 -> SCAN_FOR_SHARE_TARGETS_END 5, // 7 -> ADVERTISE_DEVICE_PRESENCE_START 4, // 8 -> ADVERTISE_DEVICE_PRESENCE_END - 37, // 9 -> SEND_FAST_INITIALIZATION - 27, // 10 -> RECEIVE_FAST_INITIALIZATION - 12, // 11 -> DISCOVER_SHARE_TARGET - 38, // 12 -> SEND_INTRODUCTION - 28, // 13 -> RECEIVE_INTRODUCTION - 32, // 14 -> RESPOND_TO_INTRODUCTION - 36, // 15 -> SEND_ATTACHMENTS_START - 35, // 16 -> SEND_ATTACHMENTS_END - 26, // 17 -> RECEIVE_ATTACHMENTS_START - 25, // 18 -> RECEIVE_ATTACHMENTS_END - 8, // 19 -> CANCEL_SENDING_ATTACHMENTS - 7, // 20 -> CANCEL_RECEIVING_ATTACHMENTS - 23, // 21 -> OPEN_RECEIVED_ATTACHMENTS - 22, // 22 -> LAUNCH_SETUP_ACTIVITY + 44, // 9 -> SEND_FAST_INITIALIZATION + 34, // 10 -> RECEIVE_FAST_INITIALIZATION + 15, // 11 -> DISCOVER_SHARE_TARGET + 45, // 12 -> SEND_INTRODUCTION + 35, // 13 -> RECEIVE_INTRODUCTION + 39, // 14 -> RESPOND_TO_INTRODUCTION + 43, // 15 -> SEND_ATTACHMENTS_START + 42, // 16 -> SEND_ATTACHMENTS_END + 33, // 17 -> RECEIVE_ATTACHMENTS_START + 32, // 18 -> RECEIVE_ATTACHMENTS_END + 10, // 19 -> CANCEL_SENDING_ATTACHMENTS + 9, // 20 -> CANCEL_RECEIVING_ATTACHMENTS + 28, // 21 -> OPEN_RECEIVED_ATTACHMENTS + 27, // 22 -> LAUNCH_SETUP_ACTIVITY 2, // 23 -> ADD_CONTACT - 29, // 24 -> REMOVE_CONTACT - 17, // 25 -> FAST_SHARE_SERVER_RESPONSE - 39, // 26 -> SEND_START + 36, // 24 -> REMOVE_CONTACT + 22, // 25 -> FAST_SHARE_SERVER_RESPONSE + 46, // 26 -> SEND_START 1, // 27 -> ACCEPT_FAST_INITIALIZATION - 40, // 28 -> SET_DATA_USAGE - 13, // 29 -> DISMISS_FAST_INITIALIZATION - 6, // 30 -> CANCEL_CONNECTION - 19, // 31 -> LAUNCH_ACTIVITY - 14, // 32 -> DISMISS_PRIVACY_NOTIFICATION - 45, // 33 -> TAP_PRIVACY_NOTIFICATION - 44, // 34 -> TAP_HELP - 43, // 35 -> TAP_FEEDBACK + 48, // 28 -> SET_DATA_USAGE + 16, // 29 -> DISMISS_FAST_INITIALIZATION + 8, // 30 -> CANCEL_CONNECTION + 24, // 31 -> LAUNCH_ACTIVITY + 17, // 32 -> DISMISS_PRIVACY_NOTIFICATION + 53, // 33 -> TAP_PRIVACY_NOTIFICATION + 52, // 34 -> TAP_HELP + 51, // 35 -> TAP_FEEDBACK 3, // 36 -> ADD_QUICK_SETTINGS_TILE - 30, // 37 -> REMOVE_QUICK_SETTINGS_TILE - 21, // 38 -> LAUNCH_PHONE_CONSENT - 46, // 39 -> TAP_QUICK_SETTINGS_TILE - 18, // 40 -> INSTALL_APK - 49, // 41 -> VERIFY_APK - 20, // 42 -> LAUNCH_CONSENT - 24, // 43 -> PROCESS_RECEIVED_ATTACHMENTS_END - 47, // 44 -> TOGGLE_SHOW_NOTIFICATION - 41, // 45 -> SET_DEVICE_NAME - 9, // 46 -> DECLINE_AGREEMENTS - 31, // 47 -> REQUEST_SETTING_PERMISSIONS - 16, // 48 -> ESTABLISH_CONNECTION - 11, // 49 -> DEVICE_SETTINGS + 37, // 37 -> REMOVE_QUICK_SETTINGS_TILE + 26, // 38 -> LAUNCH_PHONE_CONSENT + 56, // 39 -> TAP_QUICK_SETTINGS_TILE + 23, // 40 -> INSTALL_APK + 59, // 41 -> VERIFY_APK + 25, // 42 -> LAUNCH_CONSENT + 30, // 43 -> PROCESS_RECEIVED_ATTACHMENTS_END + 57, // 44 -> TOGGLE_SHOW_NOTIFICATION + 49, // 45 -> SET_DEVICE_NAME + 11, // 46 -> DECLINE_AGREEMENTS + 38, // 47 -> REQUEST_SETTING_PERMISSIONS + 21, // 48 -> ESTABLISH_CONNECTION + 14, // 49 -> DEVICE_SETTINGS + 7, // 50 -> AUTO_DISMISS_FAST_INITIALIZATION + 6, // 51 -> APP_CRASH + 55, // 52 -> TAP_QUICK_SETTINGS_FILE_SHARE + 19, // 53 -> DISPLAY_PRIVACY_NOTIFICATION + 18, // 54 -> DISPLAY_PHONE_CONSENT + 29, // 55 -> PREFERENCES_USAGE + 12, // 56 -> DEFAULT_OPT_IN + 47, // 57 -> SETUP_WIZARD + 54, // 58 -> TAP_QR_CODE + 31, // 59 -> QR_CODE_LINK_SHOWN }; const std::string& EventType_Name( @@ -248,12 +288,12 @@ const std::string& EventType_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( EventType_entries, EventType_entries_by_number, - 50, EventType_strings); + 60, EventType_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( EventType_entries, EventType_entries_by_number, - 50, value); + 60, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : EventType_strings[idx].get(); } @@ -261,7 +301,7 @@ bool EventType_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EventType* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - EventType_entries, 50, name, &int_value); + EventType_entries, 60, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -927,25 +967,28 @@ bool OSType_IsValid(int value) { case 1: case 2: case 3: + case 4: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OSType_strings[4] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed OSType_strings[5] = {}; static const char OSType_names[] = "ANDROID" "CHROME_OS" "IOS" - "UNKNOWN_OS_TYPE"; + "UNKNOWN_OS_TYPE" + "WINDOWS"; static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OSType_entries[] = { { {OSType_names + 0, 7}, 1 }, { {OSType_names + 7, 9}, 2 }, { {OSType_names + 16, 3}, 3 }, { {OSType_names + 19, 15}, 0 }, + { {OSType_names + 34, 7}, 4 }, }; static const int OSType_entries_by_number[] = { @@ -953,6 +996,7 @@ static const int OSType_entries_by_number[] = { 0, // 1 -> ANDROID 1, // 2 -> CHROME_OS 2, // 3 -> IOS + 4, // 4 -> WINDOWS }; const std::string& OSType_Name( @@ -961,12 +1005,12 @@ const std::string& OSType_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( OSType_entries, OSType_entries_by_number, - 4, OSType_strings); + 5, OSType_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( OSType_entries, OSType_entries_by_number, - 4, value); + 5, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : OSType_strings[idx].get(); } @@ -974,7 +1018,7 @@ bool OSType_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OSType* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - OSType_entries, 4, name, &int_value); + OSType_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -1047,19 +1091,21 @@ bool LogSource_IsValid(int value) { case 3: case 4: case 5: + case 6: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed LogSource_strings[6] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed LogSource_strings[7] = {}; static const char LogSource_names[] = "BETA_TESTER_DEVICES" "DEBUG_DEVICES" "INTERNAL_DEVICES" "LAB_DEVICES" + "NEARBY_MODULE_FOOD_DEVICES" "OEM_DEVICES" "UNSPECIFIED_SOURCE"; @@ -1068,17 +1114,19 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry LogSource_entries[] = { {LogSource_names + 19, 13}, 5 }, { {LogSource_names + 32, 16}, 2 }, { {LogSource_names + 48, 11}, 1 }, - { {LogSource_names + 59, 11}, 4 }, - { {LogSource_names + 70, 18}, 0 }, + { {LogSource_names + 59, 26}, 6 }, + { {LogSource_names + 85, 11}, 4 }, + { {LogSource_names + 96, 18}, 0 }, }; static const int LogSource_entries_by_number[] = { - 5, // 0 -> UNSPECIFIED_SOURCE + 6, // 0 -> UNSPECIFIED_SOURCE 3, // 1 -> LAB_DEVICES 2, // 2 -> INTERNAL_DEVICES 0, // 3 -> BETA_TESTER_DEVICES - 4, // 4 -> OEM_DEVICES + 5, // 4 -> OEM_DEVICES 1, // 5 -> DEBUG_DEVICES + 4, // 6 -> NEARBY_MODULE_FOOD_DEVICES }; const std::string& LogSource_Name( @@ -1087,12 +1135,12 @@ const std::string& LogSource_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( LogSource_entries, LogSource_entries_by_number, - 6, LogSource_strings); + 7, LogSource_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( LogSource_entries, LogSource_entries_by_number, - 6, value); + 7, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : LogSource_strings[idx].get(); } @@ -1100,7 +1148,7 @@ bool LogSource_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LogSource* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - LogSource_entries, 6, name, &int_value); + LogSource_entries, 7, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -1116,44 +1164,56 @@ bool ServerActionName_IsValid(int value) { case 5: case 6: case 7: + case 8: + case 9: + case 10: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ServerActionName_strings[8] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ServerActionName_strings[11] = {}; static const char ServerActionName_names[] = "CHECK_REACHABILITY" "DOWNLOAD_CERTIFICATES" "DOWNLOAD_SENDER_CERTIFICATES" + "LIST_MY_DEVICES" + "LIST_REACHABLE_PHONE_NUMBERS" "UNKNOWN_SERVER_ACTION" "UPDATE_DEVICE_NAME" "UPLOAD_CERTIFICATES" "UPLOAD_CONTACTS" + "UPLOAD_CONTACTS_AND_CERTIFICATES" "UPLOAD_SENDER_CERTIFICATES"; static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ServerActionName_entries[] = { { {ServerActionName_names + 0, 18}, 3 }, { {ServerActionName_names + 18, 21}, 2 }, { {ServerActionName_names + 39, 28}, 7 }, - { {ServerActionName_names + 67, 21}, 0 }, - { {ServerActionName_names + 88, 18}, 5 }, - { {ServerActionName_names + 106, 19}, 1 }, - { {ServerActionName_names + 125, 15}, 4 }, - { {ServerActionName_names + 140, 26}, 6 }, + { {ServerActionName_names + 67, 15}, 10 }, + { {ServerActionName_names + 82, 28}, 9 }, + { {ServerActionName_names + 110, 21}, 0 }, + { {ServerActionName_names + 131, 18}, 5 }, + { {ServerActionName_names + 149, 19}, 1 }, + { {ServerActionName_names + 168, 15}, 4 }, + { {ServerActionName_names + 183, 32}, 8 }, + { {ServerActionName_names + 215, 26}, 6 }, }; static const int ServerActionName_entries_by_number[] = { - 3, // 0 -> UNKNOWN_SERVER_ACTION - 5, // 1 -> UPLOAD_CERTIFICATES + 5, // 0 -> UNKNOWN_SERVER_ACTION + 7, // 1 -> UPLOAD_CERTIFICATES 1, // 2 -> DOWNLOAD_CERTIFICATES 0, // 3 -> CHECK_REACHABILITY - 6, // 4 -> UPLOAD_CONTACTS - 4, // 5 -> UPDATE_DEVICE_NAME - 7, // 6 -> UPLOAD_SENDER_CERTIFICATES + 8, // 4 -> UPLOAD_CONTACTS + 6, // 5 -> UPDATE_DEVICE_NAME + 10, // 6 -> UPLOAD_SENDER_CERTIFICATES 2, // 7 -> DOWNLOAD_SENDER_CERTIFICATES + 9, // 8 -> UPLOAD_CONTACTS_AND_CERTIFICATES + 4, // 9 -> LIST_REACHABLE_PHONE_NUMBERS + 3, // 10 -> LIST_MY_DEVICES }; const std::string& ServerActionName_Name( @@ -1162,12 +1222,12 @@ const std::string& ServerActionName_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( ServerActionName_entries, ServerActionName_entries_by_number, - 8, ServerActionName_strings); + 11, ServerActionName_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( ServerActionName_entries, ServerActionName_entries_by_number, - 8, value); + 11, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : ServerActionName_strings[idx].get(); } @@ -1175,7 +1235,7 @@ bool ServerActionName_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ServerActionName* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - ServerActionName_entries, 8, name, &int_value); + ServerActionName_entries, 11, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -1193,16 +1253,18 @@ bool ServerResponseState_IsValid(int value) { case 7: case 8: case 9: + case 10: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ServerResponseState_strings[10] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ServerResponseState_strings[11] = {}; static const char ServerResponseState_names[] = "SERVER_RESPONSE_GOOGLE_AUTH_FAILURE" + "SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET" "SERVER_RESPONSE_STATUS_DEADLINE_EXCEEDED" "SERVER_RESPONSE_STATUS_INVALID_ARGUMENT" "SERVER_RESPONSE_STATUS_OTHER_FAILURE" @@ -1215,28 +1277,30 @@ static const char ServerResponseState_names[] = static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ServerResponseState_entries[] = { { {ServerResponseState_names + 0, 35}, 8 }, - { {ServerResponseState_names + 35, 40}, 4 }, - { {ServerResponseState_names + 75, 39}, 9 }, - { {ServerResponseState_names + 114, 36}, 3 }, - { {ServerResponseState_names + 150, 40}, 5 }, - { {ServerResponseState_names + 190, 38}, 7 }, - { {ServerResponseState_names + 228, 34}, 6 }, - { {ServerResponseState_names + 262, 23}, 1 }, - { {ServerResponseState_names + 285, 31}, 2 }, - { {ServerResponseState_names + 316, 29}, 0 }, + { {ServerResponseState_names + 35, 41}, 10 }, + { {ServerResponseState_names + 76, 40}, 4 }, + { {ServerResponseState_names + 116, 39}, 9 }, + { {ServerResponseState_names + 155, 36}, 3 }, + { {ServerResponseState_names + 191, 40}, 5 }, + { {ServerResponseState_names + 231, 38}, 7 }, + { {ServerResponseState_names + 269, 34}, 6 }, + { {ServerResponseState_names + 303, 23}, 1 }, + { {ServerResponseState_names + 326, 31}, 2 }, + { {ServerResponseState_names + 357, 29}, 0 }, }; static const int ServerResponseState_entries_by_number[] = { - 9, // 0 -> UNKNOWN_SERVER_RESPONSE_STATE - 7, // 1 -> SERVER_RESPONSE_SUCCESS - 8, // 2 -> SERVER_RESPONSE_UNKNOWN_FAILURE - 3, // 3 -> SERVER_RESPONSE_STATUS_OTHER_FAILURE - 1, // 4 -> SERVER_RESPONSE_STATUS_DEADLINE_EXCEEDED - 4, // 5 -> SERVER_RESPONSE_STATUS_PERMISSION_DENIED - 6, // 6 -> SERVER_RESPONSE_STATUS_UNAVAILABLE - 5, // 7 -> SERVER_RESPONSE_STATUS_UNAUTHENTICATED + 10, // 0 -> UNKNOWN_SERVER_RESPONSE_STATE + 8, // 1 -> SERVER_RESPONSE_SUCCESS + 9, // 2 -> SERVER_RESPONSE_UNKNOWN_FAILURE + 4, // 3 -> SERVER_RESPONSE_STATUS_OTHER_FAILURE + 2, // 4 -> SERVER_RESPONSE_STATUS_DEADLINE_EXCEEDED + 5, // 5 -> SERVER_RESPONSE_STATUS_PERMISSION_DENIED + 7, // 6 -> SERVER_RESPONSE_STATUS_UNAVAILABLE + 6, // 7 -> SERVER_RESPONSE_STATUS_UNAUTHENTICATED 0, // 8 -> SERVER_RESPONSE_GOOGLE_AUTH_FAILURE - 2, // 9 -> SERVER_RESPONSE_STATUS_INVALID_ARGUMENT + 3, // 9 -> SERVER_RESPONSE_STATUS_INVALID_ARGUMENT + 1, // 10 -> SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET }; const std::string& ServerResponseState_Name( @@ -1245,12 +1309,12 @@ const std::string& ServerResponseState_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( ServerResponseState_entries, ServerResponseState_entries_by_number, - 10, ServerResponseState_strings); + 11, ServerResponseState_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( ServerResponseState_entries, ServerResponseState_entries_by_number, - 10, value); + 11, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : ServerResponseState_strings[idx].get(); } @@ -1258,7 +1322,7 @@ bool ServerResponseState_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ServerResponseState* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - ServerResponseState_entries, 10, name, &int_value); + ServerResponseState_entries, 11, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -1270,32 +1334,36 @@ bool ScanType_IsValid(int value) { case 1: case 2: case 3: + case 4: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ScanType_strings[4] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ScanType_strings[5] = {}; static const char ScanType_names[] = + "BACKGROUND_SCAN" "DIRECT_SHARE_SCAN" "FOREGROUND_RETRY_SCAN" "FOREGROUND_SCAN" "UNKNOWN_SCAN_TYPE"; static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ScanType_entries[] = { - { {ScanType_names + 0, 17}, 3 }, - { {ScanType_names + 17, 21}, 2 }, - { {ScanType_names + 38, 15}, 1 }, - { {ScanType_names + 53, 17}, 0 }, + { {ScanType_names + 0, 15}, 4 }, + { {ScanType_names + 15, 17}, 3 }, + { {ScanType_names + 32, 21}, 2 }, + { {ScanType_names + 53, 15}, 1 }, + { {ScanType_names + 68, 17}, 0 }, }; static const int ScanType_entries_by_number[] = { - 3, // 0 -> UNKNOWN_SCAN_TYPE - 2, // 1 -> FOREGROUND_SCAN - 1, // 2 -> FOREGROUND_RETRY_SCAN - 0, // 3 -> DIRECT_SHARE_SCAN + 4, // 0 -> UNKNOWN_SCAN_TYPE + 3, // 1 -> FOREGROUND_SCAN + 2, // 2 -> FOREGROUND_RETRY_SCAN + 1, // 3 -> DIRECT_SHARE_SCAN + 0, // 4 -> BACKGROUND_SCAN }; const std::string& ScanType_Name( @@ -1304,12 +1372,12 @@ const std::string& ScanType_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( ScanType_entries, ScanType_entries_by_number, - 4, ScanType_strings); + 5, ScanType_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( ScanType_entries, ScanType_entries_by_number, - 4, value); + 5, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : ScanType_strings[idx].get(); } @@ -1317,12 +1385,75 @@ bool ScanType_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ScanType* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - ScanType_entries, 4, name, &int_value); + ScanType_entries, 5, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } +bool AdvertisingMode_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AdvertisingMode_strings[5] = {}; + +static const char AdvertisingMode_names[] = + "BACKGROUND_ADVERTISING_MODE" + "FOREGROUND_ADVERTISING_MODE" + "MIDGROUND_ADVERTISING_MODE" + "SCREEN_OFF_ADVERTISING_MODE" + "UNKNOWN_ADVERTISING_MODE"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AdvertisingMode_entries[] = { + { {AdvertisingMode_names + 0, 27}, 2 }, + { {AdvertisingMode_names + 27, 27}, 4 }, + { {AdvertisingMode_names + 54, 26}, 3 }, + { {AdvertisingMode_names + 80, 27}, 1 }, + { {AdvertisingMode_names + 107, 24}, 0 }, +}; + +static const int AdvertisingMode_entries_by_number[] = { + 4, // 0 -> UNKNOWN_ADVERTISING_MODE + 3, // 1 -> SCREEN_OFF_ADVERTISING_MODE + 0, // 2 -> BACKGROUND_ADVERTISING_MODE + 2, // 3 -> MIDGROUND_ADVERTISING_MODE + 1, // 4 -> FOREGROUND_ADVERTISING_MODE +}; + +const std::string& AdvertisingMode_Name( + AdvertisingMode value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + AdvertisingMode_entries, + AdvertisingMode_entries_by_number, + 5, AdvertisingMode_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + AdvertisingMode_entries, + AdvertisingMode_entries_by_number, + 5, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + AdvertisingMode_strings[idx].get(); +} +bool AdvertisingMode_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AdvertisingMode* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + AdvertisingMode_entries, 5, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} bool ActivityName_IsValid(int value) { switch (value) { case 0: @@ -1334,20 +1465,28 @@ bool ActivityName_IsValid(int value) { case 6: case 7: case 8: + case 9: + case 10: + case 11: + case 12: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ActivityName_strings[9] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed ActivityName_strings[13] = {}; static const char ActivityName_names[] = "CONSENTS_ACTIVITY" "DEVICE_VISIBILITY_ACTIVITY" + "QUICK_SETTINGS_ACTIVITY" "RECEIVE_SURFACE_ACTIVITY" + "REMOTE_COPY_SHARE_SHEET_ACTIVITY" "SETTINGS_ACTIVITY" + "SETTINGS_REVIEW_ACTIVITY" "SETUP_ACTIVITY" + "SETUP_WIZARD_ACTIVITY" "SET_DATA_USAGE_DIALOG" "SET_DEVICE_NAME_DIALOG" "SHARE_SHEET_ACTIVITY" @@ -1356,25 +1495,33 @@ static const char ActivityName_names[] = static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ActivityName_entries[] = { { {ActivityName_names + 0, 17}, 6 }, { {ActivityName_names + 17, 26}, 5 }, - { {ActivityName_names + 43, 24}, 3 }, - { {ActivityName_names + 67, 17}, 2 }, - { {ActivityName_names + 84, 14}, 4 }, - { {ActivityName_names + 98, 21}, 8 }, - { {ActivityName_names + 119, 22}, 7 }, - { {ActivityName_names + 141, 20}, 1 }, - { {ActivityName_names + 161, 16}, 0 }, + { {ActivityName_names + 43, 23}, 9 }, + { {ActivityName_names + 66, 24}, 3 }, + { {ActivityName_names + 90, 32}, 10 }, + { {ActivityName_names + 122, 17}, 2 }, + { {ActivityName_names + 139, 24}, 12 }, + { {ActivityName_names + 163, 14}, 4 }, + { {ActivityName_names + 177, 21}, 11 }, + { {ActivityName_names + 198, 21}, 8 }, + { {ActivityName_names + 219, 22}, 7 }, + { {ActivityName_names + 241, 20}, 1 }, + { {ActivityName_names + 261, 16}, 0 }, }; static const int ActivityName_entries_by_number[] = { - 8, // 0 -> UNKNOWN_ACTIVITY - 7, // 1 -> SHARE_SHEET_ACTIVITY - 3, // 2 -> SETTINGS_ACTIVITY - 2, // 3 -> RECEIVE_SURFACE_ACTIVITY - 4, // 4 -> SETUP_ACTIVITY + 12, // 0 -> UNKNOWN_ACTIVITY + 11, // 1 -> SHARE_SHEET_ACTIVITY + 5, // 2 -> SETTINGS_ACTIVITY + 3, // 3 -> RECEIVE_SURFACE_ACTIVITY + 7, // 4 -> SETUP_ACTIVITY 1, // 5 -> DEVICE_VISIBILITY_ACTIVITY 0, // 6 -> CONSENTS_ACTIVITY - 6, // 7 -> SET_DEVICE_NAME_DIALOG - 5, // 8 -> SET_DATA_USAGE_DIALOG + 10, // 7 -> SET_DEVICE_NAME_DIALOG + 9, // 8 -> SET_DATA_USAGE_DIALOG + 2, // 9 -> QUICK_SETTINGS_ACTIVITY + 4, // 10 -> REMOTE_COPY_SHARE_SHEET_ACTIVITY + 8, // 11 -> SETUP_WIZARD_ACTIVITY + 6, // 12 -> SETTINGS_REVIEW_ACTIVITY }; const std::string& ActivityName_Name( @@ -1383,12 +1530,12 @@ const std::string& ActivityName_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( ActivityName_entries, ActivityName_entries_by_number, - 9, ActivityName_strings); + 13, ActivityName_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( ActivityName_entries, ActivityName_entries_by_number, - 9, value); + 13, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : ActivityName_strings[idx].get(); } @@ -1396,7 +1543,7 @@ bool ActivityName_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ActivityName* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - ActivityName_entries, 9, name, &int_value); + ActivityName_entries, 13, name, &int_value); if (success) { *value = static_cast(int_value); } @@ -1806,20 +1953,22 @@ bool PermissionRequestType_IsValid(int value) { case 2: case 3: case 4: + case 5: return true; default: return false; } } -static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PermissionRequestType_strings[5] = {}; +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PermissionRequestType_strings[6] = {}; static const char PermissionRequestType_names[] = "PERMISSION_AIRPLANE_MODE_OFF" "PERMISSION_BLUETOOTH" "PERMISSION_LOCATION" "PERMISSION_UNKNOWN_TYPE" - "PERMISSION_WIFI"; + "PERMISSION_WIFI" + "PERMISSION_WIFI_HOTSPOT"; static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PermissionRequestType_entries[] = { { {PermissionRequestType_names + 0, 28}, 1 }, @@ -1827,6 +1976,7 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PermissionRequestType_ { {PermissionRequestType_names + 48, 19}, 4 }, { {PermissionRequestType_names + 67, 23}, 0 }, { {PermissionRequestType_names + 90, 15}, 2 }, + { {PermissionRequestType_names + 105, 23}, 5 }, }; static const int PermissionRequestType_entries_by_number[] = { @@ -1835,6 +1985,7 @@ static const int PermissionRequestType_entries_by_number[] = { 4, // 2 -> PERMISSION_WIFI 1, // 3 -> PERMISSION_BLUETOOTH 2, // 4 -> PERMISSION_LOCATION + 5, // 5 -> PERMISSION_WIFI_HOTSPOT }; const std::string& PermissionRequestType_Name( @@ -1843,12 +1994,12 @@ const std::string& PermissionRequestType_Name( ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( PermissionRequestType_entries, PermissionRequestType_entries_by_number, - 5, PermissionRequestType_strings); + 6, PermissionRequestType_strings); (void) dummy; int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( PermissionRequestType_entries, PermissionRequestType_entries_by_number, - 5, value); + 6, value); return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : PermissionRequestType_strings[idx].get(); } @@ -1856,12 +2007,347 @@ bool PermissionRequestType_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PermissionRequestType* value) { int int_value; bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( - PermissionRequestType_entries, 5, name, &int_value); + PermissionRequestType_entries, 6, name, &int_value); if (success) { *value = static_cast(int_value); } return success; } +bool SharingUseCase_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 SharingUseCase_strings[8] = {}; + +static const char SharingUseCase_names[] = + "USE_CASE_APP_SHARE" + "USE_CASE_NEARBY_SHARE" + "USE_CASE_NEARBY_SHARE_WITH_QR_CODE" + "USE_CASE_QUICK_SETTING_FILE_SHARE" + "USE_CASE_REMOTE_COPY_PASTE" + "USE_CASE_SETUP_WIZARD" + "USE_CASE_UNKNOWN" + "USE_CASE_WIFI_CREDENTIAL"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SharingUseCase_entries[] = { + { {SharingUseCase_names + 0, 18}, 4 }, + { {SharingUseCase_names + 18, 21}, 1 }, + { {SharingUseCase_names + 39, 34}, 7 }, + { {SharingUseCase_names + 73, 33}, 5 }, + { {SharingUseCase_names + 106, 26}, 2 }, + { {SharingUseCase_names + 132, 21}, 6 }, + { {SharingUseCase_names + 153, 16}, 0 }, + { {SharingUseCase_names + 169, 24}, 3 }, +}; + +static const int SharingUseCase_entries_by_number[] = { + 6, // 0 -> USE_CASE_UNKNOWN + 1, // 1 -> USE_CASE_NEARBY_SHARE + 4, // 2 -> USE_CASE_REMOTE_COPY_PASTE + 7, // 3 -> USE_CASE_WIFI_CREDENTIAL + 0, // 4 -> USE_CASE_APP_SHARE + 3, // 5 -> USE_CASE_QUICK_SETTING_FILE_SHARE + 5, // 6 -> USE_CASE_SETUP_WIZARD + 2, // 7 -> USE_CASE_NEARBY_SHARE_WITH_QR_CODE +}; + +const std::string& SharingUseCase_Name( + SharingUseCase value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + SharingUseCase_entries, + SharingUseCase_entries_by_number, + 8, SharingUseCase_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + SharingUseCase_entries, + SharingUseCase_entries_by_number, + 8, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + SharingUseCase_strings[idx].get(); +} +bool SharingUseCase_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingUseCase* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + SharingUseCase_entries, 8, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool AppCrashReason_IsValid(int value) { + switch (value) { + case 0: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed AppCrashReason_strings[1] = {}; + +static const char AppCrashReason_names[] = + "APP_CRASH_REASON_UNKNOWN"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AppCrashReason_entries[] = { + { {AppCrashReason_names + 0, 24}, 0 }, +}; + +static const int AppCrashReason_entries_by_number[] = { + 0, // 0 -> APP_CRASH_REASON_UNKNOWN +}; + +const std::string& AppCrashReason_Name( + AppCrashReason value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + AppCrashReason_entries, + AppCrashReason_entries_by_number, + 1, AppCrashReason_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + AppCrashReason_entries, + AppCrashReason_entries_by_number, + 1, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + AppCrashReason_strings[idx].get(); +} +bool AppCrashReason_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppCrashReason* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + AppCrashReason_entries, 1, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool AttachmentSourceType_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 AttachmentSourceType_strings[6] = {}; + +static const char AttachmentSourceType_names[] = + "ATTACHMENT_SOURCE_CONTEXT_MENU" + "ATTACHMENT_SOURCE_DRAG_AND_DROP" + "ATTACHMENT_SOURCE_PASTE" + "ATTACHMENT_SOURCE_SELECT_FILES_BUTTON" + "ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON" + "ATTACHMENT_SOURCE_UNKNOWN"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AttachmentSourceType_entries[] = { + { {AttachmentSourceType_names + 0, 30}, 1 }, + { {AttachmentSourceType_names + 30, 31}, 2 }, + { {AttachmentSourceType_names + 61, 23}, 4 }, + { {AttachmentSourceType_names + 84, 37}, 3 }, + { {AttachmentSourceType_names + 121, 39}, 5 }, + { {AttachmentSourceType_names + 160, 25}, 0 }, +}; + +static const int AttachmentSourceType_entries_by_number[] = { + 5, // 0 -> ATTACHMENT_SOURCE_UNKNOWN + 0, // 1 -> ATTACHMENT_SOURCE_CONTEXT_MENU + 1, // 2 -> ATTACHMENT_SOURCE_DRAG_AND_DROP + 3, // 3 -> ATTACHMENT_SOURCE_SELECT_FILES_BUTTON + 2, // 4 -> ATTACHMENT_SOURCE_PASTE + 4, // 5 -> ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON +}; + +const std::string& AttachmentSourceType_Name( + AttachmentSourceType value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + AttachmentSourceType_entries, + AttachmentSourceType_entries_by_number, + 6, AttachmentSourceType_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + AttachmentSourceType_entries, + AttachmentSourceType_entries_by_number, + 6, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + AttachmentSourceType_strings[idx].get(); +} +bool AttachmentSourceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttachmentSourceType* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + AttachmentSourceType_entries, 6, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool PreferencesAction_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 PreferencesAction_strings[12] = {}; + +static const char PreferencesAction_names[] = + "PREFERENCES_ACTION_ATTEMPT_LOAD" + "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS" + "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_FILE_IS_CORRUPTED" + "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_INPUT_STREAM_STATUS" + "PREFERENCES_ACTION_CHECK_IF_PREFERENCES_PATH_EXISTS" + "PREFERENCES_ACTION_CREATE_PREFERENCES_PATH" + "PREFERENCES_ACTION_LOAD_PREFERENCES" + "PREFERENCES_ACTION_MAKE_PREFERENCES_BACKUP_FILE" + "PREFERENCES_ACTION_NO_ACTION" + "PREFERENCES_ACTION_RESTORE_FROM_BACKUP" + "PREFERENCES_ACTION_SAVE_PREFERENCESS" + "PREFERENCES_ACTION_UNKNOWN"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PreferencesAction_entries[] = { + { {PreferencesAction_names + 0, 31}, 4 }, + { {PreferencesAction_names + 31, 58}, 11 }, + { {PreferencesAction_names + 89, 57}, 10 }, + { {PreferencesAction_names + 146, 59}, 9 }, + { {PreferencesAction_names + 205, 51}, 8 }, + { {PreferencesAction_names + 256, 42}, 6 }, + { {PreferencesAction_names + 298, 35}, 2 }, + { {PreferencesAction_names + 333, 47}, 7 }, + { {PreferencesAction_names + 380, 28}, 1 }, + { {PreferencesAction_names + 408, 38}, 5 }, + { {PreferencesAction_names + 446, 36}, 3 }, + { {PreferencesAction_names + 482, 26}, 0 }, +}; + +static const int PreferencesAction_entries_by_number[] = { + 11, // 0 -> PREFERENCES_ACTION_UNKNOWN + 8, // 1 -> PREFERENCES_ACTION_NO_ACTION + 6, // 2 -> PREFERENCES_ACTION_LOAD_PREFERENCES + 10, // 3 -> PREFERENCES_ACTION_SAVE_PREFERENCESS + 0, // 4 -> PREFERENCES_ACTION_ATTEMPT_LOAD + 9, // 5 -> PREFERENCES_ACTION_RESTORE_FROM_BACKUP + 5, // 6 -> PREFERENCES_ACTION_CREATE_PREFERENCES_PATH + 7, // 7 -> PREFERENCES_ACTION_MAKE_PREFERENCES_BACKUP_FILE + 4, // 8 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_PATH_EXISTS + 3, // 9 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_INPUT_STREAM_STATUS + 2, // 10 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_FILE_IS_CORRUPTED + 1, // 11 -> PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS +}; + +const std::string& PreferencesAction_Name( + PreferencesAction value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + PreferencesAction_entries, + PreferencesAction_entries_by_number, + 12, PreferencesAction_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + PreferencesAction_entries, + PreferencesAction_entries_by_number, + 12, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + PreferencesAction_strings[idx].get(); +} +bool PreferencesAction_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PreferencesAction* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + PreferencesAction_entries, 12, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} +bool PreferencesActionStatus_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed PreferencesActionStatus_strings[3] = {}; + +static const char PreferencesActionStatus_names[] = + "PREFERENCES_ACTION_STATUS_FAIL" + "PREFERENCES_ACTION_STATUS_SUCCESS" + "PREFERENCES_ACTION_STATUS_UNKNOWN"; + +static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PreferencesActionStatus_entries[] = { + { {PreferencesActionStatus_names + 0, 30}, 2 }, + { {PreferencesActionStatus_names + 30, 33}, 1 }, + { {PreferencesActionStatus_names + 63, 33}, 0 }, +}; + +static const int PreferencesActionStatus_entries_by_number[] = { + 2, // 0 -> PREFERENCES_ACTION_STATUS_UNKNOWN + 1, // 1 -> PREFERENCES_ACTION_STATUS_SUCCESS + 0, // 2 -> PREFERENCES_ACTION_STATUS_FAIL +}; + +const std::string& PreferencesActionStatus_Name( + PreferencesActionStatus value) { + static const bool dummy = + ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings( + PreferencesActionStatus_entries, + PreferencesActionStatus_entries_by_number, + 3, PreferencesActionStatus_strings); + (void) dummy; + int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName( + PreferencesActionStatus_entries, + PreferencesActionStatus_entries_by_number, + 3, value); + return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() : + PreferencesActionStatus_strings[idx].get(); +} +bool PreferencesActionStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PreferencesActionStatus* value) { + int int_value; + bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue( + PreferencesActionStatus_entries, 3, name, &int_value); + if (success) { + *value = static_cast(int_value); + } + return success; +} // @@protoc_insertion_point(namespace_scope) } // namespace sharing diff --git a/compiled_proto/proto/sharing_enums.pb.h b/compiled_proto/proto/sharing_enums.pb.h index 4bdc9856..21e0a4b7 100644 --- a/compiled_proto/proto/sharing_enums.pb.h +++ b/compiled_proto/proto/sharing_enums.pb.h @@ -13,7 +13,7 @@ #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif -#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#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. @@ -97,6 +97,7 @@ enum EventType : int { ADD_QUICK_SETTINGS_TILE = 36, REMOVE_QUICK_SETTINGS_TILE = 37, LAUNCH_PHONE_CONSENT = 38, + DISPLAY_PHONE_CONSENT = 54, TAP_QUICK_SETTINGS_TILE = 39, INSTALL_APK = 40, VERIFY_APK = 41, @@ -107,11 +108,20 @@ enum EventType : int { DECLINE_AGREEMENTS = 46, REQUEST_SETTING_PERMISSIONS = 47, ESTABLISH_CONNECTION = 48, - DEVICE_SETTINGS = 49 + DEVICE_SETTINGS = 49, + AUTO_DISMISS_FAST_INITIALIZATION = 50, + APP_CRASH = 51, + TAP_QUICK_SETTINGS_FILE_SHARE = 52, + DISPLAY_PRIVACY_NOTIFICATION = 53, + PREFERENCES_USAGE = 55, + DEFAULT_OPT_IN = 56, + SETUP_WIZARD = 57, + TAP_QR_CODE = 58, + QR_CODE_LINK_SHOWN = 59 }; bool EventType_IsValid(int value); constexpr EventType EventType_MIN = UNKNOWN_EVENT_TYPE; -constexpr EventType EventType_MAX = DEVICE_SETTINGS; +constexpr EventType EventType_MAX = QR_CODE_LINK_SHOWN; constexpr int EventType_ARRAYSIZE = EventType_MAX + 1; const std::string& EventType_Name(EventType value); @@ -354,11 +364,12 @@ enum OSType : int { UNKNOWN_OS_TYPE = 0, ANDROID = 1, CHROME_OS = 2, - IOS = 3 + IOS = 3, + WINDOWS = 4 }; bool OSType_IsValid(int value); constexpr OSType OSType_MIN = UNKNOWN_OS_TYPE; -constexpr OSType OSType_MAX = IOS; +constexpr OSType OSType_MAX = WINDOWS; constexpr int OSType_ARRAYSIZE = OSType_MAX + 1; const std::string& OSType_Name(OSType value); @@ -398,11 +409,12 @@ enum LogSource : int { INTERNAL_DEVICES = 2, BETA_TESTER_DEVICES = 3, OEM_DEVICES = 4, - DEBUG_DEVICES = 5 + DEBUG_DEVICES = 5, + NEARBY_MODULE_FOOD_DEVICES = 6 }; bool LogSource_IsValid(int value); constexpr LogSource LogSource_MIN = UNSPECIFIED_SOURCE; -constexpr LogSource LogSource_MAX = DEBUG_DEVICES; +constexpr LogSource LogSource_MAX = NEARBY_MODULE_FOOD_DEVICES; constexpr int LogSource_ARRAYSIZE = LogSource_MAX + 1; const std::string& LogSource_Name(LogSource value); @@ -423,11 +435,14 @@ enum ServerActionName : int { UPLOAD_CONTACTS = 4, UPDATE_DEVICE_NAME = 5, UPLOAD_SENDER_CERTIFICATES = 6, - DOWNLOAD_SENDER_CERTIFICATES = 7 + DOWNLOAD_SENDER_CERTIFICATES = 7, + UPLOAD_CONTACTS_AND_CERTIFICATES = 8, + LIST_REACHABLE_PHONE_NUMBERS = 9, + LIST_MY_DEVICES = 10 }; bool ServerActionName_IsValid(int value); constexpr ServerActionName ServerActionName_MIN = UNKNOWN_SERVER_ACTION; -constexpr ServerActionName ServerActionName_MAX = DOWNLOAD_SENDER_CERTIFICATES; +constexpr ServerActionName ServerActionName_MAX = LIST_MY_DEVICES; constexpr int ServerActionName_ARRAYSIZE = ServerActionName_MAX + 1; const std::string& ServerActionName_Name(ServerActionName value); @@ -450,11 +465,12 @@ enum ServerResponseState : int { SERVER_RESPONSE_STATUS_UNAVAILABLE = 6, SERVER_RESPONSE_STATUS_UNAUTHENTICATED = 7, SERVER_RESPONSE_STATUS_INVALID_ARGUMENT = 9, - SERVER_RESPONSE_GOOGLE_AUTH_FAILURE = 8 + SERVER_RESPONSE_GOOGLE_AUTH_FAILURE = 8, + SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET = 10 }; bool ServerResponseState_IsValid(int value); constexpr ServerResponseState ServerResponseState_MIN = UNKNOWN_SERVER_RESPONSE_STATE; -constexpr ServerResponseState ServerResponseState_MAX = SERVER_RESPONSE_STATUS_INVALID_ARGUMENT; +constexpr ServerResponseState ServerResponseState_MAX = SERVER_RESPONSE_NOT_CONNECTED_TO_INTERNET; constexpr int ServerResponseState_ARRAYSIZE = ServerResponseState_MAX + 1; const std::string& ServerResponseState_Name(ServerResponseState value); @@ -471,11 +487,12 @@ enum ScanType : int { UNKNOWN_SCAN_TYPE = 0, FOREGROUND_SCAN = 1, FOREGROUND_RETRY_SCAN = 2, - DIRECT_SHARE_SCAN = 3 + DIRECT_SHARE_SCAN = 3, + BACKGROUND_SCAN = 4 }; bool ScanType_IsValid(int value); constexpr ScanType ScanType_MIN = UNKNOWN_SCAN_TYPE; -constexpr ScanType ScanType_MAX = DIRECT_SHARE_SCAN; +constexpr ScanType ScanType_MAX = BACKGROUND_SCAN; constexpr int ScanType_ARRAYSIZE = ScanType_MAX + 1; const std::string& ScanType_Name(ScanType value); @@ -488,6 +505,28 @@ inline const std::string& ScanType_Name(T enum_t_value) { } bool ScanType_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ScanType* value); +enum AdvertisingMode : int { + UNKNOWN_ADVERTISING_MODE = 0, + SCREEN_OFF_ADVERTISING_MODE = 1, + BACKGROUND_ADVERTISING_MODE = 2, + MIDGROUND_ADVERTISING_MODE = 3, + FOREGROUND_ADVERTISING_MODE = 4 +}; +bool AdvertisingMode_IsValid(int value); +constexpr AdvertisingMode AdvertisingMode_MIN = UNKNOWN_ADVERTISING_MODE; +constexpr AdvertisingMode AdvertisingMode_MAX = FOREGROUND_ADVERTISING_MODE; +constexpr int AdvertisingMode_ARRAYSIZE = AdvertisingMode_MAX + 1; + +const std::string& AdvertisingMode_Name(AdvertisingMode value); +template +inline const std::string& AdvertisingMode_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AdvertisingMode_Name."); + return AdvertisingMode_Name(static_cast(enum_t_value)); +} +bool AdvertisingMode_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AdvertisingMode* value); enum ActivityName : int { UNKNOWN_ACTIVITY = 0, SHARE_SHEET_ACTIVITY = 1, @@ -497,11 +536,15 @@ enum ActivityName : int { DEVICE_VISIBILITY_ACTIVITY = 5, CONSENTS_ACTIVITY = 6, SET_DEVICE_NAME_DIALOG = 7, - SET_DATA_USAGE_DIALOG = 8 + SET_DATA_USAGE_DIALOG = 8, + QUICK_SETTINGS_ACTIVITY = 9, + REMOTE_COPY_SHARE_SHEET_ACTIVITY = 10, + SETUP_WIZARD_ACTIVITY = 11, + SETTINGS_REVIEW_ACTIVITY = 12 }; bool ActivityName_IsValid(int value); constexpr ActivityName ActivityName_MIN = UNKNOWN_ACTIVITY; -constexpr ActivityName ActivityName_MAX = SET_DATA_USAGE_DIALOG; +constexpr ActivityName ActivityName_MAX = SETTINGS_REVIEW_ACTIVITY; constexpr int ActivityName_ARRAYSIZE = ActivityName_MAX + 1; const std::string& ActivityName_Name(ActivityName value); @@ -662,11 +705,12 @@ enum PermissionRequestType : int { PERMISSION_AIRPLANE_MODE_OFF = 1, PERMISSION_WIFI = 2, PERMISSION_BLUETOOTH = 3, - PERMISSION_LOCATION = 4 + PERMISSION_LOCATION = 4, + PERMISSION_WIFI_HOTSPOT = 5 }; bool PermissionRequestType_IsValid(int value); constexpr PermissionRequestType PermissionRequestType_MIN = PERMISSION_UNKNOWN_TYPE; -constexpr PermissionRequestType PermissionRequestType_MAX = PERMISSION_LOCATION; +constexpr PermissionRequestType PermissionRequestType_MAX = PERMISSION_WIFI_HOTSPOT; constexpr int PermissionRequestType_ARRAYSIZE = PermissionRequestType_MAX + 1; const std::string& PermissionRequestType_Name(PermissionRequestType value); @@ -679,6 +723,121 @@ inline const std::string& PermissionRequestType_Name(T enum_t_value) { } bool PermissionRequestType_Parse( ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PermissionRequestType* value); +enum SharingUseCase : int { + USE_CASE_UNKNOWN = 0, + USE_CASE_NEARBY_SHARE = 1, + USE_CASE_REMOTE_COPY_PASTE = 2, + USE_CASE_WIFI_CREDENTIAL = 3, + USE_CASE_APP_SHARE = 4, + USE_CASE_QUICK_SETTING_FILE_SHARE = 5, + USE_CASE_SETUP_WIZARD = 6, + USE_CASE_NEARBY_SHARE_WITH_QR_CODE = 7 +}; +bool SharingUseCase_IsValid(int value); +constexpr SharingUseCase SharingUseCase_MIN = USE_CASE_UNKNOWN; +constexpr SharingUseCase SharingUseCase_MAX = USE_CASE_NEARBY_SHARE_WITH_QR_CODE; +constexpr int SharingUseCase_ARRAYSIZE = SharingUseCase_MAX + 1; + +const std::string& SharingUseCase_Name(SharingUseCase value); +template +inline const std::string& SharingUseCase_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function SharingUseCase_Name."); + return SharingUseCase_Name(static_cast(enum_t_value)); +} +bool SharingUseCase_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SharingUseCase* value); +enum AppCrashReason : int { + APP_CRASH_REASON_UNKNOWN = 0 +}; +bool AppCrashReason_IsValid(int value); +constexpr AppCrashReason AppCrashReason_MIN = APP_CRASH_REASON_UNKNOWN; +constexpr AppCrashReason AppCrashReason_MAX = APP_CRASH_REASON_UNKNOWN; +constexpr int AppCrashReason_ARRAYSIZE = AppCrashReason_MAX + 1; + +const std::string& AppCrashReason_Name(AppCrashReason value); +template +inline const std::string& AppCrashReason_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AppCrashReason_Name."); + return AppCrashReason_Name(static_cast(enum_t_value)); +} +bool AppCrashReason_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AppCrashReason* value); +enum AttachmentSourceType : int { + ATTACHMENT_SOURCE_UNKNOWN = 0, + ATTACHMENT_SOURCE_CONTEXT_MENU = 1, + ATTACHMENT_SOURCE_DRAG_AND_DROP = 2, + ATTACHMENT_SOURCE_SELECT_FILES_BUTTON = 3, + ATTACHMENT_SOURCE_PASTE = 4, + ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON = 5 +}; +bool AttachmentSourceType_IsValid(int value); +constexpr AttachmentSourceType AttachmentSourceType_MIN = ATTACHMENT_SOURCE_UNKNOWN; +constexpr AttachmentSourceType AttachmentSourceType_MAX = ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON; +constexpr int AttachmentSourceType_ARRAYSIZE = AttachmentSourceType_MAX + 1; + +const std::string& AttachmentSourceType_Name(AttachmentSourceType value); +template +inline const std::string& AttachmentSourceType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function AttachmentSourceType_Name."); + return AttachmentSourceType_Name(static_cast(enum_t_value)); +} +bool AttachmentSourceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttachmentSourceType* value); +enum PreferencesAction : int { + PREFERENCES_ACTION_UNKNOWN = 0, + PREFERENCES_ACTION_NO_ACTION = 1, + PREFERENCES_ACTION_LOAD_PREFERENCES = 2, + PREFERENCES_ACTION_SAVE_PREFERENCESS = 3, + PREFERENCES_ACTION_ATTEMPT_LOAD = 4, + PREFERENCES_ACTION_RESTORE_FROM_BACKUP = 5, + PREFERENCES_ACTION_CREATE_PREFERENCES_PATH = 6, + PREFERENCES_ACTION_MAKE_PREFERENCES_BACKUP_FILE = 7, + PREFERENCES_ACTION_CHECK_IF_PREFERENCES_PATH_EXISTS = 8, + PREFERENCES_ACTION_CHECK_IF_PREFERENCES_INPUT_STREAM_STATUS = 9, + PREFERENCES_ACTION_CHECK_IF_PREFERENCES_FILE_IS_CORRUPTED = 10, + PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS = 11 +}; +bool PreferencesAction_IsValid(int value); +constexpr PreferencesAction PreferencesAction_MIN = PREFERENCES_ACTION_UNKNOWN; +constexpr PreferencesAction PreferencesAction_MAX = PREFERENCES_ACTION_CHECK_IF_PREFERENCES_BACKUP_FILE_EXISTS; +constexpr int PreferencesAction_ARRAYSIZE = PreferencesAction_MAX + 1; + +const std::string& PreferencesAction_Name(PreferencesAction value); +template +inline const std::string& PreferencesAction_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PreferencesAction_Name."); + return PreferencesAction_Name(static_cast(enum_t_value)); +} +bool PreferencesAction_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PreferencesAction* value); +enum PreferencesActionStatus : int { + PREFERENCES_ACTION_STATUS_UNKNOWN = 0, + PREFERENCES_ACTION_STATUS_SUCCESS = 1, + PREFERENCES_ACTION_STATUS_FAIL = 2 +}; +bool PreferencesActionStatus_IsValid(int value); +constexpr PreferencesActionStatus PreferencesActionStatus_MIN = PREFERENCES_ACTION_STATUS_UNKNOWN; +constexpr PreferencesActionStatus PreferencesActionStatus_MAX = PREFERENCES_ACTION_STATUS_FAIL; +constexpr int PreferencesActionStatus_ARRAYSIZE = PreferencesActionStatus_MAX + 1; + +const std::string& PreferencesActionStatus_Name(PreferencesActionStatus value); +template +inline const std::string& PreferencesActionStatus_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PreferencesActionStatus_Name."); + return PreferencesActionStatus_Name(static_cast(enum_t_value)); +} +bool PreferencesActionStatus_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PreferencesActionStatus* value); // =================================================================== @@ -721,6 +880,7 @@ template <> struct is_proto_enum< ::location::nearby::proto::sharing::LogSource> template <> struct is_proto_enum< ::location::nearby::proto::sharing::ServerActionName> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::proto::sharing::ServerResponseState> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::proto::sharing::ScanType> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::proto::sharing::AdvertisingMode> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::proto::sharing::ActivityName> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::proto::sharing::ConsentType> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::proto::sharing::ConsentAcceptanceStatus> : ::std::true_type {}; @@ -730,6 +890,11 @@ template <> struct is_proto_enum< ::location::nearby::proto::sharing::VerifyAPKS template <> struct is_proto_enum< ::location::nearby::proto::sharing::ShowNotificationStatus> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::proto::sharing::PermissionRequestResult> : ::std::true_type {}; template <> struct is_proto_enum< ::location::nearby::proto::sharing::PermissionRequestType> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::proto::sharing::SharingUseCase> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::proto::sharing::AppCrashReason> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::proto::sharing::AttachmentSourceType> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::proto::sharing::PreferencesAction> : ::std::true_type {}; +template <> struct is_proto_enum< ::location::nearby::proto::sharing::PreferencesActionStatus> : ::std::true_type {}; PROTOBUF_NAMESPACE_CLOSE