blob: 694c1c920dd2c9fdd74823d663761fab3af7cc20 [file] [log] [blame]
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: connections/implementation/proto/offline_wire_formats.proto
#include "connections/implementation/proto/offline_wire_formats.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace location {
namespace nearby {
namespace connections {
constexpr OfflineFrame::OfflineFrame(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: v1_(nullptr)
, version_(0)
{}
struct OfflineFrameDefaultTypeInternal {
constexpr OfflineFrameDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~OfflineFrameDefaultTypeInternal() {}
union {
OfflineFrame _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OfflineFrameDefaultTypeInternal _OfflineFrame_default_instance_;
constexpr V1Frame::V1Frame(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: connection_request_(nullptr)
, connection_response_(nullptr)
, payload_transfer_(nullptr)
, bandwidth_upgrade_negotiation_(nullptr)
, keep_alive_(nullptr)
, disconnection_(nullptr)
, paired_key_encryption_(nullptr)
, type_(0)
{}
struct V1FrameDefaultTypeInternal {
constexpr V1FrameDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~V1FrameDefaultTypeInternal() {}
union {
V1Frame _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT V1FrameDefaultTypeInternal _V1Frame_default_instance_;
constexpr ConnectionRequestFrame::ConnectionRequestFrame(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: mediums_()
, endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, endpoint_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, handshake_data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, endpoint_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, device_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, medium_metadata_(nullptr)
, nonce_(0)
, keep_alive_interval_millis_(0)
, keep_alive_timeout_millis_(0)
, device_type_(0){}
struct ConnectionRequestFrameDefaultTypeInternal {
constexpr ConnectionRequestFrameDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~ConnectionRequestFrameDefaultTypeInternal() {}
union {
ConnectionRequestFrame _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_;
constexpr ConnectionResponseFrame::ConnectionResponseFrame(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: handshake_data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, status_(0)
, response_(0)
{}
struct ConnectionResponseFrameDefaultTypeInternal {
constexpr ConnectionResponseFrameDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~ConnectionResponseFrameDefaultTypeInternal() {}
union {
ConnectionResponseFrame _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_;
constexpr PayloadTransferFrame_PayloadHeader::PayloadTransferFrame_PayloadHeader(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: file_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, parent_folder_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, id_(int64_t{0})
, total_size_(int64_t{0})
, type_(0)
, is_sensitive_(false){}
struct PayloadTransferFrame_PayloadHeaderDefaultTypeInternal {
constexpr PayloadTransferFrame_PayloadHeaderDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~PayloadTransferFrame_PayloadHeaderDefaultTypeInternal() {}
union {
PayloadTransferFrame_PayloadHeader _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrame_PayloadHeaderDefaultTypeInternal _PayloadTransferFrame_PayloadHeader_default_instance_;
constexpr PayloadTransferFrame_PayloadChunk::PayloadTransferFrame_PayloadChunk(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: body_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, offset_(int64_t{0})
, flags_(0){}
struct PayloadTransferFrame_PayloadChunkDefaultTypeInternal {
constexpr PayloadTransferFrame_PayloadChunkDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~PayloadTransferFrame_PayloadChunkDefaultTypeInternal() {}
union {
PayloadTransferFrame_PayloadChunk _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrame_PayloadChunkDefaultTypeInternal _PayloadTransferFrame_PayloadChunk_default_instance_;
constexpr PayloadTransferFrame_ControlMessage::PayloadTransferFrame_ControlMessage(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: offset_(int64_t{0})
, event_(0)
{}
struct PayloadTransferFrame_ControlMessageDefaultTypeInternal {
constexpr PayloadTransferFrame_ControlMessageDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~PayloadTransferFrame_ControlMessageDefaultTypeInternal() {}
union {
PayloadTransferFrame_ControlMessage _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrame_ControlMessageDefaultTypeInternal _PayloadTransferFrame_ControlMessage_default_instance_;
constexpr PayloadTransferFrame::PayloadTransferFrame(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: payload_header_(nullptr)
, payload_chunk_(nullptr)
, control_message_(nullptr)
, packet_type_(0)
{}
struct PayloadTransferFrameDefaultTypeInternal {
constexpr PayloadTransferFrameDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~PayloadTransferFrameDefaultTypeInternal() {}
union {
PayloadTransferFrame _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PayloadTransferFrameDefaultTypeInternal _PayloadTransferFrame_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: ssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, gateway_(nullptr)
, port_(0)
, frequency_(-1){}
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: ip_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, wifi_port_(0){}
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: service_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, mac_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: service_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, service_info_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: ssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, port_(0)
, frequency_(0){}
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: peer_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, location_hint_(nullptr){}
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BandwidthUpgradeNegotiationFrame_UpgradePathInfo(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: wifi_hotspot_credentials_(nullptr)
, wifi_lan_socket_(nullptr)
, bluetooth_credentials_(nullptr)
, wifi_aware_credentials_(nullptr)
, wifi_direct_credentials_(nullptr)
, web_rtc_credentials_(nullptr)
, medium_(0)
, supports_disabling_encryption_(false)
, supports_client_introduction_ack_(false){}
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame_UpgradePathInfo _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, supports_disabling_encryption_(false){}
struct BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame_ClientIntroduction _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
struct BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame_ClientIntroductionAck _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: upgrade_path_info_(nullptr)
, client_introduction_(nullptr)
, client_introduction_ack_(nullptr)
, event_type_(0)
{}
struct BandwidthUpgradeNegotiationFrameDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrameDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrameDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrameDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_default_instance_;
constexpr KeepAliveFrame::KeepAliveFrame(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: ack_(false){}
struct KeepAliveFrameDefaultTypeInternal {
constexpr KeepAliveFrameDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~KeepAliveFrameDefaultTypeInternal() {}
union {
KeepAliveFrame _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT KeepAliveFrameDefaultTypeInternal _KeepAliveFrame_default_instance_;
constexpr DisconnectionFrame::DisconnectionFrame(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
struct DisconnectionFrameDefaultTypeInternal {
constexpr DisconnectionFrameDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~DisconnectionFrameDefaultTypeInternal() {}
union {
DisconnectionFrame _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_;
constexpr PairedKeyEncryptionFrame::PairedKeyEncryptionFrame(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: signed_data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
struct PairedKeyEncryptionFrameDefaultTypeInternal {
constexpr PairedKeyEncryptionFrameDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~PairedKeyEncryptionFrameDefaultTypeInternal() {}
union {
PairedKeyEncryptionFrame _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PairedKeyEncryptionFrameDefaultTypeInternal _PairedKeyEncryptionFrame_default_instance_;
constexpr MediumMetadata::MediumMetadata(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: bssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, ip_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, available_channels_(nullptr)
, wifi_direct_cli_usable_channels_(nullptr)
, wifi_lan_usable_channels_(nullptr)
, wifi_aware_usable_channels_(nullptr)
, wifi_hotspot_sta_usable_channels_(nullptr)
, supports_5_ghz_(false)
, supports_6_ghz_(false)
, mobile_radio_(false)
, ap_frequency_(-1){}
struct MediumMetadataDefaultTypeInternal {
constexpr MediumMetadataDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~MediumMetadataDefaultTypeInternal() {}
union {
MediumMetadata _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MediumMetadataDefaultTypeInternal _MediumMetadata_default_instance_;
constexpr AvailableChannels::AvailableChannels(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: channels_()
, _channels_cached_byte_size_(0){}
struct AvailableChannelsDefaultTypeInternal {
constexpr AvailableChannelsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~AvailableChannelsDefaultTypeInternal() {}
union {
AvailableChannels _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AvailableChannelsDefaultTypeInternal _AvailableChannels_default_instance_;
constexpr WifiDirectCliUsableChannels::WifiDirectCliUsableChannels(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: channels_()
, _channels_cached_byte_size_(0){}
struct WifiDirectCliUsableChannelsDefaultTypeInternal {
constexpr WifiDirectCliUsableChannelsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~WifiDirectCliUsableChannelsDefaultTypeInternal() {}
union {
WifiDirectCliUsableChannels _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiDirectCliUsableChannelsDefaultTypeInternal _WifiDirectCliUsableChannels_default_instance_;
constexpr WifiLanUsableChannels::WifiLanUsableChannels(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: channels_()
, _channels_cached_byte_size_(0){}
struct WifiLanUsableChannelsDefaultTypeInternal {
constexpr WifiLanUsableChannelsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~WifiLanUsableChannelsDefaultTypeInternal() {}
union {
WifiLanUsableChannels _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiLanUsableChannelsDefaultTypeInternal _WifiLanUsableChannels_default_instance_;
constexpr WifiAwareUsableChannels::WifiAwareUsableChannels(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: channels_()
, _channels_cached_byte_size_(0){}
struct WifiAwareUsableChannelsDefaultTypeInternal {
constexpr WifiAwareUsableChannelsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~WifiAwareUsableChannelsDefaultTypeInternal() {}
union {
WifiAwareUsableChannels _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiAwareUsableChannelsDefaultTypeInternal _WifiAwareUsableChannels_default_instance_;
constexpr WifiHotspotStaUsableChannels::WifiHotspotStaUsableChannels(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: channels_()
, _channels_cached_byte_size_(0){}
struct WifiHotspotStaUsableChannelsDefaultTypeInternal {
constexpr WifiHotspotStaUsableChannelsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~WifiHotspotStaUsableChannelsDefaultTypeInternal() {}
union {
WifiHotspotStaUsableChannels _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WifiHotspotStaUsableChannelsDefaultTypeInternal _WifiHotspotStaUsableChannels_default_instance_;
constexpr LocationHint::LocationHint(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: location_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, format_(0)
{}
struct LocationHintDefaultTypeInternal {
constexpr LocationHintDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~LocationHintDefaultTypeInternal() {}
union {
LocationHint _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocationHintDefaultTypeInternal _LocationHint_default_instance_;
constexpr LocationStandard::LocationStandard(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
struct LocationStandardDefaultTypeInternal {
constexpr LocationStandardDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~LocationStandardDefaultTypeInternal() {}
union {
LocationStandard _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT LocationStandardDefaultTypeInternal _LocationStandard_default_instance_;
} // namespace connections
} // namespace nearby
} // namespace location
namespace location {
namespace nearby {
namespace connections {
bool OfflineFrame_Version_IsValid(int value) {
switch (value) {
case 0:
case 1:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> OfflineFrame_Version_strings[2] = {};
static const char OfflineFrame_Version_names[] =
"UNKNOWN_VERSION"
"V1";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OfflineFrame_Version_entries[] = {
{ {OfflineFrame_Version_names + 0, 15}, 0 },
{ {OfflineFrame_Version_names + 15, 2}, 1 },
};
static const int OfflineFrame_Version_entries_by_number[] = {
0, // 0 -> UNKNOWN_VERSION
1, // 1 -> V1
};
const std::string& OfflineFrame_Version_Name(
OfflineFrame_Version value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
OfflineFrame_Version_entries,
OfflineFrame_Version_entries_by_number,
2, OfflineFrame_Version_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
OfflineFrame_Version_entries,
OfflineFrame_Version_entries_by_number,
2, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
OfflineFrame_Version_strings[idx].get();
}
bool OfflineFrame_Version_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OfflineFrame_Version* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
OfflineFrame_Version_entries, 2, name, &int_value);
if (success) {
*value = static_cast<OfflineFrame_Version>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr OfflineFrame_Version OfflineFrame::UNKNOWN_VERSION;
constexpr OfflineFrame_Version OfflineFrame::V1;
constexpr OfflineFrame_Version OfflineFrame::Version_MIN;
constexpr OfflineFrame_Version OfflineFrame::Version_MAX;
constexpr int OfflineFrame::Version_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool V1Frame_FrameType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> V1Frame_FrameType_strings[8] = {};
static const char V1Frame_FrameType_names[] =
"BANDWIDTH_UPGRADE_NEGOTIATION"
"CONNECTION_REQUEST"
"CONNECTION_RESPONSE"
"DISCONNECTION"
"KEEP_ALIVE"
"PAIRED_KEY_ENCRYPTION"
"PAYLOAD_TRANSFER"
"UNKNOWN_FRAME_TYPE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry V1Frame_FrameType_entries[] = {
{ {V1Frame_FrameType_names + 0, 29}, 4 },
{ {V1Frame_FrameType_names + 29, 18}, 1 },
{ {V1Frame_FrameType_names + 47, 19}, 2 },
{ {V1Frame_FrameType_names + 66, 13}, 6 },
{ {V1Frame_FrameType_names + 79, 10}, 5 },
{ {V1Frame_FrameType_names + 89, 21}, 7 },
{ {V1Frame_FrameType_names + 110, 16}, 3 },
{ {V1Frame_FrameType_names + 126, 18}, 0 },
};
static const int V1Frame_FrameType_entries_by_number[] = {
7, // 0 -> UNKNOWN_FRAME_TYPE
1, // 1 -> CONNECTION_REQUEST
2, // 2 -> CONNECTION_RESPONSE
6, // 3 -> PAYLOAD_TRANSFER
0, // 4 -> BANDWIDTH_UPGRADE_NEGOTIATION
4, // 5 -> KEEP_ALIVE
3, // 6 -> DISCONNECTION
5, // 7 -> PAIRED_KEY_ENCRYPTION
};
const std::string& V1Frame_FrameType_Name(
V1Frame_FrameType value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
V1Frame_FrameType_entries,
V1Frame_FrameType_entries_by_number,
8, V1Frame_FrameType_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
V1Frame_FrameType_entries,
V1Frame_FrameType_entries_by_number,
8, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
V1Frame_FrameType_strings[idx].get();
}
bool V1Frame_FrameType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, V1Frame_FrameType* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
V1Frame_FrameType_entries, 8, name, &int_value);
if (success) {
*value = static_cast<V1Frame_FrameType>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr V1Frame_FrameType V1Frame::UNKNOWN_FRAME_TYPE;
constexpr V1Frame_FrameType V1Frame::CONNECTION_REQUEST;
constexpr V1Frame_FrameType V1Frame::CONNECTION_RESPONSE;
constexpr V1Frame_FrameType V1Frame::PAYLOAD_TRANSFER;
constexpr V1Frame_FrameType V1Frame::BANDWIDTH_UPGRADE_NEGOTIATION;
constexpr V1Frame_FrameType V1Frame::KEEP_ALIVE;
constexpr V1Frame_FrameType V1Frame::DISCONNECTION;
constexpr V1Frame_FrameType V1Frame::PAIRED_KEY_ENCRYPTION;
constexpr V1Frame_FrameType V1Frame::FrameType_MIN;
constexpr V1Frame_FrameType V1Frame::FrameType_MAX;
constexpr int V1Frame::FrameType_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool ConnectionRequestFrame_Medium_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ConnectionRequestFrame_Medium_strings[11] = {};
static const char ConnectionRequestFrame_Medium_names[] =
"BLE"
"BLE_L2CAP"
"BLUETOOTH"
"MDNS"
"NFC"
"UNKNOWN_MEDIUM"
"WEB_RTC"
"WIFI_AWARE"
"WIFI_DIRECT"
"WIFI_HOTSPOT"
"WIFI_LAN";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionRequestFrame_Medium_entries[] = {
{ {ConnectionRequestFrame_Medium_names + 0, 3}, 4 },
{ {ConnectionRequestFrame_Medium_names + 3, 9}, 10 },
{ {ConnectionRequestFrame_Medium_names + 12, 9}, 2 },
{ {ConnectionRequestFrame_Medium_names + 21, 4}, 1 },
{ {ConnectionRequestFrame_Medium_names + 25, 3}, 7 },
{ {ConnectionRequestFrame_Medium_names + 28, 14}, 0 },
{ {ConnectionRequestFrame_Medium_names + 42, 7}, 9 },
{ {ConnectionRequestFrame_Medium_names + 49, 10}, 6 },
{ {ConnectionRequestFrame_Medium_names + 59, 11}, 8 },
{ {ConnectionRequestFrame_Medium_names + 70, 12}, 3 },
{ {ConnectionRequestFrame_Medium_names + 82, 8}, 5 },
};
static const int ConnectionRequestFrame_Medium_entries_by_number[] = {
5, // 0 -> UNKNOWN_MEDIUM
3, // 1 -> MDNS
2, // 2 -> BLUETOOTH
9, // 3 -> WIFI_HOTSPOT
0, // 4 -> BLE
10, // 5 -> WIFI_LAN
7, // 6 -> WIFI_AWARE
4, // 7 -> NFC
8, // 8 -> WIFI_DIRECT
6, // 9 -> WEB_RTC
1, // 10 -> BLE_L2CAP
};
const std::string& ConnectionRequestFrame_Medium_Name(
ConnectionRequestFrame_Medium value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
ConnectionRequestFrame_Medium_entries,
ConnectionRequestFrame_Medium_entries_by_number,
11, ConnectionRequestFrame_Medium_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
ConnectionRequestFrame_Medium_entries,
ConnectionRequestFrame_Medium_entries_by_number,
11, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
ConnectionRequestFrame_Medium_strings[idx].get();
}
bool ConnectionRequestFrame_Medium_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_Medium* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
ConnectionRequestFrame_Medium_entries, 11, name, &int_value);
if (success) {
*value = static_cast<ConnectionRequestFrame_Medium>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::UNKNOWN_MEDIUM;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::MDNS;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLUETOOTH;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_HOTSPOT;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLE;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_LAN;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_AWARE;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::NFC;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_DIRECT;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WEB_RTC;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLE_L2CAP;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::Medium_MIN;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::Medium_MAX;
constexpr int ConnectionRequestFrame::Medium_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool ConnectionResponseFrame_ResponseStatus_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ConnectionResponseFrame_ResponseStatus_strings[3] = {};
static const char ConnectionResponseFrame_ResponseStatus_names[] =
"ACCEPT"
"REJECT"
"UNKNOWN_RESPONSE_STATUS";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionResponseFrame_ResponseStatus_entries[] = {
{ {ConnectionResponseFrame_ResponseStatus_names + 0, 6}, 1 },
{ {ConnectionResponseFrame_ResponseStatus_names + 6, 6}, 2 },
{ {ConnectionResponseFrame_ResponseStatus_names + 12, 23}, 0 },
};
static const int ConnectionResponseFrame_ResponseStatus_entries_by_number[] = {
2, // 0 -> UNKNOWN_RESPONSE_STATUS
0, // 1 -> ACCEPT
1, // 2 -> REJECT
};
const std::string& ConnectionResponseFrame_ResponseStatus_Name(
ConnectionResponseFrame_ResponseStatus value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
ConnectionResponseFrame_ResponseStatus_entries,
ConnectionResponseFrame_ResponseStatus_entries_by_number,
3, ConnectionResponseFrame_ResponseStatus_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
ConnectionResponseFrame_ResponseStatus_entries,
ConnectionResponseFrame_ResponseStatus_entries_by_number,
3, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
ConnectionResponseFrame_ResponseStatus_strings[idx].get();
}
bool ConnectionResponseFrame_ResponseStatus_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionResponseFrame_ResponseStatus* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
ConnectionResponseFrame_ResponseStatus_entries, 3, name, &int_value);
if (success) {
*value = static_cast<ConnectionResponseFrame_ResponseStatus>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::UNKNOWN_RESPONSE_STATUS;
constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::ACCEPT;
constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::REJECT;
constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::ResponseStatus_MIN;
constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame::ResponseStatus_MAX;
constexpr int ConnectionResponseFrame::ResponseStatus_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> PayloadTransferFrame_PayloadHeader_PayloadType_strings[4] = {};
static const char PayloadTransferFrame_PayloadHeader_PayloadType_names[] =
"BYTES"
"FILE"
"STREAM"
"UNKNOWN_PAYLOAD_TYPE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_PayloadHeader_PayloadType_entries[] = {
{ {PayloadTransferFrame_PayloadHeader_PayloadType_names + 0, 5}, 1 },
{ {PayloadTransferFrame_PayloadHeader_PayloadType_names + 5, 4}, 2 },
{ {PayloadTransferFrame_PayloadHeader_PayloadType_names + 9, 6}, 3 },
{ {PayloadTransferFrame_PayloadHeader_PayloadType_names + 15, 20}, 0 },
};
static const int PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number[] = {
3, // 0 -> UNKNOWN_PAYLOAD_TYPE
0, // 1 -> BYTES
1, // 2 -> FILE
2, // 3 -> STREAM
};
const std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name(
PayloadTransferFrame_PayloadHeader_PayloadType value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
PayloadTransferFrame_PayloadHeader_PayloadType_entries,
PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number,
4, PayloadTransferFrame_PayloadHeader_PayloadType_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
PayloadTransferFrame_PayloadHeader_PayloadType_entries,
PayloadTransferFrame_PayloadHeader_PayloadType_entries_by_number,
4, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
PayloadTransferFrame_PayloadHeader_PayloadType_strings[idx].get();
}
bool PayloadTransferFrame_PayloadHeader_PayloadType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadHeader_PayloadType* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
PayloadTransferFrame_PayloadHeader_PayloadType_entries, 4, name, &int_value);
if (success) {
*value = static_cast<PayloadTransferFrame_PayloadHeader_PayloadType>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::UNKNOWN_PAYLOAD_TYPE;
constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::BYTES;
constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::FILE;
constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::STREAM;
constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::PayloadType_MIN;
constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader::PayloadType_MAX;
constexpr int PayloadTransferFrame_PayloadHeader::PayloadType_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool PayloadTransferFrame_PayloadChunk_Flags_IsValid(int value) {
switch (value) {
case 1:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> PayloadTransferFrame_PayloadChunk_Flags_strings[1] = {};
static const char PayloadTransferFrame_PayloadChunk_Flags_names[] =
"LAST_CHUNK";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_PayloadChunk_Flags_entries[] = {
{ {PayloadTransferFrame_PayloadChunk_Flags_names + 0, 10}, 1 },
};
static const int PayloadTransferFrame_PayloadChunk_Flags_entries_by_number[] = {
0, // 1 -> LAST_CHUNK
};
const std::string& PayloadTransferFrame_PayloadChunk_Flags_Name(
PayloadTransferFrame_PayloadChunk_Flags value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
PayloadTransferFrame_PayloadChunk_Flags_entries,
PayloadTransferFrame_PayloadChunk_Flags_entries_by_number,
1, PayloadTransferFrame_PayloadChunk_Flags_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
PayloadTransferFrame_PayloadChunk_Flags_entries,
PayloadTransferFrame_PayloadChunk_Flags_entries_by_number,
1, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
PayloadTransferFrame_PayloadChunk_Flags_strings[idx].get();
}
bool PayloadTransferFrame_PayloadChunk_Flags_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadChunk_Flags* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
PayloadTransferFrame_PayloadChunk_Flags_entries, 1, name, &int_value);
if (success) {
*value = static_cast<PayloadTransferFrame_PayloadChunk_Flags>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk::LAST_CHUNK;
constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk::Flags_MIN;
constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk::Flags_MAX;
constexpr int PayloadTransferFrame_PayloadChunk::Flags_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool PayloadTransferFrame_ControlMessage_EventType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> PayloadTransferFrame_ControlMessage_EventType_strings[3] = {};
static const char PayloadTransferFrame_ControlMessage_EventType_names[] =
"PAYLOAD_CANCELED"
"PAYLOAD_ERROR"
"UNKNOWN_EVENT_TYPE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_ControlMessage_EventType_entries[] = {
{ {PayloadTransferFrame_ControlMessage_EventType_names + 0, 16}, 2 },
{ {PayloadTransferFrame_ControlMessage_EventType_names + 16, 13}, 1 },
{ {PayloadTransferFrame_ControlMessage_EventType_names + 29, 18}, 0 },
};
static const int PayloadTransferFrame_ControlMessage_EventType_entries_by_number[] = {
2, // 0 -> UNKNOWN_EVENT_TYPE
1, // 1 -> PAYLOAD_ERROR
0, // 2 -> PAYLOAD_CANCELED
};
const std::string& PayloadTransferFrame_ControlMessage_EventType_Name(
PayloadTransferFrame_ControlMessage_EventType value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
PayloadTransferFrame_ControlMessage_EventType_entries,
PayloadTransferFrame_ControlMessage_EventType_entries_by_number,
3, PayloadTransferFrame_ControlMessage_EventType_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
PayloadTransferFrame_ControlMessage_EventType_entries,
PayloadTransferFrame_ControlMessage_EventType_entries_by_number,
3, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
PayloadTransferFrame_ControlMessage_EventType_strings[idx].get();
}
bool PayloadTransferFrame_ControlMessage_EventType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_ControlMessage_EventType* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
PayloadTransferFrame_ControlMessage_EventType_entries, 3, name, &int_value);
if (success) {
*value = static_cast<PayloadTransferFrame_ControlMessage_EventType>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::UNKNOWN_EVENT_TYPE;
constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::PAYLOAD_ERROR;
constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::PAYLOAD_CANCELED;
constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::EventType_MIN;
constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage::EventType_MAX;
constexpr int PayloadTransferFrame_ControlMessage::EventType_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool PayloadTransferFrame_PacketType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> PayloadTransferFrame_PacketType_strings[3] = {};
static const char PayloadTransferFrame_PacketType_names[] =
"CONTROL"
"DATA"
"UNKNOWN_PACKET_TYPE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry PayloadTransferFrame_PacketType_entries[] = {
{ {PayloadTransferFrame_PacketType_names + 0, 7}, 2 },
{ {PayloadTransferFrame_PacketType_names + 7, 4}, 1 },
{ {PayloadTransferFrame_PacketType_names + 11, 19}, 0 },
};
static const int PayloadTransferFrame_PacketType_entries_by_number[] = {
2, // 0 -> UNKNOWN_PACKET_TYPE
1, // 1 -> DATA
0, // 2 -> CONTROL
};
const std::string& PayloadTransferFrame_PacketType_Name(
PayloadTransferFrame_PacketType value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
PayloadTransferFrame_PacketType_entries,
PayloadTransferFrame_PacketType_entries_by_number,
3, PayloadTransferFrame_PacketType_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
PayloadTransferFrame_PacketType_entries,
PayloadTransferFrame_PacketType_entries_by_number,
3, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
PayloadTransferFrame_PacketType_strings[idx].get();
}
bool PayloadTransferFrame_PacketType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PacketType* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
PayloadTransferFrame_PacketType_entries, 3, name, &int_value);
if (success) {
*value = static_cast<PayloadTransferFrame_PacketType>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::UNKNOWN_PACKET_TYPE;
constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::DATA;
constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::CONTROL;
constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::PacketType_MIN;
constexpr PayloadTransferFrame_PacketType PayloadTransferFrame::PacketType_MAX;
constexpr int PayloadTransferFrame::PacketType_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[10] = {};
static const char BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[] =
"BLE"
"BLUETOOTH"
"MDNS"
"NFC"
"UNKNOWN_MEDIUM"
"WEB_RTC"
"WIFI_AWARE"
"WIFI_DIRECT"
"WIFI_HOTSPOT"
"WIFI_LAN";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries[] = {
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 0, 3}, 4 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 3, 9}, 2 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 12, 4}, 1 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 16, 3}, 7 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 19, 14}, 0 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 33, 7}, 9 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 40, 10}, 6 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 50, 11}, 8 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 61, 12}, 3 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 73, 8}, 5 },
};
static const int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number[] = {
4, // 0 -> UNKNOWN_MEDIUM
2, // 1 -> MDNS
1, // 2 -> BLUETOOTH
8, // 3 -> WIFI_HOTSPOT
0, // 4 -> BLE
9, // 5 -> WIFI_LAN
6, // 6 -> WIFI_AWARE
3, // 7 -> NFC
7, // 8 -> WIFI_DIRECT
5, // 9 -> WEB_RTC
};
const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number,
10, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number,
10, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[idx].get();
}
bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, 10, name, &int_value);
if (success) {
*value = static_cast<BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::UNKNOWN_MEDIUM;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MDNS;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BLUETOOTH;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_HOTSPOT;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::BLE;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_LAN;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_AWARE;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::NFC;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_DIRECT;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WEB_RTC;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_MIN;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_MAX;
constexpr int BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool BandwidthUpgradeNegotiationFrame_EventType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> BandwidthUpgradeNegotiationFrame_EventType_strings[7] = {};
static const char BandwidthUpgradeNegotiationFrame_EventType_names[] =
"CLIENT_INTRODUCTION"
"CLIENT_INTRODUCTION_ACK"
"LAST_WRITE_TO_PRIOR_CHANNEL"
"SAFE_TO_CLOSE_PRIOR_CHANNEL"
"UNKNOWN_EVENT_TYPE"
"UPGRADE_FAILURE"
"UPGRADE_PATH_AVAILABLE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeNegotiationFrame_EventType_entries[] = {
{ {BandwidthUpgradeNegotiationFrame_EventType_names + 0, 19}, 4 },
{ {BandwidthUpgradeNegotiationFrame_EventType_names + 19, 23}, 6 },
{ {BandwidthUpgradeNegotiationFrame_EventType_names + 42, 27}, 2 },
{ {BandwidthUpgradeNegotiationFrame_EventType_names + 69, 27}, 3 },
{ {BandwidthUpgradeNegotiationFrame_EventType_names + 96, 18}, 0 },
{ {BandwidthUpgradeNegotiationFrame_EventType_names + 114, 15}, 5 },
{ {BandwidthUpgradeNegotiationFrame_EventType_names + 129, 22}, 1 },
};
static const int BandwidthUpgradeNegotiationFrame_EventType_entries_by_number[] = {
4, // 0 -> UNKNOWN_EVENT_TYPE
6, // 1 -> UPGRADE_PATH_AVAILABLE
2, // 2 -> LAST_WRITE_TO_PRIOR_CHANNEL
3, // 3 -> SAFE_TO_CLOSE_PRIOR_CHANNEL
0, // 4 -> CLIENT_INTRODUCTION
5, // 5 -> UPGRADE_FAILURE
1, // 6 -> CLIENT_INTRODUCTION_ACK
};
const std::string& BandwidthUpgradeNegotiationFrame_EventType_Name(
BandwidthUpgradeNegotiationFrame_EventType value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
BandwidthUpgradeNegotiationFrame_EventType_entries,
BandwidthUpgradeNegotiationFrame_EventType_entries_by_number,
7, BandwidthUpgradeNegotiationFrame_EventType_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
BandwidthUpgradeNegotiationFrame_EventType_entries,
BandwidthUpgradeNegotiationFrame_EventType_entries_by_number,
7, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
BandwidthUpgradeNegotiationFrame_EventType_strings[idx].get();
}
bool BandwidthUpgradeNegotiationFrame_EventType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_EventType* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
BandwidthUpgradeNegotiationFrame_EventType_entries, 7, name, &int_value);
if (success) {
*value = static_cast<BandwidthUpgradeNegotiationFrame_EventType>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::UNKNOWN_EVENT_TYPE;
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::UPGRADE_PATH_AVAILABLE;
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::LAST_WRITE_TO_PRIOR_CHANNEL;
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::SAFE_TO_CLOSE_PRIOR_CHANNEL;
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::CLIENT_INTRODUCTION;
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::UPGRADE_FAILURE;
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::CLIENT_INTRODUCTION_ACK;
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::EventType_MIN;
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::EventType_MAX;
constexpr int BandwidthUpgradeNegotiationFrame::EventType_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool LocationStandard_Format_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> LocationStandard_Format_strings[3] = {};
static const char LocationStandard_Format_names[] =
"E164_CALLING"
"ISO_3166_1_ALPHA_2"
"UNKNOWN";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry LocationStandard_Format_entries[] = {
{ {LocationStandard_Format_names + 0, 12}, 1 },
{ {LocationStandard_Format_names + 12, 18}, 2 },
{ {LocationStandard_Format_names + 30, 7}, 0 },
};
static const int LocationStandard_Format_entries_by_number[] = {
2, // 0 -> UNKNOWN
0, // 1 -> E164_CALLING
1, // 2 -> ISO_3166_1_ALPHA_2
};
const std::string& LocationStandard_Format_Name(
LocationStandard_Format value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
LocationStandard_Format_entries,
LocationStandard_Format_entries_by_number,
3, LocationStandard_Format_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
LocationStandard_Format_entries,
LocationStandard_Format_entries_by_number,
3, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
LocationStandard_Format_strings[idx].get();
}
bool LocationStandard_Format_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LocationStandard_Format* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
LocationStandard_Format_entries, 3, name, &int_value);
if (success) {
*value = static_cast<LocationStandard_Format>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr LocationStandard_Format LocationStandard::UNKNOWN;
constexpr LocationStandard_Format LocationStandard::E164_CALLING;
constexpr LocationStandard_Format LocationStandard::ISO_3166_1_ALPHA_2;
constexpr LocationStandard_Format LocationStandard::Format_MIN;
constexpr LocationStandard_Format LocationStandard::Format_MAX;
constexpr int LocationStandard::Format_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
// ===================================================================
class OfflineFrame::_Internal {
public:
using HasBits = decltype(std::declval<OfflineFrame>()._has_bits_);
static void set_has_version(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
static const ::location::nearby::connections::V1Frame& v1(const OfflineFrame* msg);
static void set_has_v1(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
};
const ::location::nearby::connections::V1Frame&
OfflineFrame::_Internal::v1(const OfflineFrame* msg) {
return *msg->v1_;
}
OfflineFrame::OfflineFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:location.nearby.connections.OfflineFrame)
}
OfflineFrame::OfflineFrame(const OfflineFrame& from)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
_has_bits_(from._has_bits_) {
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
if (from._internal_has_v1()) {
v1_ = new ::location::nearby::connections::V1Frame(*from.v1_);
} else {
v1_ = nullptr;
}
version_ = from.version_;
// @@protoc_insertion_point(copy_constructor:location.nearby.connections.OfflineFrame)
}
inline void OfflineFrame::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&v1_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&version_) -
reinterpret_cast<char*>(&v1_)) + sizeof(version_));
}
OfflineFrame::~OfflineFrame() {
// @@protoc_insertion_point(destructor:location.nearby.connections.OfflineFrame)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<std::string>();
}
inline void OfflineFrame::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete v1_;
}
void OfflineFrame::ArenaDtor(void* object) {
OfflineFrame* _this = reinterpret_cast< OfflineFrame* >(object);
(void)_this;
}
void OfflineFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void OfflineFrame::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void OfflineFrame::Clear() {
// @@protoc_insertion_point(message_clear_start:location.nearby.connections.OfflineFrame)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000001u) {
GOOGLE_DCHECK(v1_ != nullptr);
v1_->Clear();
}
version_ = 0;
_has_bits_.Clear();
_internal_metadata_.Clear<std::string>();
}
const char* OfflineFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional .location.nearby.connections.OfflineFrame.Version version = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::OfflineFrame_Version_IsValid(val))) {
_internal_set_version(static_cast<::location::nearby::connections::OfflineFrame_Version>(val));
} else {
::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
}
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.V1Frame v1 = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_v1(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<std::string>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* OfflineFrame::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.OfflineFrame)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional .location.nearby.connections.OfflineFrame.Version version = 1;
if (cached_has_bits & 0x00000002u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1, this->_internal_version(), target);
}
// optional .location.nearby.connections.V1Frame v1 = 2;
if (cached_has_bits & 0x00000001u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
2, _Internal::v1(this), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.OfflineFrame)
return target;
}
size_t OfflineFrame::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.OfflineFrame)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000003u) {
// optional .location.nearby.connections.V1Frame v1 = 2;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*v1_);
}
// optional .location.nearby.connections.OfflineFrame.Version version = 1;
if (cached_has_bits & 0x00000002u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_version());
}
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void OfflineFrame::CheckTypeAndMergeFrom(
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const OfflineFrame*>(
&from));
}
void OfflineFrame::MergeFrom(const OfflineFrame& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.OfflineFrame)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = from._has_bits_[0];
if (cached_has_bits & 0x00000003u) {
if (cached_has_bits & 0x00000001u) {
_internal_mutable_v1()->::location::nearby::connections::V1Frame::MergeFrom(from._internal_v1());
}
if (cached_has_bits & 0x00000002u) {
version_ = from.version_;
}
_has_bits_[0] |= cached_has_bits;
}
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}
void OfflineFrame::CopyFrom(const OfflineFrame& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.OfflineFrame)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool OfflineFrame::IsInitialized() const {
return true;
}
void OfflineFrame::InternalSwap(OfflineFrame* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_has_bits_[0], other->_has_bits_[0]);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(OfflineFrame, version_)
+ sizeof(OfflineFrame::version_)
- PROTOBUF_FIELD_OFFSET(OfflineFrame, v1_)>(
reinterpret_cast<char*>(&v1_),
reinterpret_cast<char*>(&other->v1_));
}
std::string OfflineFrame::GetTypeName() const {
return "location.nearby.connections.OfflineFrame";
}
// ===================================================================
class V1Frame::_Internal {
public:
using HasBits = decltype(std::declval<V1Frame>()._has_bits_);
static void set_has_type(HasBits* has_bits) {
(*has_bits)[0] |= 128u;
}
static const ::location::nearby::connections::ConnectionRequestFrame& connection_request(const V1Frame* msg);
static void set_has_connection_request(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
static const ::location::nearby::connections::ConnectionResponseFrame& connection_response(const V1Frame* msg);
static void set_has_connection_response(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
static const ::location::nearby::connections::PayloadTransferFrame& payload_transfer(const V1Frame* msg);
static void set_has_payload_transfer(HasBits* has_bits) {
(*has_bits)[0] |= 4u;
}
static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& bandwidth_upgrade_negotiation(const V1Frame* msg);
static void set_has_bandwidth_upgrade_negotiation(HasBits* has_bits) {
(*has_bits)[0] |= 8u;
}
static const ::location::nearby::connections::KeepAliveFrame& keep_alive(const V1Frame* msg);
static void set_has_keep_alive(HasBits* has_bits) {
(*has_bits)[0] |= 16u;
}
static const ::location::nearby::connections::DisconnectionFrame& disconnection(const V1Frame* msg);
static void set_has_disconnection(HasBits* has_bits) {
(*has_bits)[0] |= 32u;
}
static const ::location::nearby::connections::PairedKeyEncryptionFrame& paired_key_encryption(const V1Frame* msg);
static void set_has_paired_key_encryption(HasBits* has_bits) {
(*has_bits)[0] |= 64u;
}
};
const ::location::nearby::connections::ConnectionRequestFrame&
V1Frame::_Internal::connection_request(const V1Frame* msg) {
return *msg->connection_request_;
}
const ::location::nearby::connections::ConnectionResponseFrame&
V1Frame::_Internal::connection_response(const V1Frame* msg) {
return *msg->connection_response_;
}
const ::location::nearby::connections::PayloadTransferFrame&
V1Frame::_Internal::payload_transfer(const V1Frame* msg) {
return *msg->payload_transfer_;
}
const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame&
V1Frame::_Internal::bandwidth_upgrade_negotiation(const V1Frame* msg) {
return *msg->bandwidth_upgrade_negotiation_;
}
const ::location::nearby::connections::KeepAliveFrame&
V1Frame::_Internal::keep_alive(const V1Frame* msg) {
return *msg->keep_alive_;
}
const ::location::nearby::connections::DisconnectionFrame&
V1Frame::_Internal::disconnection(const V1Frame* msg) {
return *msg->disconnection_;
}
const ::location::nearby::connections::PairedKeyEncryptionFrame&
V1Frame::_Internal::paired_key_encryption(const V1Frame* msg) {
return *msg->paired_key_encryption_;
}
V1Frame::V1Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:location.nearby.connections.V1Frame)
}
V1Frame::V1Frame(const V1Frame& from)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
_has_bits_(from._has_bits_) {
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
if (from._internal_has_connection_request()) {
connection_request_ = new ::location::nearby::connections::ConnectionRequestFrame(*from.connection_request_);
} else {
connection_request_ = nullptr;
}
if (from._internal_has_connection_response()) {
connection_response_ = new ::location::nearby::connections::ConnectionResponseFrame(*from.connection_response_);
} else {
connection_response_ = nullptr;
}
if (from._internal_has_payload_transfer()) {
payload_transfer_ = new ::location::nearby::connections::PayloadTransferFrame(*from.payload_transfer_);
} else {
payload_transfer_ = nullptr;
}
if (from._internal_has_bandwidth_upgrade_negotiation()) {
bandwidth_upgrade_negotiation_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame(*from.bandwidth_upgrade_negotiation_);
} else {
bandwidth_upgrade_negotiation_ = nullptr;
}
if (from._internal_has_keep_alive()) {
keep_alive_ = new ::location::nearby::connections::KeepAliveFrame(*from.keep_alive_);
} else {
keep_alive_ = nullptr;
}
if (from._internal_has_disconnection()) {
disconnection_ = new ::location::nearby::connections::DisconnectionFrame(*from.disconnection_);
} else {
disconnection_ = nullptr;
}
if (from._internal_has_paired_key_encryption()) {
paired_key_encryption_ = new ::location::nearby::connections::PairedKeyEncryptionFrame(*from.paired_key_encryption_);
} else {
paired_key_encryption_ = nullptr;
}
type_ = from.type_;
// @@protoc_insertion_point(copy_constructor:location.nearby.connections.V1Frame)
}
inline void V1Frame::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&connection_request_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&type_) -
reinterpret_cast<char*>(&connection_request_)) + sizeof(type_));
}
V1Frame::~V1Frame() {
// @@protoc_insertion_point(destructor:location.nearby.connections.V1Frame)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<std::string>();
}
inline void V1Frame::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete connection_request_;
if (this != internal_default_instance()) delete connection_response_;
if (this != internal_default_instance()) delete payload_transfer_;
if (this != internal_default_instance()) delete bandwidth_upgrade_negotiation_;
if (this != internal_default_instance()) delete keep_alive_;
if (this != internal_default_instance()) delete disconnection_;
if (this != internal_default_instance()) delete paired_key_encryption_;
}
void V1Frame::ArenaDtor(void* object) {
V1Frame* _this = reinterpret_cast< V1Frame* >(object);
(void)_this;
}
void V1Frame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void V1Frame::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void V1Frame::Clear() {
// @@protoc_insertion_point(message_clear_start:location.nearby.connections.V1Frame)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x0000007fu) {
if (cached_has_bits & 0x00000001u) {
GOOGLE_DCHECK(connection_request_ != nullptr);
connection_request_->Clear();
}
if (cached_has_bits & 0x00000002u) {
GOOGLE_DCHECK(connection_response_ != nullptr);
connection_response_->Clear();
}
if (cached_has_bits & 0x00000004u) {
GOOGLE_DCHECK(payload_transfer_ != nullptr);
payload_transfer_->Clear();
}
if (cached_has_bits & 0x00000008u) {
GOOGLE_DCHECK(bandwidth_upgrade_negotiation_ != nullptr);
bandwidth_upgrade_negotiation_->Clear();
}
if (cached_has_bits & 0x00000010u) {
GOOGLE_DCHECK(keep_alive_ != nullptr);
keep_alive_->Clear();
}
if (cached_has_bits & 0x00000020u) {
GOOGLE_DCHECK(disconnection_ != nullptr);
disconnection_->Clear();
}
if (cached_has_bits & 0x00000040u) {
GOOGLE_DCHECK(paired_key_encryption_ != nullptr);
paired_key_encryption_->Clear();
}
}
type_ = 0;
_has_bits_.Clear();
_internal_metadata_.Clear<std::string>();
}
const char* V1Frame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional .location.nearby.connections.V1Frame.FrameType type = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::V1Frame_FrameType_IsValid(val))) {
_internal_set_type(static_cast<::location::nearby::connections::V1Frame_FrameType>(val));
} else {
::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
}
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_connection_request(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_connection_response(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
ptr = ctx->ParseMessage(_internal_mutable_payload_transfer(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
ptr = ctx->ParseMessage(_internal_mutable_bandwidth_upgrade_negotiation(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.KeepAliveFrame keep_alive = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
ptr = ctx->ParseMessage(_internal_mutable_keep_alive(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.DisconnectionFrame disconnection = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
ptr = ctx->ParseMessage(_internal_mutable_disconnection(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8;
case 8:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 66)) {
ptr = ctx->ParseMessage(_internal_mutable_paired_key_encryption(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<std::string>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* V1Frame::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.V1Frame)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional .location.nearby.connections.V1Frame.FrameType type = 1;
if (cached_has_bits & 0x00000080u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1, this->_internal_type(), target);
}
// optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2;
if (cached_has_bits & 0x00000001u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
2, _Internal::connection_request(this), target, stream);
}
// optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3;
if (cached_has_bits & 0x00000002u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
3, _Internal::connection_response(this), target, stream);
}
// optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4;
if (cached_has_bits & 0x00000004u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
4, _Internal::payload_transfer(this), target, stream);
}
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5;
if (cached_has_bits & 0x00000008u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
5, _Internal::bandwidth_upgrade_negotiation(this), target, stream);
}
// optional .location.nearby.connections.KeepAliveFrame keep_alive = 6;
if (cached_has_bits & 0x00000010u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
6, _Internal::keep_alive(this), target, stream);
}
// optional .location.nearby.connections.DisconnectionFrame disconnection = 7;
if (cached_has_bits & 0x00000020u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
7, _Internal::disconnection(this), target, stream);
}
// optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8;
if (cached_has_bits & 0x00000040u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
8, _Internal::paired_key_encryption(this), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:location.nearby.connections.V1Frame)
return target;
}
size_t V1Frame::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.V1Frame)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x000000ffu) {
// optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*connection_request_);
}
// optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3;
if (cached_has_bits & 0x00000002u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*connection_response_);
}
// optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4;
if (cached_has_bits & 0x00000004u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*payload_transfer_);
}
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5;
if (cached_has_bits & 0x00000008u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*bandwidth_upgrade_negotiation_);
}
// optional .location.nearby.connections.KeepAliveFrame keep_alive = 6;
if (cached_has_bits & 0x00000010u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*keep_alive_);
}
// optional .location.nearby.connections.DisconnectionFrame disconnection = 7;
if (cached_has_bits & 0x00000020u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*disconnection_);
}
// optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8;
if (cached_has_bits & 0x00000040u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*paired_key_encryption_);
}
// optional .location.nearby.connections.V1Frame.FrameType type = 1;
if (cached_has_bits & 0x00000080u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type());
}
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void V1Frame::CheckTypeAndMergeFrom(
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const V1Frame*>(
&from));
}
void V1Frame::MergeFrom(const V1Frame& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.V1Frame)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = from._has_bits_[0];
if (cached_has_bits & 0x000000ffu) {
if (cached_has_bits & 0x00000001u) {
_internal_mutable_connection_request()->::location::nearby::connections::ConnectionRequestFrame::MergeFrom(from._internal_connection_request());
}
if (cached_has_bits & 0x00000002u) {
_internal_mutable_connection_response()->::location::nearby::connections::ConnectionResponseFrame::MergeFrom(from._internal_connection_response());
}
if (cached_has_bits & 0x00000004u) {
_internal_mutable_payload_transfer()->::location::nearby::connections::PayloadTransferFrame::MergeFrom(from._internal_payload_transfer());
}
if (cached_has_bits & 0x00000008u) {
_internal_mutable_bandwidth_upgrade_negotiation()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame::MergeFrom(from._internal_bandwidth_upgrade_negotiation());
}
if (cached_has_bits & 0x00000010u) {
_internal_mutable_keep_alive()->::location::nearby::connections::KeepAliveFrame::MergeFrom(from._internal_keep_alive());
}
if (cached_has_bits & 0x00000020u) {
_internal_mutable_disconnection()->::location::nearby::connections::DisconnectionFrame::MergeFrom(from._internal_disconnection());
}
if (cached_has_bits & 0x00000040u) {
_internal_mutable_paired_key_encryption()->::location::nearby::connections::PairedKeyEncryptionFrame::MergeFrom(from._internal_paired_key_encryption());
}
if (cached_has_bits & 0x00000080u) {
type_ = from.type_;
}
_has_bits_[0] |= cached_has_bits;
}
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}
void V1Frame::CopyFrom(const V1Frame& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.V1Frame)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool V1Frame::IsInitialized() const {
return true;
}
void V1Frame::InternalSwap(V1Frame* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_has_bits_[0], other->_has_bits_[0]);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(V1Frame, type_)
+ sizeof(V1Frame::type_)
- PROTOBUF_FIELD_OFFSET(V1Frame, connection_request_)>(
reinterpret_cast<char*>(&connection_request_),
reinterpret_cast<char*>(&other->connection_request_));
}
std::string V1Frame::GetTypeName() const {
return "location.nearby.connections.V1Frame";
}
// ===================================================================
class ConnectionRequestFrame::_Internal {
public:
using HasBits = decltype(std::declval<ConnectionRequestFrame>()._has_bits_);
static void set_has_endpoint_id(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
static void set_has_endpoint_name(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
static void set_has_handshake_data(HasBits* has_bits) {
(*has_bits)[0] |= 4u;
}
static void set_has_nonce(HasBits* has_bits) {
(*has_bits)[0] |= 64u;
}
static void set_has_endpoint_info(HasBits* has_bits) {
(*has_bits)[0] |= 8u;
}
static const ::location::nearby::connections::MediumMetadata& medium_metadata(const ConnectionRequestFrame* msg);
static void set_has_medium_metadata(HasBits* has_bits) {
(*has_bits)[0] |= 32u;
}
static void set_has_keep_alive_interval_millis(HasBits* has_bits) {
(*has_bits)[0] |= 128u;
}
static void set_has_keep_alive_timeout_millis(HasBits* has_bits) {
(*has_bits)[0] |= 256u;
}
static void set_has_device_type(HasBits* has_bits) {
(*has_bits)[0] |= 512u;
}
static void set_has_device_info(HasBits* has_bits) {
(*has_bits)[0] |= 16u;
}
};
const ::location::nearby::connections::MediumMetadata&
ConnectionRequestFrame::_Internal::medium_metadata(const ConnectionRequestFrame* msg) {
return *msg->medium_metadata_;
}
ConnectionRequestFrame::ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned),
mediums_(arena) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:location.nearby.connections.ConnectionRequestFrame)
}
ConnectionRequestFrame::ConnectionRequestFrame(const ConnectionRequestFrame& from)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
_has_bits_(from._has_bits_),
mediums_(from.mediums_) {
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (from._internal_has_endpoint_id()) {
endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_id(),
GetArenaForAllocation());
}
endpoint_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
endpoint_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (from._internal_has_endpoint_name()) {
endpoint_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_name(),
GetArenaForAllocation());
}
handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (from._internal_has_handshake_data()) {
handshake_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_handshake_data(),
GetArenaForAllocation());
}
endpoint_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (from._internal_has_endpoint_info()) {
endpoint_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_endpoint_info(),
GetArenaForAllocation());
}
device_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
device_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (from._internal_has_device_info()) {
device_info_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device_info(),
GetArenaForAllocation());
}
if (from._internal_has_medium_metadata()) {
medium_metadata_ = new ::location::nearby::connections::MediumMetadata(*from.medium_metadata_);
} else {
medium_metadata_ = nullptr;
}
::memcpy(&nonce_, &from.nonce_,
static_cast<size_t>(reinterpret_cast<char*>(&device_type_) -
reinterpret_cast<char*>(&nonce_)) + sizeof(device_type_));
// @@protoc_insertion_point(copy_constructor:location.nearby.connections.ConnectionRequestFrame)
}
inline void ConnectionRequestFrame::SharedCtor() {
endpoint_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
endpoint_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
endpoint_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
handshake_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
handshake_data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
endpoint_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
endpoint_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
device_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
device_info_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&medium_metadata_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&device_type_) -
reinterpret_cast<char*>(&medium_metadata_)) + sizeof(device_type_));
}
ConnectionRequestFrame::~ConnectionRequestFrame() {
// @@protoc_insertion_point(destructor:location.nearby.connections.ConnectionRequestFrame)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<std::string>();
}
inline void ConnectionRequestFrame::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
endpoint_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
endpoint_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
handshake_data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
endpoint_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
device_info_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
if (this != internal_default_instance()) delete medium_metadata_;
}
void ConnectionRequestFrame::ArenaDtor(void* object) {
ConnectionRequestFrame* _this = reinterpret_cast< ConnectionRequestFrame* >(object);
(void)_this;
}
void ConnectionRequestFrame::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void ConnectionRequestFrame::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void ConnectionRequestFrame::Clear() {
// @@protoc_insertion_point(message_clear_start:location.nearby.connections.ConnectionRequestFrame)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
mediums_.Clear();
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x0000003fu) {
if (cached_has_bits & 0x00000001u) {
endpoint_id_.ClearNonDefaultToEmpty();
}
if (cached_has_bits & 0x00000002u) {
endpoint_name_.ClearNonDefaultToEmpty();
}
if (cached_has_bits & 0x00000004u) {
handshake_data_.ClearNonDefaultToEmpty();
}
if (cached_has_bits & 0x00000008u) {
endpoint_info_.ClearNonDefaultToEmpty();
}
if (cached_has_bits & 0x00000010u) {
device_info_.ClearNonDefaultToEmpty();
}
if (cached_has_bits & 0x00000020u) {
GOOGLE_DCHECK(medium_metadata_ != nullptr);
medium_metadata_->Clear();
}
}
if (cached_has_bits & 0x000000c0u) {
::memset(&nonce_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&keep_alive_interval_millis_) -
reinterpret_cast<char*>(&nonce_)) + sizeof(keep_alive_interval_millis_));
}
if (cached_has_bits & 0x00000300u) {
::memset(&keep_alive_timeout_millis_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&device_type_) -
reinterpret_cast<char*>(&keep_alive_timeout_millis_)) + sizeof(device_type_));
}
_has_bits_.Clear();
_internal_metadata_.Clear<std::string>();
}
const char* ConnectionRequestFrame::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional string endpoint_id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_endpoint_id();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional string endpoint_name = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_endpoint_name();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional bytes handshake_data = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
auto str = _internal_mutable_handshake_data();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional int32 nonce = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
_Internal::set_has_nonce(&has_bits);
nonce_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
ptr -= 1;
do {
ptr += 1;
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid(val))) {
_internal_add_mediums(static_cast<::location::nearby::connections::ConnectionRequestFrame_Medium>(val));
} else {
::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(5, val, mutable_unknown_fields());
}
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<40>(ptr));
} else if (static_cast<uint8_t>(tag) == 42) {
ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser<std::string>(_internal_mutable_mediums(), ptr, ctx, ::location::nearby::connections::ConnectionRequestFrame_Medium_IsValid, &_internal_metadata_, 5);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional bytes endpoint_info = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
auto str = _internal_mutable_endpoint_info();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.MediumMetadata medium_metadata = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
ptr = ctx->ParseMessage(_internal_mutable_medium_metadata(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional int32 keep_alive_interval_millis = 8;
case 8:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
_Internal::set_has_keep_alive_interval_millis(&has_bits);
keep_alive_interval_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional int32 keep_alive_timeout_millis = 9;
case 9:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
_Internal::set_has_keep_alive_timeout_millis(&has_bits);
keep_alive_timeout_millis_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional int32 device_type = 10 [default = 0];
case 10:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
_Internal::set_has_device_type(&has_bits);
device_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional bytes device_info = 11;
case 11:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
auto str = _internal_mutable_device_info();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<std::string>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* ConnectionRequestFrame::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.ConnectionRequestFrame)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional string endpoint_id = 1;
if (cached_has_bits & 0x00000001u) {
target = stream->WriteStringMaybeAliased(
1, this->_internal_endpoint_id(), target);
}
// optional string endpoint_name = 2;
if (cached_has_bits & 0x00000002u) {
target = stream->WriteStringMaybeAliased(
2, this->_internal_endpoint_name(), target);
}
// optional bytes handshake_data = 3;
if (cached_has_bits & 0x00000004u) {
target = stream->WriteBytesMaybeAliased(
3, this->_internal_handshake_data(), target);
}
// optional int32 nonce = 4;
if (cached_has_bits & 0x00000040u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_nonce(), target);
}
// repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5;
for (int i = 0, n = this->_internal_mediums_size(); i < n; i++) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
5, this->_internal_mediums(i), target);
}
// optional bytes endpoint_info = 6;
if (cached_has_bits & 0x00000008u) {
target = stream->WriteBytesMaybeAliased(
6, this->_internal_endpoint_info(), target);
}
// optional .location.nearby.connections.MediumMetadata medium_metadata = 7;
if (cached_has_bits & 0x00000020u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
7, _Internal::medium_metadata(this), target, stream);
}
// optional int32 keep_alive_interval_millis = 8;
if (