Delete nfc_frames.pb.h

This commit is contained in:
suetfei
2022-04-05 09:51:55 -07:00
committed by GitHub
parent 83cb6ac3b5
commit 1dc22600cd
-802
View File
@@ -1,802 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/mediums/nfc_frames.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fnfc_5fframes_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fnfc_5fframes_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
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_proto_2fmediums_2fnfc_5fframes_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_proto_2fmediums_2fnfc_5fframes_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[2]
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 mediums {
class AdvertisementData;
struct AdvertisementDataDefaultTypeInternal;
extern AdvertisementDataDefaultTypeInternal _AdvertisementData_default_instance_;
class AdvertisementRequest;
struct AdvertisementRequestDefaultTypeInternal;
extern AdvertisementRequestDefaultTypeInternal _AdvertisementRequest_default_instance_;
} // namespace mediums
} // namespace nearby
} // namespace location
PROTOBUF_NAMESPACE_OPEN
template<> ::location::nearby::mediums::AdvertisementData* Arena::CreateMaybeMessage<::location::nearby::mediums::AdvertisementData>(Arena*);
template<> ::location::nearby::mediums::AdvertisementRequest* Arena::CreateMaybeMessage<::location::nearby::mediums::AdvertisementRequest>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace location {
namespace nearby {
namespace mediums {
// ===================================================================
class AdvertisementData final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.AdvertisementData) */ {
public:
inline AdvertisementData() : AdvertisementData(nullptr) {}
~AdvertisementData() override;
explicit constexpr AdvertisementData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
AdvertisementData(const AdvertisementData& from);
AdvertisementData(AdvertisementData&& from) noexcept
: AdvertisementData() {
*this = ::std::move(from);
}
inline AdvertisementData& operator=(const AdvertisementData& from) {
CopyFrom(from);
return *this;
}
inline AdvertisementData& operator=(AdvertisementData&& 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 AdvertisementData& default_instance() {
return *internal_default_instance();
}
static inline const AdvertisementData* internal_default_instance() {
return reinterpret_cast<const AdvertisementData*>(
&_AdvertisementData_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(AdvertisementData& a, AdvertisementData& b) {
a.Swap(&b);
}
inline void Swap(AdvertisementData* 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(AdvertisementData* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
AdvertisementData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<AdvertisementData>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const AdvertisementData& from);
void MergeFrom(const AdvertisementData& 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(AdvertisementData* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.mediums.AdvertisementData";
}
protected:
explicit AdvertisementData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kTagFieldNumber = 1,
kPublicKeyFieldNumber = 2,
};
// optional bytes tag = 1;
bool has_tag() const;
private:
bool _internal_has_tag() const;
public:
void clear_tag();
const std::string& tag() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_tag(ArgT0&& arg0, ArgT... args);
std::string* mutable_tag();
PROTOBUF_NODISCARD std::string* release_tag();
void set_allocated_tag(std::string* tag);
private:
const std::string& _internal_tag() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_tag(const std::string& value);
std::string* _internal_mutable_tag();
public:
// optional bytes public_key = 2;
bool has_public_key() const;
private:
bool _internal_has_public_key() const;
public:
void clear_public_key();
const std::string& public_key() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_public_key(ArgT0&& arg0, ArgT... args);
std::string* mutable_public_key();
PROTOBUF_NODISCARD std::string* release_public_key();
void set_allocated_public_key(std::string* public_key);
private:
const std::string& _internal_public_key() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value);
std::string* _internal_mutable_public_key();
public:
// @@protoc_insertion_point(class_scope:location.nearby.mediums.AdvertisementData)
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 tag_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_;
friend struct ::TableStruct_proto_2fmediums_2fnfc_5fframes_2eproto;
};
// -------------------------------------------------------------------
class AdvertisementRequest final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:location.nearby.mediums.AdvertisementRequest) */ {
public:
inline AdvertisementRequest() : AdvertisementRequest(nullptr) {}
~AdvertisementRequest() override;
explicit constexpr AdvertisementRequest(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
AdvertisementRequest(const AdvertisementRequest& from);
AdvertisementRequest(AdvertisementRequest&& from) noexcept
: AdvertisementRequest() {
*this = ::std::move(from);
}
inline AdvertisementRequest& operator=(const AdvertisementRequest& from) {
CopyFrom(from);
return *this;
}
inline AdvertisementRequest& operator=(AdvertisementRequest&& 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 AdvertisementRequest& default_instance() {
return *internal_default_instance();
}
static inline const AdvertisementRequest* internal_default_instance() {
return reinterpret_cast<const AdvertisementRequest*>(
&_AdvertisementRequest_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(AdvertisementRequest& a, AdvertisementRequest& b) {
a.Swap(&b);
}
inline void Swap(AdvertisementRequest* 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(AdvertisementRequest* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
AdvertisementRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<AdvertisementRequest>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const AdvertisementRequest& from);
void MergeFrom(const AdvertisementRequest& 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(AdvertisementRequest* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "location.nearby.mediums.AdvertisementRequest";
}
protected:
explicit AdvertisementRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
private:
static void ArenaDtor(void* object);
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kServiceIdFieldNumber = 1,
kEndpointIdFieldNumber = 2,
kPublicKeyFieldNumber = 3,
};
// optional string service_id = 1;
bool has_service_id() const;
private:
bool _internal_has_service_id() const;
public:
void clear_service_id();
const std::string& service_id() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_service_id(ArgT0&& arg0, ArgT... args);
std::string* mutable_service_id();
PROTOBUF_NODISCARD std::string* release_service_id();
void set_allocated_service_id(std::string* service_id);
private:
const std::string& _internal_service_id() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_service_id(const std::string& value);
std::string* _internal_mutable_service_id();
public:
// optional string endpoint_id = 2;
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 bytes public_key = 3;
bool has_public_key() const;
private:
bool _internal_has_public_key() const;
public:
void clear_public_key();
const std::string& public_key() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_public_key(ArgT0&& arg0, ArgT... args);
std::string* mutable_public_key();
PROTOBUF_NODISCARD std::string* release_public_key();
void set_allocated_public_key(std::string* public_key);
private:
const std::string& _internal_public_key() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value);
std::string* _internal_mutable_public_key();
public:
// @@protoc_insertion_point(class_scope:location.nearby.mediums.AdvertisementRequest)
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 service_id_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr endpoint_id_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_;
friend struct ::TableStruct_proto_2fmediums_2fnfc_5fframes_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// AdvertisementData
// optional bytes tag = 1;
inline bool AdvertisementData::_internal_has_tag() const {
bool value = (_has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline bool AdvertisementData::has_tag() const {
return _internal_has_tag();
}
inline void AdvertisementData::clear_tag() {
tag_.ClearToEmpty();
_has_bits_[0] &= ~0x00000001u;
}
inline const std::string& AdvertisementData::tag() const {
// @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementData.tag)
return _internal_tag();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void AdvertisementData::set_tag(ArgT0&& arg0, ArgT... args) {
_has_bits_[0] |= 0x00000001u;
tag_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementData.tag)
}
inline std::string* AdvertisementData::mutable_tag() {
std::string* _s = _internal_mutable_tag();
// @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementData.tag)
return _s;
}
inline const std::string& AdvertisementData::_internal_tag() const {
return tag_.Get();
}
inline void AdvertisementData::_internal_set_tag(const std::string& value) {
_has_bits_[0] |= 0x00000001u;
tag_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* AdvertisementData::_internal_mutable_tag() {
_has_bits_[0] |= 0x00000001u;
return tag_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* AdvertisementData::release_tag() {
// @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementData.tag)
if (!_internal_has_tag()) {
return nullptr;
}
_has_bits_[0] &= ~0x00000001u;
auto* p = tag_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (tag_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return p;
}
inline void AdvertisementData::set_allocated_tag(std::string* tag) {
if (tag != nullptr) {
_has_bits_[0] |= 0x00000001u;
} else {
_has_bits_[0] &= ~0x00000001u;
}
tag_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), tag,
GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (tag_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
tag_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementData.tag)
}
// optional bytes public_key = 2;
inline bool AdvertisementData::_internal_has_public_key() const {
bool value = (_has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline bool AdvertisementData::has_public_key() const {
return _internal_has_public_key();
}
inline void AdvertisementData::clear_public_key() {
public_key_.ClearToEmpty();
_has_bits_[0] &= ~0x00000002u;
}
inline const std::string& AdvertisementData::public_key() const {
// @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementData.public_key)
return _internal_public_key();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void AdvertisementData::set_public_key(ArgT0&& arg0, ArgT... args) {
_has_bits_[0] |= 0x00000002u;
public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementData.public_key)
}
inline std::string* AdvertisementData::mutable_public_key() {
std::string* _s = _internal_mutable_public_key();
// @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementData.public_key)
return _s;
}
inline const std::string& AdvertisementData::_internal_public_key() const {
return public_key_.Get();
}
inline void AdvertisementData::_internal_set_public_key(const std::string& value) {
_has_bits_[0] |= 0x00000002u;
public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* AdvertisementData::_internal_mutable_public_key() {
_has_bits_[0] |= 0x00000002u;
return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* AdvertisementData::release_public_key() {
// @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementData.public_key)
if (!_internal_has_public_key()) {
return nullptr;
}
_has_bits_[0] &= ~0x00000002u;
auto* p = public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return p;
}
inline void AdvertisementData::set_allocated_public_key(std::string* public_key) {
if (public_key != nullptr) {
_has_bits_[0] |= 0x00000002u;
} else {
_has_bits_[0] &= ~0x00000002u;
}
public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key,
GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementData.public_key)
}
// -------------------------------------------------------------------
// AdvertisementRequest
// optional string service_id = 1;
inline bool AdvertisementRequest::_internal_has_service_id() const {
bool value = (_has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline bool AdvertisementRequest::has_service_id() const {
return _internal_has_service_id();
}
inline void AdvertisementRequest::clear_service_id() {
service_id_.ClearToEmpty();
_has_bits_[0] &= ~0x00000001u;
}
inline const std::string& AdvertisementRequest::service_id() const {
// @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementRequest.service_id)
return _internal_service_id();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void AdvertisementRequest::set_service_id(ArgT0&& arg0, ArgT... args) {
_has_bits_[0] |= 0x00000001u;
service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementRequest.service_id)
}
inline std::string* AdvertisementRequest::mutable_service_id() {
std::string* _s = _internal_mutable_service_id();
// @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementRequest.service_id)
return _s;
}
inline const std::string& AdvertisementRequest::_internal_service_id() const {
return service_id_.Get();
}
inline void AdvertisementRequest::_internal_set_service_id(const std::string& value) {
_has_bits_[0] |= 0x00000001u;
service_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* AdvertisementRequest::_internal_mutable_service_id() {
_has_bits_[0] |= 0x00000001u;
return service_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* AdvertisementRequest::release_service_id() {
// @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementRequest.service_id)
if (!_internal_has_service_id()) {
return nullptr;
}
_has_bits_[0] &= ~0x00000001u;
auto* p = service_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (service_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return p;
}
inline void AdvertisementRequest::set_allocated_service_id(std::string* service_id) {
if (service_id != nullptr) {
_has_bits_[0] |= 0x00000001u;
} else {
_has_bits_[0] &= ~0x00000001u;
}
service_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), service_id,
GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (service_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
service_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementRequest.service_id)
}
// optional string endpoint_id = 2;
inline bool AdvertisementRequest::_internal_has_endpoint_id() const {
bool value = (_has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline bool AdvertisementRequest::has_endpoint_id() const {
return _internal_has_endpoint_id();
}
inline void AdvertisementRequest::clear_endpoint_id() {
endpoint_id_.ClearToEmpty();
_has_bits_[0] &= ~0x00000002u;
}
inline const std::string& AdvertisementRequest::endpoint_id() const {
// @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementRequest.endpoint_id)
return _internal_endpoint_id();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void AdvertisementRequest::set_endpoint_id(ArgT0&& arg0, ArgT... args) {
_has_bits_[0] |= 0x00000002u;
endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementRequest.endpoint_id)
}
inline std::string* AdvertisementRequest::mutable_endpoint_id() {
std::string* _s = _internal_mutable_endpoint_id();
// @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementRequest.endpoint_id)
return _s;
}
inline const std::string& AdvertisementRequest::_internal_endpoint_id() const {
return endpoint_id_.Get();
}
inline void AdvertisementRequest::_internal_set_endpoint_id(const std::string& value) {
_has_bits_[0] |= 0x00000002u;
endpoint_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* AdvertisementRequest::_internal_mutable_endpoint_id() {
_has_bits_[0] |= 0x00000002u;
return endpoint_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* AdvertisementRequest::release_endpoint_id() {
// @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementRequest.endpoint_id)
if (!_internal_has_endpoint_id()) {
return nullptr;
}
_has_bits_[0] &= ~0x00000002u;
auto* p = endpoint_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return p;
}
inline void AdvertisementRequest::set_allocated_endpoint_id(std::string* endpoint_id) {
if (endpoint_id != nullptr) {
_has_bits_[0] |= 0x00000002u;
} else {
_has_bits_[0] &= ~0x00000002u;
}
endpoint_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), endpoint_id,
GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (endpoint_id_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
endpoint_id_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementRequest.endpoint_id)
}
// optional bytes public_key = 3;
inline bool AdvertisementRequest::_internal_has_public_key() const {
bool value = (_has_bits_[0] & 0x00000004u) != 0;
return value;
}
inline bool AdvertisementRequest::has_public_key() const {
return _internal_has_public_key();
}
inline void AdvertisementRequest::clear_public_key() {
public_key_.ClearToEmpty();
_has_bits_[0] &= ~0x00000004u;
}
inline const std::string& AdvertisementRequest::public_key() const {
// @@protoc_insertion_point(field_get:location.nearby.mediums.AdvertisementRequest.public_key)
return _internal_public_key();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void AdvertisementRequest::set_public_key(ArgT0&& arg0, ArgT... args) {
_has_bits_[0] |= 0x00000004u;
public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:location.nearby.mediums.AdvertisementRequest.public_key)
}
inline std::string* AdvertisementRequest::mutable_public_key() {
std::string* _s = _internal_mutable_public_key();
// @@protoc_insertion_point(field_mutable:location.nearby.mediums.AdvertisementRequest.public_key)
return _s;
}
inline const std::string& AdvertisementRequest::_internal_public_key() const {
return public_key_.Get();
}
inline void AdvertisementRequest::_internal_set_public_key(const std::string& value) {
_has_bits_[0] |= 0x00000004u;
public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* AdvertisementRequest::_internal_mutable_public_key() {
_has_bits_[0] |= 0x00000004u;
return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* AdvertisementRequest::release_public_key() {
// @@protoc_insertion_point(field_release:location.nearby.mediums.AdvertisementRequest.public_key)
if (!_internal_has_public_key()) {
return nullptr;
}
_has_bits_[0] &= ~0x00000004u;
auto* p = public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return p;
}
inline void AdvertisementRequest::set_allocated_public_key(std::string* public_key) {
if (public_key != nullptr) {
_has_bits_[0] |= 0x00000004u;
} else {
_has_bits_[0] &= ~0x00000004u;
}
public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key,
GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (public_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
public_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:location.nearby.mediums.AdvertisementRequest.public_key)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace mediums
} // namespace nearby
} // namespace location
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fmediums_2fnfc_5fframes_2eproto