Compile protos

This commit is contained in:
Edwin Wu
2024-10-05 18:24:05 +08:00
parent 707e85d3fc
commit 703df338b2
4 changed files with 2191 additions and 796 deletions
@@ -68,6 +68,8 @@ constexpr ConnectionRequestFrame::ConnectionRequestFrame(
, keep_alive_interval_millis_(0)
, keep_alive_timeout_millis_(0)
, device_type_(0)
, connection_mode_(0)
, _oneof_case_{}{}
struct ConnectionRequestFrameDefaultTypeInternal {
constexpr ConnectionRequestFrameDefaultTypeInternal()
@@ -267,6 +269,18 @@ struct BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: sta_frequency_(0){}
struct BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal {
constexpr BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal() {}
union {
BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_;
constexpr BandwidthUpgradeNegotiationFrame_ClientIntroduction::BandwidthUpgradeNegotiationFrame_ClientIntroduction(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: endpoint_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
@@ -296,6 +310,7 @@ constexpr BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame(
: upgrade_path_info_(nullptr)
, client_introduction_(nullptr)
, client_introduction_ack_(nullptr)
, safe_to_close_prior_channel_(nullptr)
, event_type_(0)
{}
struct BandwidthUpgradeNegotiationFrameDefaultTypeInternal {
@@ -769,13 +784,14 @@ bool ConnectionRequestFrame_Medium_IsValid(int value) {
case 9:
case 10:
case 11:
case 12:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ConnectionRequestFrame_Medium_strings[12] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ConnectionRequestFrame_Medium_strings[13] = {};
static const char ConnectionRequestFrame_Medium_names[] =
"BLE"
@@ -786,6 +802,7 @@ static const char ConnectionRequestFrame_Medium_names[] =
"UNKNOWN_MEDIUM"
"USB"
"WEB_RTC"
"WEB_RTC_NON_CELLULAR"
"WIFI_AWARE"
"WIFI_DIRECT"
"WIFI_HOTSPOT"
@@ -800,25 +817,27 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionRequestFrame
{ {ConnectionRequestFrame_Medium_names + 28, 14}, 0 },
{ {ConnectionRequestFrame_Medium_names + 42, 3}, 11 },
{ {ConnectionRequestFrame_Medium_names + 45, 7}, 9 },
{ {ConnectionRequestFrame_Medium_names + 52, 10}, 6 },
{ {ConnectionRequestFrame_Medium_names + 62, 11}, 8 },
{ {ConnectionRequestFrame_Medium_names + 73, 12}, 3 },
{ {ConnectionRequestFrame_Medium_names + 85, 8}, 5 },
{ {ConnectionRequestFrame_Medium_names + 52, 20}, 12 },
{ {ConnectionRequestFrame_Medium_names + 72, 10}, 6 },
{ {ConnectionRequestFrame_Medium_names + 82, 11}, 8 },
{ {ConnectionRequestFrame_Medium_names + 93, 12}, 3 },
{ {ConnectionRequestFrame_Medium_names + 105, 8}, 5 },
};
static const int ConnectionRequestFrame_Medium_entries_by_number[] = {
5, // 0 -> UNKNOWN_MEDIUM
3, // 1 -> MDNS
2, // 2 -> BLUETOOTH
10, // 3 -> WIFI_HOTSPOT
11, // 3 -> WIFI_HOTSPOT
0, // 4 -> BLE
11, // 5 -> WIFI_LAN
8, // 6 -> WIFI_AWARE
12, // 5 -> WIFI_LAN
9, // 6 -> WIFI_AWARE
4, // 7 -> NFC
9, // 8 -> WIFI_DIRECT
10, // 8 -> WIFI_DIRECT
7, // 9 -> WEB_RTC
1, // 10 -> BLE_L2CAP
6, // 11 -> USB
8, // 12 -> WEB_RTC_NON_CELLULAR
};
const std::string& ConnectionRequestFrame_Medium_Name(
@@ -827,12 +846,12 @@ const std::string& ConnectionRequestFrame_Medium_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
ConnectionRequestFrame_Medium_entries,
ConnectionRequestFrame_Medium_entries_by_number,
12, ConnectionRequestFrame_Medium_strings);
13, ConnectionRequestFrame_Medium_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
ConnectionRequestFrame_Medium_entries,
ConnectionRequestFrame_Medium_entries_by_number,
12, value);
13, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
ConnectionRequestFrame_Medium_strings[idx].get();
}
@@ -840,7 +859,7 @@ bool ConnectionRequestFrame_Medium_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_Medium* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
ConnectionRequestFrame_Medium_entries, 12, name, &int_value);
ConnectionRequestFrame_Medium_entries, 13, name, &int_value);
if (success) {
*value = static_cast<ConnectionRequestFrame_Medium>(int_value);
}
@@ -859,10 +878,69 @@ constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_DIRECT;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WEB_RTC;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLE_L2CAP;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::USB;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WEB_RTC_NON_CELLULAR;
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 ConnectionRequestFrame_ConnectionMode_IsValid(int value) {
switch (value) {
case 0:
case 1:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ConnectionRequestFrame_ConnectionMode_strings[2] = {};
static const char ConnectionRequestFrame_ConnectionMode_names[] =
"INSTANT"
"LEGACY";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionRequestFrame_ConnectionMode_entries[] = {
{ {ConnectionRequestFrame_ConnectionMode_names + 0, 7}, 1 },
{ {ConnectionRequestFrame_ConnectionMode_names + 7, 6}, 0 },
};
static const int ConnectionRequestFrame_ConnectionMode_entries_by_number[] = {
1, // 0 -> LEGACY
0, // 1 -> INSTANT
};
const std::string& ConnectionRequestFrame_ConnectionMode_Name(
ConnectionRequestFrame_ConnectionMode value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
ConnectionRequestFrame_ConnectionMode_entries,
ConnectionRequestFrame_ConnectionMode_entries_by_number,
2, ConnectionRequestFrame_ConnectionMode_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
ConnectionRequestFrame_ConnectionMode_entries,
ConnectionRequestFrame_ConnectionMode_entries_by_number,
2, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
ConnectionRequestFrame_ConnectionMode_strings[idx].get();
}
bool ConnectionRequestFrame_ConnectionMode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_ConnectionMode* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
ConnectionRequestFrame_ConnectionMode_entries, 2, name, &int_value);
if (success) {
*value = static_cast<ConnectionRequestFrame_ConnectionMode>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::LEGACY;
constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::INSTANT;
constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::ConnectionMode_MIN;
constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::ConnectionMode_MAX;
constexpr int ConnectionRequestFrame::ConnectionMode_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool ConnectionResponseFrame_ResponseStatus_IsValid(int value) {
switch (value) {
case 0:
@@ -1196,13 +1274,14 @@ bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(int value)
case 8:
case 9:
case 11:
case 12:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[11] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[12] = {};
static const char BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[] =
"BLE"
@@ -1212,6 +1291,7 @@ static const char BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[
"UNKNOWN_MEDIUM"
"USB"
"WEB_RTC"
"WEB_RTC_NON_CELLULAR"
"WIFI_AWARE"
"WIFI_DIRECT"
"WIFI_HOTSPOT"
@@ -1225,24 +1305,26 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeNegoti
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 19, 14}, 0 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 33, 3}, 11 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 36, 7}, 9 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 43, 10}, 6 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 53, 11}, 8 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 64, 12}, 3 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 76, 8}, 5 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 43, 20}, 12 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 63, 10}, 6 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 73, 11}, 8 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 84, 12}, 3 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 96, 8}, 5 },
};
static const int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number[] = {
4, // 0 -> UNKNOWN_MEDIUM
2, // 1 -> MDNS
1, // 2 -> BLUETOOTH
9, // 3 -> WIFI_HOTSPOT
10, // 3 -> WIFI_HOTSPOT
0, // 4 -> BLE
10, // 5 -> WIFI_LAN
7, // 6 -> WIFI_AWARE
11, // 5 -> WIFI_LAN
8, // 6 -> WIFI_AWARE
3, // 7 -> NFC
8, // 8 -> WIFI_DIRECT
9, // 8 -> WIFI_DIRECT
6, // 9 -> WEB_RTC
5, // 11 -> USB
7, // 12 -> WEB_RTC_NON_CELLULAR
};
const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(
@@ -1251,12 +1333,12 @@ const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number,
11, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings);
12, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number,
11, value);
12, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[idx].get();
}
@@ -1264,7 +1346,7 @@ bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, 11, name, &int_value);
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, 12, name, &int_value);
if (success) {
*value = static_cast<BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>(int_value);
}
@@ -1282,6 +1364,7 @@ constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgra
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_DIRECT;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WEB_RTC;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::USB;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WEB_RTC_NON_CELLULAR;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_MIN;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_MAX;
constexpr int BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_ARRAYSIZE;
@@ -1382,13 +1465,14 @@ bool BandwidthUpgradeRetryFrame_Medium_IsValid(int value) {
case 9:
case 10:
case 11:
case 12:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> BandwidthUpgradeRetryFrame_Medium_strings[11] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> BandwidthUpgradeRetryFrame_Medium_strings[12] = {};
static const char BandwidthUpgradeRetryFrame_Medium_names[] =
"BLE"
@@ -1398,6 +1482,7 @@ static const char BandwidthUpgradeRetryFrame_Medium_names[] =
"UNKNOWN_MEDIUM"
"USB"
"WEB_RTC"
"WEB_RTC_NON_CELLULAR"
"WIFI_AWARE"
"WIFI_DIRECT"
"WIFI_HOTSPOT"
@@ -1411,24 +1496,26 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeRetryF
{ {BandwidthUpgradeRetryFrame_Medium_names + 24, 14}, 0 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 38, 3}, 11 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 41, 7}, 9 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 48, 10}, 6 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 58, 11}, 8 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 69, 12}, 3 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 81, 8}, 5 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 48, 20}, 12 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 68, 10}, 6 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 78, 11}, 8 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 89, 12}, 3 },
{ {BandwidthUpgradeRetryFrame_Medium_names + 101, 8}, 5 },
};
static const int BandwidthUpgradeRetryFrame_Medium_entries_by_number[] = {
4, // 0 -> UNKNOWN_MEDIUM
2, // 2 -> BLUETOOTH
9, // 3 -> WIFI_HOTSPOT
10, // 3 -> WIFI_HOTSPOT
0, // 4 -> BLE
10, // 5 -> WIFI_LAN
7, // 6 -> WIFI_AWARE
11, // 5 -> WIFI_LAN
8, // 6 -> WIFI_AWARE
3, // 7 -> NFC
8, // 8 -> WIFI_DIRECT
9, // 8 -> WIFI_DIRECT
6, // 9 -> WEB_RTC
1, // 10 -> BLE_L2CAP
5, // 11 -> USB
7, // 12 -> WEB_RTC_NON_CELLULAR
};
const std::string& BandwidthUpgradeRetryFrame_Medium_Name(
@@ -1437,12 +1524,12 @@ const std::string& BandwidthUpgradeRetryFrame_Medium_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
BandwidthUpgradeRetryFrame_Medium_entries,
BandwidthUpgradeRetryFrame_Medium_entries_by_number,
11, BandwidthUpgradeRetryFrame_Medium_strings);
12, BandwidthUpgradeRetryFrame_Medium_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
BandwidthUpgradeRetryFrame_Medium_entries,
BandwidthUpgradeRetryFrame_Medium_entries_by_number,
11, value);
12, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
BandwidthUpgradeRetryFrame_Medium_strings[idx].get();
}
@@ -1450,7 +1537,7 @@ bool BandwidthUpgradeRetryFrame_Medium_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeRetryFrame_Medium* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
BandwidthUpgradeRetryFrame_Medium_entries, 11, name, &int_value);
BandwidthUpgradeRetryFrame_Medium_entries, 12, name, &int_value);
if (success) {
*value = static_cast<BandwidthUpgradeRetryFrame_Medium>(int_value);
}
@@ -1468,6 +1555,7 @@ constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::WIFI_DIR
constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::WEB_RTC;
constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::BLE_L2CAP;
constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::USB;
constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::WEB_RTC_NON_CELLULAR;
constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::Medium_MIN;
constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame::Medium_MAX;
constexpr int BandwidthUpgradeRetryFrame::Medium_ARRAYSIZE;
@@ -2912,6 +3000,9 @@ class ConnectionRequestFrame::_Internal {
}
static const ::location::nearby::connections::ConnectionsDevice& connections_device(const ConnectionRequestFrame* msg);
static const ::location::nearby::connections::PresenceDevice& presence_device(const ConnectionRequestFrame* msg);
static void set_has_connection_mode(HasBits* has_bits) {
(*has_bits)[0] |= 1024u;
}
};
const ::location::nearby::connections::MediumMetadata&
@@ -3017,8 +3108,8 @@ ConnectionRequestFrame::ConnectionRequestFrame(const ConnectionRequestFrame& fro
medium_metadata_ = nullptr;
}
::memcpy(&nonce_, &from.nonce_,
static_cast<size_t>(reinterpret_cast<char*>(&device_type_) -
reinterpret_cast<char*>(&nonce_)) + sizeof(device_type_));
static_cast<size_t>(reinterpret_cast<char*>(&connection_mode_) -
reinterpret_cast<char*>(&nonce_)) + sizeof(connection_mode_));
clear_has_Device();
switch (from.Device_case()) {
case kConnectionsDevice: {
@@ -3059,8 +3150,8 @@ device_info_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString
#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_));
0, static_cast<size_t>(reinterpret_cast<char*>(&connection_mode_) -
reinterpret_cast<char*>(&medium_metadata_)) + sizeof(connection_mode_));
clear_has_Device();
}
@@ -3151,10 +3242,10 @@ void ConnectionRequestFrame::Clear() {
reinterpret_cast<char*>(&keep_alive_interval_millis_) -
reinterpret_cast<char*>(&nonce_)) + sizeof(keep_alive_interval_millis_));
}
if (cached_has_bits & 0x00000300u) {
if (cached_has_bits & 0x00000700u) {
::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_));
reinterpret_cast<char*>(&connection_mode_) -
reinterpret_cast<char*>(&keep_alive_timeout_millis_)) + sizeof(connection_mode_));
}
clear_Device();
_has_bits_.Clear();
@@ -3294,6 +3385,19 @@ const char* ConnectionRequestFrame::_InternalParse(const char* ptr, ::PROTOBUF_N
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14;
case 14:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 112)) {
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
if (PROTOBUF_PREDICT_TRUE(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode_IsValid(val))) {
_internal_set_connection_mode(static_cast<::location::nearby::connections::ConnectionRequestFrame_ConnectionMode>(val));
} else {
::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(14, val, mutable_unknown_fields());
}
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -3411,6 +3515,13 @@ uint8_t* ConnectionRequestFrame::_InternalSerialize(
}
default: ;
}
// optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14;
if (cached_has_bits & 0x00000400u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
14, this->_internal_connection_mode(), target);
}
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);
@@ -3492,7 +3603,7 @@ size_t ConnectionRequestFrame::ByteSizeLong() const {
}
}
if (cached_has_bits & 0x00000300u) {
if (cached_has_bits & 0x00000700u) {
// optional int32 keep_alive_timeout_millis = 9;
if (cached_has_bits & 0x00000100u) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_keep_alive_timeout_millis());
@@ -3503,6 +3614,12 @@ size_t ConnectionRequestFrame::ByteSizeLong() const {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_device_type());
}
// optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14;
if (cached_has_bits & 0x00000400u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_connection_mode());
}
}
switch (Device_case()) {
// .location.nearby.connections.ConnectionsDevice connections_device = 12;
@@ -3572,13 +3689,16 @@ void ConnectionRequestFrame::MergeFrom(const ConnectionRequestFrame& from) {
}
_has_bits_[0] |= cached_has_bits;
}
if (cached_has_bits & 0x00000300u) {
if (cached_has_bits & 0x00000700u) {
if (cached_has_bits & 0x00000100u) {
keep_alive_timeout_millis_ = from.keep_alive_timeout_millis_;
}
if (cached_has_bits & 0x00000200u) {
device_type_ = from.device_type_;
}
if (cached_has_bits & 0x00000400u) {
connection_mode_ = from.connection_mode_;
}
_has_bits_[0] |= cached_has_bits;
}
switch (from.Device_case()) {
@@ -3641,8 +3761,8 @@ void ConnectionRequestFrame::InternalSwap(ConnectionRequestFrame* other) {
&other->device_info_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, device_type_)
+ sizeof(ConnectionRequestFrame::device_type_)
PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, connection_mode_)
+ sizeof(ConnectionRequestFrame::connection_mode_)
- PROTOBUF_FIELD_OFFSET(ConnectionRequestFrame, medium_metadata_)>(
reinterpret_cast<char*>(&medium_metadata_),
reinterpret_cast<char*>(&other->medium_metadata_));
@@ -7778,6 +7898,193 @@ std::string BandwidthUpgradeNegotiationFrame_UpgradePathInfo::GetTypeName() cons
}
// ===================================================================
class BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_Internal {
public:
using HasBits = decltype(std::declval<BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>()._has_bits_);
static void set_has_sta_frequency(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
};
BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel)
}
BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
_has_bits_(from._has_bits_) {
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
sta_frequency_ = from.sta_frequency_;
// @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel)
}
inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::SharedCtor() {
sta_frequency_ = 0;
}
BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::~BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel() {
// @@protoc_insertion_point(destructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<std::string>();
}
inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::ArenaDtor(void* object) {
BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* _this = reinterpret_cast< BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* >(object);
(void)_this;
}
void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::Clear() {
// @@protoc_insertion_point(message_clear_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
sta_frequency_ = 0;
_has_bits_.Clear();
_internal_metadata_.Clear<std::string>();
}
const char* BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional int32 sta_frequency = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_Internal::set_has_sta_frequency(&has_bits);
sta_frequency_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<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* BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional int32 sta_frequency = 1;
if (cached_has_bits & 0x00000001u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_sta_frequency(), target);
}
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.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel)
return target;
}
size_t BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// optional int32 sta_frequency = 1;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000001u) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_sta_frequency());
}
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 BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::CheckTypeAndMergeFrom(
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel*>(
&from));
}
void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::MergeFrom(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_has_sta_frequency()) {
_internal_set_sta_frequency(from._internal_sta_frequency());
}
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}
void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::CopyFrom(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::IsInitialized() const {
return true;
}
void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::InternalSwap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_has_bits_[0], other->_has_bits_[0]);
swap(sta_frequency_, other->sta_frequency_);
}
std::string BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::GetTypeName() const {
return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel";
}
// ===================================================================
class BandwidthUpgradeNegotiationFrame_ClientIntroduction::_Internal {
@@ -8173,7 +8480,7 @@ class BandwidthUpgradeNegotiationFrame::_Internal {
public:
using HasBits = decltype(std::declval<BandwidthUpgradeNegotiationFrame>()._has_bits_);
static void set_has_event_type(HasBits* has_bits) {
(*has_bits)[0] |= 8u;
(*has_bits)[0] |= 16u;
}
static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo& upgrade_path_info(const BandwidthUpgradeNegotiationFrame* msg);
static void set_has_upgrade_path_info(HasBits* has_bits) {
@@ -8187,6 +8494,10 @@ class BandwidthUpgradeNegotiationFrame::_Internal {
static void set_has_client_introduction_ack(HasBits* has_bits) {
(*has_bits)[0] |= 4u;
}
static const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& safe_to_close_prior_channel(const BandwidthUpgradeNegotiationFrame* msg);
static void set_has_safe_to_close_prior_channel(HasBits* has_bits) {
(*has_bits)[0] |= 8u;
}
};
const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo&
@@ -8201,6 +8512,10 @@ const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIn
BandwidthUpgradeNegotiationFrame::_Internal::client_introduction_ack(const BandwidthUpgradeNegotiationFrame* msg) {
return *msg->client_introduction_ack_;
}
const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel&
BandwidthUpgradeNegotiationFrame::_Internal::safe_to_close_prior_channel(const BandwidthUpgradeNegotiationFrame* msg) {
return *msg->safe_to_close_prior_channel_;
}
BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
@@ -8229,6 +8544,11 @@ BandwidthUpgradeNegotiationFrame::BandwidthUpgradeNegotiationFrame(const Bandwid
} else {
client_introduction_ack_ = nullptr;
}
if (from._internal_has_safe_to_close_prior_channel()) {
safe_to_close_prior_channel_ = new ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(*from.safe_to_close_prior_channel_);
} else {
safe_to_close_prior_channel_ = nullptr;
}
event_type_ = from.event_type_;
// @@protoc_insertion_point(copy_constructor:location.nearby.connections.BandwidthUpgradeNegotiationFrame)
}
@@ -8252,6 +8572,7 @@ inline void BandwidthUpgradeNegotiationFrame::SharedDtor() {
if (this != internal_default_instance()) delete upgrade_path_info_;
if (this != internal_default_instance()) delete client_introduction_;
if (this != internal_default_instance()) delete client_introduction_ack_;
if (this != internal_default_instance()) delete safe_to_close_prior_channel_;
}
void BandwidthUpgradeNegotiationFrame::ArenaDtor(void* object) {
@@ -8271,7 +8592,7 @@ void BandwidthUpgradeNegotiationFrame::Clear() {
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000007u) {
if (cached_has_bits & 0x0000000fu) {
if (cached_has_bits & 0x00000001u) {
GOOGLE_DCHECK(upgrade_path_info_ != nullptr);
upgrade_path_info_->Clear();
@@ -8284,6 +8605,10 @@ void BandwidthUpgradeNegotiationFrame::Clear() {
GOOGLE_DCHECK(client_introduction_ack_ != nullptr);
client_introduction_ack_->Clear();
}
if (cached_has_bits & 0x00000008u) {
GOOGLE_DCHECK(safe_to_close_prior_channel_ != nullptr);
safe_to_close_prior_channel_->Clear();
}
}
event_type_ = 0;
_has_bits_.Clear();
@@ -8334,6 +8659,14 @@ const char* BandwidthUpgradeNegotiationFrame::_InternalParse(const char* ptr, ::
} else
goto handle_unusual;
continue;
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
ptr = ctx->ParseMessage(_internal_mutable_safe_to_close_prior_channel(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -8366,7 +8699,7 @@ uint8_t* BandwidthUpgradeNegotiationFrame::_InternalSerialize(
cached_has_bits = _has_bits_[0];
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1;
if (cached_has_bits & 0x00000008u) {
if (cached_has_bits & 0x00000010u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1, this->_internal_event_type(), target);
@@ -8396,6 +8729,14 @@ uint8_t* BandwidthUpgradeNegotiationFrame::_InternalSerialize(
4, _Internal::client_introduction_ack(this), target, stream);
}
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5;
if (cached_has_bits & 0x00000008u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
5, _Internal::safe_to_close_prior_channel(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);
@@ -8413,7 +8754,7 @@ size_t BandwidthUpgradeNegotiationFrame::ByteSizeLong() const {
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x0000000fu) {
if (cached_has_bits & 0x0000001fu) {
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
@@ -8435,8 +8776,15 @@ size_t BandwidthUpgradeNegotiationFrame::ByteSizeLong() const {
*client_introduction_ack_);
}
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1;
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5;
if (cached_has_bits & 0x00000008u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*safe_to_close_prior_channel_);
}
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1;
if (cached_has_bits & 0x00000010u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_event_type());
}
@@ -8463,7 +8811,7 @@ void BandwidthUpgradeNegotiationFrame::MergeFrom(const BandwidthUpgradeNegotiati
(void) cached_has_bits;
cached_has_bits = from._has_bits_[0];
if (cached_has_bits & 0x0000000fu) {
if (cached_has_bits & 0x0000001fu) {
if (cached_has_bits & 0x00000001u) {
_internal_mutable_upgrade_path_info()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo::MergeFrom(from._internal_upgrade_path_info());
}
@@ -8474,6 +8822,9 @@ void BandwidthUpgradeNegotiationFrame::MergeFrom(const BandwidthUpgradeNegotiati
_internal_mutable_client_introduction_ack()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck::MergeFrom(from._internal_client_introduction_ack());
}
if (cached_has_bits & 0x00000008u) {
_internal_mutable_safe_to_close_prior_channel()->::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::MergeFrom(from._internal_safe_to_close_prior_channel());
}
if (cached_has_bits & 0x00000010u) {
event_type_ = from.event_type_;
}
_has_bits_[0] |= cached_has_bits;
@@ -13475,6 +13826,9 @@ template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNe
template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo >(Arena* arena) {
return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo >(arena);
}
template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel >(Arena* arena) {
return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel >(arena);
}
template<> PROTOBUF_NOINLINE ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* Arena::CreateMaybeMessage< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction >(Arena* arena) {
return Arena::CreateMessageInternal< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction >(arena);
}
@@ -45,7 +45,7 @@ struct TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fforma
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[37]
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[38]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
@@ -78,6 +78,9 @@ extern BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal _B
class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck;
struct BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_;
class BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel;
struct BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannelDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_;
class BandwidthUpgradeNegotiationFrame_UpgradePathInfo;
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_;
@@ -177,6 +180,7 @@ template<> ::location::nearby::connections::AvailableChannels* Arena::CreateMayb
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>(Arena*);
@@ -272,11 +276,12 @@ enum ConnectionRequestFrame_Medium : int {
ConnectionRequestFrame_Medium_WIFI_DIRECT = 8,
ConnectionRequestFrame_Medium_WEB_RTC = 9,
ConnectionRequestFrame_Medium_BLE_L2CAP = 10,
ConnectionRequestFrame_Medium_USB = 11
ConnectionRequestFrame_Medium_USB = 11,
ConnectionRequestFrame_Medium_WEB_RTC_NON_CELLULAR = 12
};
bool ConnectionRequestFrame_Medium_IsValid(int value);
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MIN = ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MAX = ConnectionRequestFrame_Medium_USB;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MAX = ConnectionRequestFrame_Medium_WEB_RTC_NON_CELLULAR;
constexpr int ConnectionRequestFrame_Medium_Medium_ARRAYSIZE = ConnectionRequestFrame_Medium_Medium_MAX + 1;
const std::string& ConnectionRequestFrame_Medium_Name(ConnectionRequestFrame_Medium value);
@@ -289,6 +294,25 @@ inline const std::string& ConnectionRequestFrame_Medium_Name(T enum_t_value) {
}
bool ConnectionRequestFrame_Medium_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_Medium* value);
enum ConnectionRequestFrame_ConnectionMode : int {
ConnectionRequestFrame_ConnectionMode_LEGACY = 0,
ConnectionRequestFrame_ConnectionMode_INSTANT = 1
};
bool ConnectionRequestFrame_ConnectionMode_IsValid(int value);
constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame_ConnectionMode_ConnectionMode_MIN = ConnectionRequestFrame_ConnectionMode_LEGACY;
constexpr ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame_ConnectionMode_ConnectionMode_MAX = ConnectionRequestFrame_ConnectionMode_INSTANT;
constexpr int ConnectionRequestFrame_ConnectionMode_ConnectionMode_ARRAYSIZE = ConnectionRequestFrame_ConnectionMode_ConnectionMode_MAX + 1;
const std::string& ConnectionRequestFrame_ConnectionMode_Name(ConnectionRequestFrame_ConnectionMode value);
template<typename T>
inline const std::string& ConnectionRequestFrame_ConnectionMode_Name(T enum_t_value) {
static_assert(::std::is_same<T, ConnectionRequestFrame_ConnectionMode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ConnectionRequestFrame_ConnectionMode_Name.");
return ConnectionRequestFrame_ConnectionMode_Name(static_cast<ConnectionRequestFrame_ConnectionMode>(enum_t_value));
}
bool ConnectionRequestFrame_ConnectionMode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_ConnectionMode* value);
enum ConnectionResponseFrame_ResponseStatus : int {
ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS = 0,
ConnectionResponseFrame_ResponseStatus_ACCEPT = 1,
@@ -401,11 +425,12 @@ enum BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium : int {
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_NFC = 7,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_DIRECT = 8,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC = 9,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB = 11
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB = 11,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC_NON_CELLULAR = 12
};
bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(int value);
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MIN = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_UNKNOWN_MEDIUM;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC_NON_CELLULAR;
constexpr int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_ARRAYSIZE = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX + 1;
const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value);
@@ -453,11 +478,12 @@ enum BandwidthUpgradeRetryFrame_Medium : int {
BandwidthUpgradeRetryFrame_Medium_WIFI_DIRECT = 8,
BandwidthUpgradeRetryFrame_Medium_WEB_RTC = 9,
BandwidthUpgradeRetryFrame_Medium_BLE_L2CAP = 10,
BandwidthUpgradeRetryFrame_Medium_USB = 11
BandwidthUpgradeRetryFrame_Medium_USB = 11,
BandwidthUpgradeRetryFrame_Medium_WEB_RTC_NON_CELLULAR = 12
};
bool BandwidthUpgradeRetryFrame_Medium_IsValid(int value);
constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame_Medium_Medium_MIN = BandwidthUpgradeRetryFrame_Medium_UNKNOWN_MEDIUM;
constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame_Medium_Medium_MAX = BandwidthUpgradeRetryFrame_Medium_USB;
constexpr BandwidthUpgradeRetryFrame_Medium BandwidthUpgradeRetryFrame_Medium_Medium_MAX = BandwidthUpgradeRetryFrame_Medium_WEB_RTC_NON_CELLULAR;
constexpr int BandwidthUpgradeRetryFrame_Medium_Medium_ARRAYSIZE = BandwidthUpgradeRetryFrame_Medium_Medium_MAX + 1;
const std::string& BandwidthUpgradeRetryFrame_Medium_Name(BandwidthUpgradeRetryFrame_Medium value);
@@ -1358,6 +1384,8 @@ class ConnectionRequestFrame final :
ConnectionRequestFrame_Medium_BLE_L2CAP;
static constexpr Medium USB =
ConnectionRequestFrame_Medium_USB;
static constexpr Medium WEB_RTC_NON_CELLULAR =
ConnectionRequestFrame_Medium_WEB_RTC_NON_CELLULAR;
static inline bool Medium_IsValid(int value) {
return ConnectionRequestFrame_Medium_IsValid(value);
}
@@ -1379,6 +1407,32 @@ class ConnectionRequestFrame final :
return ConnectionRequestFrame_Medium_Parse(name, value);
}
typedef ConnectionRequestFrame_ConnectionMode ConnectionMode;
static constexpr ConnectionMode LEGACY =
ConnectionRequestFrame_ConnectionMode_LEGACY;
static constexpr ConnectionMode INSTANT =
ConnectionRequestFrame_ConnectionMode_INSTANT;
static inline bool ConnectionMode_IsValid(int value) {
return ConnectionRequestFrame_ConnectionMode_IsValid(value);
}
static constexpr ConnectionMode ConnectionMode_MIN =
ConnectionRequestFrame_ConnectionMode_ConnectionMode_MIN;
static constexpr ConnectionMode ConnectionMode_MAX =
ConnectionRequestFrame_ConnectionMode_ConnectionMode_MAX;
static constexpr int ConnectionMode_ARRAYSIZE =
ConnectionRequestFrame_ConnectionMode_ConnectionMode_ARRAYSIZE;
template<typename T>
static inline const std::string& ConnectionMode_Name(T enum_t_value) {
static_assert(::std::is_same<T, ConnectionMode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ConnectionMode_Name.");
return ConnectionRequestFrame_ConnectionMode_Name(enum_t_value);
}
static inline bool ConnectionMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
ConnectionMode* value) {
return ConnectionRequestFrame_ConnectionMode_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
@@ -1393,6 +1447,7 @@ class ConnectionRequestFrame final :
kKeepAliveIntervalMillisFieldNumber = 8,
kKeepAliveTimeoutMillisFieldNumber = 9,
kDeviceTypeFieldNumber = 10,
kConnectionModeFieldNumber = 14,
kConnectionsDeviceFieldNumber = 12,
kPresenceDeviceFieldNumber = 13,
};
@@ -1573,6 +1628,19 @@ class ConnectionRequestFrame final :
void _internal_set_device_type(int32_t value);
public:
// optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14;
bool has_connection_mode() const;
private:
bool _internal_has_connection_mode() const;
public:
void clear_connection_mode();
::location::nearby::connections::ConnectionRequestFrame_ConnectionMode connection_mode() const;
void set_connection_mode(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode value);
private:
::location::nearby::connections::ConnectionRequestFrame_ConnectionMode _internal_connection_mode() const;
void _internal_set_connection_mode(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode value);
public:
// .location.nearby.connections.ConnectionsDevice connections_device = 12;
bool has_connections_device() const;
private:
@@ -1636,6 +1704,7 @@ class ConnectionRequestFrame final :
int32_t keep_alive_interval_millis_;
int32_t keep_alive_timeout_millis_;
int32_t device_type_;
int connection_mode_;
union DeviceUnion {
constexpr DeviceUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
@@ -4093,6 +4162,8 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final :
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC;
static constexpr Medium USB =
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB;
static constexpr Medium WEB_RTC_NON_CELLULAR =
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC_NON_CELLULAR;
static inline bool Medium_IsValid(int value) {
return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(value);
}
@@ -4296,6 +4367,148 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final :
};
// -------------------------------------------------------------------
class BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel) */ {
public:
inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel() : BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(nullptr) {}
~BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel() override;
explicit constexpr BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from);
BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel&& from) noexcept
: BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel() {
*this = ::std::move(from);
}
inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& operator=(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from) {
CopyFrom(from);
return *this;
}
inline BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& operator=(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& default_instance() {
return *internal_default_instance();
}
static inline const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* internal_default_instance() {
return reinterpret_cast<const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel*>(
&_BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_);
}
static constexpr int kIndexInFileMessages =
15;
friend void swap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& a, BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& b) {
a.Swap(&b);
}
inline void Swap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from);
void MergeFrom(const BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel";
}
protected:
explicit BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kStaFrequencyFieldNumber = 1,
};
// optional int32 sta_frequency = 1;
bool has_sta_frequency() const;
private:
bool _internal_has_sta_frequency() const;
public:
void clear_sta_frequency();
int32_t sta_frequency() const;
void set_sta_frequency(int32_t value);
private:
int32_t _internal_sta_frequency() const;
void _internal_set_sta_frequency(int32_t value);
public:
// @@protoc_insertion_point(class_scope:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
int32_t sta_frequency_;
friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto;
};
// -------------------------------------------------------------------
class BandwidthUpgradeNegotiationFrame_ClientIntroduction final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.BandwidthUpgradeNegotiationFrame.ClientIntroduction) */ {
public:
@@ -4342,7 +4555,7 @@ class BandwidthUpgradeNegotiationFrame_ClientIntroduction final :
&_BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_);
}
static constexpr int kIndexInFileMessages =
15;
16;
friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroduction& a, BandwidthUpgradeNegotiationFrame_ClientIntroduction& b) {
a.Swap(&b);
@@ -4504,7 +4717,7 @@ class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck final :
&_BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_);
}
static constexpr int kIndexInFileMessages =
16;
17;
friend void swap(BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& a, BandwidthUpgradeNegotiationFrame_ClientIntroductionAck& b) {
a.Swap(&b);
@@ -4628,7 +4841,7 @@ class BandwidthUpgradeNegotiationFrame final :
&_BandwidthUpgradeNegotiationFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
17;
18;
friend void swap(BandwidthUpgradeNegotiationFrame& a, BandwidthUpgradeNegotiationFrame& b) {
a.Swap(&b);
@@ -4693,6 +4906,7 @@ class BandwidthUpgradeNegotiationFrame final :
// nested types ----------------------------------------------------
typedef BandwidthUpgradeNegotiationFrame_UpgradePathInfo UpgradePathInfo;
typedef BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel SafeToClosePriorChannel;
typedef BandwidthUpgradeNegotiationFrame_ClientIntroduction ClientIntroduction;
typedef BandwidthUpgradeNegotiationFrame_ClientIntroductionAck ClientIntroductionAck;
@@ -4738,6 +4952,7 @@ class BandwidthUpgradeNegotiationFrame final :
kUpgradePathInfoFieldNumber = 2,
kClientIntroductionFieldNumber = 3,
kClientIntroductionAckFieldNumber = 4,
kSafeToClosePriorChannelFieldNumber = 5,
kEventTypeFieldNumber = 1,
};
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo upgrade_path_info = 2;
@@ -4794,6 +5009,24 @@ class BandwidthUpgradeNegotiationFrame final :
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack);
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* unsafe_arena_release_client_introduction_ack();
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5;
bool has_safe_to_close_prior_channel() const;
private:
bool _internal_has_safe_to_close_prior_channel() const;
public:
void clear_safe_to_close_prior_channel();
const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& safe_to_close_prior_channel() const;
PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* release_safe_to_close_prior_channel();
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* mutable_safe_to_close_prior_channel();
void set_allocated_safe_to_close_prior_channel(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* safe_to_close_prior_channel);
private:
const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& _internal_safe_to_close_prior_channel() const;
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* _internal_mutable_safe_to_close_prior_channel();
public:
void unsafe_arena_set_allocated_safe_to_close_prior_channel(
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* safe_to_close_prior_channel);
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* unsafe_arena_release_safe_to_close_prior_channel();
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1;
bool has_event_type() const;
private:
@@ -4819,6 +5052,7 @@ class BandwidthUpgradeNegotiationFrame final :
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* upgrade_path_info_;
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* client_introduction_;
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* client_introduction_ack_;
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* safe_to_close_prior_channel_;
int event_type_;
friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto;
};
@@ -4870,7 +5104,7 @@ class BandwidthUpgradeRetryFrame final :
&_BandwidthUpgradeRetryFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
18;
19;
friend void swap(BandwidthUpgradeRetryFrame& a, BandwidthUpgradeRetryFrame& b) {
a.Swap(&b);
@@ -4957,6 +5191,8 @@ class BandwidthUpgradeRetryFrame final :
BandwidthUpgradeRetryFrame_Medium_BLE_L2CAP;
static constexpr Medium USB =
BandwidthUpgradeRetryFrame_Medium_USB;
static constexpr Medium WEB_RTC_NON_CELLULAR =
BandwidthUpgradeRetryFrame_Medium_WEB_RTC_NON_CELLULAR;
static inline bool Medium_IsValid(int value) {
return BandwidthUpgradeRetryFrame_Medium_IsValid(value);
}
@@ -5075,7 +5311,7 @@ class KeepAliveFrame final :
&_KeepAliveFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
19;
20;
friend void swap(KeepAliveFrame& a, KeepAliveFrame& b) {
a.Swap(&b);
@@ -5232,7 +5468,7 @@ class DisconnectionFrame final :
&_DisconnectionFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
20;
21;
friend void swap(DisconnectionFrame& a, DisconnectionFrame& b) {
a.Swap(&b);
@@ -5389,7 +5625,7 @@ class PairedKeyEncryptionFrame final :
&_PairedKeyEncryptionFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
21;
22;
friend void swap(PairedKeyEncryptionFrame& a, PairedKeyEncryptionFrame& b) {
a.Swap(&b);
@@ -5536,7 +5772,7 @@ class AuthenticationMessageFrame final :
&_AuthenticationMessageFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
22;
23;
friend void swap(AuthenticationMessageFrame& a, AuthenticationMessageFrame& b) {
a.Swap(&b);
@@ -5683,7 +5919,7 @@ class AuthenticationResultFrame final :
&_AuthenticationResultFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
23;
24;
friend void swap(AuthenticationResultFrame& a, AuthenticationResultFrame& b) {
a.Swap(&b);
@@ -5825,7 +6061,7 @@ class AutoResumeFrame final :
&_AutoResumeFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
24;
25;
friend void swap(AutoResumeFrame& a, AutoResumeFrame& b) {
a.Swap(&b);
@@ -6025,7 +6261,7 @@ class AutoReconnectFrame final :
&_AutoReconnectFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
25;
26;
friend void swap(AutoReconnectFrame& a, AutoReconnectFrame& b) {
a.Swap(&b);
@@ -6215,7 +6451,7 @@ class MediumMetadata final :
&_MediumMetadata_default_instance_);
}
static constexpr int kIndexInFileMessages =
26;
27;
friend void swap(MediumMetadata& a, MediumMetadata& b) {
a.Swap(&b);
@@ -6542,7 +6778,7 @@ class AvailableChannels final :
&_AvailableChannels_default_instance_);
}
static constexpr int kIndexInFileMessages =
27;
28;
friend void swap(AvailableChannels& a, AvailableChannels& b) {
a.Swap(&b);
@@ -6693,7 +6929,7 @@ class WifiDirectCliUsableChannels final :
&_WifiDirectCliUsableChannels_default_instance_);
}
static constexpr int kIndexInFileMessages =
28;
29;
friend void swap(WifiDirectCliUsableChannels& a, WifiDirectCliUsableChannels& b) {
a.Swap(&b);
@@ -6844,7 +7080,7 @@ class WifiLanUsableChannels final :
&_WifiLanUsableChannels_default_instance_);
}
static constexpr int kIndexInFileMessages =
29;
30;
friend void swap(WifiLanUsableChannels& a, WifiLanUsableChannels& b) {
a.Swap(&b);
@@ -6995,7 +7231,7 @@ class WifiAwareUsableChannels final :
&_WifiAwareUsableChannels_default_instance_);
}
static constexpr int kIndexInFileMessages =
30;
31;
friend void swap(WifiAwareUsableChannels& a, WifiAwareUsableChannels& b) {
a.Swap(&b);
@@ -7146,7 +7382,7 @@ class WifiHotspotStaUsableChannels final :
&_WifiHotspotStaUsableChannels_default_instance_);
}
static constexpr int kIndexInFileMessages =
31;
32;
friend void swap(WifiHotspotStaUsableChannels& a, WifiHotspotStaUsableChannels& b) {
a.Swap(&b);
@@ -7297,7 +7533,7 @@ class LocationHint final :
&_LocationHint_default_instance_);
}
static constexpr int kIndexInFileMessages =
32;
33;
friend void swap(LocationHint& a, LocationHint& b) {
a.Swap(&b);
@@ -7459,7 +7695,7 @@ class LocationStandard final :
&_LocationStandard_default_instance_);
}
static constexpr int kIndexInFileMessages =
33;
34;
friend void swap(LocationStandard& a, LocationStandard& b) {
a.Swap(&b);
@@ -7611,7 +7847,7 @@ class OsInfo final :
&_OsInfo_default_instance_);
}
static constexpr int kIndexInFileMessages =
34;
35;
friend void swap(OsInfo& a, OsInfo& b) {
a.Swap(&b);
@@ -7787,7 +8023,7 @@ class ConnectionsDevice final :
&_ConnectionsDevice_default_instance_);
}
static constexpr int kIndexInFileMessages =
35;
36;
friend void swap(ConnectionsDevice& a, ConnectionsDevice& b) {
a.Swap(&b);
@@ -7989,7 +8225,7 @@ class PresenceDevice final :
&_PresenceDevice_default_instance_);
}
static constexpr int kIndexInFileMessages =
36;
37;
friend void swap(PresenceDevice& a, PresenceDevice& b) {
a.Swap(&b);
@@ -10286,6 +10522,35 @@ inline ::location::nearby::connections::PresenceDevice* ConnectionRequestFrame::
return _msg;
}
// optional .location.nearby.connections.ConnectionRequestFrame.ConnectionMode connection_mode = 14;
inline bool ConnectionRequestFrame::_internal_has_connection_mode() const {
bool value = (_has_bits_[0] & 0x00000400u) != 0;
return value;
}
inline bool ConnectionRequestFrame::has_connection_mode() const {
return _internal_has_connection_mode();
}
inline void ConnectionRequestFrame::clear_connection_mode() {
connection_mode_ = 0;
_has_bits_[0] &= ~0x00000400u;
}
inline ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::_internal_connection_mode() const {
return static_cast< ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode >(connection_mode_);
}
inline ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode ConnectionRequestFrame::connection_mode() const {
// @@protoc_insertion_point(field_get:location.nearby.connections.ConnectionRequestFrame.connection_mode)
return _internal_connection_mode();
}
inline void ConnectionRequestFrame::_internal_set_connection_mode(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode value) {
assert(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode_IsValid(value));
_has_bits_[0] |= 0x00000400u;
connection_mode_ = value;
}
inline void ConnectionRequestFrame::set_connection_mode(::location::nearby::connections::ConnectionRequestFrame_ConnectionMode value) {
_internal_set_connection_mode(value);
// @@protoc_insertion_point(field_set:location.nearby.connections.ConnectionRequestFrame.connection_mode)
}
inline bool ConnectionRequestFrame::has_Device() const {
return Device_case() != DEVICE_NOT_SET;
}
@@ -13208,6 +13473,38 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo::set_supports_clien
// -------------------------------------------------------------------
// BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel
// optional int32 sta_frequency = 1;
inline bool BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_internal_has_sta_frequency() const {
bool value = (_has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline bool BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::has_sta_frequency() const {
return _internal_has_sta_frequency();
}
inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::clear_sta_frequency() {
sta_frequency_ = 0;
_has_bits_[0] &= ~0x00000001u;
}
inline int32_t BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_internal_sta_frequency() const {
return sta_frequency_;
}
inline int32_t BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::sta_frequency() const {
// @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel.sta_frequency)
return _internal_sta_frequency();
}
inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::_internal_set_sta_frequency(int32_t value) {
_has_bits_[0] |= 0x00000001u;
sta_frequency_ = value;
}
inline void BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel::set_sta_frequency(int32_t value) {
_internal_set_sta_frequency(value);
// @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel.sta_frequency)
}
// -------------------------------------------------------------------
// BandwidthUpgradeNegotiationFrame_ClientIntroduction
// optional string endpoint_id = 1;
@@ -13317,7 +13614,7 @@ inline void BandwidthUpgradeNegotiationFrame_ClientIntroduction::set_supports_di
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.EventType event_type = 1;
inline bool BandwidthUpgradeNegotiationFrame::_internal_has_event_type() const {
bool value = (_has_bits_[0] & 0x00000008u) != 0;
bool value = (_has_bits_[0] & 0x00000010u) != 0;
return value;
}
inline bool BandwidthUpgradeNegotiationFrame::has_event_type() const {
@@ -13325,7 +13622,7 @@ inline bool BandwidthUpgradeNegotiationFrame::has_event_type() const {
}
inline void BandwidthUpgradeNegotiationFrame::clear_event_type() {
event_type_ = 0;
_has_bits_[0] &= ~0x00000008u;
_has_bits_[0] &= ~0x00000010u;
}
inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame::_internal_event_type() const {
return static_cast< ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType >(event_type_);
@@ -13336,7 +13633,7 @@ inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventTy
}
inline void BandwidthUpgradeNegotiationFrame::_internal_set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value) {
assert(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType_IsValid(value));
_has_bits_[0] |= 0x00000008u;
_has_bits_[0] |= 0x00000010u;
event_type_ = value;
}
inline void BandwidthUpgradeNegotiationFrame::set_event_type(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_EventType value) {
@@ -13614,6 +13911,96 @@ inline void BandwidthUpgradeNegotiationFrame::set_allocated_client_introduction_
// @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.client_introduction_ack)
}
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame.SafeToClosePriorChannel safe_to_close_prior_channel = 5;
inline bool BandwidthUpgradeNegotiationFrame::_internal_has_safe_to_close_prior_channel() const {
bool value = (_has_bits_[0] & 0x00000008u) != 0;
PROTOBUF_ASSUME(!value || safe_to_close_prior_channel_ != nullptr);
return value;
}
inline bool BandwidthUpgradeNegotiationFrame::has_safe_to_close_prior_channel() const {
return _internal_has_safe_to_close_prior_channel();
}
inline void BandwidthUpgradeNegotiationFrame::clear_safe_to_close_prior_channel() {
if (safe_to_close_prior_channel_ != nullptr) safe_to_close_prior_channel_->Clear();
_has_bits_[0] &= ~0x00000008u;
}
inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& BandwidthUpgradeNegotiationFrame::_internal_safe_to_close_prior_channel() const {
const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* p = safe_to_close_prior_channel_;
return p != nullptr ? *p : reinterpret_cast<const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel&>(
::location::nearby::connections::_BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel_default_instance_);
}
inline const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel& BandwidthUpgradeNegotiationFrame::safe_to_close_prior_channel() const {
// @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.safe_to_close_prior_channel)
return _internal_safe_to_close_prior_channel();
}
inline void BandwidthUpgradeNegotiationFrame::unsafe_arena_set_allocated_safe_to_close_prior_channel(
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* safe_to_close_prior_channel) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(safe_to_close_prior_channel_);
}
safe_to_close_prior_channel_ = safe_to_close_prior_channel;
if (safe_to_close_prior_channel) {
_has_bits_[0] |= 0x00000008u;
} else {
_has_bits_[0] &= ~0x00000008u;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.safe_to_close_prior_channel)
}
inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* BandwidthUpgradeNegotiationFrame::release_safe_to_close_prior_channel() {
_has_bits_[0] &= ~0x00000008u;
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* temp = safe_to_close_prior_channel_;
safe_to_close_prior_channel_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* BandwidthUpgradeNegotiationFrame::unsafe_arena_release_safe_to_close_prior_channel() {
// @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.safe_to_close_prior_channel)
_has_bits_[0] &= ~0x00000008u;
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* temp = safe_to_close_prior_channel_;
safe_to_close_prior_channel_ = nullptr;
return temp;
}
inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* BandwidthUpgradeNegotiationFrame::_internal_mutable_safe_to_close_prior_channel() {
_has_bits_[0] |= 0x00000008u;
if (safe_to_close_prior_channel_ == nullptr) {
auto* p = CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>(GetArenaForAllocation());
safe_to_close_prior_channel_ = p;
}
return safe_to_close_prior_channel_;
}
inline ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* BandwidthUpgradeNegotiationFrame::mutable_safe_to_close_prior_channel() {
::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* _msg = _internal_mutable_safe_to_close_prior_channel();
// @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.safe_to_close_prior_channel)
return _msg;
}
inline void BandwidthUpgradeNegotiationFrame::set_allocated_safe_to_close_prior_channel(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel* safe_to_close_prior_channel) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete safe_to_close_prior_channel_;
}
if (safe_to_close_prior_channel) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_SafeToClosePriorChannel>::GetOwningArena(safe_to_close_prior_channel);
if (message_arena != submessage_arena) {
safe_to_close_prior_channel = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, safe_to_close_prior_channel, submessage_arena);
}
_has_bits_[0] |= 0x00000008u;
} else {
_has_bits_[0] &= ~0x00000008u;
}
safe_to_close_prior_channel_ = safe_to_close_prior_channel;
// @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.safe_to_close_prior_channel)
}
// -------------------------------------------------------------------
// BandwidthUpgradeRetryFrame
@@ -16098,6 +16485,8 @@ PresenceDevice::mutable_identity_type() {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
@@ -16110,6 +16499,7 @@ PROTOBUF_NAMESPACE_OPEN
template <> struct is_proto_enum< ::location::nearby::connections::OfflineFrame_Version> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::connections::V1Frame_FrameType> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::connections::ConnectionRequestFrame_Medium> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::connections::ConnectionRequestFrame_ConnectionMode> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::connections::ConnectionResponseFrame_ResponseStatus> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::connections::PayloadTransferFrame_PayloadChunk_Flags> : ::std::true_type {};
File diff suppressed because it is too large Load Diff
+201 -65
View File
@@ -104,52 +104,6 @@ inline const std::string& ConnectionsStrategy_Name(T enum_t_value) {
}
bool ConnectionsStrategy_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsStrategy* value);
enum ConnectionsClient : int {
CONNECTIONS_CLIENT_UNKNOWN = 0,
CONNECTIONS_CLIENT_NEARBY_SHARE = 1,
CONNECTIONS_CLIENT_QUICK_START = 2,
CONNECTIONS_CLIENT_OTHER_FIRST_PARTY = 3,
CONNECTIONS_CLIENT_THIRD_PARTY = 4
};
bool ConnectionsClient_IsValid(int value);
constexpr ConnectionsClient ConnectionsClient_MIN = CONNECTIONS_CLIENT_UNKNOWN;
constexpr ConnectionsClient ConnectionsClient_MAX = CONNECTIONS_CLIENT_THIRD_PARTY;
constexpr int ConnectionsClient_ARRAYSIZE = ConnectionsClient_MAX + 1;
const std::string& ConnectionsClient_Name(ConnectionsClient value);
template<typename T>
inline const std::string& ConnectionsClient_Name(T enum_t_value) {
static_assert(::std::is_same<T, ConnectionsClient>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ConnectionsClient_Name.");
return ConnectionsClient_Name(static_cast<ConnectionsClient>(enum_t_value));
}
bool ConnectionsClient_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionsClient* value);
enum ReportedEventType : int {
NC_EVENT_TYPE_UNSPECIFIED = 0,
NC_EVENT_TYPE_START_DISCOVERY = 1,
NC_EVENT_TYPE_STOP_DISCOVERY = 2,
NC_EVENT_TYPE_ENDPOINT_FOUND = 3,
NC_EVENT_TYPE_ENDPOINT_LOST = 4,
NC_EVENT_TYPE_START_ADVERTISING = 5,
NC_EVENT_TYPE_STOP_ADVERTISING = 6
};
bool ReportedEventType_IsValid(int value);
constexpr ReportedEventType ReportedEventType_MIN = NC_EVENT_TYPE_UNSPECIFIED;
constexpr ReportedEventType ReportedEventType_MAX = NC_EVENT_TYPE_STOP_ADVERTISING;
constexpr int ReportedEventType_ARRAYSIZE = ReportedEventType_MAX + 1;
const std::string& ReportedEventType_Name(ReportedEventType value);
template<typename T>
inline const std::string& ReportedEventType_Name(T enum_t_value) {
static_assert(::std::is_same<T, ReportedEventType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ReportedEventType_Name.");
return ReportedEventType_Name(static_cast<ReportedEventType>(enum_t_value));
}
bool ReportedEventType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ReportedEventType* value);
enum SessionRole : int {
UNKNOWN_SESSION_ROLE = 0,
ADVERTISER = 1,
@@ -182,11 +136,12 @@ enum Medium : int {
WIFI_DIRECT = 8,
WEB_RTC = 9,
BLE_L2CAP = 10,
USB = 11
USB = 11,
WEB_RTC_NON_CELLULAR = 12
};
bool Medium_IsValid(int value);
constexpr Medium Medium_MIN = UNKNOWN_MEDIUM;
constexpr Medium Medium_MAX = USB;
constexpr Medium Medium_MAX = WEB_RTC_NON_CELLULAR;
constexpr int Medium_ARRAYSIZE = Medium_MAX + 1;
const std::string& Medium_Name(Medium value);
@@ -253,6 +208,25 @@ inline const std::string& ConnectionBand_Name(T enum_t_value) {
}
bool ConnectionBand_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionBand* value);
enum ConnectionMode : int {
LEGACY = 0,
INSTANT = 1
};
bool ConnectionMode_IsValid(int value);
constexpr ConnectionMode ConnectionMode_MIN = LEGACY;
constexpr ConnectionMode ConnectionMode_MAX = INSTANT;
constexpr int ConnectionMode_ARRAYSIZE = ConnectionMode_MAX + 1;
const std::string& ConnectionMode_Name(ConnectionMode value);
template<typename T>
inline const std::string& ConnectionMode_Name(T enum_t_value) {
static_assert(::std::is_same<T, ConnectionMode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ConnectionMode_Name.");
return ConnectionMode_Name(static_cast<ConnectionMode>(enum_t_value));
}
bool ConnectionMode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionMode* value);
enum ConnectionRequestResponse : int {
UNKNOWN_CONNECTION_REQUEST_RESPONSE = 0,
ACCEPTED = 1,
@@ -527,11 +501,15 @@ enum LogSource : int {
INTERNAL_DEVICES = 2,
BETA_TESTER_DEVICES = 3,
OEM_DEVICES = 4,
DEBUG_DEVICES = 5
DEBUG_DEVICES = 5,
NEARBY_MODULE_FOOD_DEVICES = 6,
BETO_DOGFOOD_DEVICES = 7,
NEARBY_DOGFOOD_DEVICES = 8,
NEARBY_TEAMFOOD_DEVICES = 9
};
bool LogSource_IsValid(int value);
constexpr LogSource LogSource_MIN = UNSPECIFIED_SOURCE;
constexpr LogSource LogSource_MAX = DEBUG_DEVICES;
constexpr LogSource LogSource_MAX = NEARBY_TEAMFOOD_DEVICES;
constexpr int LogSource_ARRAYSIZE = LogSource_MAX + 1;
const std::string& LogSource_Name(LogSource value);
@@ -664,6 +642,14 @@ enum OperationResultCode : int {
MEDIUM_UNAVAILABLE_REJECT_L2CAP_ON_GATT_MULTIPLEX_CONNECTION = 1536,
MEDIUM_UNAVAILABLE_UPGRADE_ON_SAME_MEDIUM = 1537,
MEDIUM_UNAVAILABLE_WEB_RTC_NO_INTERNET = 1538,
MEDIUM_UNAVAILABLE_STA_DISRUPTIVE_FALSE = 1539,
MEDIUM_UNAVAILABLE_STA_USER_NOT_ALLOW = 1540,
MEDIUM_UNAVAILABLE_DUPLICATE_FAST_ADVERTISING = 1541,
MEDIUM_UNAVAILABLE_NSD_NOT_AVAILABLE = 1542,
MEDIUM_UNAVAILABLE_MDNS_NOT_AVAILABLE = 1543,
MEDIUM_UNAVAILABLE_LAN_BLOCKED = 1544,
MEDIUM_UNAVAILABLE_POOR_SIGNAL = 1545,
MEDIUM_UNAVAILABLE_BT_MULTIPLEX_DISABLED = 1546,
CLIENT_WIFI_DIRECT_ALREADY_HOSTING_DIRECT_GROUP_FOR_THIS_CLIENT = 2000,
CLIENT_WIFI_HOTSPOT_ALREADY_HOSTING_HOTSPOT_FOR_THIS_CLIENT = 2001,
CLIENT_DUPLICATE_ACCEPTING_BLE_CONNECTION_REQUEST = 2002,
@@ -681,6 +667,25 @@ enum OperationResultCode : int {
CLIENT_DUPLICATE_WIFI_HOTSPOT_CONNECTION_REQUEST = 2014,
CLIENT_DUPLICATE_WIFI_AWARE_SUBSCRIBING_REQUEST = 2015,
CLIENT_UNSUPPORTED_USB_TO_BE_UPGRADE_MEDIUM = 2016,
CLIENT_PROCESS_TIE_BREAK_LOSS = 2017,
CLIENT_BLE_DUPLICATE_ADVERTISING = 2018,
CLIENT_BLUETOOTH_DUPLICATE_ADVERTISING = 2019,
CLIENT_NFC_DUPLICATE_ADVERTISING = 2020,
CLIENT_WIFI_LAN_DUPLICATE_ADVERTISING = 2021,
CLIENT_USB_DUPLICATE_ADVERTISING = 2022,
CLIENT_BLE_DUPLICATE_DISCOVERING = 2023,
CLIENT_BLUETOOTH_DUPLICATE_DISCOVERING = 2024,
CLIENT_NFC_DUPLICATE_DISCOVERING = 2025,
CLIENT_WIFI_LAN_DUPLICATE_DISCOVERING = 2026,
CLIENT_USB_DUPLICATE_DISCOVERING = 2027,
CLIENT_PERMISSION_FAILURE = 2028,
CLIENT_BLE_NO_LISTENING = 2029,
CLIENT_ALREADY_CONNECTED_TO_TARGET = 2030,
CLIENT_FAILED_INCOMING_CONNECTION_DUE_TO_TOPOLOGICAL_LIMIT = 2031,
CLIENT_OUT_OF_ORDER_API_CALL = 2032,
CLIENT_WRONG_CONNECTING_PERMISSIONS = 2033,
CLIENT_ALREADY_CONNECTED_TO_ENDPOINT = 2034,
CLIENT_CONNECT_TO_UNKNOWN_ENDPOINT = 2035,
MISCELLEANEOUS_BLUETOOTH_MAC_ADDRESS_NULL = 2500,
MISCELLEANEOUS_MOVE_TO_NEW_MEDIUM = 2501,
MISCELLEANEOUS_WIFI_HOTSPOT_SOFT_AP_BLOCKED_BY_PROVISION = 2502,
@@ -695,21 +700,24 @@ enum OperationResultCode : int {
MISCELLEANEOUS_WEB_RTC_GET_DROIDGUARD_RESULT_FAILURE = 2511,
MISCELLEANEOUS_WEB_RTC_TACHYON_SIGNALING_MESSENGER_NULL = 2512,
MISCELLEANEOUS_WEB_RTC_FAILED_TO_RECEIVE_MESSAGE = 2513,
MISCELLEANEOUS_BLUETOOTH_CHANGE_DEVICE_NAME_FAILURE = 2514,
MISCELLEANEOUS_WEB_RTC_ICE_SERVER_NULL = 2515,
MISCELLEANEOUS_WORK_SOURCE_NULL = 2516,
IO_FILE_OPENING_ERROR = 3000,
IO_FILE_READING_ERROR = 3001,
IO_FILE_WRITING_ERROR = 3002,
IO_FOLDER_CREATION_ERROR = 3003,
IO_STREAM_CREATE_PIPE_FAILURE = 3004,
IO_ENDPOINT_IO_ERROR_ON_BLE = 3005,
IO_ENDPOINT_IO_ERROR_ON_BLE_L2CAP = 3006,
IO_ENDPOINT_IO_ERROR_ON_BT = 3007,
IO_ENDPOINT_IO_ERROR_ON_WEB_RTC = 3008,
IO_ENDPOINT_IO_ERROR_ON_LAN = 3009,
IO_ENDPOINT_IO_ERROR_ON_WIFI_DIRECT = 3010,
IO_ENDPOINT_IO_ERROR_ON_WIFI_HOTSPOT = 3011,
IO_ENDPOINT_IO_ERROR_ON_WIFI_AWARE = 3012,
IO_ENDPOINT_IO_ERROR_ON_NFC = 3013,
IO_ENDPOINT_IO_ERROR_ON_USB = 3014,
IO_ENDPOINT_IO_ERROR_ON_BLE PROTOBUF_DEPRECATED_ENUM = 3005,
IO_ENDPOINT_IO_ERROR_ON_BLE_L2CAP PROTOBUF_DEPRECATED_ENUM = 3006,
IO_ENDPOINT_IO_ERROR_ON_BT PROTOBUF_DEPRECATED_ENUM = 3007,
IO_ENDPOINT_IO_ERROR_ON_WEB_RTC PROTOBUF_DEPRECATED_ENUM = 3008,
IO_ENDPOINT_IO_ERROR_ON_LAN PROTOBUF_DEPRECATED_ENUM = 3009,
IO_ENDPOINT_IO_ERROR_ON_WIFI_DIRECT PROTOBUF_DEPRECATED_ENUM = 3010,
IO_ENDPOINT_IO_ERROR_ON_WIFI_HOTSPOT PROTOBUF_DEPRECATED_ENUM = 3011,
IO_ENDPOINT_IO_ERROR_ON_WIFI_AWARE PROTOBUF_DEPRECATED_ENUM = 3012,
IO_ENDPOINT_IO_ERROR_ON_NFC PROTOBUF_DEPRECATED_ENUM = 3013,
IO_ENDPOINT_IO_ERROR_ON_USB PROTOBUF_DEPRECATED_ENUM = 3014,
CONNECTIVITY_WIFI_AWARE_ATTACH_FAILURE = 3500,
CONNECTIVITY_BLUETOOTH_DEVICE_OBTAIN_FAILURE = 3501,
CONNECTIVITY_BLE_CLIENT_SOCKET_CREATION_FAILURE = 3502,
@@ -768,6 +776,50 @@ enum OperationResultCode : int {
CONNECTIVITY_BT_SERVER_SOCKET_CREATION_SECURITY_EXCEPTION_FAILURE = 3555,
CONNECTIVITY_L2CAP_CLIENT_SOCKET_CREATION_TIMEOUT_FAILURE = 3556,
CONNECTIVITY_WEB_RTC_UNSATISFIED_LINK_ERROR = 3557,
CONNECTIVITY_DIRECT_GROUP_MCC_FAILURE = 3558,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_BLE = 3559,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_BLE_L2CAP = 3560,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_BT = 3561,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_WEB_RTC = 3562,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_LAN = 3563,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_DIRECT = 3564,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_HOTSPOT = 3565,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_WIFI_AWARE = 3566,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_NFC = 3567,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_USB = 3568,
CONNECTIVITY_CHANNEL_IO_ERROR_ON_UNKNOWN_MEDIUM = 3569,
CONNECTIVITY_BT_SOCKET_CREATION_IO_EXCEPTION = 3570,
CONNECTIVITY_BT_SOCKET_CONNECT_IO_EXCEPTION = 3571,
CONNECTIVITY_BT_CONNECTION_INTERRUPTED_EXCEPTION = 3572,
CONNECTIVITY_BT_CONNECTION_EXECUTION_EXCEPTION = 3573,
CONNECTIVITY_BT_CONNECTION_TIMEOUT_EXCEPTION = 3574,
CONNECTIVITY_WIFI_DIRECT_P2P_CONNECTION_FAILURE = 3575,
CONNECTIVITY_WFD_CONNECTION_INTERRUPTED_EXCEPTION = 3576,
CONNECTIVITY_WFD_CONNECTION_EXECUTION_EXCEPTION = 3577,
CONNECTIVITY_WFD_CONNECTION_TIMEOUT_EXCEPTION = 3578,
CONNECTIVITY_WFD_CONNECTION_HOSTED_ADDRESS_NULL = 3579,
CONNECTIVITY_WIFI_HOTSPOT_SPECIFIER_FAILURE = 3580,
CONNECTIVITY_WIFI_HOTSPOT_LEGACY_STA_CONNECTION_FAILURE = 3581,
CONNECTIVITY_WIFI_LAN_SOCKET_CONNECT_TIMEOUT = 3582,
CONNECTIVITY_WIFI_LAN_SOCKET_CONNECT_IO_EXCEPTION = 3583,
CONNECTIVITY_BLE_START_GATT_SERVER_FAILURE = 3584,
CONNECTIVITY_BLE_ADD_GATT_ADVERTISEMENT_FAILURE = 3585,
CONNECTIVITY_BLE_START_ADVERTISING_FAILURE = 3586,
CONNECTIVITY_BLUETOOTH_START_ADVERTISING_FAILURE = 3587,
CONNECTIVITY_WIFI_LAN_START_ADVERTISING_FAILURE = 3588,
CONNECTIVITY_WIFI_AWARE_START_ADVERTISING_FAILURE = 3589,
CONNECTIVITY_BLUETOOTH_SCAN_FAILURE = 3590,
CONNECTIVITY_BLE_SCAN_FAILURE = 3591,
CONNECTIVITY_MDNS_SCAN_FAILURE = 3592,
CONNECTIVITY_NFC_START_DISCOVERY_FAILURE = 3593,
CONNECTIVITY_WIFI_LAN_START_DISCOVERY_FAILURE = 3594,
CONNECTIVITY_WIFI_AWARE_START_DISCOVERY_FAILURE = 3595,
CONNECTIVITY_UWB_START_DISCOVERY_FAILURE = 3596,
CONNECTIVITY_LAN_MDNS_REGISTER_FAILURE = 3597,
CONNECTIVITY_BLUETOOTH_CHANGE_SCAN_MODE_FAILURE = 3598,
CONNECTIVITY_AUTO_RESUME_FAILURE = 3599,
CONNECTIVITY_INSTANT_CONNECTION_LISTENING_TIMEOUT = 3600,
CONNECTIVITY_MEDIUM_INVALID_CREDENTIAL = 3601,
NEARBY_BLE_ADVERTISEMENT_MAPPING_TO_MAC_ERROR = 4500,
NEARBY_BLUETOOTH_MAC_ADDRESS_INVALID_FOR_CONNECT = 4501,
NEARBY_WEB_RTC_CONNECTION_FLOW_NULL = 4502,
@@ -798,7 +850,7 @@ enum OperationResultCode : int {
NEARBY_WIFI_DIRECT_NULL_CALLBACK = 4527,
NEARBY_WIFI_DIRECT_NULL_SSID = 4528,
NEARBY_WIFI_DIRECT_NULL_PASSWORD = 4529,
NEARBY_BT_MULTIPLEX_SOCKET_DISABLED = 4530,
NEARBY_BT_MULTIPLEX_SOCKET_DISABLED PROTOBUF_DEPRECATED_ENUM = 4530,
NEARBY_LAN_MULTIPLEX_SOCKET_DISABLED = 4531,
NEARBY_GENERIC_NEW_ENDPOINT_CHANNEL_NULL = 4532,
NEARBY_WIFI_DIRECT_NO_GROUP_FOR_LISTENING = 4533,
@@ -834,11 +886,54 @@ enum OperationResultCode : int {
NEARBY_BT_VIRTUAL_SOCKET_CREATION_FAILURE = 4563,
NEARBY_LAN_VIRTUAL_SOCKET_CREATION_FAILURE = 4564,
NEARBY_WIFI_LAN_IP_ADDRESS_ERROR = 4565,
NEARBY_L2CAP_PSM_NOT_POSITIVE = 4566
NEARBY_L2CAP_PSM_NOT_POSITIVE = 4566,
NEARBY_ENCRYPTION_FAILURE = 4567,
NEARBY_AUTHENTICATION_FAILURE = 4568,
NEARBY_LAN_VIRTUAL_SOCKET_NULL = 4569,
NEARBY_BLUETOOTH_ADVERTISE_TO_BYTES_FAILURE = 4570,
NEARBY_BLE_ADVERTISE_TO_BYTES_FAILURE = 4571,
NEARBY_BLE_FAST_ADVERTISE_TO_BYTES_FAILURE = 4572,
NEARBY_NFC_ADVERTISE_TO_BYTES_FAILURE = 4573,
NEARBY_WIFI_LAN_ADVERTISE_TO_BYTES_FAILURE = 4574,
NEARBY_WIFI_AWARE_ADVERTISE_TO_BYTES_FAILURE = 4575,
NEARBY_USB_ADVERTISE_TO_BYTES_FAILURE = 4576,
NEARBY_NFC_INVALID_PCP_OPTIONS = 4577,
NEARBY_BLUETOOTH_INVALID_PCP_OPTIONS = 4578,
NEARBY_BLE_INVALID_PCP_OPTIONS = 4579,
NEARBY_WIFI_LAN_INVALID_PCP_OPTIONS = 4580,
NEARBY_WIFI_AWARE_INVALID_PCP_OPTIONS = 4581,
NEARBY_USB_INVALID_PCP_OPTIONS = 4582,
NEARBY_UWB_INVALID_PCP_OPTIONS = 4583,
NEARBY_WEB_RTC_INVALID_PCP_OPTIONS = 4584,
NEARBY_BLUETOOTH_NO_CLIENT_REGISTER_FOR_SCAN = 4585,
NEARBY_INSTANT_CONNECTION_WRONG_CONNECTIVITY_INFO = 4586,
NEARBY_NEED_METHOD_OVERRIDE = 4587,
NEARBY_GENERIC_INCOMING_PAYLOAD_CREATION_FAILURE = 4588,
NEARBY_WEB_RTC_NO_LISTENING_PEER_FOUND = 4589,
NEARBY_UPGRADE_PATH_ON_WRONG_MEDIUM = 4590,
NEARBY_CONNECT_TO_ALL_MEDIUMS_FAILURE = 4591,
NEARBY_BLUETOOTH_RECONNECT_MAC_NULL = 4592,
NEARBY_LAN_RECONNECT_CONNECTION_INFO_NULL = 4593,
NEARBY_LAN_RECONNECT_IP_NULL = 4594,
NEARBY_WIFI_DIRECT_RECONNECT_META_DATA_NULL = 4595,
NEARBY_WIFI_DIRECT_RECONNECT_CONNECT_META_DATA_NULL = 4596,
NEARBY_WIFI_HOTSPOT_RECONNECT_META_DATA_NULL = 4597,
NEARBY_WIFI_HOTSPOT_RECONNECT_CONNECT_META_DATA_NULL = 4598,
NEARBY_WEB_RTC_RECONNECT_PEER_ID_NULL = 4599,
NEARBY_WIFI_AWARE_RECONNECT_META_DATA_NULL = 4600,
NEARBY_NOT_ADVERTISING_OR_LISTENING = 4601,
NEARBY_CAN_NOT_OBTAIN_DEVICE_PROVIDER = 4602,
NEARBY_SETUP_STRATEGY_FAILURE = 4603,
NEARBY_TX_ADVERTISEMENT_NULL = 4604,
NEARBY_ENDPOINT_ID_MISMATCH = 4605,
NEARBY_CONNECTIVITY_INFO_NULL_OR_WRONG = 4606,
NEARBY_LOCAL_CLIENT_STATE_WRONG = 4607,
NEARBY_REMOTE_EXCEPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD = 4608,
NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD = 4609
};
bool OperationResultCode_IsValid(int value);
constexpr OperationResultCode OperationResultCode_MIN = DETAIL_UNKNOWN;
constexpr OperationResultCode OperationResultCode_MAX = NEARBY_L2CAP_PSM_NOT_POSITIVE;
constexpr OperationResultCode OperationResultCode_MAX = NEARBY_BAD_FILE_DESCRIPTION_WHEN_PROCESSING_RECEIVED_PAYLOAD;
constexpr int OperationResultCode_ARRAYSIZE = OperationResultCode_MAX + 1;
const std::string& OperationResultCode_Name(OperationResultCode value);
@@ -851,6 +946,46 @@ inline const std::string& OperationResultCode_Name(T enum_t_value) {
}
bool OperationResultCode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OperationResultCode* value);
enum StopAdvertisingReason : int {
STOP_ADVERTISING_REASON_UNKNOWN = 0,
CLIENT_STOP_ADVERTISING = 1,
FINISH_SESSION_STOP_ADVERTISING = 2
};
bool StopAdvertisingReason_IsValid(int value);
constexpr StopAdvertisingReason StopAdvertisingReason_MIN = STOP_ADVERTISING_REASON_UNKNOWN;
constexpr StopAdvertisingReason StopAdvertisingReason_MAX = FINISH_SESSION_STOP_ADVERTISING;
constexpr int StopAdvertisingReason_ARRAYSIZE = StopAdvertisingReason_MAX + 1;
const std::string& StopAdvertisingReason_Name(StopAdvertisingReason value);
template<typename T>
inline const std::string& StopAdvertisingReason_Name(T enum_t_value) {
static_assert(::std::is_same<T, StopAdvertisingReason>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function StopAdvertisingReason_Name.");
return StopAdvertisingReason_Name(static_cast<StopAdvertisingReason>(enum_t_value));
}
bool StopAdvertisingReason_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopAdvertisingReason* value);
enum StopDiscoveringReason : int {
STOP_DISCOVERING_REASON_UNKNOWN = 0,
CLIENT_STOP_DISCOVERING = 1,
FINISH_SESSION_STOP_DISCOVERING = 2
};
bool StopDiscoveringReason_IsValid(int value);
constexpr StopDiscoveringReason StopDiscoveringReason_MIN = STOP_DISCOVERING_REASON_UNKNOWN;
constexpr StopDiscoveringReason StopDiscoveringReason_MAX = FINISH_SESSION_STOP_DISCOVERING;
constexpr int StopDiscoveringReason_ARRAYSIZE = StopDiscoveringReason_MAX + 1;
const std::string& StopDiscoveringReason_Name(StopDiscoveringReason value);
template<typename T>
inline const std::string& StopDiscoveringReason_Name(T enum_t_value) {
static_assert(::std::is_same<T, StopDiscoveringReason>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function StopDiscoveringReason_Name.");
return StopDiscoveringReason_Name(static_cast<StopDiscoveringReason>(enum_t_value));
}
bool StopDiscoveringReason_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, StopDiscoveringReason* value);
// ===================================================================
@@ -878,12 +1013,11 @@ PROTOBUF_NAMESPACE_OPEN
template <> struct is_proto_enum< ::location::nearby::proto::connections::EventType> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionsStrategy> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionsClient> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::ReportedEventType> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::SessionRole> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::Medium> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionTechnology> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionBand> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionMode> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionRequestResponse> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionAttemptResult> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::ConnectionAttemptDirection> : ::std::true_type {};
@@ -898,6 +1032,8 @@ template <> struct is_proto_enum< ::location::nearby::proto::connections::LogSou
template <> struct is_proto_enum< ::location::nearby::proto::connections::PowerLevel> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::OperationResultCategory> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::OperationResultCode> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::StopAdvertisingReason> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::connections::StopDiscoveringReason> : ::std::true_type {};
PROTOBUF_NAMESPACE_CLOSE