PR #2453: Compile protos

Imported from GitHub PR https://github.com/google/nearby/pull/2453

<!--
  Thanks for submitting a pull request!
  We appreciate you spending the time to work on these changes. Please provide
  enough information so that others can review your pull request.
-->

## Summary

<!--
 Explain the motivation for making this change. What existing problem does the
 pull request solve?
-->

## How did you test this change?

<!--
  For example, the commands you ran and their output or screenshots / videos if
  the pull request changes the user interface.
-->

Copybara import of the project:

--
880e0076291b25a6a94ce018a86d3c15c5f55944 by ftsui <ftsui@google.com>:

Compile protos

--
3e152cb7d1183f38946ae30874879f1008ce33cb by ftsui <ftsui@google.com>:

Fix merge marker.

Merging this change closes #2453

PiperOrigin-RevId: 625469935
This commit is contained in:
ftsui
2024-04-16 15:20:35 -07:00
committed by Copybara-Service
parent 35a8289ef4
commit c14dfebf60
11 changed files with 60997 additions and 151 deletions
@@ -0,0 +1,311 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: internal/proto/analytics/experiments_log.proto
#include "internal/proto/analytics/experiments_log.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace nearby {
namespace experiments {
constexpr ExperimentsLog::ExperimentsLog(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: experiment_token_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, zwieback_cookie_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
struct ExperimentsLogDefaultTypeInternal {
constexpr ExperimentsLogDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~ExperimentsLogDefaultTypeInternal() {}
union {
ExperimentsLog _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ExperimentsLogDefaultTypeInternal _ExperimentsLog_default_instance_;
} // namespace experiments
} // namespace nearby
namespace nearby {
namespace experiments {
// ===================================================================
class ExperimentsLog::_Internal {
public:
using HasBits = decltype(std::declval<ExperimentsLog>()._has_bits_);
static void set_has_experiment_token(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
static void set_has_zwieback_cookie(HasBits* has_bits) {
(*has_bits)[0] |= 2u;
}
};
ExperimentsLog::ExperimentsLog(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:nearby.experiments.ExperimentsLog)
}
ExperimentsLog::ExperimentsLog(const ExperimentsLog& from)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
_has_bits_(from._has_bits_) {
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
experiment_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
experiment_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (from._internal_has_experiment_token()) {
experiment_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_experiment_token(),
GetArenaForAllocation());
}
zwieback_cookie_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
zwieback_cookie_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (from._internal_has_zwieback_cookie()) {
zwieback_cookie_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_zwieback_cookie(),
GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:nearby.experiments.ExperimentsLog)
}
inline void ExperimentsLog::SharedCtor() {
experiment_token_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
experiment_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
zwieback_cookie_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
zwieback_cookie_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
ExperimentsLog::~ExperimentsLog() {
// @@protoc_insertion_point(destructor:nearby.experiments.ExperimentsLog)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<std::string>();
}
inline void ExperimentsLog::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
experiment_token_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
zwieback_cookie_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
void ExperimentsLog::ArenaDtor(void* object) {
ExperimentsLog* _this = reinterpret_cast< ExperimentsLog* >(object);
(void)_this;
}
void ExperimentsLog::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void ExperimentsLog::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void ExperimentsLog::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.experiments.ExperimentsLog)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000003u) {
if (cached_has_bits & 0x00000001u) {
experiment_token_.ClearNonDefaultToEmpty();
}
if (cached_has_bits & 0x00000002u) {
zwieback_cookie_.ClearNonDefaultToEmpty();
}
}
_has_bits_.Clear();
_internal_metadata_.Clear<std::string>();
}
const char* ExperimentsLog::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional bytes experiment_token = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_experiment_token();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// optional string zwieback_cookie = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_zwieback_cookie();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<std::string>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* ExperimentsLog::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:nearby.experiments.ExperimentsLog)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional bytes experiment_token = 1;
if (cached_has_bits & 0x00000001u) {
target = stream->WriteBytesMaybeAliased(
1, this->_internal_experiment_token(), target);
}
// optional string zwieback_cookie = 2;
if (cached_has_bits & 0x00000002u) {
target = stream->WriteStringMaybeAliased(
2, this->_internal_zwieback_cookie(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:nearby.experiments.ExperimentsLog)
return target;
}
size_t ExperimentsLog::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:nearby.experiments.ExperimentsLog)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000003u) {
// optional bytes experiment_token = 1;
if (cached_has_bits & 0x00000001u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
this->_internal_experiment_token());
}
// optional string zwieback_cookie = 2;
if (cached_has_bits & 0x00000002u) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_zwieback_cookie());
}
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void ExperimentsLog::CheckTypeAndMergeFrom(
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const ExperimentsLog*>(
&from));
}
void ExperimentsLog::MergeFrom(const ExperimentsLog& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.experiments.ExperimentsLog)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = from._has_bits_[0];
if (cached_has_bits & 0x00000003u) {
if (cached_has_bits & 0x00000001u) {
_internal_set_experiment_token(from._internal_experiment_token());
}
if (cached_has_bits & 0x00000002u) {
_internal_set_zwieback_cookie(from._internal_zwieback_cookie());
}
}
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}
void ExperimentsLog::CopyFrom(const ExperimentsLog& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.experiments.ExperimentsLog)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ExperimentsLog::IsInitialized() const {
return true;
}
void ExperimentsLog::InternalSwap(ExperimentsLog* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_has_bits_[0], other->_has_bits_[0]);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&experiment_token_, lhs_arena,
&other->experiment_token_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&zwieback_cookie_, lhs_arena,
&other->zwieback_cookie_, rhs_arena
);
}
std::string ExperimentsLog::GetTypeName() const {
return "nearby.experiments.ExperimentsLog";
}
// @@protoc_insertion_point(namespace_scope)
} // namespace experiments
} // namespace nearby
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::nearby::experiments::ExperimentsLog* Arena::CreateMaybeMessage< ::nearby::experiments::ExperimentsLog >(Arena* arena) {
return Arena::CreateMessageInternal< ::nearby::experiments::ExperimentsLog >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
@@ -0,0 +1,394 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: internal/proto/analytics/experiments_log.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2fexperiments_5flog_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2fexperiments_5flog_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 3019001 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#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_internal_2fproto_2fanalytics_2fexperiments_5flog_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_internal_2fproto_2fanalytics_2fexperiments_5flog_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[1]
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 nearby {
namespace experiments {
class ExperimentsLog;
struct ExperimentsLogDefaultTypeInternal;
extern ExperimentsLogDefaultTypeInternal _ExperimentsLog_default_instance_;
} // namespace experiments
} // namespace nearby
PROTOBUF_NAMESPACE_OPEN
template<> ::nearby::experiments::ExperimentsLog* Arena::CreateMaybeMessage<::nearby::experiments::ExperimentsLog>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace nearby {
namespace experiments {
// ===================================================================
class ExperimentsLog final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.experiments.ExperimentsLog) */ {
public:
inline ExperimentsLog() : ExperimentsLog(nullptr) {}
~ExperimentsLog() override;
explicit constexpr ExperimentsLog(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ExperimentsLog(const ExperimentsLog& from);
ExperimentsLog(ExperimentsLog&& from) noexcept
: ExperimentsLog() {
*this = ::std::move(from);
}
inline ExperimentsLog& operator=(const ExperimentsLog& from) {
CopyFrom(from);
return *this;
}
inline ExperimentsLog& operator=(ExperimentsLog&& 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 ExperimentsLog& default_instance() {
return *internal_default_instance();
}
static inline const ExperimentsLog* internal_default_instance() {
return reinterpret_cast<const ExperimentsLog*>(
&_ExperimentsLog_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(ExperimentsLog& a, ExperimentsLog& b) {
a.Swap(&b);
}
inline void Swap(ExperimentsLog* 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(ExperimentsLog* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ExperimentsLog* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ExperimentsLog>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const ExperimentsLog& from);
void MergeFrom(const ExperimentsLog& 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(ExperimentsLog* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "nearby.experiments.ExperimentsLog";
}
protected:
explicit ExperimentsLog(::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 {
kExperimentTokenFieldNumber = 1,
kZwiebackCookieFieldNumber = 2,
};
// optional bytes experiment_token = 1;
bool has_experiment_token() const;
private:
bool _internal_has_experiment_token() const;
public:
void clear_experiment_token();
const std::string& experiment_token() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_experiment_token(ArgT0&& arg0, ArgT... args);
std::string* mutable_experiment_token();
PROTOBUF_NODISCARD std::string* release_experiment_token();
void set_allocated_experiment_token(std::string* experiment_token);
private:
const std::string& _internal_experiment_token() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_experiment_token(const std::string& value);
std::string* _internal_mutable_experiment_token();
public:
// optional string zwieback_cookie = 2;
bool has_zwieback_cookie() const;
private:
bool _internal_has_zwieback_cookie() const;
public:
void clear_zwieback_cookie();
const std::string& zwieback_cookie() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_zwieback_cookie(ArgT0&& arg0, ArgT... args);
std::string* mutable_zwieback_cookie();
PROTOBUF_NODISCARD std::string* release_zwieback_cookie();
void set_allocated_zwieback_cookie(std::string* zwieback_cookie);
private:
const std::string& _internal_zwieback_cookie() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_zwieback_cookie(const std::string& value);
std::string* _internal_mutable_zwieback_cookie();
public:
// @@protoc_insertion_point(class_scope:nearby.experiments.ExperimentsLog)
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 experiment_token_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr zwieback_cookie_;
friend struct ::TableStruct_internal_2fproto_2fanalytics_2fexperiments_5flog_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// ExperimentsLog
// optional bytes experiment_token = 1;
inline bool ExperimentsLog::_internal_has_experiment_token() const {
bool value = (_has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline bool ExperimentsLog::has_experiment_token() const {
return _internal_has_experiment_token();
}
inline void ExperimentsLog::clear_experiment_token() {
experiment_token_.ClearToEmpty();
_has_bits_[0] &= ~0x00000001u;
}
inline const std::string& ExperimentsLog::experiment_token() const {
// @@protoc_insertion_point(field_get:nearby.experiments.ExperimentsLog.experiment_token)
return _internal_experiment_token();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void ExperimentsLog::set_experiment_token(ArgT0&& arg0, ArgT... args) {
_has_bits_[0] |= 0x00000001u;
experiment_token_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:nearby.experiments.ExperimentsLog.experiment_token)
}
inline std::string* ExperimentsLog::mutable_experiment_token() {
std::string* _s = _internal_mutable_experiment_token();
// @@protoc_insertion_point(field_mutable:nearby.experiments.ExperimentsLog.experiment_token)
return _s;
}
inline const std::string& ExperimentsLog::_internal_experiment_token() const {
return experiment_token_.Get();
}
inline void ExperimentsLog::_internal_set_experiment_token(const std::string& value) {
_has_bits_[0] |= 0x00000001u;
experiment_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* ExperimentsLog::_internal_mutable_experiment_token() {
_has_bits_[0] |= 0x00000001u;
return experiment_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* ExperimentsLog::release_experiment_token() {
// @@protoc_insertion_point(field_release:nearby.experiments.ExperimentsLog.experiment_token)
if (!_internal_has_experiment_token()) {
return nullptr;
}
_has_bits_[0] &= ~0x00000001u;
auto* p = experiment_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (experiment_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
experiment_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return p;
}
inline void ExperimentsLog::set_allocated_experiment_token(std::string* experiment_token) {
if (experiment_token != nullptr) {
_has_bits_[0] |= 0x00000001u;
} else {
_has_bits_[0] &= ~0x00000001u;
}
experiment_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), experiment_token,
GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (experiment_token_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
experiment_token_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:nearby.experiments.ExperimentsLog.experiment_token)
}
// optional string zwieback_cookie = 2;
inline bool ExperimentsLog::_internal_has_zwieback_cookie() const {
bool value = (_has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline bool ExperimentsLog::has_zwieback_cookie() const {
return _internal_has_zwieback_cookie();
}
inline void ExperimentsLog::clear_zwieback_cookie() {
zwieback_cookie_.ClearToEmpty();
_has_bits_[0] &= ~0x00000002u;
}
inline const std::string& ExperimentsLog::zwieback_cookie() const {
// @@protoc_insertion_point(field_get:nearby.experiments.ExperimentsLog.zwieback_cookie)
return _internal_zwieback_cookie();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void ExperimentsLog::set_zwieback_cookie(ArgT0&& arg0, ArgT... args) {
_has_bits_[0] |= 0x00000002u;
zwieback_cookie_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:nearby.experiments.ExperimentsLog.zwieback_cookie)
}
inline std::string* ExperimentsLog::mutable_zwieback_cookie() {
std::string* _s = _internal_mutable_zwieback_cookie();
// @@protoc_insertion_point(field_mutable:nearby.experiments.ExperimentsLog.zwieback_cookie)
return _s;
}
inline const std::string& ExperimentsLog::_internal_zwieback_cookie() const {
return zwieback_cookie_.Get();
}
inline void ExperimentsLog::_internal_set_zwieback_cookie(const std::string& value) {
_has_bits_[0] |= 0x00000002u;
zwieback_cookie_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
}
inline std::string* ExperimentsLog::_internal_mutable_zwieback_cookie() {
_has_bits_[0] |= 0x00000002u;
return zwieback_cookie_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
}
inline std::string* ExperimentsLog::release_zwieback_cookie() {
// @@protoc_insertion_point(field_release:nearby.experiments.ExperimentsLog.zwieback_cookie)
if (!_internal_has_zwieback_cookie()) {
return nullptr;
}
_has_bits_[0] &= ~0x00000002u;
auto* p = zwieback_cookie_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (zwieback_cookie_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
zwieback_cookie_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
return p;
}
inline void ExperimentsLog::set_allocated_zwieback_cookie(std::string* zwieback_cookie) {
if (zwieback_cookie != nullptr) {
_has_bits_[0] |= 0x00000002u;
} else {
_has_bits_[0] &= ~0x00000002u;
}
zwieback_cookie_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), zwieback_cookie,
GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (zwieback_cookie_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
zwieback_cookie_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:nearby.experiments.ExperimentsLog.zwieback_cookie)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace experiments
} // namespace nearby
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_internal_2fproto_2fanalytics_2fexperiments_5flog_2eproto
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+748
View File
@@ -0,0 +1,748 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/fast_pair_enums.proto
#include "proto/fast_pair_enums.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace nearby {
namespace proto {
namespace fastpair {
constexpr FastPairEvent::FastPairEvent(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
struct FastPairEventDefaultTypeInternal {
constexpr FastPairEventDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~FastPairEventDefaultTypeInternal() {}
union {
FastPairEvent _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT FastPairEventDefaultTypeInternal _FastPairEvent_default_instance_;
} // namespace fastpair
} // namespace proto
} // namespace nearby
namespace nearby {
namespace proto {
namespace fastpair {
bool FastPairEvent_BondState_IsValid(int value) {
switch (value) {
case 0:
case 10:
case 11:
case 12:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> FastPairEvent_BondState_strings[4] = {};
static const char FastPairEvent_BondState_names[] =
"BONDED"
"BONDING"
"NONE"
"UNKNOWN_BOND_STATE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastPairEvent_BondState_entries[] = {
{ {FastPairEvent_BondState_names + 0, 6}, 12 },
{ {FastPairEvent_BondState_names + 6, 7}, 11 },
{ {FastPairEvent_BondState_names + 13, 4}, 10 },
{ {FastPairEvent_BondState_names + 17, 18}, 0 },
};
static const int FastPairEvent_BondState_entries_by_number[] = {
3, // 0 -> UNKNOWN_BOND_STATE
2, // 10 -> NONE
1, // 11 -> BONDING
0, // 12 -> BONDED
};
const std::string& FastPairEvent_BondState_Name(
FastPairEvent_BondState value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
FastPairEvent_BondState_entries,
FastPairEvent_BondState_entries_by_number,
4, FastPairEvent_BondState_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
FastPairEvent_BondState_entries,
FastPairEvent_BondState_entries_by_number,
4, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
FastPairEvent_BondState_strings[idx].get();
}
bool FastPairEvent_BondState_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_BondState* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
FastPairEvent_BondState_entries, 4, name, &int_value);
if (success) {
*value = static_cast<FastPairEvent_BondState>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr FastPairEvent_BondState FastPairEvent::UNKNOWN_BOND_STATE;
constexpr FastPairEvent_BondState FastPairEvent::NONE;
constexpr FastPairEvent_BondState FastPairEvent::BONDING;
constexpr FastPairEvent_BondState FastPairEvent::BONDED;
constexpr FastPairEvent_BondState FastPairEvent::BondState_MIN;
constexpr FastPairEvent_BondState FastPairEvent::BondState_MAX;
constexpr int FastPairEvent::BondState_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool FastPairEvent_ErrorCode_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> FastPairEvent_ErrorCode_strings[17] = {};
static const char FastPairEvent_ErrorCode_names[] =
"DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR"
"DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION"
"EXECUTION_EXCEPTION"
"INTERRUPTED"
"MDH_REMOTE_EXCEPTION"
"OTHER_ERROR"
"PARSE_EXCEPTION"
"REFLECTIVE_OPERATION_EXCEPTION"
"SUCCESS_ADDRESS_ROTATE"
"SUCCESS_RETRY_GATT_ERROR"
"SUCCESS_RETRY_GATT_TIMEOUT"
"SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR"
"SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT"
"SUCCESS_SECRET_HANDSHAKE_RECONNECT"
"SUCCESS_SIGNAL_LOST"
"TIMEOUT"
"UNKNOWN_ERROR_CODE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastPairEvent_ErrorCode_entries[] = {
{ {FastPairEvent_ErrorCode_names + 0, 41}, 16 },
{ {FastPairEvent_ErrorCode_names + 41, 38}, 15 },
{ {FastPairEvent_ErrorCode_names + 79, 19}, 5 },
{ {FastPairEvent_ErrorCode_names + 98, 11}, 3 },
{ {FastPairEvent_ErrorCode_names + 109, 20}, 7 },
{ {FastPairEvent_ErrorCode_names + 129, 11}, 1 },
{ {FastPairEvent_ErrorCode_names + 140, 15}, 6 },
{ {FastPairEvent_ErrorCode_names + 155, 30}, 4 },
{ {FastPairEvent_ErrorCode_names + 185, 22}, 13 },
{ {FastPairEvent_ErrorCode_names + 207, 24}, 8 },
{ {FastPairEvent_ErrorCode_names + 231, 26}, 9 },
{ {FastPairEvent_ErrorCode_names + 257, 36}, 10 },
{ {FastPairEvent_ErrorCode_names + 293, 38}, 11 },
{ {FastPairEvent_ErrorCode_names + 331, 34}, 12 },
{ {FastPairEvent_ErrorCode_names + 365, 19}, 14 },
{ {FastPairEvent_ErrorCode_names + 384, 7}, 2 },
{ {FastPairEvent_ErrorCode_names + 391, 18}, 0 },
};
static const int FastPairEvent_ErrorCode_entries_by_number[] = {
16, // 0 -> UNKNOWN_ERROR_CODE
5, // 1 -> OTHER_ERROR
15, // 2 -> TIMEOUT
3, // 3 -> INTERRUPTED
7, // 4 -> REFLECTIVE_OPERATION_EXCEPTION
2, // 5 -> EXECUTION_EXCEPTION
6, // 6 -> PARSE_EXCEPTION
4, // 7 -> MDH_REMOTE_EXCEPTION
9, // 8 -> SUCCESS_RETRY_GATT_ERROR
10, // 9 -> SUCCESS_RETRY_GATT_TIMEOUT
11, // 10 -> SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR
12, // 11 -> SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT
13, // 12 -> SUCCESS_SECRET_HANDSHAKE_RECONNECT
8, // 13 -> SUCCESS_ADDRESS_ROTATE
14, // 14 -> SUCCESS_SIGNAL_LOST
1, // 15 -> DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION
0, // 16 -> DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR
};
const std::string& FastPairEvent_ErrorCode_Name(
FastPairEvent_ErrorCode value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
FastPairEvent_ErrorCode_entries,
FastPairEvent_ErrorCode_entries_by_number,
17, FastPairEvent_ErrorCode_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
FastPairEvent_ErrorCode_entries,
FastPairEvent_ErrorCode_entries_by_number,
17, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
FastPairEvent_ErrorCode_strings[idx].get();
}
bool FastPairEvent_ErrorCode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_ErrorCode* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
FastPairEvent_ErrorCode_entries, 17, name, &int_value);
if (success) {
*value = static_cast<FastPairEvent_ErrorCode>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr FastPairEvent_ErrorCode FastPairEvent::UNKNOWN_ERROR_CODE;
constexpr FastPairEvent_ErrorCode FastPairEvent::OTHER_ERROR;
constexpr FastPairEvent_ErrorCode FastPairEvent::TIMEOUT;
constexpr FastPairEvent_ErrorCode FastPairEvent::INTERRUPTED;
constexpr FastPairEvent_ErrorCode FastPairEvent::REFLECTIVE_OPERATION_EXCEPTION;
constexpr FastPairEvent_ErrorCode FastPairEvent::EXECUTION_EXCEPTION;
constexpr FastPairEvent_ErrorCode FastPairEvent::PARSE_EXCEPTION;
constexpr FastPairEvent_ErrorCode FastPairEvent::MDH_REMOTE_EXCEPTION;
constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_RETRY_GATT_ERROR;
constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_RETRY_GATT_TIMEOUT;
constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR;
constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT;
constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_SECRET_HANDSHAKE_RECONNECT;
constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_ADDRESS_ROTATE;
constexpr FastPairEvent_ErrorCode FastPairEvent::SUCCESS_SIGNAL_LOST;
constexpr FastPairEvent_ErrorCode FastPairEvent::DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION;
constexpr FastPairEvent_ErrorCode FastPairEvent::DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR;
constexpr FastPairEvent_ErrorCode FastPairEvent::ErrorCode_MIN;
constexpr FastPairEvent_ErrorCode FastPairEvent::ErrorCode_MAX;
constexpr int FastPairEvent::ErrorCode_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool FastPairEvent_BrEdrHandoverErrorCode_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> FastPairEvent_BrEdrHandoverErrorCode_strings[4] = {};
static const char FastPairEvent_BrEdrHandoverErrorCode_names[] =
"BLUETOOTH_MAC_INVALID"
"CONTROL_POINT_RESULT_CODE_NOT_SUCCESS"
"TRANSPORT_BLOCK_INVALID"
"UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastPairEvent_BrEdrHandoverErrorCode_entries[] = {
{ {FastPairEvent_BrEdrHandoverErrorCode_names + 0, 21}, 2 },
{ {FastPairEvent_BrEdrHandoverErrorCode_names + 21, 37}, 1 },
{ {FastPairEvent_BrEdrHandoverErrorCode_names + 58, 23}, 3 },
{ {FastPairEvent_BrEdrHandoverErrorCode_names + 81, 34}, 0 },
};
static const int FastPairEvent_BrEdrHandoverErrorCode_entries_by_number[] = {
3, // 0 -> UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE
1, // 1 -> CONTROL_POINT_RESULT_CODE_NOT_SUCCESS
0, // 2 -> BLUETOOTH_MAC_INVALID
2, // 3 -> TRANSPORT_BLOCK_INVALID
};
const std::string& FastPairEvent_BrEdrHandoverErrorCode_Name(
FastPairEvent_BrEdrHandoverErrorCode value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
FastPairEvent_BrEdrHandoverErrorCode_entries,
FastPairEvent_BrEdrHandoverErrorCode_entries_by_number,
4, FastPairEvent_BrEdrHandoverErrorCode_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
FastPairEvent_BrEdrHandoverErrorCode_entries,
FastPairEvent_BrEdrHandoverErrorCode_entries_by_number,
4, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
FastPairEvent_BrEdrHandoverErrorCode_strings[idx].get();
}
bool FastPairEvent_BrEdrHandoverErrorCode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_BrEdrHandoverErrorCode* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
FastPairEvent_BrEdrHandoverErrorCode_entries, 4, name, &int_value);
if (success) {
*value = static_cast<FastPairEvent_BrEdrHandoverErrorCode>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE;
constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::CONTROL_POINT_RESULT_CODE_NOT_SUCCESS;
constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::BLUETOOTH_MAC_INVALID;
constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::TRANSPORT_BLOCK_INVALID;
constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::BrEdrHandoverErrorCode_MIN;
constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent::BrEdrHandoverErrorCode_MAX;
constexpr int FastPairEvent::BrEdrHandoverErrorCode_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool FastPairEvent_CreateBondErrorCode_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> FastPairEvent_CreateBondErrorCode_strings[6] = {};
static const char FastPairEvent_CreateBondErrorCode_names[] =
"BOND_BROKEN"
"FAILED_BUT_ALREADY_RECEIVE_PASS_KEY"
"INCORRECT_VARIANT"
"NO_PERMISSION"
"POSSIBLE_MITM"
"UNKNOWN_BOND_ERROR_CODE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastPairEvent_CreateBondErrorCode_entries[] = {
{ {FastPairEvent_CreateBondErrorCode_names + 0, 11}, 1 },
{ {FastPairEvent_CreateBondErrorCode_names + 11, 35}, 5 },
{ {FastPairEvent_CreateBondErrorCode_names + 46, 17}, 4 },
{ {FastPairEvent_CreateBondErrorCode_names + 63, 13}, 3 },
{ {FastPairEvent_CreateBondErrorCode_names + 76, 13}, 2 },
{ {FastPairEvent_CreateBondErrorCode_names + 89, 23}, 0 },
};
static const int FastPairEvent_CreateBondErrorCode_entries_by_number[] = {
5, // 0 -> UNKNOWN_BOND_ERROR_CODE
0, // 1 -> BOND_BROKEN
4, // 2 -> POSSIBLE_MITM
3, // 3 -> NO_PERMISSION
2, // 4 -> INCORRECT_VARIANT
1, // 5 -> FAILED_BUT_ALREADY_RECEIVE_PASS_KEY
};
const std::string& FastPairEvent_CreateBondErrorCode_Name(
FastPairEvent_CreateBondErrorCode value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
FastPairEvent_CreateBondErrorCode_entries,
FastPairEvent_CreateBondErrorCode_entries_by_number,
6, FastPairEvent_CreateBondErrorCode_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
FastPairEvent_CreateBondErrorCode_entries,
FastPairEvent_CreateBondErrorCode_entries_by_number,
6, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
FastPairEvent_CreateBondErrorCode_strings[idx].get();
}
bool FastPairEvent_CreateBondErrorCode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_CreateBondErrorCode* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
FastPairEvent_CreateBondErrorCode_entries, 6, name, &int_value);
if (success) {
*value = static_cast<FastPairEvent_CreateBondErrorCode>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::UNKNOWN_BOND_ERROR_CODE;
constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::BOND_BROKEN;
constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::POSSIBLE_MITM;
constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::NO_PERMISSION;
constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::INCORRECT_VARIANT;
constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::FAILED_BUT_ALREADY_RECEIVE_PASS_KEY;
constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::CreateBondErrorCode_MIN;
constexpr FastPairEvent_CreateBondErrorCode FastPairEvent::CreateBondErrorCode_MAX;
constexpr int FastPairEvent::CreateBondErrorCode_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool FastPairEvent_ConnectErrorCode_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> FastPairEvent_ConnectErrorCode_strings[7] = {};
static const char FastPairEvent_ConnectErrorCode_names[] =
"DISCONNECTED"
"DISCOVERY_NOT_FINISHED"
"FAIL_TO_DISCOVERY"
"GET_PROFILE_PROXY_FAILED"
"LINK_KEY_CLEARED"
"UNKNOWN_CONNECT_ERROR_CODE"
"UNSUPPORTED_PROFILE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry FastPairEvent_ConnectErrorCode_entries[] = {
{ {FastPairEvent_ConnectErrorCode_names + 0, 12}, 3 },
{ {FastPairEvent_ConnectErrorCode_names + 12, 22}, 6 },
{ {FastPairEvent_ConnectErrorCode_names + 34, 17}, 5 },
{ {FastPairEvent_ConnectErrorCode_names + 51, 24}, 2 },
{ {FastPairEvent_ConnectErrorCode_names + 75, 16}, 4 },
{ {FastPairEvent_ConnectErrorCode_names + 91, 26}, 0 },
{ {FastPairEvent_ConnectErrorCode_names + 117, 19}, 1 },
};
static const int FastPairEvent_ConnectErrorCode_entries_by_number[] = {
5, // 0 -> UNKNOWN_CONNECT_ERROR_CODE
6, // 1 -> UNSUPPORTED_PROFILE
3, // 2 -> GET_PROFILE_PROXY_FAILED
0, // 3 -> DISCONNECTED
4, // 4 -> LINK_KEY_CLEARED
2, // 5 -> FAIL_TO_DISCOVERY
1, // 6 -> DISCOVERY_NOT_FINISHED
};
const std::string& FastPairEvent_ConnectErrorCode_Name(
FastPairEvent_ConnectErrorCode value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
FastPairEvent_ConnectErrorCode_entries,
FastPairEvent_ConnectErrorCode_entries_by_number,
7, FastPairEvent_ConnectErrorCode_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
FastPairEvent_ConnectErrorCode_entries,
FastPairEvent_ConnectErrorCode_entries_by_number,
7, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
FastPairEvent_ConnectErrorCode_strings[idx].get();
}
bool FastPairEvent_ConnectErrorCode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_ConnectErrorCode* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
FastPairEvent_ConnectErrorCode_entries, 7, name, &int_value);
if (success) {
*value = static_cast<FastPairEvent_ConnectErrorCode>(int_value);
}
return success;
}
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr FastPairEvent_ConnectErrorCode FastPairEvent::UNKNOWN_CONNECT_ERROR_CODE;
constexpr FastPairEvent_ConnectErrorCode FastPairEvent::UNSUPPORTED_PROFILE;
constexpr FastPairEvent_ConnectErrorCode FastPairEvent::GET_PROFILE_PROXY_FAILED;
constexpr FastPairEvent_ConnectErrorCode FastPairEvent::DISCONNECTED;
constexpr FastPairEvent_ConnectErrorCode FastPairEvent::LINK_KEY_CLEARED;
constexpr FastPairEvent_ConnectErrorCode FastPairEvent::FAIL_TO_DISCOVERY;
constexpr FastPairEvent_ConnectErrorCode FastPairEvent::DISCOVERY_NOT_FINISHED;
constexpr FastPairEvent_ConnectErrorCode FastPairEvent::ConnectErrorCode_MIN;
constexpr FastPairEvent_ConnectErrorCode FastPairEvent::ConnectErrorCode_MAX;
constexpr int FastPairEvent::ConnectErrorCode_ARRAYSIZE;
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
bool DeviceType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> DeviceType_strings[7] = {};
static const char DeviceType_names[] =
"AUTO"
"PC"
"PHONE"
"TABLET"
"TV"
"UNKNOWN_DEVICE_TYPE"
"WEARABLE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DeviceType_entries[] = {
{ {DeviceType_names + 0, 4}, 3 },
{ {DeviceType_names + 4, 2}, 4 },
{ {DeviceType_names + 6, 5}, 1 },
{ {DeviceType_names + 11, 6}, 6 },
{ {DeviceType_names + 17, 2}, 5 },
{ {DeviceType_names + 19, 19}, 0 },
{ {DeviceType_names + 38, 8}, 2 },
};
static const int DeviceType_entries_by_number[] = {
5, // 0 -> UNKNOWN_DEVICE_TYPE
2, // 1 -> PHONE
6, // 2 -> WEARABLE
0, // 3 -> AUTO
1, // 4 -> PC
4, // 5 -> TV
3, // 6 -> TABLET
};
const std::string& DeviceType_Name(
DeviceType value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
DeviceType_entries,
DeviceType_entries_by_number,
7, DeviceType_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
DeviceType_entries,
DeviceType_entries_by_number,
7, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
DeviceType_strings[idx].get();
}
bool DeviceType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
DeviceType_entries, 7, name, &int_value);
if (success) {
*value = static_cast<DeviceType>(int_value);
}
return success;
}
bool OsType_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> OsType_strings[3] = {};
static const char OsType_names[] =
"ANDROID"
"CHROME_OS"
"UNKNOWN_OS_TYPE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OsType_entries[] = {
{ {OsType_names + 0, 7}, 1 },
{ {OsType_names + 7, 9}, 2 },
{ {OsType_names + 16, 15}, 0 },
};
static const int OsType_entries_by_number[] = {
2, // 0 -> UNKNOWN_OS_TYPE
0, // 1 -> ANDROID
1, // 2 -> CHROME_OS
};
const std::string& OsType_Name(
OsType value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
OsType_entries,
OsType_entries_by_number,
3, OsType_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
OsType_entries,
OsType_entries_by_number,
3, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
OsType_strings[idx].get();
}
bool OsType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OsType* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
OsType_entries, 3, name, &int_value);
if (success) {
*value = static_cast<OsType>(int_value);
}
return success;
}
// ===================================================================
class FastPairEvent::_Internal {
public:
};
FastPairEvent::FastPairEvent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:nearby.proto.fastpair.FastPairEvent)
}
FastPairEvent::FastPairEvent(const FastPairEvent& from)
: ::PROTOBUF_NAMESPACE_ID::MessageLite() {
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
// @@protoc_insertion_point(copy_constructor:nearby.proto.fastpair.FastPairEvent)
}
inline void FastPairEvent::SharedCtor() {
}
FastPairEvent::~FastPairEvent() {
// @@protoc_insertion_point(destructor:nearby.proto.fastpair.FastPairEvent)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<std::string>();
}
inline void FastPairEvent::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void FastPairEvent::ArenaDtor(void* object) {
FastPairEvent* _this = reinterpret_cast< FastPairEvent* >(object);
(void)_this;
}
void FastPairEvent::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void FastPairEvent::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void FastPairEvent::Clear() {
// @@protoc_insertion_point(message_clear_start:nearby.proto.fastpair.FastPairEvent)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_internal_metadata_.Clear<std::string>();
}
const char* FastPairEvent::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<std::string>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* FastPairEvent::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:nearby.proto.fastpair.FastPairEvent)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
}
// @@protoc_insertion_point(serialize_to_array_end:nearby.proto.fastpair.FastPairEvent)
return target;
}
size_t FastPairEvent::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:nearby.proto.fastpair.FastPairEvent)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
}
int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
SetCachedSize(cached_size);
return total_size;
}
void FastPairEvent::CheckTypeAndMergeFrom(
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const FastPairEvent*>(
&from));
}
void FastPairEvent::MergeFrom(const FastPairEvent& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:nearby.proto.fastpair.FastPairEvent)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}
void FastPairEvent::CopyFrom(const FastPairEvent& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:nearby.proto.fastpair.FastPairEvent)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FastPairEvent::IsInitialized() const {
return true;
}
void FastPairEvent::InternalSwap(FastPairEvent* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
}
std::string FastPairEvent::GetTypeName() const {
return "nearby.proto.fastpair.FastPairEvent";
}
// @@protoc_insertion_point(namespace_scope)
} // namespace fastpair
} // namespace proto
} // namespace nearby
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::nearby::proto::fastpair::FastPairEvent* Arena::CreateMaybeMessage< ::nearby::proto::fastpair::FastPairEvent >(Arena* arena) {
return Arena::CreateMessageInternal< ::nearby::proto::fastpair::FastPairEvent >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
+583
View File
@@ -0,0 +1,583 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/fast_pair_enums.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2ffast_5fpair_5fenums_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_proto_2ffast_5fpair_5fenums_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 3019001 < PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#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_proto_2ffast_5fpair_5fenums_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_proto_2ffast_5fpair_5fenums_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[1]
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 nearby {
namespace proto {
namespace fastpair {
class FastPairEvent;
struct FastPairEventDefaultTypeInternal;
extern FastPairEventDefaultTypeInternal _FastPairEvent_default_instance_;
} // namespace fastpair
} // namespace proto
} // namespace nearby
PROTOBUF_NAMESPACE_OPEN
template<> ::nearby::proto::fastpair::FastPairEvent* Arena::CreateMaybeMessage<::nearby::proto::fastpair::FastPairEvent>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace nearby {
namespace proto {
namespace fastpair {
enum FastPairEvent_BondState : int {
FastPairEvent_BondState_UNKNOWN_BOND_STATE = 0,
FastPairEvent_BondState_NONE = 10,
FastPairEvent_BondState_BONDING = 11,
FastPairEvent_BondState_BONDED = 12
};
bool FastPairEvent_BondState_IsValid(int value);
constexpr FastPairEvent_BondState FastPairEvent_BondState_BondState_MIN = FastPairEvent_BondState_UNKNOWN_BOND_STATE;
constexpr FastPairEvent_BondState FastPairEvent_BondState_BondState_MAX = FastPairEvent_BondState_BONDED;
constexpr int FastPairEvent_BondState_BondState_ARRAYSIZE = FastPairEvent_BondState_BondState_MAX + 1;
const std::string& FastPairEvent_BondState_Name(FastPairEvent_BondState value);
template<typename T>
inline const std::string& FastPairEvent_BondState_Name(T enum_t_value) {
static_assert(::std::is_same<T, FastPairEvent_BondState>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function FastPairEvent_BondState_Name.");
return FastPairEvent_BondState_Name(static_cast<FastPairEvent_BondState>(enum_t_value));
}
bool FastPairEvent_BondState_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_BondState* value);
enum FastPairEvent_ErrorCode : int {
FastPairEvent_ErrorCode_UNKNOWN_ERROR_CODE = 0,
FastPairEvent_ErrorCode_OTHER_ERROR = 1,
FastPairEvent_ErrorCode_TIMEOUT = 2,
FastPairEvent_ErrorCode_INTERRUPTED = 3,
FastPairEvent_ErrorCode_REFLECTIVE_OPERATION_EXCEPTION = 4,
FastPairEvent_ErrorCode_EXECUTION_EXCEPTION = 5,
FastPairEvent_ErrorCode_PARSE_EXCEPTION = 6,
FastPairEvent_ErrorCode_MDH_REMOTE_EXCEPTION = 7,
FastPairEvent_ErrorCode_SUCCESS_RETRY_GATT_ERROR = 8,
FastPairEvent_ErrorCode_SUCCESS_RETRY_GATT_TIMEOUT = 9,
FastPairEvent_ErrorCode_SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR = 10,
FastPairEvent_ErrorCode_SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT = 11,
FastPairEvent_ErrorCode_SUCCESS_SECRET_HANDSHAKE_RECONNECT = 12,
FastPairEvent_ErrorCode_SUCCESS_ADDRESS_ROTATE = 13,
FastPairEvent_ErrorCode_SUCCESS_SIGNAL_LOST = 14,
FastPairEvent_ErrorCode_DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION = 15,
FastPairEvent_ErrorCode_DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR = 16
};
bool FastPairEvent_ErrorCode_IsValid(int value);
constexpr FastPairEvent_ErrorCode FastPairEvent_ErrorCode_ErrorCode_MIN = FastPairEvent_ErrorCode_UNKNOWN_ERROR_CODE;
constexpr FastPairEvent_ErrorCode FastPairEvent_ErrorCode_ErrorCode_MAX = FastPairEvent_ErrorCode_DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR;
constexpr int FastPairEvent_ErrorCode_ErrorCode_ARRAYSIZE = FastPairEvent_ErrorCode_ErrorCode_MAX + 1;
const std::string& FastPairEvent_ErrorCode_Name(FastPairEvent_ErrorCode value);
template<typename T>
inline const std::string& FastPairEvent_ErrorCode_Name(T enum_t_value) {
static_assert(::std::is_same<T, FastPairEvent_ErrorCode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function FastPairEvent_ErrorCode_Name.");
return FastPairEvent_ErrorCode_Name(static_cast<FastPairEvent_ErrorCode>(enum_t_value));
}
bool FastPairEvent_ErrorCode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_ErrorCode* value);
enum FastPairEvent_BrEdrHandoverErrorCode : int {
FastPairEvent_BrEdrHandoverErrorCode_UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE = 0,
FastPairEvent_BrEdrHandoverErrorCode_CONTROL_POINT_RESULT_CODE_NOT_SUCCESS = 1,
FastPairEvent_BrEdrHandoverErrorCode_BLUETOOTH_MAC_INVALID = 2,
FastPairEvent_BrEdrHandoverErrorCode_TRANSPORT_BLOCK_INVALID = 3
};
bool FastPairEvent_BrEdrHandoverErrorCode_IsValid(int value);
constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_MIN = FastPairEvent_BrEdrHandoverErrorCode_UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE;
constexpr FastPairEvent_BrEdrHandoverErrorCode FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_MAX = FastPairEvent_BrEdrHandoverErrorCode_TRANSPORT_BLOCK_INVALID;
constexpr int FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_ARRAYSIZE = FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_MAX + 1;
const std::string& FastPairEvent_BrEdrHandoverErrorCode_Name(FastPairEvent_BrEdrHandoverErrorCode value);
template<typename T>
inline const std::string& FastPairEvent_BrEdrHandoverErrorCode_Name(T enum_t_value) {
static_assert(::std::is_same<T, FastPairEvent_BrEdrHandoverErrorCode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function FastPairEvent_BrEdrHandoverErrorCode_Name.");
return FastPairEvent_BrEdrHandoverErrorCode_Name(static_cast<FastPairEvent_BrEdrHandoverErrorCode>(enum_t_value));
}
bool FastPairEvent_BrEdrHandoverErrorCode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_BrEdrHandoverErrorCode* value);
enum FastPairEvent_CreateBondErrorCode : int {
FastPairEvent_CreateBondErrorCode_UNKNOWN_BOND_ERROR_CODE = 0,
FastPairEvent_CreateBondErrorCode_BOND_BROKEN = 1,
FastPairEvent_CreateBondErrorCode_POSSIBLE_MITM = 2,
FastPairEvent_CreateBondErrorCode_NO_PERMISSION = 3,
FastPairEvent_CreateBondErrorCode_INCORRECT_VARIANT = 4,
FastPairEvent_CreateBondErrorCode_FAILED_BUT_ALREADY_RECEIVE_PASS_KEY = 5
};
bool FastPairEvent_CreateBondErrorCode_IsValid(int value);
constexpr FastPairEvent_CreateBondErrorCode FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_MIN = FastPairEvent_CreateBondErrorCode_UNKNOWN_BOND_ERROR_CODE;
constexpr FastPairEvent_CreateBondErrorCode FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_MAX = FastPairEvent_CreateBondErrorCode_FAILED_BUT_ALREADY_RECEIVE_PASS_KEY;
constexpr int FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_ARRAYSIZE = FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_MAX + 1;
const std::string& FastPairEvent_CreateBondErrorCode_Name(FastPairEvent_CreateBondErrorCode value);
template<typename T>
inline const std::string& FastPairEvent_CreateBondErrorCode_Name(T enum_t_value) {
static_assert(::std::is_same<T, FastPairEvent_CreateBondErrorCode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function FastPairEvent_CreateBondErrorCode_Name.");
return FastPairEvent_CreateBondErrorCode_Name(static_cast<FastPairEvent_CreateBondErrorCode>(enum_t_value));
}
bool FastPairEvent_CreateBondErrorCode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_CreateBondErrorCode* value);
enum FastPairEvent_ConnectErrorCode : int {
FastPairEvent_ConnectErrorCode_UNKNOWN_CONNECT_ERROR_CODE = 0,
FastPairEvent_ConnectErrorCode_UNSUPPORTED_PROFILE = 1,
FastPairEvent_ConnectErrorCode_GET_PROFILE_PROXY_FAILED = 2,
FastPairEvent_ConnectErrorCode_DISCONNECTED = 3,
FastPairEvent_ConnectErrorCode_LINK_KEY_CLEARED = 4,
FastPairEvent_ConnectErrorCode_FAIL_TO_DISCOVERY = 5,
FastPairEvent_ConnectErrorCode_DISCOVERY_NOT_FINISHED = 6
};
bool FastPairEvent_ConnectErrorCode_IsValid(int value);
constexpr FastPairEvent_ConnectErrorCode FastPairEvent_ConnectErrorCode_ConnectErrorCode_MIN = FastPairEvent_ConnectErrorCode_UNKNOWN_CONNECT_ERROR_CODE;
constexpr FastPairEvent_ConnectErrorCode FastPairEvent_ConnectErrorCode_ConnectErrorCode_MAX = FastPairEvent_ConnectErrorCode_DISCOVERY_NOT_FINISHED;
constexpr int FastPairEvent_ConnectErrorCode_ConnectErrorCode_ARRAYSIZE = FastPairEvent_ConnectErrorCode_ConnectErrorCode_MAX + 1;
const std::string& FastPairEvent_ConnectErrorCode_Name(FastPairEvent_ConnectErrorCode value);
template<typename T>
inline const std::string& FastPairEvent_ConnectErrorCode_Name(T enum_t_value) {
static_assert(::std::is_same<T, FastPairEvent_ConnectErrorCode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function FastPairEvent_ConnectErrorCode_Name.");
return FastPairEvent_ConnectErrorCode_Name(static_cast<FastPairEvent_ConnectErrorCode>(enum_t_value));
}
bool FastPairEvent_ConnectErrorCode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FastPairEvent_ConnectErrorCode* value);
enum DeviceType : int {
UNKNOWN_DEVICE_TYPE = 0,
PHONE = 1,
WEARABLE = 2,
AUTO = 3,
PC = 4,
TV = 5,
TABLET = 6
};
bool DeviceType_IsValid(int value);
constexpr DeviceType DeviceType_MIN = UNKNOWN_DEVICE_TYPE;
constexpr DeviceType DeviceType_MAX = TABLET;
constexpr int DeviceType_ARRAYSIZE = DeviceType_MAX + 1;
const std::string& DeviceType_Name(DeviceType value);
template<typename T>
inline const std::string& DeviceType_Name(T enum_t_value) {
static_assert(::std::is_same<T, DeviceType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function DeviceType_Name.");
return DeviceType_Name(static_cast<DeviceType>(enum_t_value));
}
bool DeviceType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DeviceType* value);
enum OsType : int {
UNKNOWN_OS_TYPE = 0,
ANDROID = 1,
CHROME_OS = 2
};
bool OsType_IsValid(int value);
constexpr OsType OsType_MIN = UNKNOWN_OS_TYPE;
constexpr OsType OsType_MAX = CHROME_OS;
constexpr int OsType_ARRAYSIZE = OsType_MAX + 1;
const std::string& OsType_Name(OsType value);
template<typename T>
inline const std::string& OsType_Name(T enum_t_value) {
static_assert(::std::is_same<T, OsType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function OsType_Name.");
return OsType_Name(static_cast<OsType>(enum_t_value));
}
bool OsType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OsType* value);
// ===================================================================
class FastPairEvent final :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:nearby.proto.fastpair.FastPairEvent) */ {
public:
inline FastPairEvent() : FastPairEvent(nullptr) {}
~FastPairEvent() override;
explicit constexpr FastPairEvent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
FastPairEvent(const FastPairEvent& from);
FastPairEvent(FastPairEvent&& from) noexcept
: FastPairEvent() {
*this = ::std::move(from);
}
inline FastPairEvent& operator=(const FastPairEvent& from) {
CopyFrom(from);
return *this;
}
inline FastPairEvent& operator=(FastPairEvent&& 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 FastPairEvent& default_instance() {
return *internal_default_instance();
}
static inline const FastPairEvent* internal_default_instance() {
return reinterpret_cast<const FastPairEvent*>(
&_FastPairEvent_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(FastPairEvent& a, FastPairEvent& b) {
a.Swap(&b);
}
inline void Swap(FastPairEvent* 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(FastPairEvent* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
FastPairEvent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<FastPairEvent>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
void CopyFrom(const FastPairEvent& from);
void MergeFrom(const FastPairEvent& 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(FastPairEvent* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "nearby.proto.fastpair.FastPairEvent";
}
protected:
explicit FastPairEvent(::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 FastPairEvent_BondState BondState;
static constexpr BondState UNKNOWN_BOND_STATE =
FastPairEvent_BondState_UNKNOWN_BOND_STATE;
static constexpr BondState NONE =
FastPairEvent_BondState_NONE;
static constexpr BondState BONDING =
FastPairEvent_BondState_BONDING;
static constexpr BondState BONDED =
FastPairEvent_BondState_BONDED;
static inline bool BondState_IsValid(int value) {
return FastPairEvent_BondState_IsValid(value);
}
static constexpr BondState BondState_MIN =
FastPairEvent_BondState_BondState_MIN;
static constexpr BondState BondState_MAX =
FastPairEvent_BondState_BondState_MAX;
static constexpr int BondState_ARRAYSIZE =
FastPairEvent_BondState_BondState_ARRAYSIZE;
template<typename T>
static inline const std::string& BondState_Name(T enum_t_value) {
static_assert(::std::is_same<T, BondState>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function BondState_Name.");
return FastPairEvent_BondState_Name(enum_t_value);
}
static inline bool BondState_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
BondState* value) {
return FastPairEvent_BondState_Parse(name, value);
}
typedef FastPairEvent_ErrorCode ErrorCode;
static constexpr ErrorCode UNKNOWN_ERROR_CODE =
FastPairEvent_ErrorCode_UNKNOWN_ERROR_CODE;
static constexpr ErrorCode OTHER_ERROR =
FastPairEvent_ErrorCode_OTHER_ERROR;
static constexpr ErrorCode TIMEOUT =
FastPairEvent_ErrorCode_TIMEOUT;
static constexpr ErrorCode INTERRUPTED =
FastPairEvent_ErrorCode_INTERRUPTED;
static constexpr ErrorCode REFLECTIVE_OPERATION_EXCEPTION =
FastPairEvent_ErrorCode_REFLECTIVE_OPERATION_EXCEPTION;
static constexpr ErrorCode EXECUTION_EXCEPTION =
FastPairEvent_ErrorCode_EXECUTION_EXCEPTION;
static constexpr ErrorCode PARSE_EXCEPTION =
FastPairEvent_ErrorCode_PARSE_EXCEPTION;
static constexpr ErrorCode MDH_REMOTE_EXCEPTION =
FastPairEvent_ErrorCode_MDH_REMOTE_EXCEPTION;
static constexpr ErrorCode SUCCESS_RETRY_GATT_ERROR =
FastPairEvent_ErrorCode_SUCCESS_RETRY_GATT_ERROR;
static constexpr ErrorCode SUCCESS_RETRY_GATT_TIMEOUT =
FastPairEvent_ErrorCode_SUCCESS_RETRY_GATT_TIMEOUT;
static constexpr ErrorCode SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR =
FastPairEvent_ErrorCode_SUCCESS_RETRY_SECRET_HANDSHAKE_ERROR;
static constexpr ErrorCode SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT =
FastPairEvent_ErrorCode_SUCCESS_RETRY_SECRET_HANDSHAKE_TIMEOUT;
static constexpr ErrorCode SUCCESS_SECRET_HANDSHAKE_RECONNECT =
FastPairEvent_ErrorCode_SUCCESS_SECRET_HANDSHAKE_RECONNECT;
static constexpr ErrorCode SUCCESS_ADDRESS_ROTATE =
FastPairEvent_ErrorCode_SUCCESS_ADDRESS_ROTATE;
static constexpr ErrorCode SUCCESS_SIGNAL_LOST =
FastPairEvent_ErrorCode_SUCCESS_SIGNAL_LOST;
static constexpr ErrorCode DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION =
FastPairEvent_ErrorCode_DEVICE_NOT_IN_PAIRED_HISTORY_EXCEPTION;
static constexpr ErrorCode DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR =
FastPairEvent_ErrorCode_DEVICE_NOT_BONDED_DURING_RETROACTIVE_PAIR;
static inline bool ErrorCode_IsValid(int value) {
return FastPairEvent_ErrorCode_IsValid(value);
}
static constexpr ErrorCode ErrorCode_MIN =
FastPairEvent_ErrorCode_ErrorCode_MIN;
static constexpr ErrorCode ErrorCode_MAX =
FastPairEvent_ErrorCode_ErrorCode_MAX;
static constexpr int ErrorCode_ARRAYSIZE =
FastPairEvent_ErrorCode_ErrorCode_ARRAYSIZE;
template<typename T>
static inline const std::string& ErrorCode_Name(T enum_t_value) {
static_assert(::std::is_same<T, ErrorCode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ErrorCode_Name.");
return FastPairEvent_ErrorCode_Name(enum_t_value);
}
static inline bool ErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
ErrorCode* value) {
return FastPairEvent_ErrorCode_Parse(name, value);
}
typedef FastPairEvent_BrEdrHandoverErrorCode BrEdrHandoverErrorCode;
static constexpr BrEdrHandoverErrorCode UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE =
FastPairEvent_BrEdrHandoverErrorCode_UNKNOWN_BR_EDR_HANDOVER_ERROR_CODE;
static constexpr BrEdrHandoverErrorCode CONTROL_POINT_RESULT_CODE_NOT_SUCCESS =
FastPairEvent_BrEdrHandoverErrorCode_CONTROL_POINT_RESULT_CODE_NOT_SUCCESS;
static constexpr BrEdrHandoverErrorCode BLUETOOTH_MAC_INVALID =
FastPairEvent_BrEdrHandoverErrorCode_BLUETOOTH_MAC_INVALID;
static constexpr BrEdrHandoverErrorCode TRANSPORT_BLOCK_INVALID =
FastPairEvent_BrEdrHandoverErrorCode_TRANSPORT_BLOCK_INVALID;
static inline bool BrEdrHandoverErrorCode_IsValid(int value) {
return FastPairEvent_BrEdrHandoverErrorCode_IsValid(value);
}
static constexpr BrEdrHandoverErrorCode BrEdrHandoverErrorCode_MIN =
FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_MIN;
static constexpr BrEdrHandoverErrorCode BrEdrHandoverErrorCode_MAX =
FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_MAX;
static constexpr int BrEdrHandoverErrorCode_ARRAYSIZE =
FastPairEvent_BrEdrHandoverErrorCode_BrEdrHandoverErrorCode_ARRAYSIZE;
template<typename T>
static inline const std::string& BrEdrHandoverErrorCode_Name(T enum_t_value) {
static_assert(::std::is_same<T, BrEdrHandoverErrorCode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function BrEdrHandoverErrorCode_Name.");
return FastPairEvent_BrEdrHandoverErrorCode_Name(enum_t_value);
}
static inline bool BrEdrHandoverErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
BrEdrHandoverErrorCode* value) {
return FastPairEvent_BrEdrHandoverErrorCode_Parse(name, value);
}
typedef FastPairEvent_CreateBondErrorCode CreateBondErrorCode;
static constexpr CreateBondErrorCode UNKNOWN_BOND_ERROR_CODE =
FastPairEvent_CreateBondErrorCode_UNKNOWN_BOND_ERROR_CODE;
static constexpr CreateBondErrorCode BOND_BROKEN =
FastPairEvent_CreateBondErrorCode_BOND_BROKEN;
static constexpr CreateBondErrorCode POSSIBLE_MITM =
FastPairEvent_CreateBondErrorCode_POSSIBLE_MITM;
static constexpr CreateBondErrorCode NO_PERMISSION =
FastPairEvent_CreateBondErrorCode_NO_PERMISSION;
static constexpr CreateBondErrorCode INCORRECT_VARIANT =
FastPairEvent_CreateBondErrorCode_INCORRECT_VARIANT;
static constexpr CreateBondErrorCode FAILED_BUT_ALREADY_RECEIVE_PASS_KEY =
FastPairEvent_CreateBondErrorCode_FAILED_BUT_ALREADY_RECEIVE_PASS_KEY;
static inline bool CreateBondErrorCode_IsValid(int value) {
return FastPairEvent_CreateBondErrorCode_IsValid(value);
}
static constexpr CreateBondErrorCode CreateBondErrorCode_MIN =
FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_MIN;
static constexpr CreateBondErrorCode CreateBondErrorCode_MAX =
FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_MAX;
static constexpr int CreateBondErrorCode_ARRAYSIZE =
FastPairEvent_CreateBondErrorCode_CreateBondErrorCode_ARRAYSIZE;
template<typename T>
static inline const std::string& CreateBondErrorCode_Name(T enum_t_value) {
static_assert(::std::is_same<T, CreateBondErrorCode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function CreateBondErrorCode_Name.");
return FastPairEvent_CreateBondErrorCode_Name(enum_t_value);
}
static inline bool CreateBondErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
CreateBondErrorCode* value) {
return FastPairEvent_CreateBondErrorCode_Parse(name, value);
}
typedef FastPairEvent_ConnectErrorCode ConnectErrorCode;
static constexpr ConnectErrorCode UNKNOWN_CONNECT_ERROR_CODE =
FastPairEvent_ConnectErrorCode_UNKNOWN_CONNECT_ERROR_CODE;
static constexpr ConnectErrorCode UNSUPPORTED_PROFILE =
FastPairEvent_ConnectErrorCode_UNSUPPORTED_PROFILE;
static constexpr ConnectErrorCode GET_PROFILE_PROXY_FAILED =
FastPairEvent_ConnectErrorCode_GET_PROFILE_PROXY_FAILED;
static constexpr ConnectErrorCode DISCONNECTED =
FastPairEvent_ConnectErrorCode_DISCONNECTED;
static constexpr ConnectErrorCode LINK_KEY_CLEARED =
FastPairEvent_ConnectErrorCode_LINK_KEY_CLEARED;
static constexpr ConnectErrorCode FAIL_TO_DISCOVERY =
FastPairEvent_ConnectErrorCode_FAIL_TO_DISCOVERY;
static constexpr ConnectErrorCode DISCOVERY_NOT_FINISHED =
FastPairEvent_ConnectErrorCode_DISCOVERY_NOT_FINISHED;
static inline bool ConnectErrorCode_IsValid(int value) {
return FastPairEvent_ConnectErrorCode_IsValid(value);
}
static constexpr ConnectErrorCode ConnectErrorCode_MIN =
FastPairEvent_ConnectErrorCode_ConnectErrorCode_MIN;
static constexpr ConnectErrorCode ConnectErrorCode_MAX =
FastPairEvent_ConnectErrorCode_ConnectErrorCode_MAX;
static constexpr int ConnectErrorCode_ARRAYSIZE =
FastPairEvent_ConnectErrorCode_ConnectErrorCode_ARRAYSIZE;
template<typename T>
static inline const std::string& ConnectErrorCode_Name(T enum_t_value) {
static_assert(::std::is_same<T, ConnectErrorCode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function ConnectErrorCode_Name.");
return FastPairEvent_ConnectErrorCode_Name(enum_t_value);
}
static inline bool ConnectErrorCode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
ConnectErrorCode* value) {
return FastPairEvent_ConnectErrorCode_Parse(name, value);
}
// accessors -------------------------------------------------------
// @@protoc_insertion_point(class_scope:nearby.proto.fastpair.FastPairEvent)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
friend struct ::TableStruct_proto_2ffast_5fpair_5fenums_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// FastPairEvent
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace fastpair
} // namespace proto
} // namespace nearby
PROTOBUF_NAMESPACE_OPEN
template <> struct is_proto_enum< ::nearby::proto::fastpair::FastPairEvent_BondState> : ::std::true_type {};
template <> struct is_proto_enum< ::nearby::proto::fastpair::FastPairEvent_ErrorCode> : ::std::true_type {};
template <> struct is_proto_enum< ::nearby::proto::fastpair::FastPairEvent_BrEdrHandoverErrorCode> : ::std::true_type {};
template <> struct is_proto_enum< ::nearby::proto::fastpair::FastPairEvent_CreateBondErrorCode> : ::std::true_type {};
template <> struct is_proto_enum< ::nearby::proto::fastpair::FastPairEvent_ConnectErrorCode> : ::std::true_type {};
template <> struct is_proto_enum< ::nearby::proto::fastpair::DeviceType> : ::std::true_type {};
template <> struct is_proto_enum< ::nearby::proto::fastpair::OsType> : ::std::true_type {};
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2ffast_5fpair_5fenums_2eproto
+276 -125
View File
@@ -91,13 +91,15 @@ bool EventType_IsValid(int value) {
case 62:
case 63:
case 64:
case 65:
case 66:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> EventType_strings[65] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> EventType_strings[67] = {};
static const char EventType_names[] =
"ACCEPT_AGREEMENTS"
@@ -148,6 +150,7 @@ static const char EventType_names[] =
"SEND_ATTACHMENTS_END"
"SEND_ATTACHMENTS_START"
"SEND_DESKTOP_NOTIFICATION"
"SEND_DESKTOP_TRANSFER_EVENT"
"SEND_FAST_INITIALIZATION"
"SEND_INTRODUCTION"
"SEND_START"
@@ -156,6 +159,7 @@ static const char EventType_names[] =
"SET_DATA_USAGE"
"SET_DEVICE_NAME"
"SET_VISIBILITY"
"SHOW_ALLOW_PERMISSION_AUTO_ACCESS"
"TAP_FEEDBACK"
"TAP_HELP"
"TAP_PRIVACY_NOTIFICATION"
@@ -215,39 +219,41 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EventType_entries[] =
{ {EventType_names + 998, 20}, 16 },
{ {EventType_names + 1018, 22}, 15 },
{ {EventType_names + 1040, 25}, 62 },
{ {EventType_names + 1065, 24}, 9 },
{ {EventType_names + 1089, 17}, 12 },
{ {EventType_names + 1106, 10}, 26 },
{ {EventType_names + 1116, 12}, 57 },
{ {EventType_names + 1128, 11}, 63 },
{ {EventType_names + 1139, 14}, 28 },
{ {EventType_names + 1153, 15}, 45 },
{ {EventType_names + 1168, 14}, 3 },
{ {EventType_names + 1182, 12}, 35 },
{ {EventType_names + 1194, 8}, 34 },
{ {EventType_names + 1202, 24}, 33 },
{ {EventType_names + 1226, 11}, 58 },
{ {EventType_names + 1237, 29}, 52 },
{ {EventType_names + 1266, 23}, 39 },
{ {EventType_names + 1289, 24}, 44 },
{ {EventType_names + 1313, 18}, 0 },
{ {EventType_names + 1331, 10}, 41 },
{ {EventType_names + 1065, 27}, 66 },
{ {EventType_names + 1092, 24}, 9 },
{ {EventType_names + 1116, 17}, 12 },
{ {EventType_names + 1133, 10}, 26 },
{ {EventType_names + 1143, 12}, 57 },
{ {EventType_names + 1155, 11}, 63 },
{ {EventType_names + 1166, 14}, 28 },
{ {EventType_names + 1180, 15}, 45 },
{ {EventType_names + 1195, 14}, 3 },
{ {EventType_names + 1209, 33}, 65 },
{ {EventType_names + 1242, 12}, 35 },
{ {EventType_names + 1254, 8}, 34 },
{ {EventType_names + 1262, 24}, 33 },
{ {EventType_names + 1286, 11}, 58 },
{ {EventType_names + 1297, 29}, 52 },
{ {EventType_names + 1326, 23}, 39 },
{ {EventType_names + 1349, 24}, 44 },
{ {EventType_names + 1373, 18}, 0 },
{ {EventType_names + 1391, 10}, 41 },
};
static const int EventType_entries_by_number[] = {
63, // 0 -> UNKNOWN_EVENT_TYPE
65, // 0 -> UNKNOWN_EVENT_TYPE
0, // 1 -> ACCEPT_AGREEMENTS
21, // 2 -> ENABLE_NEARBY_SHARING
55, // 3 -> SET_VISIBILITY
56, // 3 -> SET_VISIBILITY
14, // 4 -> DESCRIBE_ATTACHMENTS
44, // 5 -> SCAN_FOR_SHARE_TARGETS_START
43, // 6 -> SCAN_FOR_SHARE_TARGETS_END
5, // 7 -> ADVERTISE_DEVICE_PRESENCE_START
4, // 8 -> ADVERTISE_DEVICE_PRESENCE_END
48, // 9 -> SEND_FAST_INITIALIZATION
49, // 9 -> SEND_FAST_INITIALIZATION
37, // 10 -> RECEIVE_FAST_INITIALIZATION
16, // 11 -> DISCOVER_SHARE_TARGET
49, // 12 -> SEND_INTRODUCTION
50, // 12 -> SEND_INTRODUCTION
38, // 13 -> RECEIVE_INTRODUCTION
42, // 14 -> RESPOND_TO_INTRODUCTION
46, // 15 -> SEND_ATTACHMENTS_START
@@ -261,45 +267,47 @@ static const int EventType_entries_by_number[] = {
2, // 23 -> ADD_CONTACT
39, // 24 -> REMOVE_CONTACT
24, // 25 -> FAST_SHARE_SERVER_RESPONSE
50, // 26 -> SEND_START
51, // 26 -> SEND_START
1, // 27 -> ACCEPT_FAST_INITIALIZATION
53, // 28 -> SET_DATA_USAGE
54, // 28 -> SET_DATA_USAGE
17, // 29 -> DISMISS_FAST_INITIALIZATION
8, // 30 -> CANCEL_CONNECTION
26, // 31 -> LAUNCH_ACTIVITY
18, // 32 -> DISMISS_PRIVACY_NOTIFICATION
58, // 33 -> TAP_PRIVACY_NOTIFICATION
57, // 34 -> TAP_HELP
56, // 35 -> TAP_FEEDBACK
60, // 33 -> TAP_PRIVACY_NOTIFICATION
59, // 34 -> TAP_HELP
58, // 35 -> TAP_FEEDBACK
3, // 36 -> ADD_QUICK_SETTINGS_TILE
40, // 37 -> REMOVE_QUICK_SETTINGS_TILE
28, // 38 -> LAUNCH_PHONE_CONSENT
61, // 39 -> TAP_QUICK_SETTINGS_TILE
63, // 39 -> TAP_QUICK_SETTINGS_TILE
25, // 40 -> INSTALL_APK
64, // 41 -> VERIFY_APK
66, // 41 -> VERIFY_APK
27, // 42 -> LAUNCH_CONSENT
33, // 43 -> PROCESS_RECEIVED_ATTACHMENTS_END
62, // 44 -> TOGGLE_SHOW_NOTIFICATION
54, // 45 -> SET_DEVICE_NAME
64, // 44 -> TOGGLE_SHOW_NOTIFICATION
55, // 45 -> SET_DEVICE_NAME
11, // 46 -> DECLINE_AGREEMENTS
41, // 47 -> REQUEST_SETTING_PERMISSIONS
22, // 48 -> ESTABLISH_CONNECTION
15, // 49 -> DEVICE_SETTINGS
7, // 50 -> AUTO_DISMISS_FAST_INITIALIZATION
6, // 51 -> APP_CRASH
60, // 52 -> TAP_QUICK_SETTINGS_FILE_SHARE
62, // 52 -> TAP_QUICK_SETTINGS_FILE_SHARE
20, // 53 -> DISPLAY_PRIVACY_NOTIFICATION
19, // 54 -> DISPLAY_PHONE_CONSENT
32, // 55 -> PREFERENCES_USAGE
13, // 56 -> DEFAULT_OPT_IN
51, // 57 -> SETUP_WIZARD
59, // 58 -> TAP_QR_CODE
52, // 57 -> SETUP_WIZARD
61, // 58 -> TAP_QR_CODE
34, // 59 -> QR_CODE_LINK_SHOWN
31, // 60 -> PARSING_FAILED_ENDPOINT_ID
23, // 61 -> FAST_INIT_DISCOVER_DEVICE
47, // 62 -> SEND_DESKTOP_NOTIFICATION
52, // 63 -> SET_ACCOUNT
53, // 63 -> SET_ACCOUNT
12, // 64 -> DECRYPT_CERTIFICATE_FAILURE
57, // 65 -> SHOW_ALLOW_PERMISSION_AUTO_ACCESS
48, // 66 -> SEND_DESKTOP_TRANSFER_EVENT
};
const std::string& EventType_Name(
@@ -308,12 +316,12 @@ const std::string& EventType_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
EventType_entries,
EventType_entries_by_number,
65, EventType_strings);
67, EventType_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
EventType_entries,
EventType_entries_by_number,
65, value);
67, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
EventType_strings[idx].get();
}
@@ -321,7 +329,7 @@ bool EventType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EventType* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
EventType_entries, 65, name, &int_value);
EventType_entries, 67, name, &int_value);
if (success) {
*value = static_cast<EventType>(int_value);
}
@@ -573,32 +581,60 @@ bool EstablishConnectionStatus_IsValid(int value) {
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> EstablishConnectionStatus_strings[4] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> EstablishConnectionStatus_strings[11] = {};
static const char EstablishConnectionStatus_names[] =
"CONNECTION_STATUS_CANCELLATION"
"CONNECTION_STATUS_FAILED_NO_TRANSFER_UPDATE_CALLBACK"
"CONNECTION_STATUS_FAILED_NULL_CONNECTION"
"CONNECTION_STATUS_FAILED_PAIRED_KEYHANDSHAKE"
"CONNECTION_STATUS_FAILED_WRITE_INTRODUCTION"
"CONNECTION_STATUS_FAILURE"
"CONNECTION_STATUS_INVALID_ADVERTISEMENT"
"CONNECTION_STATUS_LOST_CONNECTIVITY"
"CONNECTION_STATUS_MEDIA_UNAVAILABLE_ATTACHMENT"
"CONNECTION_STATUS_SUCCESS"
"CONNECTION_STATUS_UNKNOWN";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry EstablishConnectionStatus_entries[] = {
{ {EstablishConnectionStatus_names + 0, 30}, 3 },
{ {EstablishConnectionStatus_names + 30, 25}, 2 },
{ {EstablishConnectionStatus_names + 55, 25}, 1 },
{ {EstablishConnectionStatus_names + 80, 25}, 0 },
{ {EstablishConnectionStatus_names + 30, 52}, 8 },
{ {EstablishConnectionStatus_names + 82, 40}, 7 },
{ {EstablishConnectionStatus_names + 122, 44}, 5 },
{ {EstablishConnectionStatus_names + 166, 43}, 6 },
{ {EstablishConnectionStatus_names + 209, 25}, 2 },
{ {EstablishConnectionStatus_names + 234, 39}, 10 },
{ {EstablishConnectionStatus_names + 273, 35}, 9 },
{ {EstablishConnectionStatus_names + 308, 46}, 4 },
{ {EstablishConnectionStatus_names + 354, 25}, 1 },
{ {EstablishConnectionStatus_names + 379, 25}, 0 },
};
static const int EstablishConnectionStatus_entries_by_number[] = {
3, // 0 -> CONNECTION_STATUS_UNKNOWN
2, // 1 -> CONNECTION_STATUS_SUCCESS
1, // 2 -> CONNECTION_STATUS_FAILURE
10, // 0 -> CONNECTION_STATUS_UNKNOWN
9, // 1 -> CONNECTION_STATUS_SUCCESS
5, // 2 -> CONNECTION_STATUS_FAILURE
0, // 3 -> CONNECTION_STATUS_CANCELLATION
8, // 4 -> CONNECTION_STATUS_MEDIA_UNAVAILABLE_ATTACHMENT
3, // 5 -> CONNECTION_STATUS_FAILED_PAIRED_KEYHANDSHAKE
4, // 6 -> CONNECTION_STATUS_FAILED_WRITE_INTRODUCTION
2, // 7 -> CONNECTION_STATUS_FAILED_NULL_CONNECTION
1, // 8 -> CONNECTION_STATUS_FAILED_NO_TRANSFER_UPDATE_CALLBACK
7, // 9 -> CONNECTION_STATUS_LOST_CONNECTIVITY
6, // 10 -> CONNECTION_STATUS_INVALID_ADVERTISEMENT
};
const std::string& EstablishConnectionStatus_Name(
@@ -607,12 +643,12 @@ const std::string& EstablishConnectionStatus_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
EstablishConnectionStatus_entries,
EstablishConnectionStatus_entries_by_number,
4, EstablishConnectionStatus_strings);
11, EstablishConnectionStatus_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
EstablishConnectionStatus_entries,
EstablishConnectionStatus_entries_by_number,
4, value);
11, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
EstablishConnectionStatus_strings[idx].get();
}
@@ -620,7 +656,7 @@ bool EstablishConnectionStatus_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, EstablishConnectionStatus* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
EstablishConnectionStatus_entries, 4, name, &int_value);
EstablishConnectionStatus_entries, 11, name, &int_value);
if (success) {
*value = static_cast<EstablishConnectionStatus>(int_value);
}
@@ -650,13 +686,21 @@ bool AttachmentTransmissionStatus_IsValid(int value) {
case 19:
case 20:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> AttachmentTransmissionStatus_strings[22] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> AttachmentTransmissionStatus_strings[30] = {};
static const char AttachmentTransmissionStatus_names[] =
"AWAITING_REMOTE_ACCEPTANCE_FAILED_ATTACHMENT"
@@ -673,14 +717,22 @@ static const char AttachmentTransmissionStatus_names[] =
"FAILED_NULL_CONNECTION_LOST_CONNECTIVITY"
"FAILED_PAIRED_KEYHANDSHAKE"
"FAILED_UNKNOWN_REMOTE_RESPONSE"
"FAILED_UNKNOWN_REMOTE_RESPONSE_TRANSMISSION_STATUS"
"FAILED_WRITE_INTRODUCTION"
"LOST_CONNECTIVITY_TRANSMISSION_STATUS"
"MEDIA_UNAVAILABLE_ATTACHMENT"
"NOT_ENOUGH_SPACE_ATTACHMENT"
"NOT_ENOUGH_SPACE_ATTACHMENT_TRANSMISSION_STATUS"
"NO_ATTACHMENT_FOUND"
"NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS"
"NO_RESPONSE_FRAME_CONNECTION_CLOSED_TRANSMISSION_STATUS"
"REJECTED_ATTACHMENT"
"REJECTED_ATTACHMENT_TRANSMISSION_STATUS"
"TIMED_OUT_ATTACHMENT"
"TIMED_OUT_ATTACHMENT_TRANSMISSION_STATUS"
"UNKNOWN_ATTACHMENT_TRANSMISSION_STATUS"
"UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT";
"UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT"
"UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT_TRANSMISSION_STATUS";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AttachmentTransmissionStatus_entries[] = {
{ {AttachmentTransmissionStatus_names + 0, 44}, 6 },
@@ -697,39 +749,55 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry AttachmentTransmission
{ {AttachmentTransmissionStatus_names + 364, 40}, 20 },
{ {AttachmentTransmissionStatus_names + 404, 26}, 13 },
{ {AttachmentTransmissionStatus_names + 430, 30}, 17 },
{ {AttachmentTransmissionStatus_names + 460, 25}, 16 },
{ {AttachmentTransmissionStatus_names + 485, 28}, 9 },
{ {AttachmentTransmissionStatus_names + 513, 27}, 7 },
{ {AttachmentTransmissionStatus_names + 540, 19}, 11 },
{ {AttachmentTransmissionStatus_names + 559, 19}, 4 },
{ {AttachmentTransmissionStatus_names + 578, 20}, 5 },
{ {AttachmentTransmissionStatus_names + 598, 38}, 0 },
{ {AttachmentTransmissionStatus_names + 636, 38}, 10 },
{ {AttachmentTransmissionStatus_names + 460, 50}, 26 },
{ {AttachmentTransmissionStatus_names + 510, 25}, 16 },
{ {AttachmentTransmissionStatus_names + 535, 37}, 29 },
{ {AttachmentTransmissionStatus_names + 572, 28}, 9 },
{ {AttachmentTransmissionStatus_names + 600, 27}, 7 },
{ {AttachmentTransmissionStatus_names + 627, 47}, 24 },
{ {AttachmentTransmissionStatus_names + 674, 19}, 11 },
{ {AttachmentTransmissionStatus_names + 693, 73}, 27 },
{ {AttachmentTransmissionStatus_names + 766, 55}, 28 },
{ {AttachmentTransmissionStatus_names + 821, 19}, 4 },
{ {AttachmentTransmissionStatus_names + 840, 39}, 22 },
{ {AttachmentTransmissionStatus_names + 879, 20}, 5 },
{ {AttachmentTransmissionStatus_names + 899, 40}, 23 },
{ {AttachmentTransmissionStatus_names + 939, 38}, 0 },
{ {AttachmentTransmissionStatus_names + 977, 38}, 10 },
{ {AttachmentTransmissionStatus_names + 1015, 58}, 25 },
};
static const int AttachmentTransmissionStatus_entries_by_number[] = {
20, // 0 -> UNKNOWN_ATTACHMENT_TRANSMISSION_STATUS
27, // 0 -> UNKNOWN_ATTACHMENT_TRANSMISSION_STATUS
2, // 1 -> COMPLETE_ATTACHMENT_TRANSMISSION_STATUS
1, // 2 -> CANCELED_ATTACHMENT_TRANSMISSION_STATUS
3, // 3 -> FAILED_ATTACHMENT_TRANSMISSION_STATUS
18, // 4 -> REJECTED_ATTACHMENT
19, // 5 -> TIMED_OUT_ATTACHMENT
23, // 4 -> REJECTED_ATTACHMENT
25, // 5 -> TIMED_OUT_ATTACHMENT
0, // 6 -> AWAITING_REMOTE_ACCEPTANCE_FAILED_ATTACHMENT
16, // 7 -> NOT_ENOUGH_SPACE_ATTACHMENT
18, // 7 -> NOT_ENOUGH_SPACE_ATTACHMENT
6, // 8 -> FAILED_NO_TRANSFER_UPDATE_CALLBACK
15, // 9 -> MEDIA_UNAVAILABLE_ATTACHMENT
21, // 10 -> UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT
17, // 11 -> NO_ATTACHMENT_FOUND
17, // 9 -> MEDIA_UNAVAILABLE_ATTACHMENT
28, // 10 -> UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT
20, // 11 -> NO_ATTACHMENT_FOUND
5, // 12 -> FAILED_NO_SHARE_TARGET_ENDPOINT
12, // 13 -> FAILED_PAIRED_KEYHANDSHAKE
7, // 14 -> FAILED_NULL_CONNECTION
4, // 15 -> FAILED_NO_PAYLOAD
14, // 16 -> FAILED_WRITE_INTRODUCTION
15, // 16 -> FAILED_WRITE_INTRODUCTION
13, // 17 -> FAILED_UNKNOWN_REMOTE_RESPONSE
10, // 18 -> FAILED_NULL_CONNECTION_INIT_OUTGOING
8, // 19 -> FAILED_NULL_CONNECTION_DISCONNECTED
11, // 20 -> FAILED_NULL_CONNECTION_LOST_CONNECTIVITY
9, // 21 -> FAILED_NULL_CONNECTION_FAILURE
24, // 22 -> REJECTED_ATTACHMENT_TRANSMISSION_STATUS
26, // 23 -> TIMED_OUT_ATTACHMENT_TRANSMISSION_STATUS
19, // 24 -> NOT_ENOUGH_SPACE_ATTACHMENT_TRANSMISSION_STATUS
29, // 25 -> UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT_TRANSMISSION_STATUS
14, // 26 -> FAILED_UNKNOWN_REMOTE_RESPONSE_TRANSMISSION_STATUS
21, // 27 -> NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS
22, // 28 -> NO_RESPONSE_FRAME_CONNECTION_CLOSED_TRANSMISSION_STATUS
16, // 29 -> LOST_CONNECTIVITY_TRANSMISSION_STATUS
};
const std::string& AttachmentTransmissionStatus_Name(
@@ -738,12 +806,12 @@ const std::string& AttachmentTransmissionStatus_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
AttachmentTransmissionStatus_entries,
AttachmentTransmissionStatus_entries_by_number,
22, AttachmentTransmissionStatus_strings);
30, AttachmentTransmissionStatus_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
AttachmentTransmissionStatus_entries,
AttachmentTransmissionStatus_entries_by_number,
22, value);
30, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
AttachmentTransmissionStatus_strings[idx].get();
}
@@ -751,7 +819,7 @@ bool AttachmentTransmissionStatus_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AttachmentTransmissionStatus* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
AttachmentTransmissionStatus_entries, 22, name, &int_value);
AttachmentTransmissionStatus_entries, 30, name, &int_value);
if (success) {
*value = static_cast<AttachmentTransmissionStatus>(int_value);
}
@@ -1123,18 +1191,20 @@ bool OSType_IsValid(int value) {
case 2:
case 3:
case 4:
case 5:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> OSType_strings[5] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> OSType_strings[6] = {};
static const char OSType_names[] =
"ANDROID"
"CHROME_OS"
"IOS"
"MACOS"
"UNKNOWN_OS_TYPE"
"WINDOWS";
@@ -1142,16 +1212,18 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry OSType_entries[] = {
{ {OSType_names + 0, 7}, 1 },
{ {OSType_names + 7, 9}, 2 },
{ {OSType_names + 16, 3}, 3 },
{ {OSType_names + 19, 15}, 0 },
{ {OSType_names + 34, 7}, 4 },
{ {OSType_names + 19, 5}, 5 },
{ {OSType_names + 24, 15}, 0 },
{ {OSType_names + 39, 7}, 4 },
};
static const int OSType_entries_by_number[] = {
3, // 0 -> UNKNOWN_OS_TYPE
4, // 0 -> UNKNOWN_OS_TYPE
0, // 1 -> ANDROID
1, // 2 -> CHROME_OS
2, // 3 -> IOS
4, // 4 -> WINDOWS
5, // 4 -> WINDOWS
3, // 5 -> MACOS
};
const std::string& OSType_Name(
@@ -1160,12 +1232,12 @@ const std::string& OSType_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
OSType_entries,
OSType_entries_by_number,
5, OSType_strings);
6, OSType_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
OSType_entries,
OSType_entries_by_number,
5, value);
6, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
OSType_strings[idx].get();
}
@@ -1173,7 +1245,7 @@ bool OSType_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, OSType* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
OSType_entries, 5, name, &int_value);
OSType_entries, 6, name, &int_value);
if (success) {
*value = static_cast<OSType>(int_value);
}
@@ -1322,18 +1394,22 @@ bool ServerActionName_IsValid(int value) {
case 8:
case 9:
case 10:
case 11:
case 12:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ServerActionName_strings[11] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ServerActionName_strings[13] = {};
static const char ServerActionName_names[] =
"CHECK_REACHABILITY"
"DOWNLOAD_CERTIFICATES"
"DOWNLOAD_CERTIFICATES_INFO"
"DOWNLOAD_SENDER_CERTIFICATES"
"LIST_CONTACT_PEOPLE"
"LIST_MY_DEVICES"
"LIST_REACHABLE_PHONE_NUMBERS"
"UNKNOWN_SERVER_ACTION"
@@ -1346,29 +1422,33 @@ static const char ServerActionName_names[] =
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ServerActionName_entries[] = {
{ {ServerActionName_names + 0, 18}, 3 },
{ {ServerActionName_names + 18, 21}, 2 },
{ {ServerActionName_names + 39, 28}, 7 },
{ {ServerActionName_names + 67, 15}, 10 },
{ {ServerActionName_names + 82, 28}, 9 },
{ {ServerActionName_names + 110, 21}, 0 },
{ {ServerActionName_names + 131, 18}, 5 },
{ {ServerActionName_names + 149, 19}, 1 },
{ {ServerActionName_names + 168, 15}, 4 },
{ {ServerActionName_names + 183, 32}, 8 },
{ {ServerActionName_names + 215, 26}, 6 },
{ {ServerActionName_names + 39, 26}, 12 },
{ {ServerActionName_names + 65, 28}, 7 },
{ {ServerActionName_names + 93, 19}, 11 },
{ {ServerActionName_names + 112, 15}, 10 },
{ {ServerActionName_names + 127, 28}, 9 },
{ {ServerActionName_names + 155, 21}, 0 },
{ {ServerActionName_names + 176, 18}, 5 },
{ {ServerActionName_names + 194, 19}, 1 },
{ {ServerActionName_names + 213, 15}, 4 },
{ {ServerActionName_names + 228, 32}, 8 },
{ {ServerActionName_names + 260, 26}, 6 },
};
static const int ServerActionName_entries_by_number[] = {
5, // 0 -> UNKNOWN_SERVER_ACTION
7, // 1 -> UPLOAD_CERTIFICATES
7, // 0 -> UNKNOWN_SERVER_ACTION
9, // 1 -> UPLOAD_CERTIFICATES
1, // 2 -> DOWNLOAD_CERTIFICATES
0, // 3 -> CHECK_REACHABILITY
8, // 4 -> UPLOAD_CONTACTS
6, // 5 -> UPDATE_DEVICE_NAME
10, // 6 -> UPLOAD_SENDER_CERTIFICATES
2, // 7 -> DOWNLOAD_SENDER_CERTIFICATES
9, // 8 -> UPLOAD_CONTACTS_AND_CERTIFICATES
4, // 9 -> LIST_REACHABLE_PHONE_NUMBERS
3, // 10 -> LIST_MY_DEVICES
10, // 4 -> UPLOAD_CONTACTS
8, // 5 -> UPDATE_DEVICE_NAME
12, // 6 -> UPLOAD_SENDER_CERTIFICATES
3, // 7 -> DOWNLOAD_SENDER_CERTIFICATES
11, // 8 -> UPLOAD_CONTACTS_AND_CERTIFICATES
6, // 9 -> LIST_REACHABLE_PHONE_NUMBERS
5, // 10 -> LIST_MY_DEVICES
4, // 11 -> LIST_CONTACT_PEOPLE
2, // 12 -> DOWNLOAD_CERTIFICATES_INFO
};
const std::string& ServerActionName_Name(
@@ -1377,12 +1457,12 @@ const std::string& ServerActionName_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
ServerActionName_entries,
ServerActionName_entries_by_number,
11, ServerActionName_strings);
13, ServerActionName_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
ServerActionName_entries,
ServerActionName_entries_by_number,
11, value);
13, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
ServerActionName_strings[idx].get();
}
@@ -1390,7 +1470,7 @@ bool ServerActionName_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ServerActionName* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
ServerActionName_entries, 11, name, &int_value);
ServerActionName_entries, 13, name, &int_value);
if (success) {
*value = static_cast<ServerActionName>(int_value);
}
@@ -1501,13 +1581,15 @@ bool SyncPurpose_IsValid(int value) {
case 13:
case 14:
case 15:
case 16:
case 17:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SyncPurpose_strings[16] = {};
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> SyncPurpose_strings[18] = {};
static const char SyncPurpose_names[] =
"SYNC_PURPOSE_ACCOUNT_CHANGE"
@@ -1515,9 +1597,11 @@ static const char SyncPurpose_names[] =
"SYNC_PURPOSE_CHIME_NOTIFICATION"
"SYNC_PURPOSE_CONTACT_LIST_CHANGE"
"SYNC_PURPOSE_DAILY_SYNC"
"SYNC_PURPOSE_DEVICE_CONTACTS_CONSENT_CHANGE"
"SYNC_PURPOSE_NEARBY_SHARE_ENABLED"
"SYNC_PURPOSE_ON_DEMAND_SYNC"
"SYNC_PURPOSE_OPT_IN_FIRST_SYNC"
"SYNC_PURPOSE_REGENERATE_CERTIFICATES"
"SYNC_PURPOSE_REGULAR_CHECK_CONTACT_REACHABILITY"
"SYNC_PURPOSE_SHOW_C11N_VIEW"
"SYNC_PURPOSE_SYNC_AT_ADVERTISEMENT"
@@ -1533,36 +1617,40 @@ static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry SyncPurpose_entries[]
{ {SyncPurpose_names + 60, 31}, 2 },
{ {SyncPurpose_names + 91, 32}, 11 },
{ {SyncPurpose_names + 123, 23}, 3 },
{ {SyncPurpose_names + 146, 33}, 6 },
{ {SyncPurpose_names + 179, 27}, 1 },
{ {SyncPurpose_names + 206, 30}, 4 },
{ {SyncPurpose_names + 236, 47}, 13 },
{ {SyncPurpose_names + 283, 27}, 12 },
{ {SyncPurpose_names + 310, 34}, 10 },
{ {SyncPurpose_names + 344, 30}, 8 },
{ {SyncPurpose_names + 374, 30}, 7 },
{ {SyncPurpose_names + 404, 45}, 9 },
{ {SyncPurpose_names + 449, 20}, 0 },
{ {SyncPurpose_names + 469, 47}, 14 },
{ {SyncPurpose_names + 146, 43}, 17 },
{ {SyncPurpose_names + 189, 33}, 6 },
{ {SyncPurpose_names + 222, 27}, 1 },
{ {SyncPurpose_names + 249, 30}, 4 },
{ {SyncPurpose_names + 279, 36}, 16 },
{ {SyncPurpose_names + 315, 47}, 13 },
{ {SyncPurpose_names + 362, 27}, 12 },
{ {SyncPurpose_names + 389, 34}, 10 },
{ {SyncPurpose_names + 423, 30}, 8 },
{ {SyncPurpose_names + 453, 30}, 7 },
{ {SyncPurpose_names + 483, 45}, 9 },
{ {SyncPurpose_names + 528, 20}, 0 },
{ {SyncPurpose_names + 548, 47}, 14 },
};
static const int SyncPurpose_entries_by_number[] = {
14, // 0 -> SYNC_PURPOSE_UNKNOWN
6, // 1 -> SYNC_PURPOSE_ON_DEMAND_SYNC
16, // 0 -> SYNC_PURPOSE_UNKNOWN
7, // 1 -> SYNC_PURPOSE_ON_DEMAND_SYNC
2, // 2 -> SYNC_PURPOSE_CHIME_NOTIFICATION
4, // 3 -> SYNC_PURPOSE_DAILY_SYNC
7, // 4 -> SYNC_PURPOSE_OPT_IN_FIRST_SYNC
8, // 4 -> SYNC_PURPOSE_OPT_IN_FIRST_SYNC
1, // 5 -> SYNC_PURPOSE_CHECK_DEFAULT_OPT_IN
5, // 6 -> SYNC_PURPOSE_NEARBY_SHARE_ENABLED
12, // 7 -> SYNC_PURPOSE_SYNC_AT_FAST_INIT
11, // 8 -> SYNC_PURPOSE_SYNC_AT_DISCOVERY
13, // 9 -> SYNC_PURPOSE_SYNC_AT_LOAD_PRIVATE_CERTIFICATE
10, // 10 -> SYNC_PURPOSE_SYNC_AT_ADVERTISEMENT
6, // 6 -> SYNC_PURPOSE_NEARBY_SHARE_ENABLED
14, // 7 -> SYNC_PURPOSE_SYNC_AT_FAST_INIT
13, // 8 -> SYNC_PURPOSE_SYNC_AT_DISCOVERY
15, // 9 -> SYNC_PURPOSE_SYNC_AT_LOAD_PRIVATE_CERTIFICATE
12, // 10 -> SYNC_PURPOSE_SYNC_AT_ADVERTISEMENT
3, // 11 -> SYNC_PURPOSE_CONTACT_LIST_CHANGE
9, // 12 -> SYNC_PURPOSE_SHOW_C11N_VIEW
8, // 13 -> SYNC_PURPOSE_REGULAR_CHECK_CONTACT_REACHABILITY
15, // 14 -> SYNC_PURPOSE_VISIBILITY_SELECTED_CONTACT_CHANGE
11, // 12 -> SYNC_PURPOSE_SHOW_C11N_VIEW
10, // 13 -> SYNC_PURPOSE_REGULAR_CHECK_CONTACT_REACHABILITY
17, // 14 -> SYNC_PURPOSE_VISIBILITY_SELECTED_CONTACT_CHANGE
0, // 15 -> SYNC_PURPOSE_ACCOUNT_CHANGE
9, // 16 -> SYNC_PURPOSE_REGENERATE_CERTIFICATES
5, // 17 -> SYNC_PURPOSE_DEVICE_CONTACTS_CONSENT_CHANGE
};
const std::string& SyncPurpose_Name(
@@ -1571,12 +1659,12 @@ const std::string& SyncPurpose_Name(
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
SyncPurpose_entries,
SyncPurpose_entries_by_number,
16, SyncPurpose_strings);
18, SyncPurpose_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
SyncPurpose_entries,
SyncPurpose_entries_by_number,
16, value);
18, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
SyncPurpose_strings[idx].get();
}
@@ -1584,7 +1672,7 @@ bool SyncPurpose_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SyncPurpose* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
SyncPurpose_entries, 16, name, &int_value);
SyncPurpose_entries, 18, name, &int_value);
if (success) {
*value = static_cast<SyncPurpose>(int_value);
}
@@ -1826,6 +1914,69 @@ bool AdvertisingMode_Parse(
}
return success;
}
bool DiscoveryMode_IsValid(int value) {
switch (value) {
case 0:
case 1:
case 2:
case 3:
case 4:
return true;
default:
return false;
}
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> DiscoveryMode_strings[5] = {};
static const char DiscoveryMode_names[] =
"BACKGROUND_DISCOVERY_MODE"
"FOREGROUND_DISCOVERY_MODE"
"MIDGROUND_DISCOVERY_MODE"
"SCREEN_OFF_DISCOVERY_MODE"
"UNKNOWN_DISCOVERY_MODE";
static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry DiscoveryMode_entries[] = {
{ {DiscoveryMode_names + 0, 25}, 2 },
{ {DiscoveryMode_names + 25, 25}, 4 },
{ {DiscoveryMode_names + 50, 24}, 3 },
{ {DiscoveryMode_names + 74, 25}, 1 },
{ {DiscoveryMode_names + 99, 22}, 0 },
};
static const int DiscoveryMode_entries_by_number[] = {
4, // 0 -> UNKNOWN_DISCOVERY_MODE
3, // 1 -> SCREEN_OFF_DISCOVERY_MODE
0, // 2 -> BACKGROUND_DISCOVERY_MODE
2, // 3 -> MIDGROUND_DISCOVERY_MODE
1, // 4 -> FOREGROUND_DISCOVERY_MODE
};
const std::string& DiscoveryMode_Name(
DiscoveryMode value) {
static const bool dummy =
::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
DiscoveryMode_entries,
DiscoveryMode_entries_by_number,
5, DiscoveryMode_strings);
(void) dummy;
int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
DiscoveryMode_entries,
DiscoveryMode_entries_by_number,
5, value);
return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
DiscoveryMode_strings[idx].get();
}
bool DiscoveryMode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DiscoveryMode* value) {
int int_value;
bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
DiscoveryMode_entries, 5, name, &int_value);
if (success) {
*value = static_cast<DiscoveryMode>(int_value);
}
return success;
}
bool ActivityName_IsValid(int value) {
switch (value) {
case 0:
+71 -26
View File
@@ -122,11 +122,13 @@ enum EventType : int {
FAST_INIT_DISCOVER_DEVICE = 61,
SEND_DESKTOP_NOTIFICATION = 62,
SET_ACCOUNT = 63,
DECRYPT_CERTIFICATE_FAILURE = 64
DECRYPT_CERTIFICATE_FAILURE = 64,
SHOW_ALLOW_PERMISSION_AUTO_ACCESS = 65,
SEND_DESKTOP_TRANSFER_EVENT = 66
};
bool EventType_IsValid(int value);
constexpr EventType EventType_MIN = UNKNOWN_EVENT_TYPE;
constexpr EventType EventType_MAX = DECRYPT_CERTIFICATE_FAILURE;
constexpr EventType EventType_MAX = SEND_DESKTOP_TRANSFER_EVENT;
constexpr int EventType_ARRAYSIZE = EventType_MAX + 1;
const std::string& EventType_Name(EventType value);
@@ -228,11 +230,18 @@ enum EstablishConnectionStatus : int {
CONNECTION_STATUS_UNKNOWN = 0,
CONNECTION_STATUS_SUCCESS = 1,
CONNECTION_STATUS_FAILURE = 2,
CONNECTION_STATUS_CANCELLATION = 3
CONNECTION_STATUS_CANCELLATION = 3,
CONNECTION_STATUS_MEDIA_UNAVAILABLE_ATTACHMENT = 4,
CONNECTION_STATUS_FAILED_PAIRED_KEYHANDSHAKE = 5,
CONNECTION_STATUS_FAILED_WRITE_INTRODUCTION = 6,
CONNECTION_STATUS_FAILED_NULL_CONNECTION = 7,
CONNECTION_STATUS_FAILED_NO_TRANSFER_UPDATE_CALLBACK = 8,
CONNECTION_STATUS_LOST_CONNECTIVITY = 9,
CONNECTION_STATUS_INVALID_ADVERTISEMENT = 10
};
bool EstablishConnectionStatus_IsValid(int value);
constexpr EstablishConnectionStatus EstablishConnectionStatus_MIN = CONNECTION_STATUS_UNKNOWN;
constexpr EstablishConnectionStatus EstablishConnectionStatus_MAX = CONNECTION_STATUS_CANCELLATION;
constexpr EstablishConnectionStatus EstablishConnectionStatus_MAX = CONNECTION_STATUS_INVALID_ADVERTISEMENT;
constexpr int EstablishConnectionStatus_ARRAYSIZE = EstablishConnectionStatus_MAX + 1;
const std::string& EstablishConnectionStatus_Name(EstablishConnectionStatus value);
@@ -250,28 +259,36 @@ enum AttachmentTransmissionStatus : int {
COMPLETE_ATTACHMENT_TRANSMISSION_STATUS = 1,
CANCELED_ATTACHMENT_TRANSMISSION_STATUS = 2,
FAILED_ATTACHMENT_TRANSMISSION_STATUS = 3,
REJECTED_ATTACHMENT = 4,
TIMED_OUT_ATTACHMENT = 5,
REJECTED_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 4,
TIMED_OUT_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 5,
AWAITING_REMOTE_ACCEPTANCE_FAILED_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 6,
NOT_ENOUGH_SPACE_ATTACHMENT = 7,
FAILED_NO_TRANSFER_UPDATE_CALLBACK = 8,
MEDIA_UNAVAILABLE_ATTACHMENT = 9,
UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT = 10,
NO_ATTACHMENT_FOUND = 11,
FAILED_NO_SHARE_TARGET_ENDPOINT = 12,
FAILED_PAIRED_KEYHANDSHAKE = 13,
FAILED_NULL_CONNECTION = 14,
FAILED_NO_PAYLOAD = 15,
FAILED_WRITE_INTRODUCTION = 16,
FAILED_UNKNOWN_REMOTE_RESPONSE = 17,
NOT_ENOUGH_SPACE_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 7,
FAILED_NO_TRANSFER_UPDATE_CALLBACK PROTOBUF_DEPRECATED_ENUM = 8,
MEDIA_UNAVAILABLE_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 9,
UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT PROTOBUF_DEPRECATED_ENUM = 10,
NO_ATTACHMENT_FOUND PROTOBUF_DEPRECATED_ENUM = 11,
FAILED_NO_SHARE_TARGET_ENDPOINT PROTOBUF_DEPRECATED_ENUM = 12,
FAILED_PAIRED_KEYHANDSHAKE PROTOBUF_DEPRECATED_ENUM = 13,
FAILED_NULL_CONNECTION PROTOBUF_DEPRECATED_ENUM = 14,
FAILED_NO_PAYLOAD PROTOBUF_DEPRECATED_ENUM = 15,
FAILED_WRITE_INTRODUCTION PROTOBUF_DEPRECATED_ENUM = 16,
FAILED_UNKNOWN_REMOTE_RESPONSE PROTOBUF_DEPRECATED_ENUM = 17,
FAILED_NULL_CONNECTION_INIT_OUTGOING = 18,
FAILED_NULL_CONNECTION_DISCONNECTED = 19,
FAILED_NULL_CONNECTION_LOST_CONNECTIVITY = 20,
FAILED_NULL_CONNECTION_FAILURE = 21
FAILED_NULL_CONNECTION_LOST_CONNECTIVITY PROTOBUF_DEPRECATED_ENUM = 20,
FAILED_NULL_CONNECTION_FAILURE PROTOBUF_DEPRECATED_ENUM = 21,
REJECTED_ATTACHMENT_TRANSMISSION_STATUS = 22,
TIMED_OUT_ATTACHMENT_TRANSMISSION_STATUS = 23,
NOT_ENOUGH_SPACE_ATTACHMENT_TRANSMISSION_STATUS = 24,
UNSUPPORTED_ATTACHMENT_TYPE_ATTACHMENT_TRANSMISSION_STATUS = 25,
FAILED_UNKNOWN_REMOTE_RESPONSE_TRANSMISSION_STATUS = 26,
NO_RESPONSE_FRAME_CONNECTION_CLOSED_LOST_CONNECTIVITY_TRANSMISSION_STATUS PROTOBUF_DEPRECATED_ENUM = 27,
NO_RESPONSE_FRAME_CONNECTION_CLOSED_TRANSMISSION_STATUS = 28,
LOST_CONNECTIVITY_TRANSMISSION_STATUS = 29
};
bool AttachmentTransmissionStatus_IsValid(int value);
constexpr AttachmentTransmissionStatus AttachmentTransmissionStatus_MIN = UNKNOWN_ATTACHMENT_TRANSMISSION_STATUS;
constexpr AttachmentTransmissionStatus AttachmentTransmissionStatus_MAX = FAILED_NULL_CONNECTION_FAILURE;
constexpr AttachmentTransmissionStatus AttachmentTransmissionStatus_MAX = LOST_CONNECTIVITY_TRANSMISSION_STATUS;
constexpr int AttachmentTransmissionStatus_ARRAYSIZE = AttachmentTransmissionStatus_MAX + 1;
const std::string& AttachmentTransmissionStatus_Name(AttachmentTransmissionStatus value);
@@ -410,11 +427,12 @@ enum OSType : int {
ANDROID = 1,
CHROME_OS = 2,
IOS = 3,
WINDOWS = 4
WINDOWS = 4,
MACOS = 5
};
bool OSType_IsValid(int value);
constexpr OSType OSType_MIN = UNKNOWN_OS_TYPE;
constexpr OSType OSType_MAX = WINDOWS;
constexpr OSType OSType_MAX = MACOS;
constexpr int OSType_ARRAYSIZE = OSType_MAX + 1;
const std::string& OSType_Name(OSType value);
@@ -483,11 +501,13 @@ enum ServerActionName : int {
DOWNLOAD_SENDER_CERTIFICATES = 7,
UPLOAD_CONTACTS_AND_CERTIFICATES = 8,
LIST_REACHABLE_PHONE_NUMBERS = 9,
LIST_MY_DEVICES = 10
LIST_MY_DEVICES = 10,
LIST_CONTACT_PEOPLE = 11,
DOWNLOAD_CERTIFICATES_INFO = 12
};
bool ServerActionName_IsValid(int value);
constexpr ServerActionName ServerActionName_MIN = UNKNOWN_SERVER_ACTION;
constexpr ServerActionName ServerActionName_MAX = LIST_MY_DEVICES;
constexpr ServerActionName ServerActionName_MAX = DOWNLOAD_CERTIFICATES_INFO;
constexpr int ServerActionName_ARRAYSIZE = ServerActionName_MAX + 1;
const std::string& ServerActionName_Name(ServerActionName value);
@@ -544,11 +564,13 @@ enum SyncPurpose : int {
SYNC_PURPOSE_SHOW_C11N_VIEW = 12,
SYNC_PURPOSE_REGULAR_CHECK_CONTACT_REACHABILITY = 13,
SYNC_PURPOSE_VISIBILITY_SELECTED_CONTACT_CHANGE = 14,
SYNC_PURPOSE_ACCOUNT_CHANGE = 15
SYNC_PURPOSE_ACCOUNT_CHANGE = 15,
SYNC_PURPOSE_REGENERATE_CERTIFICATES = 16,
SYNC_PURPOSE_DEVICE_CONTACTS_CONSENT_CHANGE = 17
};
bool SyncPurpose_IsValid(int value);
constexpr SyncPurpose SyncPurpose_MIN = SYNC_PURPOSE_UNKNOWN;
constexpr SyncPurpose SyncPurpose_MAX = SYNC_PURPOSE_ACCOUNT_CHANGE;
constexpr SyncPurpose SyncPurpose_MAX = SYNC_PURPOSE_DEVICE_CONTACTS_CONSENT_CHANGE;
constexpr int SyncPurpose_ARRAYSIZE = SyncPurpose_MAX + 1;
const std::string& SyncPurpose_Name(SyncPurpose value);
@@ -645,6 +667,28 @@ inline const std::string& AdvertisingMode_Name(T enum_t_value) {
}
bool AdvertisingMode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, AdvertisingMode* value);
enum DiscoveryMode : int {
UNKNOWN_DISCOVERY_MODE = 0,
SCREEN_OFF_DISCOVERY_MODE = 1,
BACKGROUND_DISCOVERY_MODE = 2,
MIDGROUND_DISCOVERY_MODE = 3,
FOREGROUND_DISCOVERY_MODE = 4
};
bool DiscoveryMode_IsValid(int value);
constexpr DiscoveryMode DiscoveryMode_MIN = UNKNOWN_DISCOVERY_MODE;
constexpr DiscoveryMode DiscoveryMode_MAX = FOREGROUND_DISCOVERY_MODE;
constexpr int DiscoveryMode_ARRAYSIZE = DiscoveryMode_MAX + 1;
const std::string& DiscoveryMode_Name(DiscoveryMode value);
template<typename T>
inline const std::string& DiscoveryMode_Name(T enum_t_value) {
static_assert(::std::is_same<T, DiscoveryMode>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function DiscoveryMode_Name.");
return DiscoveryMode_Name(static_cast<DiscoveryMode>(enum_t_value));
}
bool DiscoveryMode_Parse(
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DiscoveryMode* value);
enum ActivityName : int {
UNKNOWN_ACTIVITY = 0,
SHARE_SHEET_ACTIVITY = 1,
@@ -1118,6 +1162,7 @@ template <> struct is_proto_enum< ::location::nearby::proto::sharing::ClientRole
template <> struct is_proto_enum< ::location::nearby::proto::sharing::ScanType> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::sharing::ParsingFailedType> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::sharing::AdvertisingMode> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::sharing::DiscoveryMode> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::sharing::ActivityName> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::sharing::ConsentType> : ::std::true_type {};
template <> struct is_proto_enum< ::location::nearby::proto::sharing::ConsentAcceptanceStatus> : ::std::true_type {};
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Executable
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
COMPILED_PROTO_PATH="compiled_proto"
${PROTOC} --cpp_out=${COMPILED_PROTO_PATH} internal/proto/analytics/connections_log.proto
${PROTOC} --cpp_out=${COMPILED_PROTO_PATH} internal/proto/analytics/experiments_log.proto
${PROTOC} --cpp_out=${COMPILED_PROTO_PATH} internal/proto/analytics/fast_pair_log.proto
${PROTOC} --cpp_out=${COMPILED_PROTO_PATH} sharing/proto/analytics/nearby_sharing_log.proto
${PROTOC} --cpp_out=${COMPILED_PROTO_PATH} proto/fast_pair_enums.proto
${PROTOC} --cpp_out=${COMPILED_PROTO_PATH} proto/sharing_enums.proto