Update offline_wire_formats proto compile

This commit is contained in:
Anay Wadhera
2022-12-14 18:42:37 -05:00
parent ad9c26ec90
commit a0974bb556
2 changed files with 192 additions and 50 deletions
@@ -209,6 +209,7 @@ constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: ssid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, password_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, gateway_(nullptr)
, port_(0)
, frequency_(0){}
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal {
@@ -606,13 +607,14 @@ bool ConnectionRequestFrame_Medium_IsValid(int value) {
case 8:
case 9:
case 10:
case 11:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ConnectionRequestFrame_Medium_strings[11] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ConnectionRequestFrame_Medium_strings[12] = {};
static const char ConnectionRequestFrame_Medium_names[] =
"BLE"
@@ -621,6 +623,7 @@ static const char ConnectionRequestFrame_Medium_names[] =
"MDNS"
"NFC"
"UNKNOWN_MEDIUM"
"USB"
"WEB_RTC"
"WIFI_AWARE"
"WIFI_DIRECT"
@@ -634,25 +637,27 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ConnectionRequestFrame
{ {ConnectionRequestFrame_Medium_names + 21, 4}, 1 },
{ {ConnectionRequestFrame_Medium_names + 25, 3}, 7 },
{ {ConnectionRequestFrame_Medium_names + 28, 14}, 0 },
{ {ConnectionRequestFrame_Medium_names + 42, 7}, 9 },
{ {ConnectionRequestFrame_Medium_names + 49, 10}, 6 },
{ {ConnectionRequestFrame_Medium_names + 59, 11}, 8 },
{ {ConnectionRequestFrame_Medium_names + 70, 12}, 3 },
{ {ConnectionRequestFrame_Medium_names + 82, 8}, 5 },
{ {ConnectionRequestFrame_Medium_names + 42, 3}, 11 },
{ {ConnectionRequestFrame_Medium_names + 45, 7}, 9 },
{ {ConnectionRequestFrame_Medium_names + 52, 10}, 6 },
{ {ConnectionRequestFrame_Medium_names + 62, 11}, 8 },
{ {ConnectionRequestFrame_Medium_names + 73, 12}, 3 },
{ {ConnectionRequestFrame_Medium_names + 85, 8}, 5 },
};
static const int ConnectionRequestFrame_Medium_entries_by_number[] = {
5, // 0 -> UNKNOWN_MEDIUM
3, // 1 -> MDNS
2, // 2 -> BLUETOOTH
9, // 3 -> WIFI_HOTSPOT
10, // 3 -> WIFI_HOTSPOT
0, // 4 -> BLE
10, // 5 -> WIFI_LAN
7, // 6 -> WIFI_AWARE
11, // 5 -> WIFI_LAN
8, // 6 -> WIFI_AWARE
4, // 7 -> NFC
8, // 8 -> WIFI_DIRECT
6, // 9 -> WEB_RTC
9, // 8 -> WIFI_DIRECT
7, // 9 -> WEB_RTC
1, // 10 -> BLE_L2CAP
6, // 11 -> USB
};
const std::string& ConnectionRequestFrame_Medium_Name(
@@ -661,12 +666,12 @@ const std::string& ConnectionRequestFrame_Medium_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
ConnectionRequestFrame_Medium_entries,
ConnectionRequestFrame_Medium_entries_by_number,
11, ConnectionRequestFrame_Medium_strings);
12, ConnectionRequestFrame_Medium_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
ConnectionRequestFrame_Medium_entries,
ConnectionRequestFrame_Medium_entries_by_number,
11, value);
12, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
ConnectionRequestFrame_Medium_strings[idx].get();
}
@@ -674,7 +679,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, 11, name, &int_value);
ConnectionRequestFrame_Medium_entries, 12, name, &int_value);
if (success) {
*value = static_cast<ConnectionRequestFrame_Medium>(int_value);
}
@@ -692,6 +697,7 @@ constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::NFC;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WIFI_DIRECT;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::WEB_RTC;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::BLE_L2CAP;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::USB;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::Medium_MIN;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame::Medium_MAX;
constexpr int ConnectionRequestFrame::Medium_ARRAYSIZE;
@@ -1018,13 +1024,14 @@ bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(int value)
case 7:
case 8:
case 9:
case 11:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[10] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[11] = {};
static const char BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[] =
"BLE"
@@ -1032,6 +1039,7 @@ static const char BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names[
"MDNS"
"NFC"
"UNKNOWN_MEDIUM"
"USB"
"WEB_RTC"
"WIFI_AWARE"
"WIFI_DIRECT"
@@ -1044,24 +1052,26 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry BandwidthUpgradeNegoti
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 12, 4}, 1 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 16, 3}, 7 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 19, 14}, 0 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 33, 7}, 9 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 40, 10}, 6 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 50, 11}, 8 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 61, 12}, 3 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 73, 8}, 5 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 33, 3}, 11 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 36, 7}, 9 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 43, 10}, 6 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 53, 11}, 8 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 64, 12}, 3 },
{ {BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_names + 76, 8}, 5 },
};
static const int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number[] = {
4, // 0 -> UNKNOWN_MEDIUM
2, // 1 -> MDNS
1, // 2 -> BLUETOOTH
8, // 3 -> WIFI_HOTSPOT
9, // 3 -> WIFI_HOTSPOT
0, // 4 -> BLE
9, // 5 -> WIFI_LAN
6, // 6 -> WIFI_AWARE
10, // 5 -> WIFI_LAN
7, // 6 -> WIFI_AWARE
3, // 7 -> NFC
7, // 8 -> WIFI_DIRECT
5, // 9 -> WEB_RTC
8, // 8 -> WIFI_DIRECT
6, // 9 -> WEB_RTC
5, // 11 -> USB
};
const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(
@@ -1070,12 +1080,12 @@ const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number,
10, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings);
11, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries_by_number,
10, value);
11, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_strings[idx].get();
}
@@ -1083,7 +1093,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, 10, name, &int_value);
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_entries, 11, name, &int_value);
if (success) {
*value = static_cast<BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>(int_value);
}
@@ -1100,6 +1110,7 @@ constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgra
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::NFC;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WIFI_DIRECT;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::WEB_RTC;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::USB;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_MIN;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_MAX;
constexpr int BandwidthUpgradeNegotiationFrame_UpgradePathInfo::Medium_ARRAYSIZE;
@@ -5414,13 +5425,17 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_I
(*has_bits)[0] |= 2u;
}
static void set_has_port(HasBits* has_bits) {
(*has_bits)[0] |= 4u;
(*has_bits)[0] |= 8u;
}
static void set_has_frequency(HasBits* has_bits) {
(*has_bits)[0] |= 8u;
(*has_bits)[0] |= 16u;
}
static void set_has_gateway(HasBits* has_bits) {
(*has_bits)[0] |= 4u;
}
};
const ::PROTOBUF_NAMESPACE_ID::internal::LazyString BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_{{{"0.0.0.0", 7}}, {nullptr}};
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
@@ -5450,6 +5465,11 @@ BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Bandwidt
password_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_password(),
GetArenaForAllocation());
}
gateway_.UnsafeSetDefault(nullptr);
if (from._internal_has_gateway()) {
gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, from._internal_gateway(),
GetArenaForAllocation());
}
::memcpy(&port_, &from.port_,
static_cast<size_t>(reinterpret_cast<char*>(&frequency_) -
reinterpret_cast<char*>(&port_)) + sizeof(frequency_));
@@ -5465,6 +5485,7 @@ password_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlr
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
password_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
gateway_.UnsafeSetDefault(nullptr);
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&port_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&frequency_) -
@@ -5482,6 +5503,7 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
ssid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
password_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
gateway_.DestroyNoArena(nullptr);
}
void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::ArenaDtor(void* object) {
@@ -5501,15 +5523,18 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Cle
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000003u) {
if (cached_has_bits & 0x00000007u) {
if (cached_has_bits & 0x00000001u) {
ssid_.ClearNonDefaultToEmpty();
}
if (cached_has_bits & 0x00000002u) {
password_.ClearNonDefaultToEmpty();
}
if (cached_has_bits & 0x00000004u) {
gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation());
}
}
if (cached_has_bits & 0x0000000cu) {
if (cached_has_bits & 0x00000018u) {
::memset(&port_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&frequency_) -
reinterpret_cast<char*>(&port_)) + sizeof(frequency_));
@@ -5561,6 +5586,15 @@ const char* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia
} else
goto handle_unusual;
continue;
// optional string gateway = 5 [default = "0.0.0.0"];
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
auto str = _internal_mutable_gateway();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -5605,17 +5639,23 @@ uint8_t* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials:
}
// optional int32 port = 3;
if (cached_has_bits & 0x00000004u) {
if (cached_has_bits & 0x00000008u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_port(), target);
}
// optional int32 frequency = 4;
if (cached_has_bits & 0x00000008u) {
if (cached_has_bits & 0x00000010u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_frequency(), target);
}
// optional string gateway = 5 [default = "0.0.0.0"];
if (cached_has_bits & 0x00000004u) {
target = stream->WriteStringMaybeAliased(
5, this->_internal_gateway(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
@@ -5633,7 +5673,7 @@ size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::B
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x0000000fu) {
if (cached_has_bits & 0x0000001fu) {
// optional string ssid = 1;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
@@ -5648,13 +5688,20 @@ size_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::B
this->_internal_password());
}
// optional int32 port = 3;
// optional string gateway = 5 [default = "0.0.0.0"];
if (cached_has_bits & 0x00000004u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_gateway());
}
// optional int32 port = 3;
if (cached_has_bits & 0x00000008u) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_port());
}
// optional int32 frequency = 4;
if (cached_has_bits & 0x00000008u) {
if (cached_has_bits & 0x00000010u) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_frequency());
}
@@ -5680,7 +5727,7 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Mer
(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_set_ssid(from._internal_ssid());
}
@@ -5688,9 +5735,12 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Mer
_internal_set_password(from._internal_password());
}
if (cached_has_bits & 0x00000004u) {
port_ = from.port_;
_internal_set_gateway(from._internal_gateway());
}
if (cached_has_bits & 0x00000008u) {
port_ = from.port_;
}
if (cached_has_bits & 0x00000010u) {
frequency_ = from.frequency_;
}
_has_bits_[0] |= cached_has_bits;
@@ -5725,6 +5775,11 @@ void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::Int
&password_, lhs_arena,
&other->password_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
nullptr,
&gateway_, lhs_arena,
&other->gateway_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials, frequency_)
+ sizeof(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::frequency_)
@@ -13,7 +13,7 @@
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
#if 3019001 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
@@ -234,11 +234,12 @@ enum ConnectionRequestFrame_Medium : int {
ConnectionRequestFrame_Medium_NFC = 7,
ConnectionRequestFrame_Medium_WIFI_DIRECT = 8,
ConnectionRequestFrame_Medium_WEB_RTC = 9,
ConnectionRequestFrame_Medium_BLE_L2CAP = 10
ConnectionRequestFrame_Medium_BLE_L2CAP = 10,
ConnectionRequestFrame_Medium_USB = 11
};
bool ConnectionRequestFrame_Medium_IsValid(int value);
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MIN = ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MAX = ConnectionRequestFrame_Medium_BLE_L2CAP;
constexpr ConnectionRequestFrame_Medium ConnectionRequestFrame_Medium_Medium_MAX = ConnectionRequestFrame_Medium_USB;
constexpr int ConnectionRequestFrame_Medium_Medium_ARRAYSIZE = ConnectionRequestFrame_Medium_Medium_MAX + 1;
const std::string& ConnectionRequestFrame_Medium_Name(ConnectionRequestFrame_Medium value);
@@ -360,11 +361,12 @@ enum BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium : int {
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_AWARE = 6,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_NFC = 7,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_DIRECT = 8,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC = 9
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC = 9,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB = 11
};
bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(int value);
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MIN = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_UNKNOWN_MEDIUM;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC;
constexpr BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB;
constexpr int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_ARRAYSIZE = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX + 1;
const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value);
@@ -1064,6 +1066,8 @@ class ConnectionRequestFrame final :
ConnectionRequestFrame_Medium_WEB_RTC;
static constexpr Medium BLE_L2CAP =
ConnectionRequestFrame_Medium_BLE_L2CAP;
static constexpr Medium USB =
ConnectionRequestFrame_Medium_USB;
static inline bool Medium_IsValid(int value) {
return ConnectionRequestFrame_Medium_IsValid(value);
}
@@ -3232,6 +3236,7 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials fin
enum : int {
kSsidFieldNumber = 1,
kPasswordFieldNumber = 2,
kGatewayFieldNumber = 5,
kPortFieldNumber = 3,
kFrequencyFieldNumber = 4,
};
@@ -3271,6 +3276,24 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials fin
std::string* _internal_mutable_password();
public:
// optional string gateway = 5 [default = "0.0.0.0"];
bool has_gateway() const;
private:
bool _internal_has_gateway() const;
public:
void clear_gateway();
const std::string& gateway() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_gateway(ArgT0&& arg0, ArgT... args);
std::string* mutable_gateway();
PROTOBUF_NODISCARD std::string* release_gateway();
void set_allocated_gateway(std::string* gateway);
private:
const std::string& _internal_gateway() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_gateway(const std::string& value);
std::string* _internal_mutable_gateway();
public:
// optional int32 port = 3;
bool has_port() const;
private:
@@ -3308,6 +3331,8 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials fin
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ssid_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr password_;
static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_gateway_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gateway_;
int32_t port_;
int32_t frequency_;
friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto;
@@ -3619,6 +3644,8 @@ class BandwidthUpgradeNegotiationFrame_UpgradePathInfo final :
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_DIRECT;
static constexpr Medium WEB_RTC =
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC;
static constexpr Medium USB =
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_USB;
static inline bool Medium_IsValid(int value) {
return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_IsValid(value);
}
@@ -9280,7 +9307,7 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia
// optional int32 port = 3;
inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_port() const {
bool value = (_has_bits_[0] & 0x00000004u) != 0;
bool value = (_has_bits_[0] & 0x00000008u) != 0;
return value;
}
inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_port() const {
@@ -9288,7 +9315,7 @@ inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia
}
inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_port() {
port_ = 0;
_has_bits_[0] &= ~0x00000004u;
_has_bits_[0] &= ~0x00000008u;
}
inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_port() const {
return port_;
@@ -9298,7 +9325,7 @@ inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCreden
return _internal_port();
}
inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_port(int32_t value) {
_has_bits_[0] |= 0x00000004u;
_has_bits_[0] |= 0x00000008u;
port_ = value;
}
inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_port(int32_t value) {
@@ -9308,7 +9335,7 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia
// optional int32 frequency = 4;
inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_frequency() const {
bool value = (_has_bits_[0] & 0x00000008u) != 0;
bool value = (_has_bits_[0] & 0x00000010u) != 0;
return value;
}
inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_frequency() const {
@@ -9316,7 +9343,7 @@ inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia
}
inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_frequency() {
frequency_ = 0;
_has_bits_[0] &= ~0x00000008u;
_has_bits_[0] &= ~0x00000010u;
}
inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_frequency() const {
return frequency_;
@@ -9326,7 +9353,7 @@ inline int32_t BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCreden
return _internal_frequency();
}
inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_frequency(int32_t value) {
_has_bits_[0] |= 0x00000008u;
_has_bits_[0] |= 0x00000010u;
frequency_ = value;
}
inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_frequency(int32_t value) {
@@ -9334,6 +9361,66 @@ inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentia
// @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.frequency)
}
// optional string gateway = 5 [default = "0.0.0.0"];
inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_has_gateway() const {
bool value = (_has_bits_[0] & 0x00000004u) != 0;
return value;
}
inline bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::has_gateway() const {
return _internal_has_gateway();
}
inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::clear_gateway() {
gateway_.ClearToDefault(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation());
_has_bits_[0] &= ~0x00000004u;
}
inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::gateway() const {
// @@protoc_insertion_point(field_get:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway)
if (gateway_.IsDefault(nullptr)) return _i_give_permission_to_break_this_code_default_gateway_.get();
return _internal_gateway();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_gateway(ArgT0&& arg0, ArgT... args) {
_has_bits_[0] |= 0x00000004u;
gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway)
}
inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::mutable_gateway() {
std::string* _s = _internal_mutable_gateway();
// @@protoc_insertion_point(field_mutable:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway)
return _s;
}
inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_gateway() const {
return gateway_.Get();
}
inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_set_gateway(const std::string& value) {
_has_bits_[0] |= 0x00000004u;
gateway_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_internal_mutable_gateway() {
_has_bits_[0] |= 0x00000004u;
return gateway_.Mutable(::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::_i_give_permission_to_break_this_code_default_gateway_, GetArenaForAllocation());
}
inline std::string* BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::release_gateway() {
// @@protoc_insertion_point(field_release:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway)
if (!_internal_has_gateway()) {
return nullptr;
}
_has_bits_[0] &= ~0x00000004u;
auto* p = gateway_.ReleaseNonDefault(nullptr, GetArenaForAllocation());
return p;
}
inline void BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials::set_allocated_gateway(std::string* gateway) {
if (gateway != nullptr) {
_has_bits_[0] |= 0x00000004u;
} else {
_has_bits_[0] &= ~0x00000004u;
}
gateway_.SetAllocated(nullptr, gateway,
GetArenaForAllocation());
// @@protoc_insertion_point(field_set_allocated:location.nearby.connections.BandwidthUpgradeNegotiationFrame.UpgradePathInfo.WifiDirectCredentials.gateway)
}
// -------------------------------------------------------------------
// BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials