blob: f56e059443c8f343286853e314a3f6200783c944 [file] [log] [blame]
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: connections/implementation/proto/offline_wire_formats.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3019000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
#include <google/protobuf/port_undef.inc>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/message_lite.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/generated_enum_util.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[29]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
static const uint32_t offsets[];
};
namespace location {
namespace nearby {
namespace connections {
class AvailableChannels;
struct AvailableChannelsDefaultTypeInternal;
extern AvailableChannelsDefaultTypeInternal _AvailableChannels_default_instance_;
class BandwidthUpgradeNegotiationFrame;
struct BandwidthUpgradeNegotiationFrameDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrameDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_default_instance_;
class BandwidthUpgradeNegotiationFrame_ClientIntroduction;
struct BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_ClientIntroductionDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroduction_default_instance_;
class BandwidthUpgradeNegotiationFrame_ClientIntroductionAck;
struct BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_ClientIntroductionAckDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_ClientIntroductionAck_default_instance_;
class BandwidthUpgradeNegotiationFrame_UpgradePathInfo;
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_UpgradePathInfoDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_default_instance_;
class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials;
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials_default_instance_;
class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials;
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials_default_instance_;
class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials;
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials_default_instance_;
class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials;
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials_default_instance_;
class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials;
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentialsDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials_default_instance_;
class BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket;
struct BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal;
extern BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocketDefaultTypeInternal _BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket_default_instance_;
class ConnectionRequestFrame;
struct ConnectionRequestFrameDefaultTypeInternal;
extern ConnectionRequestFrameDefaultTypeInternal _ConnectionRequestFrame_default_instance_;
class ConnectionResponseFrame;
struct ConnectionResponseFrameDefaultTypeInternal;
extern ConnectionResponseFrameDefaultTypeInternal _ConnectionResponseFrame_default_instance_;
class DisconnectionFrame;
struct DisconnectionFrameDefaultTypeInternal;
extern DisconnectionFrameDefaultTypeInternal _DisconnectionFrame_default_instance_;
class KeepAliveFrame;
struct KeepAliveFrameDefaultTypeInternal;
extern KeepAliveFrameDefaultTypeInternal _KeepAliveFrame_default_instance_;
class LocationHint;
struct LocationHintDefaultTypeInternal;
extern LocationHintDefaultTypeInternal _LocationHint_default_instance_;
class LocationStandard;
struct LocationStandardDefaultTypeInternal;
extern LocationStandardDefaultTypeInternal _LocationStandard_default_instance_;
class MediumMetadata;
struct MediumMetadataDefaultTypeInternal;
extern MediumMetadataDefaultTypeInternal _MediumMetadata_default_instance_;
class OfflineFrame;
struct OfflineFrameDefaultTypeInternal;
extern OfflineFrameDefaultTypeInternal _OfflineFrame_default_instance_;
class PairedKeyEncryptionFrame;
struct PairedKeyEncryptionFrameDefaultTypeInternal;
extern PairedKeyEncryptionFrameDefaultTypeInternal _PairedKeyEncryptionFrame_default_instance_;
class PayloadTransferFrame;
struct PayloadTransferFrameDefaultTypeInternal;
extern PayloadTransferFrameDefaultTypeInternal _PayloadTransferFrame_default_instance_;
class PayloadTransferFrame_ControlMessage;
struct PayloadTransferFrame_ControlMessageDefaultTypeInternal;
extern PayloadTransferFrame_ControlMessageDefaultTypeInternal _PayloadTransferFrame_ControlMessage_default_instance_;
class PayloadTransferFrame_PayloadChunk;
struct PayloadTransferFrame_PayloadChunkDefaultTypeInternal;
extern PayloadTransferFrame_PayloadChunkDefaultTypeInternal _PayloadTransferFrame_PayloadChunk_default_instance_;
class PayloadTransferFrame_PayloadHeader;
struct PayloadTransferFrame_PayloadHeaderDefaultTypeInternal;
extern PayloadTransferFrame_PayloadHeaderDefaultTypeInternal _PayloadTransferFrame_PayloadHeader_default_instance_;
class V1Frame;
struct V1FrameDefaultTypeInternal;
extern V1FrameDefaultTypeInternal _V1Frame_default_instance_;
class WifiAwareUsableChannels;
struct WifiAwareUsableChannelsDefaultTypeInternal;
extern WifiAwareUsableChannelsDefaultTypeInternal _WifiAwareUsableChannels_default_instance_;
class WifiDirectCliUsableChannels;
struct WifiDirectCliUsableChannelsDefaultTypeInternal;
extern WifiDirectCliUsableChannelsDefaultTypeInternal _WifiDirectCliUsableChannels_default_instance_;
class WifiHotspotStaUsableChannels;
struct WifiHotspotStaUsableChannelsDefaultTypeInternal;
extern WifiHotspotStaUsableChannelsDefaultTypeInternal _WifiHotspotStaUsableChannels_default_instance_;
class WifiLanUsableChannels;
struct WifiLanUsableChannelsDefaultTypeInternal;
extern WifiLanUsableChannelsDefaultTypeInternal _WifiLanUsableChannels_default_instance_;
} // namespace connections
} // namespace nearby
} // namespace location
PROTOBUF_NAMESPACE_OPEN
template<> ::location::nearby::connections::AvailableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::AvailableChannels>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroduction>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_ClientIntroductionAck>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_BluetoothCredentials>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WebRtcCredentials>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiAwareCredentials>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiDirectCredentials>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiHotspotCredentials>(Arena*);
template<> ::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket* Arena::CreateMaybeMessage<::location::nearby::connections::BandwidthUpgradeNegotiationFrame_UpgradePathInfo_WifiLanSocket>(Arena*);
template<> ::location::nearby::connections::ConnectionRequestFrame* Arena::CreateMaybeMessage<::location::nearby::connections::ConnectionRequestFrame>(Arena*);
template<> ::location::nearby::connections::ConnectionResponseFrame* Arena::CreateMaybeMessage<::location::nearby::connections::ConnectionResponseFrame>(Arena*);
template<> ::location::nearby::connections::DisconnectionFrame* Arena::CreateMaybeMessage<::location::nearby::connections::DisconnectionFrame>(Arena*);
template<> ::location::nearby::connections::KeepAliveFrame* Arena::CreateMaybeMessage<::location::nearby::connections::KeepAliveFrame>(Arena*);
template<> ::location::nearby::connections::LocationHint* Arena::CreateMaybeMessage<::location::nearby::connections::LocationHint>(Arena*);
template<> ::location::nearby::connections::LocationStandard* Arena::CreateMaybeMessage<::location::nearby::connections::LocationStandard>(Arena*);
template<> ::location::nearby::connections::MediumMetadata* Arena::CreateMaybeMessage<::location::nearby::connections::MediumMetadata>(Arena*);
template<> ::location::nearby::connections::OfflineFrame* Arena::CreateMaybeMessage<::location::nearby::connections::OfflineFrame>(Arena*);
template<> ::location::nearby::connections::PairedKeyEncryptionFrame* Arena::CreateMaybeMessage<::location::nearby::connections::PairedKeyEncryptionFrame>(Arena*);
template<> ::location::nearby::connections::PayloadTransferFrame* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame>(Arena*);
template<> ::location::nearby::connections::PayloadTransferFrame_ControlMessage* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_ControlMessage>(Arena*);
template<> ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadChunk>(Arena*);
template<> ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* Arena::CreateMaybeMessage<::location::nearby::connections::PayloadTransferFrame_PayloadHeader>(Arena*);
template<> ::location::nearby::connections::V1Frame* Arena::CreateMaybeMessage<::location::nearby::connections::V1Frame>(Arena*);
template<> ::location::nearby::connections::WifiAwareUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiAwareUsableChannels>(Arena*);
template<> ::location::nearby::connections::WifiDirectCliUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiDirectCliUsableChannels>(Arena*);
template<> ::location::nearby::connections::WifiHotspotStaUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiHotspotStaUsableChannels>(Arena*);
template<> ::location::nearby::connections::WifiLanUsableChannels* Arena::CreateMaybeMessage<::location::nearby::connections::WifiLanUsableChannels>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace location {
namespace nearby {
namespace connections {
enum OfflineFrame_Version : int {
OfflineFrame_Version_UNKNOWN_VERSION = 0,
OfflineFrame_Version_V1 = 1
};
bool OfflineFrame_Version_IsValid(int value);
constexpr OfflineFrame_Version OfflineFrame_Version_Version_MIN = OfflineFrame_Version_UNKNOWN_VERSION;
constexpr OfflineFrame_Version OfflineFrame_Version_Version_MAX = OfflineFrame_Version_V1;
constexpr int OfflineFrame_Version_Version_ARRAYSIZE = OfflineFrame_Version_Version_MAX + 1;
const std::string& OfflineFrame_Version_Name(OfflineFrame_Version value);
template<typename T>
inline const std::string& OfflineFrame_Version_Name(T enum_t_value) {
static_assert(::std::is_same<T, OfflineFrame_Version>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function OfflineFrame_Version_Name.");
return OfflineFrame_Version_Name(static_cast<OfflineFrame_Version>(enum_t_value));
}
bool OfflineFrame_Version_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OfflineFrame_Version* value);
enum V1Frame_FrameType : int {
V1Frame_FrameType_UNKNOWN_FRAME_TYPE = 0,
V1Frame_FrameType_CONNECTION_REQUEST = 1,
V1Frame_FrameType_CONNECTION_RESPONSE = 2,
V1Frame_FrameType_PAYLOAD_TRANSFER = 3,
V1Frame_FrameType_BANDWIDTH_UPGRADE_NEGOTIATION = 4,
V1Frame_FrameType_KEEP_ALIVE = 5,
V1Frame_FrameType_DISCONNECTION = 6,
V1Frame_FrameType_PAIRED_KEY_ENCRYPTION = 7
};
bool V1Frame_FrameType_IsValid(int value);
constexpr V1Frame_FrameType V1Frame_FrameType_FrameType_MIN = V1Frame_FrameType_UNKNOWN_FRAME_TYPE;
constexpr V1Frame_FrameType V1Frame_FrameType_FrameType_MAX = V1Frame_FrameType_PAIRED_KEY_ENCRYPTION;
constexpr int V1Frame_FrameType_FrameType_ARRAYSIZE = V1Frame_FrameType_FrameType_MAX + 1;
const std::string& V1Frame_FrameType_Name(V1Frame_FrameType value);
template<typename T>
inline const std::string& V1Frame_FrameType_Name(T enum_t_value) {
static_assert(::std::is_same<T, V1Frame_FrameType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function V1Frame_FrameType_Name.");
return V1Frame_FrameType_Name(static_cast<V1Frame_FrameType>(enum_t_value));
}
bool V1Frame_FrameType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, V1Frame_FrameType* value);
enum ConnectionRequestFrame_Medium : int {
ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM = 0,
ConnectionRequestFrame_Medium_MDNS PROTOBUF_DEPRECATED_ENUM = 1,
ConnectionRequestFrame_Medium_BLUETOOTH = 2,
ConnectionRequestFrame_Medium_WIFI_HOTSPOT = 3,
ConnectionRequestFrame_Medium_BLE = 4,
ConnectionRequestFrame_Medium_WIFI_LAN = 5,
ConnectionRequestFrame_Medium_WIFI_AWARE = 6,
ConnectionRequestFrame_Medium_NFC = 7,
ConnectionRequestFrame_Medium_WIFI_DIRECT = 8,
ConnectionRequestFrame_Medium_WEB_RTC = 9,
ConnectionRequestFrame_Medium_BLE_L2CAP = 10
};
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 int ConnectionRequestFrame_Medium_Medium_ARRAYSIZE = ConnectionRequestFrame_Medium_Medium_MAX + 1;
const std::string& ConnectionRequestFrame_Medium_Name(ConnectionRequestFrame_Medium value);
template<typename T>
inline const std::string& ConnectionRequestFrame_Medium_Name(T enum_t_value) {
static_assert(::std::is_same<T, ConnectionRequestFrame_Medium>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ConnectionRequestFrame_Medium_Name.");
return ConnectionRequestFrame_Medium_Name(static_cast<ConnectionRequestFrame_Medium>(enum_t_value));
}
bool ConnectionRequestFrame_Medium_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionRequestFrame_Medium* value);
enum ConnectionResponseFrame_ResponseStatus : int {
ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS = 0,
ConnectionResponseFrame_ResponseStatus_ACCEPT = 1,
ConnectionResponseFrame_ResponseStatus_REJECT = 2
};
bool ConnectionResponseFrame_ResponseStatus_IsValid(int value);
constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame_ResponseStatus_ResponseStatus_MIN = ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS;
constexpr ConnectionResponseFrame_ResponseStatus ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX = ConnectionResponseFrame_ResponseStatus_REJECT;
constexpr int ConnectionResponseFrame_ResponseStatus_ResponseStatus_ARRAYSIZE = ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX + 1;
const std::string& ConnectionResponseFrame_ResponseStatus_Name(ConnectionResponseFrame_ResponseStatus value);
template<typename T>
inline const std::string& ConnectionResponseFrame_ResponseStatus_Name(T enum_t_value) {
static_assert(::std::is_same<T, ConnectionResponseFrame_ResponseStatus>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ConnectionResponseFrame_ResponseStatus_Name.");
return ConnectionResponseFrame_ResponseStatus_Name(static_cast<ConnectionResponseFrame_ResponseStatus>(enum_t_value));
}
bool ConnectionResponseFrame_ResponseStatus_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ConnectionResponseFrame_ResponseStatus* value);
enum PayloadTransferFrame_PayloadHeader_PayloadType : int {
PayloadTransferFrame_PayloadHeader_PayloadType_UNKNOWN_PAYLOAD_TYPE = 0,
PayloadTransferFrame_PayloadHeader_PayloadType_BYTES = 1,
PayloadTransferFrame_PayloadHeader_PayloadType_FILE = 2,
PayloadTransferFrame_PayloadHeader_PayloadType_STREAM = 3
};
bool PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(int value);
constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MIN = PayloadTransferFrame_PayloadHeader_PayloadType_UNKNOWN_PAYLOAD_TYPE;
constexpr PayloadTransferFrame_PayloadHeader_PayloadType PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX = PayloadTransferFrame_PayloadHeader_PayloadType_STREAM;
constexpr int PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_ARRAYSIZE = PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX + 1;
const std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name(PayloadTransferFrame_PayloadHeader_PayloadType value);
template<typename T>
inline const std::string& PayloadTransferFrame_PayloadHeader_PayloadType_Name(T enum_t_value) {
static_assert(::std::is_same<T, PayloadTransferFrame_PayloadHeader_PayloadType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function PayloadTransferFrame_PayloadHeader_PayloadType_Name.");
return PayloadTransferFrame_PayloadHeader_PayloadType_Name(static_cast<PayloadTransferFrame_PayloadHeader_PayloadType>(enum_t_value));
}
bool PayloadTransferFrame_PayloadHeader_PayloadType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadHeader_PayloadType* value);
enum PayloadTransferFrame_PayloadChunk_Flags : int {
PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK = 1
};
bool PayloadTransferFrame_PayloadChunk_Flags_IsValid(int value);
constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk_Flags_Flags_MIN = PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK;
constexpr PayloadTransferFrame_PayloadChunk_Flags PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX = PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK;
constexpr int PayloadTransferFrame_PayloadChunk_Flags_Flags_ARRAYSIZE = PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX + 1;
const std::string& PayloadTransferFrame_PayloadChunk_Flags_Name(PayloadTransferFrame_PayloadChunk_Flags value);
template<typename T>
inline const std::string& PayloadTransferFrame_PayloadChunk_Flags_Name(T enum_t_value) {
static_assert(::std::is_same<T, PayloadTransferFrame_PayloadChunk_Flags>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function PayloadTransferFrame_PayloadChunk_Flags_Name.");
return PayloadTransferFrame_PayloadChunk_Flags_Name(static_cast<PayloadTransferFrame_PayloadChunk_Flags>(enum_t_value));
}
bool PayloadTransferFrame_PayloadChunk_Flags_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PayloadChunk_Flags* value);
enum PayloadTransferFrame_ControlMessage_EventType : int {
PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE = 0,
PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_ERROR = 1,
PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED = 2
};
bool PayloadTransferFrame_ControlMessage_EventType_IsValid(int value);
constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage_EventType_EventType_MIN = PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE;
constexpr PayloadTransferFrame_ControlMessage_EventType PayloadTransferFrame_ControlMessage_EventType_EventType_MAX = PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED;
constexpr int PayloadTransferFrame_ControlMessage_EventType_EventType_ARRAYSIZE = PayloadTransferFrame_ControlMessage_EventType_EventType_MAX + 1;
const std::string& PayloadTransferFrame_ControlMessage_EventType_Name(PayloadTransferFrame_ControlMessage_EventType value);
template<typename T>
inline const std::string& PayloadTransferFrame_ControlMessage_EventType_Name(T enum_t_value) {
static_assert(::std::is_same<T, PayloadTransferFrame_ControlMessage_EventType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function PayloadTransferFrame_ControlMessage_EventType_Name.");
return PayloadTransferFrame_ControlMessage_EventType_Name(static_cast<PayloadTransferFrame_ControlMessage_EventType>(enum_t_value));
}
bool PayloadTransferFrame_ControlMessage_EventType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_ControlMessage_EventType* value);
enum PayloadTransferFrame_PacketType : int {
PayloadTransferFrame_PacketType_UNKNOWN_PACKET_TYPE = 0,
PayloadTransferFrame_PacketType_DATA = 1,
PayloadTransferFrame_PacketType_CONTROL = 2
};
bool PayloadTransferFrame_PacketType_IsValid(int value);
constexpr PayloadTransferFrame_PacketType PayloadTransferFrame_PacketType_PacketType_MIN = PayloadTransferFrame_PacketType_UNKNOWN_PACKET_TYPE;
constexpr PayloadTransferFrame_PacketType PayloadTransferFrame_PacketType_PacketType_MAX = PayloadTransferFrame_PacketType_CONTROL;
constexpr int PayloadTransferFrame_PacketType_PacketType_ARRAYSIZE = PayloadTransferFrame_PacketType_PacketType_MAX + 1;
const std::string& PayloadTransferFrame_PacketType_Name(PayloadTransferFrame_PacketType value);
template<typename T>
inline const std::string& PayloadTransferFrame_PacketType_Name(T enum_t_value) {
static_assert(::std::is_same<T, PayloadTransferFrame_PacketType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function PayloadTransferFrame_PacketType_Name.");
return PayloadTransferFrame_PacketType_Name(static_cast<PayloadTransferFrame_PacketType>(enum_t_value));
}
bool PayloadTransferFrame_PacketType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PayloadTransferFrame_PacketType* value);
enum BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium : int {
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_UNKNOWN_MEDIUM = 0,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_MDNS PROTOBUF_DEPRECATED_ENUM = 1,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLUETOOTH = 2,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_HOTSPOT = 3,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_BLE = 4,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_LAN = 5,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_AWARE = 6,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_NFC = 7,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WIFI_DIRECT = 8,
BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_WEB_RTC = 9
};
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 int BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_ARRAYSIZE = BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Medium_MAX + 1;
const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium value);
template<typename T>
inline const std::string& BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(T enum_t_value) {
static_assert(::std::is_same<T, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name.");
return BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Name(static_cast<BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium>(enum_t_value));
}
bool BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_UpgradePathInfo_Medium* value);
enum BandwidthUpgradeNegotiationFrame_EventType : int {
BandwidthUpgradeNegotiationFrame_EventType_UNKNOWN_EVENT_TYPE = 0,
BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_PATH_AVAILABLE = 1,
BandwidthUpgradeNegotiationFrame_EventType_LAST_WRITE_TO_PRIOR_CHANNEL = 2,
BandwidthUpgradeNegotiationFrame_EventType_SAFE_TO_CLOSE_PRIOR_CHANNEL = 3,
BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION = 4,
BandwidthUpgradeNegotiationFrame_EventType_UPGRADE_FAILURE = 5,
BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION_ACK = 6
};
bool BandwidthUpgradeNegotiationFrame_EventType_IsValid(int value);
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame_EventType_EventType_MIN = BandwidthUpgradeNegotiationFrame_EventType_UNKNOWN_EVENT_TYPE;
constexpr BandwidthUpgradeNegotiationFrame_EventType BandwidthUpgradeNegotiationFrame_EventType_EventType_MAX = BandwidthUpgradeNegotiationFrame_EventType_CLIENT_INTRODUCTION_ACK;
constexpr int BandwidthUpgradeNegotiationFrame_EventType_EventType_ARRAYSIZE = BandwidthUpgradeNegotiationFrame_EventType_EventType_MAX + 1;
const std::string& BandwidthUpgradeNegotiationFrame_EventType_Name(BandwidthUpgradeNegotiationFrame_EventType value);
template<typename T>
inline const std::string& BandwidthUpgradeNegotiationFrame_EventType_Name(T enum_t_value) {
static_assert(::std::is_same<T, BandwidthUpgradeNegotiationFrame_EventType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function BandwidthUpgradeNegotiationFrame_EventType_Name.");
return BandwidthUpgradeNegotiationFrame_EventType_Name(static_cast<BandwidthUpgradeNegotiationFrame_EventType>(enum_t_value));
}
bool BandwidthUpgradeNegotiationFrame_EventType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, BandwidthUpgradeNegotiationFrame_EventType* value);
enum LocationStandard_Format : int {
LocationStandard_Format_UNKNOWN = 0,
LocationStandard_Format_E164_CALLING = 1,
LocationStandard_Format_ISO_3166_1_ALPHA_2 = 2
};
bool LocationStandard_Format_IsValid(int value);
constexpr LocationStandard_Format LocationStandard_Format_Format_MIN = LocationStandard_Format_UNKNOWN;
constexpr LocationStandard_Format LocationStandard_Format_Format_MAX = LocationStandard_Format_ISO_3166_1_ALPHA_2;
constexpr int LocationStandard_Format_Format_ARRAYSIZE = LocationStandard_Format_Format_MAX + 1;
const std::string& LocationStandard_Format_Name(LocationStandard_Format value);
template<typename T>
inline const std::string& LocationStandard_Format_Name(T enum_t_value) {
static_assert(::std::is_same<T, LocationStandard_Format>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function LocationStandard_Format_Name.");
return LocationStandard_Format_Name(static_cast<LocationStandard_Format>(enum_t_value));
}
bool LocationStandard_Format_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, LocationStandard_Format* value);
// ===================================================================
class OfflineFrame final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.OfflineFrame) */ {
public:
inline OfflineFrame() : OfflineFrame(nullptr) {}
~OfflineFrame() override;
explicit constexpr OfflineFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
OfflineFrame(const OfflineFrame& from);
OfflineFrame(OfflineFrame&& from) noexcept
: OfflineFrame() {
*this = ::std::move(from);
}
inline OfflineFrame& operator=(const OfflineFrame& from) {
CopyFrom(from);
return *this;
}
inline OfflineFrame& operator=(OfflineFrame&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const OfflineFrame& default_instance() {
return *internal_default_instance();
}
static inline const OfflineFrame* internal_default_instance() {
return reinterpret_cast<const OfflineFrame*>(
&_OfflineFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(OfflineFrame& a, OfflineFrame& b) {
a.Swap(&b);
}
inline void Swap(OfflineFrame* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(OfflineFrame* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
OfflineFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<OfflineFrame>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const OfflineFrame& from);
void MergeFrom(const OfflineFrame& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(OfflineFrame* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.connections.OfflineFrame";
}
protected:
explicit OfflineFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef OfflineFrame_Version Version;
static constexpr Version UNKNOWN_VERSION =
OfflineFrame_Version_UNKNOWN_VERSION;
static constexpr Version V1 =
OfflineFrame_Version_V1;
static inline bool Version_IsValid(int value) {
return OfflineFrame_Version_IsValid(value);
}
static constexpr Version Version_MIN =
OfflineFrame_Version_Version_MIN;
static constexpr Version Version_MAX =
OfflineFrame_Version_Version_MAX;
static constexpr int Version_ARRAYSIZE =
OfflineFrame_Version_Version_ARRAYSIZE;
template<typename T>
static inline const std::string& Version_Name(T enum_t_value) {
static_assert(::std::is_same<T, Version>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function Version_Name.");
return OfflineFrame_Version_Name(enum_t_value);
}
static inline bool Version_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Version* value) {
return OfflineFrame_Version_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kV1FieldNumber = 2,
kVersionFieldNumber = 1,
};
// optional .location.nearby.connections.V1Frame v1 = 2;
bool has_v1() const;
private:
bool _internal_has_v1() const;
public:
void clear_v1();
const ::location::nearby::connections::V1Frame& v1() const;
PROTOBUF_NODISCARD ::location::nearby::connections::V1Frame* release_v1();
::location::nearby::connections::V1Frame* mutable_v1();
void set_allocated_v1(::location::nearby::connections::V1Frame* v1);
private:
const ::location::nearby::connections::V1Frame& _internal_v1() const;
::location::nearby::connections::V1Frame* _internal_mutable_v1();
public:
void unsafe_arena_set_allocated_v1(
::location::nearby::connections::V1Frame* v1);
::location::nearby::connections::V1Frame* unsafe_arena_release_v1();
// optional .location.nearby.connections.OfflineFrame.Version version = 1;
bool has_version() const;
private:
bool _internal_has_version() const;
public:
void clear_version();
::location::nearby::connections::OfflineFrame_Version version() const;
void set_version(::location::nearby::connections::OfflineFrame_Version value);
private:
::location::nearby::connections::OfflineFrame_Version _internal_version() const;
void _internal_set_version(::location::nearby::connections::OfflineFrame_Version value);
public:
// @@protoc_insertion_point(class_scope:location.nearby.connections.OfflineFrame)
private:
class _Internal;
template <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_;
::location::nearby::connections::V1Frame* v1_;
int version_;
friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto;
};
// -------------------------------------------------------------------
class V1Frame final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.V1Frame) */ {
public:
inline V1Frame() : V1Frame(nullptr) {}
~V1Frame() override;
explicit constexpr V1Frame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
V1Frame(const V1Frame& from);
V1Frame(V1Frame&& from) noexcept
: V1Frame() {
*this = ::std::move(from);
}
inline V1Frame& operator=(const V1Frame& from) {
CopyFrom(from);
return *this;
}
inline V1Frame& operator=(V1Frame&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const V1Frame& default_instance() {
return *internal_default_instance();
}
static inline const V1Frame* internal_default_instance() {
return reinterpret_cast<const V1Frame*>(
&_V1Frame_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(V1Frame& a, V1Frame& b) {
a.Swap(&b);
}
inline void Swap(V1Frame* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(V1Frame* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
V1Frame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<V1Frame>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const V1Frame& from);
void MergeFrom(const V1Frame& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(V1Frame* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.connections.V1Frame";
}
protected:
explicit V1Frame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef V1Frame_FrameType FrameType;
static constexpr FrameType UNKNOWN_FRAME_TYPE =
V1Frame_FrameType_UNKNOWN_FRAME_TYPE;
static constexpr FrameType CONNECTION_REQUEST =
V1Frame_FrameType_CONNECTION_REQUEST;
static constexpr FrameType CONNECTION_RESPONSE =
V1Frame_FrameType_CONNECTION_RESPONSE;
static constexpr FrameType PAYLOAD_TRANSFER =
V1Frame_FrameType_PAYLOAD_TRANSFER;
static constexpr FrameType BANDWIDTH_UPGRADE_NEGOTIATION =
V1Frame_FrameType_BANDWIDTH_UPGRADE_NEGOTIATION;
static constexpr FrameType KEEP_ALIVE =
V1Frame_FrameType_KEEP_ALIVE;
static constexpr FrameType DISCONNECTION =
V1Frame_FrameType_DISCONNECTION;
static constexpr FrameType PAIRED_KEY_ENCRYPTION =
V1Frame_FrameType_PAIRED_KEY_ENCRYPTION;
static inline bool FrameType_IsValid(int value) {
return V1Frame_FrameType_IsValid(value);
}
static constexpr FrameType FrameType_MIN =
V1Frame_FrameType_FrameType_MIN;
static constexpr FrameType FrameType_MAX =
V1Frame_FrameType_FrameType_MAX;
static constexpr int FrameType_ARRAYSIZE =
V1Frame_FrameType_FrameType_ARRAYSIZE;
template<typename T>
static inline const std::string& FrameType_Name(T enum_t_value) {
static_assert(::std::is_same<T, FrameType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function FrameType_Name.");
return V1Frame_FrameType_Name(enum_t_value);
}
static inline bool FrameType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
FrameType* value) {
return V1Frame_FrameType_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kConnectionRequestFieldNumber = 2,
kConnectionResponseFieldNumber = 3,
kPayloadTransferFieldNumber = 4,
kBandwidthUpgradeNegotiationFieldNumber = 5,
kKeepAliveFieldNumber = 6,
kDisconnectionFieldNumber = 7,
kPairedKeyEncryptionFieldNumber = 8,
kTypeFieldNumber = 1,
};
// optional .location.nearby.connections.ConnectionRequestFrame connection_request = 2;
bool has_connection_request() const;
private:
bool _internal_has_connection_request() const;
public:
void clear_connection_request();
const ::location::nearby::connections::ConnectionRequestFrame& connection_request() const;
PROTOBUF_NODISCARD ::location::nearby::connections::ConnectionRequestFrame* release_connection_request();
::location::nearby::connections::ConnectionRequestFrame* mutable_connection_request();
void set_allocated_connection_request(::location::nearby::connections::ConnectionRequestFrame* connection_request);
private:
const ::location::nearby::connections::ConnectionRequestFrame& _internal_connection_request() const;
::location::nearby::connections::ConnectionRequestFrame* _internal_mutable_connection_request();
public:
void unsafe_arena_set_allocated_connection_request(
::location::nearby::connections::ConnectionRequestFrame* connection_request);
::location::nearby::connections::ConnectionRequestFrame* unsafe_arena_release_connection_request();
// optional .location.nearby.connections.ConnectionResponseFrame connection_response = 3;
bool has_connection_response() const;
private:
bool _internal_has_connection_response() const;
public:
void clear_connection_response();
const ::location::nearby::connections::ConnectionResponseFrame& connection_response() const;
PROTOBUF_NODISCARD ::location::nearby::connections::ConnectionResponseFrame* release_connection_response();
::location::nearby::connections::ConnectionResponseFrame* mutable_connection_response();
void set_allocated_connection_response(::location::nearby::connections::ConnectionResponseFrame* connection_response);
private:
const ::location::nearby::connections::ConnectionResponseFrame& _internal_connection_response() const;
::location::nearby::connections::ConnectionResponseFrame* _internal_mutable_connection_response();
public:
void unsafe_arena_set_allocated_connection_response(
::location::nearby::connections::ConnectionResponseFrame* connection_response);
::location::nearby::connections::ConnectionResponseFrame* unsafe_arena_release_connection_response();
// optional .location.nearby.connections.PayloadTransferFrame payload_transfer = 4;
bool has_payload_transfer() const;
private:
bool _internal_has_payload_transfer() const;
public:
void clear_payload_transfer();
const ::location::nearby::connections::PayloadTransferFrame& payload_transfer() const;
PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame* release_payload_transfer();
::location::nearby::connections::PayloadTransferFrame* mutable_payload_transfer();
void set_allocated_payload_transfer(::location::nearby::connections::PayloadTransferFrame* payload_transfer);
private:
const ::location::nearby::connections::PayloadTransferFrame& _internal_payload_transfer() const;
::location::nearby::connections::PayloadTransferFrame* _internal_mutable_payload_transfer();
public:
void unsafe_arena_set_allocated_payload_transfer(
::location::nearby::connections::PayloadTransferFrame* payload_transfer);
::location::nearby::connections::PayloadTransferFrame* unsafe_arena_release_payload_transfer();
// optional .location.nearby.connections.BandwidthUpgradeNegotiationFrame bandwidth_upgrade_negotiation = 5;
bool has_bandwidth_upgrade_negotiation() const;
private:
bool _internal_has_bandwidth_upgrade_negotiation() const;
public:
void clear_bandwidth_upgrade_negotiation();
const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& bandwidth_upgrade_negotiation() const;
PROTOBUF_NODISCARD ::location::nearby::connections::BandwidthUpgradeNegotiationFrame* release_bandwidth_upgrade_negotiation();
::location::nearby::connections::BandwidthUpgradeNegotiationFrame* mutable_bandwidth_upgrade_negotiation();
void set_allocated_bandwidth_upgrade_negotiation(::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation);
private:
const ::location::nearby::connections::BandwidthUpgradeNegotiationFrame& _internal_bandwidth_upgrade_negotiation() const;
::location::nearby::connections::BandwidthUpgradeNegotiationFrame* _internal_mutable_bandwidth_upgrade_negotiation();
public:
void unsafe_arena_set_allocated_bandwidth_upgrade_negotiation(
::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation);
::location::nearby::connections::BandwidthUpgradeNegotiationFrame* unsafe_arena_release_bandwidth_upgrade_negotiation();
// optional .location.nearby.connections.KeepAliveFrame keep_alive = 6;
bool has_keep_alive() const;
private:
bool _internal_has_keep_alive() const;
public:
void clear_keep_alive();
const ::location::nearby::connections::KeepAliveFrame& keep_alive() const;
PROTOBUF_NODISCARD ::location::nearby::connections::KeepAliveFrame* release_keep_alive();
::location::nearby::connections::KeepAliveFrame* mutable_keep_alive();
void set_allocated_keep_alive(::location::nearby::connections::KeepAliveFrame* keep_alive);
private:
const ::location::nearby::connections::KeepAliveFrame& _internal_keep_alive() const;
::location::nearby::connections::KeepAliveFrame* _internal_mutable_keep_alive();
public:
void unsafe_arena_set_allocated_keep_alive(
::location::nearby::connections::KeepAliveFrame* keep_alive);
::location::nearby::connections::KeepAliveFrame* unsafe_arena_release_keep_alive();
// optional .location.nearby.connections.DisconnectionFrame disconnection = 7;
bool has_disconnection() const;
private:
bool _internal_has_disconnection() const;
public:
void clear_disconnection();
const ::location::nearby::connections::DisconnectionFrame& disconnection() const;
PROTOBUF_NODISCARD ::location::nearby::connections::DisconnectionFrame* release_disconnection();
::location::nearby::connections::DisconnectionFrame* mutable_disconnection();
void set_allocated_disconnection(::location::nearby::connections::DisconnectionFrame* disconnection);
private:
const ::location::nearby::connections::DisconnectionFrame& _internal_disconnection() const;
::location::nearby::connections::DisconnectionFrame* _internal_mutable_disconnection();
public:
void unsafe_arena_set_allocated_disconnection(
::location::nearby::connections::DisconnectionFrame* disconnection);
::location::nearby::connections::DisconnectionFrame* unsafe_arena_release_disconnection();
// optional .location.nearby.connections.PairedKeyEncryptionFrame paired_key_encryption = 8;
bool has_paired_key_encryption() const;
private:
bool _internal_has_paired_key_encryption() const;
public:
void clear_paired_key_encryption();
const ::location::nearby::connections::PairedKeyEncryptionFrame& paired_key_encryption() const;
PROTOBUF_NODISCARD ::location::nearby::connections::PairedKeyEncryptionFrame* release_paired_key_encryption();
::location::nearby::connections::PairedKeyEncryptionFrame* mutable_paired_key_encryption();
void set_allocated_paired_key_encryption(::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption);
private:
const ::location::nearby::connections::PairedKeyEncryptionFrame& _internal_paired_key_encryption() const;
::location::nearby::connections::PairedKeyEncryptionFrame* _internal_mutable_paired_key_encryption();
public:
void unsafe_arena_set_allocated_paired_key_encryption(
::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption);
::location::nearby::connections::PairedKeyEncryptionFrame* unsafe_arena_release_paired_key_encryption();
// optional .location.nearby.connections.V1Frame.FrameType type = 1;
bool has_type() const;
private:
bool _internal_has_type() const;
public:
void clear_type();
::location::nearby::connections::V1Frame_FrameType type() const;
void set_type(::location::nearby::connections::V1Frame_FrameType value);
private:
::location::nearby::connections::V1Frame_FrameType _internal_type() const;
void _internal_set_type(::location::nearby::connections::V1Frame_FrameType value);
public:
// @@protoc_insertion_point(class_scope:location.nearby.connections.V1Frame)
private:
class _Internal;
template <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_;
::location::nearby::connections::ConnectionRequestFrame* connection_request_;
::location::nearby::connections::ConnectionResponseFrame* connection_response_;
::location::nearby::connections::PayloadTransferFrame* payload_transfer_;
::location::nearby::connections::BandwidthUpgradeNegotiationFrame* bandwidth_upgrade_negotiation_;
::location::nearby::connections::KeepAliveFrame* keep_alive_;
::location::nearby::connections::DisconnectionFrame* disconnection_;
::location::nearby::connections::PairedKeyEncryptionFrame* paired_key_encryption_;
int type_;
friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto;
};
// -------------------------------------------------------------------
class ConnectionRequestFrame final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionRequestFrame) */ {
public:
inline ConnectionRequestFrame() : ConnectionRequestFrame(nullptr) {}
~ConnectionRequestFrame() override;
explicit constexpr ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ConnectionRequestFrame(const ConnectionRequestFrame& from);
ConnectionRequestFrame(ConnectionRequestFrame&& from) noexcept
: ConnectionRequestFrame() {
*this = ::std::move(from);
}
inline ConnectionRequestFrame& operator=(const ConnectionRequestFrame& from) {
CopyFrom(from);
return *this;
}
inline ConnectionRequestFrame& operator=(ConnectionRequestFrame&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const ConnectionRequestFrame& default_instance() {
return *internal_default_instance();
}
static inline const ConnectionRequestFrame* internal_default_instance() {
return reinterpret_cast<const ConnectionRequestFrame*>(
&_ConnectionRequestFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(ConnectionRequestFrame& a, ConnectionRequestFrame& b) {
a.Swap(&b);
}
inline void Swap(ConnectionRequestFrame* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ConnectionRequestFrame* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ConnectionRequestFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ConnectionRequestFrame>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const ConnectionRequestFrame& from);
void MergeFrom(const ConnectionRequestFrame& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(ConnectionRequestFrame* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.connections.ConnectionRequestFrame";
}
protected:
explicit ConnectionRequestFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef ConnectionRequestFrame_Medium Medium;
static constexpr Medium UNKNOWN_MEDIUM =
ConnectionRequestFrame_Medium_UNKNOWN_MEDIUM;
PROTOBUF_DEPRECATED_ENUM static constexpr Medium MDNS =
ConnectionRequestFrame_Medium_MDNS;
static constexpr Medium BLUETOOTH =
ConnectionRequestFrame_Medium_BLUETOOTH;
static constexpr Medium WIFI_HOTSPOT =
ConnectionRequestFrame_Medium_WIFI_HOTSPOT;
static constexpr Medium BLE =
ConnectionRequestFrame_Medium_BLE;
static constexpr Medium WIFI_LAN =
ConnectionRequestFrame_Medium_WIFI_LAN;
static constexpr Medium WIFI_AWARE =
ConnectionRequestFrame_Medium_WIFI_AWARE;
static constexpr Medium NFC =
ConnectionRequestFrame_Medium_NFC;
static constexpr Medium WIFI_DIRECT =
ConnectionRequestFrame_Medium_WIFI_DIRECT;
static constexpr Medium WEB_RTC =
ConnectionRequestFrame_Medium_WEB_RTC;
static constexpr Medium BLE_L2CAP =
ConnectionRequestFrame_Medium_BLE_L2CAP;
static inline bool Medium_IsValid(int value) {
return ConnectionRequestFrame_Medium_IsValid(value);
}
static constexpr Medium Medium_MIN =
ConnectionRequestFrame_Medium_Medium_MIN;
static constexpr Medium Medium_MAX =
ConnectionRequestFrame_Medium_Medium_MAX;
static constexpr int Medium_ARRAYSIZE =
ConnectionRequestFrame_Medium_Medium_ARRAYSIZE;
template<typename T>
static inline const std::string& Medium_Name(T enum_t_value) {
static_assert(::std::is_same<T, Medium>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function Medium_Name.");
return ConnectionRequestFrame_Medium_Name(enum_t_value);
}
static inline bool Medium_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Medium* value) {
return ConnectionRequestFrame_Medium_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kMediumsFieldNumber = 5,
kEndpointIdFieldNumber = 1,
kEndpointNameFieldNumber = 2,
kHandshakeDataFieldNumber = 3,
kEndpointInfoFieldNumber = 6,
kDeviceInfoFieldNumber = 11,
kMediumMetadataFieldNumber = 7,
kNonceFieldNumber = 4,
kKeepAliveIntervalMillisFieldNumber = 8,
kKeepAliveTimeoutMillisFieldNumber = 9,
kDeviceTypeFieldNumber = 10,
};
// repeated .location.nearby.connections.ConnectionRequestFrame.Medium mediums = 5;
int mediums_size() const;
private:
int _internal_mediums_size() const;
public:
void clear_mediums();
private:
::location::nearby::connections::ConnectionRequestFrame_Medium _internal_mediums(int index) const;
void _internal_add_mediums(::location::nearby::connections::ConnectionRequestFrame_Medium value);
::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_mediums();
public:
::location::nearby::connections::ConnectionRequestFrame_Medium mediums(int index) const;
void set_mediums(int index, ::location::nearby::connections::ConnectionRequestFrame_Medium value);
void add_mediums(::location::nearby::connections::ConnectionRequestFrame_Medium value);
const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& mediums() const;
::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_mediums();
// optional string endpoint_id = 1;
bool has_endpoint_id() const;
private:
bool _internal_has_endpoint_id() const;
public:
void clear_endpoint_id();
const std::string& endpoint_id() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_endpoint_id(ArgT0&& arg0, ArgT... args);
std::string* mutable_endpoint_id();
PROTOBUF_NODISCARD std::string* release_endpoint_id();
void set_allocated_endpoint_id(std::string* endpoint_id);
private:
const std::string& _internal_endpoint_id() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_id(const std::string& value);
std::string* _internal_mutable_endpoint_id();
public:
// optional string endpoint_name = 2;
bool has_endpoint_name() const;
private:
bool _internal_has_endpoint_name() const;
public:
void clear_endpoint_name();
const std::string& endpoint_name() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_endpoint_name(ArgT0&& arg0, ArgT... args);
std::string* mutable_endpoint_name();
PROTOBUF_NODISCARD std::string* release_endpoint_name();
void set_allocated_endpoint_name(std::string* endpoint_name);
private:
const std::string& _internal_endpoint_name() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_name(const std::string& value);
std::string* _internal_mutable_endpoint_name();
public:
// optional bytes handshake_data = 3;
bool has_handshake_data() const;
private:
bool _internal_has_handshake_data() const;
public:
void clear_handshake_data();
const std::string& handshake_data() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_handshake_data(ArgT0&& arg0, ArgT... args);
std::string* mutable_handshake_data();
PROTOBUF_NODISCARD std::string* release_handshake_data();
void set_allocated_handshake_data(std::string* handshake_data);
private:
const std::string& _internal_handshake_data() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_handshake_data(const std::string& value);
std::string* _internal_mutable_handshake_data();
public:
// optional bytes endpoint_info = 6;
bool has_endpoint_info() const;
private:
bool _internal_has_endpoint_info() const;
public:
void clear_endpoint_info();
const std::string& endpoint_info() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_endpoint_info(ArgT0&& arg0, ArgT... args);
std::string* mutable_endpoint_info();
PROTOBUF_NODISCARD std::string* release_endpoint_info();
void set_allocated_endpoint_info(std::string* endpoint_info);
private:
const std::string& _internal_endpoint_info() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_endpoint_info(const std::string& value);
std::string* _internal_mutable_endpoint_info();
public:
// optional bytes device_info = 11;
bool has_device_info() const;
private:
bool _internal_has_device_info() const;
public:
void clear_device_info();
const std::string& device_info() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_device_info(ArgT0&& arg0, ArgT... args);
std::string* mutable_device_info();
PROTOBUF_NODISCARD std::string* release_device_info();
void set_allocated_device_info(std::string* device_info);
private:
const std::string& _internal_device_info() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_device_info(const std::string& value);
std::string* _internal_mutable_device_info();
public:
// optional .location.nearby.connections.MediumMetadata medium_metadata = 7;
bool has_medium_metadata() const;
private:
bool _internal_has_medium_metadata() const;
public:
void clear_medium_metadata();
const ::location::nearby::connections::MediumMetadata& medium_metadata() const;
PROTOBUF_NODISCARD ::location::nearby::connections::MediumMetadata* release_medium_metadata();
::location::nearby::connections::MediumMetadata* mutable_medium_metadata();
void set_allocated_medium_metadata(::location::nearby::connections::MediumMetadata* medium_metadata);
private:
const ::location::nearby::connections::MediumMetadata& _internal_medium_metadata() const;
::location::nearby::connections::MediumMetadata* _internal_mutable_medium_metadata();
public:
void unsafe_arena_set_allocated_medium_metadata(
::location::nearby::connections::MediumMetadata* medium_metadata);
::location::nearby::connections::MediumMetadata* unsafe_arena_release_medium_metadata();
// optional int32 nonce = 4;
bool has_nonce() const;
private:
bool _internal_has_nonce() const;
public:
void clear_nonce();
int32_t nonce() const;
void set_nonce(int32_t value);
private:
int32_t _internal_nonce() const;
void _internal_set_nonce(int32_t value);
public:
// optional int32 keep_alive_interval_millis = 8;
bool has_keep_alive_interval_millis() const;
private:
bool _internal_has_keep_alive_interval_millis() const;
public:
void clear_keep_alive_interval_millis();
int32_t keep_alive_interval_millis() const;
void set_keep_alive_interval_millis(int32_t value);
private:
int32_t _internal_keep_alive_interval_millis() const;
void _internal_set_keep_alive_interval_millis(int32_t value);
public:
// optional int32 keep_alive_timeout_millis = 9;
bool has_keep_alive_timeout_millis() const;
private:
bool _internal_has_keep_alive_timeout_millis() const;
public:
void clear_keep_alive_timeout_millis();
int32_t keep_alive_timeout_millis() const;
void set_keep_alive_timeout_millis(int32_t value);
private:
int32_t _internal_keep_alive_timeout_millis() const;
void _internal_set_keep_alive_timeout_millis(int32_t value);
public:
// optional int32 device_type = 10 [default = 0];
bool has_device_type() const;
private:
bool _internal_has_device_type() const;
public:
void clear_device_type();
int32_t device_type() const;
void set_device_type(int32_t value);
private:
int32_t _internal_device_type() const;
void _internal_set_device_type(int32_t value);
public:
// @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionRequestFrame)
private:
class _Internal;
template <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_;
::PROTOBUF_NAMESPACE_ID::RepeatedField<int> mediums_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr handshake_data_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_info_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_info_;
::location::nearby::connections::MediumMetadata* medium_metadata_;
int32_t nonce_;
int32_t keep_alive_interval_millis_;
int32_t keep_alive_timeout_millis_;
int32_t device_type_;
friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto;
};
// -------------------------------------------------------------------
class ConnectionResponseFrame final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.ConnectionResponseFrame) */ {
public:
inline ConnectionResponseFrame() : ConnectionResponseFrame(nullptr) {}
~ConnectionResponseFrame() override;
explicit constexpr ConnectionResponseFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ConnectionResponseFrame(const ConnectionResponseFrame& from);
ConnectionResponseFrame(ConnectionResponseFrame&& from) noexcept
: ConnectionResponseFrame() {
*this = ::std::move(from);
}
inline ConnectionResponseFrame& operator=(const ConnectionResponseFrame& from) {
CopyFrom(from);
return *this;
}
inline ConnectionResponseFrame& operator=(ConnectionResponseFrame&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const ConnectionResponseFrame& default_instance() {
return *internal_default_instance();
}
static inline const ConnectionResponseFrame* internal_default_instance() {
return reinterpret_cast<const ConnectionResponseFrame*>(
&_ConnectionResponseFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
3;
friend void swap(ConnectionResponseFrame& a, ConnectionResponseFrame& b) {
a.Swap(&b);
}
inline void Swap(ConnectionResponseFrame* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ConnectionResponseFrame* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ConnectionResponseFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ConnectionResponseFrame>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const ConnectionResponseFrame& from);
void MergeFrom(const ConnectionResponseFrame& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(ConnectionResponseFrame* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.connections.ConnectionResponseFrame";
}
protected:
explicit ConnectionResponseFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef ConnectionResponseFrame_ResponseStatus ResponseStatus;
static constexpr ResponseStatus UNKNOWN_RESPONSE_STATUS =
ConnectionResponseFrame_ResponseStatus_UNKNOWN_RESPONSE_STATUS;
static constexpr ResponseStatus ACCEPT =
ConnectionResponseFrame_ResponseStatus_ACCEPT;
static constexpr ResponseStatus REJECT =
ConnectionResponseFrame_ResponseStatus_REJECT;
static inline bool ResponseStatus_IsValid(int value) {
return ConnectionResponseFrame_ResponseStatus_IsValid(value);
}
static constexpr ResponseStatus ResponseStatus_MIN =
ConnectionResponseFrame_ResponseStatus_ResponseStatus_MIN;
static constexpr ResponseStatus ResponseStatus_MAX =
ConnectionResponseFrame_ResponseStatus_ResponseStatus_MAX;
static constexpr int ResponseStatus_ARRAYSIZE =
ConnectionResponseFrame_ResponseStatus_ResponseStatus_ARRAYSIZE;
template<typename T>
static inline const std::string& ResponseStatus_Name(T enum_t_value) {
static_assert(::std::is_same<T, ResponseStatus>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ResponseStatus_Name.");
return ConnectionResponseFrame_ResponseStatus_Name(enum_t_value);
}
static inline bool ResponseStatus_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
ResponseStatus* value) {
return ConnectionResponseFrame_ResponseStatus_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kHandshakeDataFieldNumber = 2,
kStatusFieldNumber = 1,
kResponseFieldNumber = 3,
};
// optional bytes handshake_data = 2;
bool has_handshake_data() const;
private:
bool _internal_has_handshake_data() const;
public:
void clear_handshake_data();
const std::string& handshake_data() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_handshake_data(ArgT0&& arg0, ArgT... args);
std::string* mutable_handshake_data();
PROTOBUF_NODISCARD std::string* release_handshake_data();
void set_allocated_handshake_data(std::string* handshake_data);
private:
const std::string& _internal_handshake_data() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_handshake_data(const std::string& value);
std::string* _internal_mutable_handshake_data();
public:
// optional int32 status = 1 [deprecated = true];
PROTOBUF_DEPRECATED bool has_status() const;
private:
bool _internal_has_status() const;
public:
PROTOBUF_DEPRECATED void clear_status();
PROTOBUF_DEPRECATED int32_t status() const;
PROTOBUF_DEPRECATED void set_status(int32_t value);
private:
int32_t _internal_status() const;
void _internal_set_status(int32_t value);
public:
// optional .location.nearby.connections.ConnectionResponseFrame.ResponseStatus response = 3;
bool has_response() const;
private:
bool _internal_has_response() const;
public:
void clear_response();
::location::nearby::connections::ConnectionResponseFrame_ResponseStatus response() const;
void set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value);
private:
::location::nearby::connections::ConnectionResponseFrame_ResponseStatus _internal_response() const;
void _internal_set_response(::location::nearby::connections::ConnectionResponseFrame_ResponseStatus value);
public:
// @@protoc_insertion_point(class_scope:location.nearby.connections.ConnectionResponseFrame)
private:
class _Internal;
template <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_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr handshake_data_;
int32_t status_;
int response_;
friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto;
};
// -------------------------------------------------------------------
class PayloadTransferFrame_PayloadHeader final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.PayloadHeader) */ {
public:
inline PayloadTransferFrame_PayloadHeader() : PayloadTransferFrame_PayloadHeader(nullptr) {}
~PayloadTransferFrame_PayloadHeader() override;
explicit constexpr PayloadTransferFrame_PayloadHeader(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
PayloadTransferFrame_PayloadHeader(const PayloadTransferFrame_PayloadHeader& from);
PayloadTransferFrame_PayloadHeader(PayloadTransferFrame_PayloadHeader&& from) noexcept
: PayloadTransferFrame_PayloadHeader() {
*this = ::std::move(from);
}
inline PayloadTransferFrame_PayloadHeader& operator=(const PayloadTransferFrame_PayloadHeader& from) {
CopyFrom(from);
return *this;
}
inline PayloadTransferFrame_PayloadHeader& operator=(PayloadTransferFrame_PayloadHeader&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const PayloadTransferFrame_PayloadHeader& default_instance() {
return *internal_default_instance();
}
static inline const PayloadTransferFrame_PayloadHeader* internal_default_instance() {
return reinterpret_cast<const PayloadTransferFrame_PayloadHeader*>(
&_PayloadTransferFrame_PayloadHeader_default_instance_);
}
static constexpr int kIndexInFileMessages =
4;
friend void swap(PayloadTransferFrame_PayloadHeader& a, PayloadTransferFrame_PayloadHeader& b) {
a.Swap(&b);
}
inline void Swap(PayloadTransferFrame_PayloadHeader* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(PayloadTransferFrame_PayloadHeader* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
PayloadTransferFrame_PayloadHeader* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<PayloadTransferFrame_PayloadHeader>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const PayloadTransferFrame_PayloadHeader& from);
void MergeFrom(const PayloadTransferFrame_PayloadHeader& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(PayloadTransferFrame_PayloadHeader* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.connections.PayloadTransferFrame.PayloadHeader";
}
protected:
explicit PayloadTransferFrame_PayloadHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef PayloadTransferFrame_PayloadHeader_PayloadType PayloadType;
static constexpr PayloadType UNKNOWN_PAYLOAD_TYPE =
PayloadTransferFrame_PayloadHeader_PayloadType_UNKNOWN_PAYLOAD_TYPE;
static constexpr PayloadType BYTES =
PayloadTransferFrame_PayloadHeader_PayloadType_BYTES;
static constexpr PayloadType FILE =
PayloadTransferFrame_PayloadHeader_PayloadType_FILE;
static constexpr PayloadType STREAM =
PayloadTransferFrame_PayloadHeader_PayloadType_STREAM;
static inline bool PayloadType_IsValid(int value) {
return PayloadTransferFrame_PayloadHeader_PayloadType_IsValid(value);
}
static constexpr PayloadType PayloadType_MIN =
PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MIN;
static constexpr PayloadType PayloadType_MAX =
PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_MAX;
static constexpr int PayloadType_ARRAYSIZE =
PayloadTransferFrame_PayloadHeader_PayloadType_PayloadType_ARRAYSIZE;
template<typename T>
static inline const std::string& PayloadType_Name(T enum_t_value) {
static_assert(::std::is_same<T, PayloadType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function PayloadType_Name.");
return PayloadTransferFrame_PayloadHeader_PayloadType_Name(enum_t_value);
}
static inline bool PayloadType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
PayloadType* value) {
return PayloadTransferFrame_PayloadHeader_PayloadType_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kFileNameFieldNumber = 5,
kParentFolderFieldNumber = 6,
kIdFieldNumber = 1,
kTotalSizeFieldNumber = 3,
kTypeFieldNumber = 2,
kIsSensitiveFieldNumber = 4,
};
// optional string file_name = 5;
bool has_file_name() const;
private:
bool _internal_has_file_name() const;
public:
void clear_file_name();
const std::string& file_name() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_file_name(ArgT0&& arg0, ArgT... args);
std::string* mutable_file_name();
PROTOBUF_NODISCARD std::string* release_file_name();
void set_allocated_file_name(std::string* file_name);
private:
const std::string& _internal_file_name() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_file_name(const std::string& value);
std::string* _internal_mutable_file_name();
public:
// optional string parent_folder = 6;
bool has_parent_folder() const;
private:
bool _internal_has_parent_folder() const;
public:
void clear_parent_folder();
const std::string& parent_folder() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_parent_folder(ArgT0&& arg0, ArgT... args);
std::string* mutable_parent_folder();
PROTOBUF_NODISCARD std::string* release_parent_folder();
void set_allocated_parent_folder(std::string* parent_folder);
private:
const std::string& _internal_parent_folder() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent_folder(const std::string& value);
std::string* _internal_mutable_parent_folder();
public:
// optional int64 id = 1;
bool has_id() const;
private:
bool _internal_has_id() const;
public:
void clear_id();
int64_t id() const;
void set_id(int64_t value);
private:
int64_t _internal_id() const;
void _internal_set_id(int64_t value);
public:
// optional int64 total_size = 3;
bool has_total_size() const;
private:
bool _internal_has_total_size() const;
public:
void clear_total_size();
int64_t total_size() const;
void set_total_size(int64_t value);
private:
int64_t _internal_total_size() const;
void _internal_set_total_size(int64_t value);
public:
// optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader.PayloadType type = 2;
bool has_type() const;
private:
bool _internal_has_type() const;
public:
void clear_type();
::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType type() const;
void set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value);
private:
::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType _internal_type() const;
void _internal_set_type(::location::nearby::connections::PayloadTransferFrame_PayloadHeader_PayloadType value);
public:
// optional bool is_sensitive = 4;
bool has_is_sensitive() const;
private:
bool _internal_has_is_sensitive() const;
public:
void clear_is_sensitive();
bool is_sensitive() const;
void set_is_sensitive(bool value);
private:
bool _internal_is_sensitive() const;
void _internal_set_is_sensitive(bool value);
public:
// @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.PayloadHeader)
private:
class _Internal;
template <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_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr file_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_folder_;
int64_t id_;
int64_t total_size_;
int type_;
bool is_sensitive_;
friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto;
};
// -------------------------------------------------------------------
class PayloadTransferFrame_PayloadChunk final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.PayloadChunk) */ {
public:
inline PayloadTransferFrame_PayloadChunk() : PayloadTransferFrame_PayloadChunk(nullptr) {}
~PayloadTransferFrame_PayloadChunk() override;
explicit constexpr PayloadTransferFrame_PayloadChunk(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
PayloadTransferFrame_PayloadChunk(const PayloadTransferFrame_PayloadChunk& from);
PayloadTransferFrame_PayloadChunk(PayloadTransferFrame_PayloadChunk&& from) noexcept
: PayloadTransferFrame_PayloadChunk() {
*this = ::std::move(from);
}
inline PayloadTransferFrame_PayloadChunk& operator=(const PayloadTransferFrame_PayloadChunk& from) {
CopyFrom(from);
return *this;
}
inline PayloadTransferFrame_PayloadChunk& operator=(PayloadTransferFrame_PayloadChunk&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const PayloadTransferFrame_PayloadChunk& default_instance() {
return *internal_default_instance();
}
static inline const PayloadTransferFrame_PayloadChunk* internal_default_instance() {
return reinterpret_cast<const PayloadTransferFrame_PayloadChunk*>(
&_PayloadTransferFrame_PayloadChunk_default_instance_);
}
static constexpr int kIndexInFileMessages =
5;
friend void swap(PayloadTransferFrame_PayloadChunk& a, PayloadTransferFrame_PayloadChunk& b) {
a.Swap(&b);
}
inline void Swap(PayloadTransferFrame_PayloadChunk* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(PayloadTransferFrame_PayloadChunk* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
PayloadTransferFrame_PayloadChunk* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<PayloadTransferFrame_PayloadChunk>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const PayloadTransferFrame_PayloadChunk& from);
void MergeFrom(const PayloadTransferFrame_PayloadChunk& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(PayloadTransferFrame_PayloadChunk* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.connections.PayloadTransferFrame.PayloadChunk";
}
protected:
explicit PayloadTransferFrame_PayloadChunk(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef PayloadTransferFrame_PayloadChunk_Flags Flags;
static constexpr Flags LAST_CHUNK =
PayloadTransferFrame_PayloadChunk_Flags_LAST_CHUNK;
static inline bool Flags_IsValid(int value) {
return PayloadTransferFrame_PayloadChunk_Flags_IsValid(value);
}
static constexpr Flags Flags_MIN =
PayloadTransferFrame_PayloadChunk_Flags_Flags_MIN;
static constexpr Flags Flags_MAX =
PayloadTransferFrame_PayloadChunk_Flags_Flags_MAX;
static constexpr int Flags_ARRAYSIZE =
PayloadTransferFrame_PayloadChunk_Flags_Flags_ARRAYSIZE;
template<typename T>
static inline const std::string& Flags_Name(T enum_t_value) {
static_assert(::std::is_same<T, Flags>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function Flags_Name.");
return PayloadTransferFrame_PayloadChunk_Flags_Name(enum_t_value);
}
static inline bool Flags_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
Flags* value) {
return PayloadTransferFrame_PayloadChunk_Flags_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kBodyFieldNumber = 3,
kOffsetFieldNumber = 2,
kFlagsFieldNumber = 1,
};
// optional bytes body = 3;
bool has_body() const;
private:
bool _internal_has_body() const;
public:
void clear_body();
const std::string& body() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_body(ArgT0&& arg0, ArgT... args);
std::string* mutable_body();
PROTOBUF_NODISCARD std::string* release_body();
void set_allocated_body(std::string* body);
private:
const std::string& _internal_body() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_body(const std::string& value);
std::string* _internal_mutable_body();
public:
// optional int64 offset = 2;
bool has_offset() const;
private:
bool _internal_has_offset() const;
public:
void clear_offset();
int64_t offset() const;
void set_offset(int64_t value);
private:
int64_t _internal_offset() const;
void _internal_set_offset(int64_t value);
public:
// optional int32 flags = 1;
bool has_flags() const;
private:
bool _internal_has_flags() const;
public:
void clear_flags();
int32_t flags() const;
void set_flags(int32_t value);
private:
int32_t _internal_flags() const;
void _internal_set_flags(int32_t value);
public:
// @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.PayloadChunk)
private:
class _Internal;
template <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_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_;
int64_t offset_;
int32_t flags_;
friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto;
};
// -------------------------------------------------------------------
class PayloadTransferFrame_ControlMessage final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame.ControlMessage) */ {
public:
inline PayloadTransferFrame_ControlMessage() : PayloadTransferFrame_ControlMessage(nullptr) {}
~PayloadTransferFrame_ControlMessage() override;
explicit constexpr PayloadTransferFrame_ControlMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
PayloadTransferFrame_ControlMessage(const PayloadTransferFrame_ControlMessage& from);
PayloadTransferFrame_ControlMessage(PayloadTransferFrame_ControlMessage&& from) noexcept
: PayloadTransferFrame_ControlMessage() {
*this = ::std::move(from);
}
inline PayloadTransferFrame_ControlMessage& operator=(const PayloadTransferFrame_ControlMessage& from) {
CopyFrom(from);
return *this;
}
inline PayloadTransferFrame_ControlMessage& operator=(PayloadTransferFrame_ControlMessage&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const PayloadTransferFrame_ControlMessage& default_instance() {
return *internal_default_instance();
}
static inline const PayloadTransferFrame_ControlMessage* internal_default_instance() {
return reinterpret_cast<const PayloadTransferFrame_ControlMessage*>(
&_PayloadTransferFrame_ControlMessage_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
friend void swap(PayloadTransferFrame_ControlMessage& a, PayloadTransferFrame_ControlMessage& b) {
a.Swap(&b);
}
inline void Swap(PayloadTransferFrame_ControlMessage* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(PayloadTransferFrame_ControlMessage* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
PayloadTransferFrame_ControlMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<PayloadTransferFrame_ControlMessage>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const PayloadTransferFrame_ControlMessage& from);
void MergeFrom(const PayloadTransferFrame_ControlMessage& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(PayloadTransferFrame_ControlMessage* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.connections.PayloadTransferFrame.ControlMessage";
}
protected:
explicit PayloadTransferFrame_ControlMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef PayloadTransferFrame_ControlMessage_EventType EventType;
static constexpr EventType UNKNOWN_EVENT_TYPE =
PayloadTransferFrame_ControlMessage_EventType_UNKNOWN_EVENT_TYPE;
static constexpr EventType PAYLOAD_ERROR =
PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_ERROR;
static constexpr EventType PAYLOAD_CANCELED =
PayloadTransferFrame_ControlMessage_EventType_PAYLOAD_CANCELED;
static inline bool EventType_IsValid(int value) {
return PayloadTransferFrame_ControlMessage_EventType_IsValid(value);
}
static constexpr EventType EventType_MIN =
PayloadTransferFrame_ControlMessage_EventType_EventType_MIN;
static constexpr EventType EventType_MAX =
PayloadTransferFrame_ControlMessage_EventType_EventType_MAX;
static constexpr int EventType_ARRAYSIZE =
PayloadTransferFrame_ControlMessage_EventType_EventType_ARRAYSIZE;
template<typename T>
static inline const std::string& EventType_Name(T enum_t_value) {
static_assert(::std::is_same<T, EventType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function EventType_Name.");
return PayloadTransferFrame_ControlMessage_EventType_Name(enum_t_value);
}
static inline bool EventType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
EventType* value) {
return PayloadTransferFrame_ControlMessage_EventType_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kOffsetFieldNumber = 2,
kEventFieldNumber = 1,
};
// optional int64 offset = 2;
bool has_offset() const;
private:
bool _internal_has_offset() const;
public:
void clear_offset();
int64_t offset() const;
void set_offset(int64_t value);
private:
int64_t _internal_offset() const;
void _internal_set_offset(int64_t value);
public:
// optional .location.nearby.connections.PayloadTransferFrame.ControlMessage.EventType event = 1;
bool has_event() const;
private:
bool _internal_has_event() const;
public:
void clear_event();
::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType event() const;
void set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value);
private:
::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType _internal_event() const;
void _internal_set_event(::location::nearby::connections::PayloadTransferFrame_ControlMessage_EventType value);
public:
// @@protoc_insertion_point(class_scope:location.nearby.connections.PayloadTransferFrame.ControlMessage)
private:
class _Internal;
template <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_;
int64_t offset_;
int event_;
friend struct ::TableStruct_connections_2fimplementation_2fproto_2foffline_5fwire_5fformats_2eproto;
};
// -------------------------------------------------------------------
class PayloadTransferFrame final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.connections.PayloadTransferFrame) */ {
public:
inline PayloadTransferFrame() : PayloadTransferFrame(nullptr) {}
~PayloadTransferFrame() override;
explicit constexpr PayloadTransferFrame(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
PayloadTransferFrame(const PayloadTransferFrame& from);
PayloadTransferFrame(PayloadTransferFrame&& from) noexcept
: PayloadTransferFrame() {
*this = ::std::move(from);
}
inline PayloadTransferFrame& operator=(const PayloadTransferFrame& from) {
CopyFrom(from);
return *this;
}
inline PayloadTransferFrame& operator=(PayloadTransferFrame&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
inline const std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
}
inline std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields<std::string>();
}
static const PayloadTransferFrame& default_instance() {
return *internal_default_instance();
}
static inline const PayloadTransferFrame* internal_default_instance() {
return reinterpret_cast<const PayloadTransferFrame*>(
&_PayloadTransferFrame_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
friend void swap(PayloadTransferFrame& a, PayloadTransferFrame& b) {
a.Swap(&b);
}
inline void Swap(PayloadTransferFrame* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(PayloadTransferFrame* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
PayloadTransferFrame* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<PayloadTransferFrame>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const PayloadTransferFrame& from);
void MergeFrom(const PayloadTransferFrame& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(PayloadTransferFrame* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.connections.PayloadTransferFrame";
}
protected:
explicit PayloadTransferFrame(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef PayloadTransferFrame_PayloadHeader PayloadHeader;
typedef PayloadTransferFrame_PayloadChunk PayloadChunk;
typedef PayloadTransferFrame_ControlMessage ControlMessage;
typedef PayloadTransferFrame_PacketType PacketType;
static constexpr PacketType UNKNOWN_PACKET_TYPE =
PayloadTransferFrame_PacketType_UNKNOWN_PACKET_TYPE;
static constexpr PacketType DATA =
PayloadTransferFrame_PacketType_DATA;
static constexpr PacketType CONTROL =
PayloadTransferFrame_PacketType_CONTROL;
static inline bool PacketType_IsValid(int value) {
return PayloadTransferFrame_PacketType_IsValid(value);
}
static constexpr PacketType PacketType_MIN =
PayloadTransferFrame_PacketType_PacketType_MIN;
static constexpr PacketType PacketType_MAX =
PayloadTransferFrame_PacketType_PacketType_MAX;
static constexpr int PacketType_ARRAYSIZE =
PayloadTransferFrame_PacketType_PacketType_ARRAYSIZE;
template<typename T>
static inline const std::string& PacketType_Name(T enum_t_value) {
static_assert(::std::is_same<T, PacketType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function PacketType_Name.");
return PayloadTransferFrame_PacketType_Name(enum_t_value);
}
static inline bool PacketType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
PacketType* value) {
return PayloadTransferFrame_PacketType_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kPayloadHeaderFieldNumber = 2,
kPayloadChunkFieldNumber = 3,
kControlMessageFieldNumber = 4,
kPacketTypeFieldNumber = 1,
};
// optional .location.nearby.connections.PayloadTransferFrame.PayloadHeader payload_header = 2;
bool has_payload_header() const;
private:
bool _internal_has_payload_header() const;
public:
void clear_payload_header();
const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& payload_header() const;
PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame_PayloadHeader* release_payload_header();
::location::nearby::connections::PayloadTransferFrame_PayloadHeader* mutable_payload_header();
void set_allocated_payload_header(::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header);
private:
const ::location::nearby::connections::PayloadTransferFrame_PayloadHeader& _internal_payload_header() const;
::location::nearby::connections::PayloadTransferFrame_PayloadHeader* _internal_mutable_payload_header();
public:
void unsafe_arena_set_allocated_payload_header(
::location::nearby::connections::PayloadTransferFrame_PayloadHeader* payload_header);
::location::nearby::connections::PayloadTransferFrame_PayloadHeader* unsafe_arena_release_payload_header();
// optional .location.nearby.connections.PayloadTransferFrame.PayloadChunk payload_chunk = 3;
bool has_payload_chunk() const;
private:
bool _internal_has_payload_chunk() const;
public:
void clear_payload_chunk();
const ::location::nearby::connections::PayloadTransferFrame_PayloadChunk& payload_chunk() const;
PROTOBUF_NODISCARD ::location::nearby::connections::PayloadTransferFrame_PayloadChunk* release_payload_chunk();
::location::nearby::connections::PayloadTransferFrame_PayloadChunk* mutable_payload_chunk();
void set_allocated_payload_chunk(::location::nearby::connections::PayloadTransferFrame_PayloadChunk* payload_chunk);
private:
const