mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
@@ -28,8 +28,6 @@ jobs:
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: true
|
||||
- name: setup protobuf
|
||||
uses: ./.github/actions/swift-protobuf
|
||||
- name: Build
|
||||
run: swift build
|
||||
|
||||
@@ -40,8 +38,6 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: true
|
||||
- name: setup protobuf
|
||||
uses: ./.github/actions/swift-protobuf
|
||||
- name: Test
|
||||
run: swift test
|
||||
|
||||
|
||||
+3
-3
@@ -3,10 +3,10 @@
|
||||
{
|
||||
"identity" : "abseil-cpp-swiftpm",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/bourdakos1/abseil-cpp-SwiftPM.git",
|
||||
"location" : "https://github.com/firebase/abseil-cpp-SwiftPM.git",
|
||||
"state" : {
|
||||
"branch" : "cxx17-test",
|
||||
"revision" : "f2c56293ba0c7dc4fed62c38dfea5c5c2d632166"
|
||||
"branch" : "main",
|
||||
"revision" : "1c50c2cd0bffe5a03cde6fe17129334dcf05071b"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
+10
-11
@@ -74,13 +74,13 @@ let package = Package(
|
||||
sources: [
|
||||
"ukey2/src/securemessage/src/securemessage",
|
||||
"ukey2/src/main/cpp/src/securegcm",
|
||||
"ukey2/protoc_out",
|
||||
"compiled_proto",
|
||||
],
|
||||
publicHeadersPath: "include",
|
||||
cSettings: [
|
||||
.headerSearchPath("ukey2/"),
|
||||
.headerSearchPath("ukey2/protoc_out/"),
|
||||
.headerSearchPath("ukey2/protoc_out/src/main/proto"),
|
||||
.headerSearchPath("compiled_proto/"),
|
||||
.headerSearchPath("compiled_proto/src/main/proto"),
|
||||
]
|
||||
),
|
||||
.target(
|
||||
@@ -94,7 +94,7 @@ let package = Package(
|
||||
dependencies: [
|
||||
.product(name: "abseil", package: "abseil-cpp-SwiftPM"),
|
||||
],
|
||||
path: "google-protobuf/third_party/utf8_range",
|
||||
path: "third_party/protobuf/third_party/utf8_range",
|
||||
sources: [
|
||||
"utf8_validity.h",
|
||||
"utf8_range.h",
|
||||
@@ -110,7 +110,7 @@ let package = Package(
|
||||
dependencies: [
|
||||
"protobuf-utf8",
|
||||
],
|
||||
path: "google-protobuf/src",
|
||||
path: "third_party/protobuf/src",
|
||||
exclude: [
|
||||
"google/protobuf/bridge",
|
||||
"google/protobuf/compiler",
|
||||
@@ -535,7 +535,7 @@ let package = Package(
|
||||
"internal/platform/medium_environment.cc",
|
||||
],
|
||||
sources: [
|
||||
"protoc_out",
|
||||
"compiled_proto",
|
||||
"connections",
|
||||
"internal",
|
||||
"proto",
|
||||
@@ -543,10 +543,9 @@ let package = Package(
|
||||
publicHeadersPath: "connections",
|
||||
cSettings: [
|
||||
.headerSearchPath("./"),
|
||||
.headerSearchPath("protoc_out/"),
|
||||
.headerSearchPath("compiled_proto/"),
|
||||
.headerSearchPath("third_party/ukey2/ukey2/"),
|
||||
.headerSearchPath("third_party/ukey2/ukey2/protoc_out/"),
|
||||
.headerSearchPath("third_party/ukey2/ukey2/protoc_out/src/main/proto"),
|
||||
.headerSearchPath("third_party/ukey2/compiled_proto/src/main/proto"),
|
||||
.define("NO_WEBRTC"),
|
||||
]
|
||||
),
|
||||
@@ -563,7 +562,7 @@ let package = Package(
|
||||
publicHeadersPath: "connections/c",
|
||||
cSettings: [
|
||||
.headerSearchPath("./"),
|
||||
.headerSearchPath("protoc_out/"),
|
||||
.headerSearchPath("compiled_proto/"),
|
||||
.define("NO_WEBRTC"),
|
||||
]
|
||||
),
|
||||
@@ -576,7 +575,7 @@ let package = Package(
|
||||
publicHeadersPath: "connections/swift/NearbyCoreAdapter/Sources/Public",
|
||||
cSettings: [
|
||||
.headerSearchPath("./"),
|
||||
.headerSearchPath("protoc_out/"),
|
||||
.headerSearchPath("compiled_proto/"),
|
||||
.define("NO_WEBRTC"),
|
||||
]
|
||||
),
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,311 +0,0 @@
|
||||
// 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>
|
||||
@@ -1,394 +0,0 @@
|
||||
// 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
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,748 +0,0 @@
|
||||
// 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>
|
||||
@@ -1,583 +0,0 @@
|
||||
// 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
|
||||
Vendored
+1
-1
Submodule third_party/protobuf updated: 7ccf2060af...5a5c44c0cf
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
-2620
File diff suppressed because it is too large
Load Diff
-3947
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
-2211
File diff suppressed because it is too large
Load Diff
-2324
File diff suppressed because it is too large
Load Diff
-328
@@ -1,328 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: proto/passwordless_auth_payloads.proto
|
||||
|
||||
#include "proto/passwordless_auth_payloads.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 securegcm {
|
||||
constexpr IdentityAssertion::IdentityAssertion(
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
||||
: browser_data_hash_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
||||
, counter_(int64_t{0})
|
||||
, user_approval_(0){}
|
||||
struct IdentityAssertionDefaultTypeInternal {
|
||||
constexpr IdentityAssertionDefaultTypeInternal()
|
||||
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
||||
~IdentityAssertionDefaultTypeInternal() {}
|
||||
union {
|
||||
IdentityAssertion _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IdentityAssertionDefaultTypeInternal _IdentityAssertion_default_instance_;
|
||||
} // namespace securegcm
|
||||
namespace securegcm {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class IdentityAssertion::_Internal {
|
||||
public:
|
||||
using HasBits = decltype(std::declval<IdentityAssertion>()._has_bits_);
|
||||
static void set_has_browser_data_hash(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 1u;
|
||||
}
|
||||
static void set_has_counter(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 2u;
|
||||
}
|
||||
static void set_has_user_approval(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 4u;
|
||||
}
|
||||
};
|
||||
|
||||
IdentityAssertion::IdentityAssertion(::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:securegcm.IdentityAssertion)
|
||||
}
|
||||
IdentityAssertion::IdentityAssertion(const IdentityAssertion& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
||||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
||||
browser_data_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
browser_data_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (from._internal_has_browser_data_hash()) {
|
||||
browser_data_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_browser_data_hash(),
|
||||
GetArenaForAllocation());
|
||||
}
|
||||
::memcpy(&counter_, &from.counter_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&user_approval_) -
|
||||
reinterpret_cast<char*>(&counter_)) + sizeof(user_approval_));
|
||||
// @@protoc_insertion_point(copy_constructor:securegcm.IdentityAssertion)
|
||||
}
|
||||
|
||||
inline void IdentityAssertion::SharedCtor() {
|
||||
browser_data_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
browser_data_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&counter_) - reinterpret_cast<char*>(this)),
|
||||
0, static_cast<size_t>(reinterpret_cast<char*>(&user_approval_) -
|
||||
reinterpret_cast<char*>(&counter_)) + sizeof(user_approval_));
|
||||
}
|
||||
|
||||
IdentityAssertion::~IdentityAssertion() {
|
||||
// @@protoc_insertion_point(destructor:securegcm.IdentityAssertion)
|
||||
if (GetArenaForAllocation() != nullptr) return;
|
||||
SharedDtor();
|
||||
_internal_metadata_.Delete<std::string>();
|
||||
}
|
||||
|
||||
inline void IdentityAssertion::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
browser_data_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
|
||||
void IdentityAssertion::ArenaDtor(void* object) {
|
||||
IdentityAssertion* _this = reinterpret_cast< IdentityAssertion* >(object);
|
||||
(void)_this;
|
||||
}
|
||||
void IdentityAssertion::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
||||
}
|
||||
void IdentityAssertion::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void IdentityAssertion::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:securegcm.IdentityAssertion)
|
||||
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 & 0x00000001u) {
|
||||
browser_data_hash_.ClearNonDefaultToEmpty();
|
||||
}
|
||||
if (cached_has_bits & 0x00000006u) {
|
||||
::memset(&counter_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&user_approval_) -
|
||||
reinterpret_cast<char*>(&counter_)) + sizeof(user_approval_));
|
||||
}
|
||||
_has_bits_.Clear();
|
||||
_internal_metadata_.Clear<std::string>();
|
||||
}
|
||||
|
||||
const char* IdentityAssertion::_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 browser_data_hash = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
auto str = _internal_mutable_browser_data_hash();
|
||||
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// optional int64 counter = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||
_Internal::set_has_counter(&has_bits);
|
||||
counter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// optional int32 user_approval = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
||||
_Internal::set_has_user_approval(&has_bits);
|
||||
user_approval_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
handle_unusual:
|
||||
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||
CHK_(ptr);
|
||||
ctx->SetLastTag(tag);
|
||||
goto message_done;
|
||||
}
|
||||
ptr = UnknownFieldParse(
|
||||
tag,
|
||||
_internal_metadata_.mutable_unknown_fields<std::string>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
_has_bits_.Or(has_bits);
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto message_done;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* IdentityAssertion::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:securegcm.IdentityAssertion)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// optional bytes browser_data_hash = 1;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
target = stream->WriteBytesMaybeAliased(
|
||||
1, this->_internal_browser_data_hash(), target);
|
||||
}
|
||||
|
||||
// optional int64 counter = 2;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_counter(), target);
|
||||
}
|
||||
|
||||
// optional int32 user_approval = 3;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_user_approval(), 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:securegcm.IdentityAssertion)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t IdentityAssertion::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:securegcm.IdentityAssertion)
|
||||
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 & 0x00000007u) {
|
||||
// optional bytes browser_data_hash = 1;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||
this->_internal_browser_data_hash());
|
||||
}
|
||||
|
||||
// optional int64 counter = 2;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_counter());
|
||||
}
|
||||
|
||||
// optional int32 user_approval = 3;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_user_approval());
|
||||
}
|
||||
|
||||
}
|
||||
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 IdentityAssertion::CheckTypeAndMergeFrom(
|
||||
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
||||
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const IdentityAssertion*>(
|
||||
&from));
|
||||
}
|
||||
|
||||
void IdentityAssertion::MergeFrom(const IdentityAssertion& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.IdentityAssertion)
|
||||
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 & 0x00000007u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
_internal_set_browser_data_hash(from._internal_browser_data_hash());
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
counter_ = from.counter_;
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
user_approval_ = from.user_approval_;
|
||||
}
|
||||
_has_bits_[0] |= cached_has_bits;
|
||||
}
|
||||
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void IdentityAssertion::CopyFrom(const IdentityAssertion& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.IdentityAssertion)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool IdentityAssertion::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void IdentityAssertion::InternalSwap(IdentityAssertion* 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(),
|
||||
&browser_data_hash_, lhs_arena,
|
||||
&other->browser_data_hash_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(IdentityAssertion, user_approval_)
|
||||
+ sizeof(IdentityAssertion::user_approval_)
|
||||
- PROTOBUF_FIELD_OFFSET(IdentityAssertion, counter_)>(
|
||||
reinterpret_cast<char*>(&counter_),
|
||||
reinterpret_cast<char*>(&other->counter_));
|
||||
}
|
||||
|
||||
std::string IdentityAssertion::GetTypeName() const {
|
||||
return "securegcm.IdentityAssertion";
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace securegcm
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::securegcm::IdentityAssertion* Arena::CreateMaybeMessage< ::securegcm::IdentityAssertion >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::securegcm::IdentityAssertion >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
-387
@@ -1,387 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: proto/passwordless_auth_payloads.proto
|
||||
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fpasswordless_5fauth_5fpayloads_2eproto
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_proto_2fpasswordless_5fauth_5fpayloads_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3019000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
#endif
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/arena.h>
|
||||
#include <google/protobuf/arenastring.h>
|
||||
#include <google/protobuf/generated_message_table_driven.h>
|
||||
#include <google/protobuf/generated_message_util.h>
|
||||
#include <google/protobuf/metadata_lite.h>
|
||||
#include <google/protobuf/message_lite.h>
|
||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_proto_2fpasswordless_5fauth_5fpayloads_2eproto
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
namespace internal {
|
||||
class AnyMetadata;
|
||||
} // namespace internal
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct_proto_2fpasswordless_5fauth_5fpayloads_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 securegcm {
|
||||
class IdentityAssertion;
|
||||
struct IdentityAssertionDefaultTypeInternal;
|
||||
extern IdentityAssertionDefaultTypeInternal _IdentityAssertion_default_instance_;
|
||||
} // namespace securegcm
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::securegcm::IdentityAssertion* Arena::CreateMaybeMessage<::securegcm::IdentityAssertion>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace securegcm {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class IdentityAssertion final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.IdentityAssertion) */ {
|
||||
public:
|
||||
inline IdentityAssertion() : IdentityAssertion(nullptr) {}
|
||||
~IdentityAssertion() override;
|
||||
explicit constexpr IdentityAssertion(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
IdentityAssertion(const IdentityAssertion& from);
|
||||
IdentityAssertion(IdentityAssertion&& from) noexcept
|
||||
: IdentityAssertion() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline IdentityAssertion& operator=(const IdentityAssertion& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline IdentityAssertion& operator=(IdentityAssertion&& 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 IdentityAssertion& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const IdentityAssertion* internal_default_instance() {
|
||||
return reinterpret_cast<const IdentityAssertion*>(
|
||||
&_IdentityAssertion_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(IdentityAssertion& a, IdentityAssertion& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(IdentityAssertion* 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(IdentityAssertion* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
IdentityAssertion* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<IdentityAssertion>(arena);
|
||||
}
|
||||
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
|
||||
void CopyFrom(const IdentityAssertion& from);
|
||||
void MergeFrom(const IdentityAssertion& 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(IdentityAssertion* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "securegcm.IdentityAssertion";
|
||||
}
|
||||
protected:
|
||||
explicit IdentityAssertion(::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 {
|
||||
kBrowserDataHashFieldNumber = 1,
|
||||
kCounterFieldNumber = 2,
|
||||
kUserApprovalFieldNumber = 3,
|
||||
};
|
||||
// optional bytes browser_data_hash = 1;
|
||||
bool has_browser_data_hash() const;
|
||||
private:
|
||||
bool _internal_has_browser_data_hash() const;
|
||||
public:
|
||||
void clear_browser_data_hash();
|
||||
const std::string& browser_data_hash() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_browser_data_hash(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_browser_data_hash();
|
||||
PROTOBUF_NODISCARD std::string* release_browser_data_hash();
|
||||
void set_allocated_browser_data_hash(std::string* browser_data_hash);
|
||||
private:
|
||||
const std::string& _internal_browser_data_hash() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_browser_data_hash(const std::string& value);
|
||||
std::string* _internal_mutable_browser_data_hash();
|
||||
public:
|
||||
|
||||
// optional int64 counter = 2;
|
||||
bool has_counter() const;
|
||||
private:
|
||||
bool _internal_has_counter() const;
|
||||
public:
|
||||
void clear_counter();
|
||||
int64_t counter() const;
|
||||
void set_counter(int64_t value);
|
||||
private:
|
||||
int64_t _internal_counter() const;
|
||||
void _internal_set_counter(int64_t value);
|
||||
public:
|
||||
|
||||
// optional int32 user_approval = 3;
|
||||
bool has_user_approval() const;
|
||||
private:
|
||||
bool _internal_has_user_approval() const;
|
||||
public:
|
||||
void clear_user_approval();
|
||||
int32_t user_approval() const;
|
||||
void set_user_approval(int32_t value);
|
||||
private:
|
||||
int32_t _internal_user_approval() const;
|
||||
void _internal_set_user_approval(int32_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:securegcm.IdentityAssertion)
|
||||
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 browser_data_hash_;
|
||||
int64_t counter_;
|
||||
int32_t user_approval_;
|
||||
friend struct ::TableStruct_proto_2fpasswordless_5fauth_5fpayloads_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// IdentityAssertion
|
||||
|
||||
// optional bytes browser_data_hash = 1;
|
||||
inline bool IdentityAssertion::_internal_has_browser_data_hash() const {
|
||||
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool IdentityAssertion::has_browser_data_hash() const {
|
||||
return _internal_has_browser_data_hash();
|
||||
}
|
||||
inline void IdentityAssertion::clear_browser_data_hash() {
|
||||
browser_data_hash_.ClearToEmpty();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const std::string& IdentityAssertion::browser_data_hash() const {
|
||||
// @@protoc_insertion_point(field_get:securegcm.IdentityAssertion.browser_data_hash)
|
||||
return _internal_browser_data_hash();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void IdentityAssertion::set_browser_data_hash(ArgT0&& arg0, ArgT... args) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
browser_data_hash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:securegcm.IdentityAssertion.browser_data_hash)
|
||||
}
|
||||
inline std::string* IdentityAssertion::mutable_browser_data_hash() {
|
||||
std::string* _s = _internal_mutable_browser_data_hash();
|
||||
// @@protoc_insertion_point(field_mutable:securegcm.IdentityAssertion.browser_data_hash)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& IdentityAssertion::_internal_browser_data_hash() const {
|
||||
return browser_data_hash_.Get();
|
||||
}
|
||||
inline void IdentityAssertion::_internal_set_browser_data_hash(const std::string& value) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
browser_data_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* IdentityAssertion::_internal_mutable_browser_data_hash() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
return browser_data_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* IdentityAssertion::release_browser_data_hash() {
|
||||
// @@protoc_insertion_point(field_release:securegcm.IdentityAssertion.browser_data_hash)
|
||||
if (!_internal_has_browser_data_hash()) {
|
||||
return nullptr;
|
||||
}
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
auto* p = browser_data_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (browser_data_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
browser_data_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
return p;
|
||||
}
|
||||
inline void IdentityAssertion::set_allocated_browser_data_hash(std::string* browser_data_hash) {
|
||||
if (browser_data_hash != nullptr) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
browser_data_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), browser_data_hash,
|
||||
GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (browser_data_hash_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
browser_data_hash_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:securegcm.IdentityAssertion.browser_data_hash)
|
||||
}
|
||||
|
||||
// optional int64 counter = 2;
|
||||
inline bool IdentityAssertion::_internal_has_counter() const {
|
||||
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool IdentityAssertion::has_counter() const {
|
||||
return _internal_has_counter();
|
||||
}
|
||||
inline void IdentityAssertion::clear_counter() {
|
||||
counter_ = int64_t{0};
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline int64_t IdentityAssertion::_internal_counter() const {
|
||||
return counter_;
|
||||
}
|
||||
inline int64_t IdentityAssertion::counter() const {
|
||||
// @@protoc_insertion_point(field_get:securegcm.IdentityAssertion.counter)
|
||||
return _internal_counter();
|
||||
}
|
||||
inline void IdentityAssertion::_internal_set_counter(int64_t value) {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
counter_ = value;
|
||||
}
|
||||
inline void IdentityAssertion::set_counter(int64_t value) {
|
||||
_internal_set_counter(value);
|
||||
// @@protoc_insertion_point(field_set:securegcm.IdentityAssertion.counter)
|
||||
}
|
||||
|
||||
// optional int32 user_approval = 3;
|
||||
inline bool IdentityAssertion::_internal_has_user_approval() const {
|
||||
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool IdentityAssertion::has_user_approval() const {
|
||||
return _internal_has_user_approval();
|
||||
}
|
||||
inline void IdentityAssertion::clear_user_approval() {
|
||||
user_approval_ = 0;
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline int32_t IdentityAssertion::_internal_user_approval() const {
|
||||
return user_approval_;
|
||||
}
|
||||
inline int32_t IdentityAssertion::user_approval() const {
|
||||
// @@protoc_insertion_point(field_get:securegcm.IdentityAssertion.user_approval)
|
||||
return _internal_user_approval();
|
||||
}
|
||||
inline void IdentityAssertion::_internal_set_user_approval(int32_t value) {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
user_approval_ = value;
|
||||
}
|
||||
inline void IdentityAssertion::set_user_approval(int32_t value) {
|
||||
_internal_set_user_approval(value);
|
||||
// @@protoc_insertion_point(field_set:securegcm.IdentityAssertion.user_approval)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace securegcm
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fpasswordless_5fauth_5fpayloads_2eproto
|
||||
@@ -1,716 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: proto/proximity_payloads.proto
|
||||
|
||||
#include "proto/proximity_payloads.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 securegcm {
|
||||
constexpr CloudToDeviceProximityAuthPairing::CloudToDeviceProximityAuthPairing(
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
||||
: initiating_device_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
||||
, initiating_device_bt_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
||||
, ephemeral_symmetric_key_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
||||
, additional_metadata_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
|
||||
struct CloudToDeviceProximityAuthPairingDefaultTypeInternal {
|
||||
constexpr CloudToDeviceProximityAuthPairingDefaultTypeInternal()
|
||||
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
||||
~CloudToDeviceProximityAuthPairingDefaultTypeInternal() {}
|
||||
union {
|
||||
CloudToDeviceProximityAuthPairing _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CloudToDeviceProximityAuthPairingDefaultTypeInternal _CloudToDeviceProximityAuthPairing_default_instance_;
|
||||
constexpr DeviceProximityCallback::DeviceProximityCallback(
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
|
||||
: callback_bluetooth_address_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
|
||||
, source_device_type_(0)
|
||||
|
||||
, protocol_version_(0){}
|
||||
struct DeviceProximityCallbackDefaultTypeInternal {
|
||||
constexpr DeviceProximityCallbackDefaultTypeInternal()
|
||||
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
|
||||
~DeviceProximityCallbackDefaultTypeInternal() {}
|
||||
union {
|
||||
DeviceProximityCallback _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DeviceProximityCallbackDefaultTypeInternal _DeviceProximityCallback_default_instance_;
|
||||
} // namespace securegcm
|
||||
namespace securegcm {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class CloudToDeviceProximityAuthPairing::_Internal {
|
||||
public:
|
||||
using HasBits = decltype(std::declval<CloudToDeviceProximityAuthPairing>()._has_bits_);
|
||||
static void set_has_initiating_device_name(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 1u;
|
||||
}
|
||||
static void set_has_initiating_device_bt_address(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 2u;
|
||||
}
|
||||
static void set_has_ephemeral_symmetric_key(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 4u;
|
||||
}
|
||||
static void set_has_additional_metadata(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 8u;
|
||||
}
|
||||
};
|
||||
|
||||
CloudToDeviceProximityAuthPairing::CloudToDeviceProximityAuthPairing(::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:securegcm.CloudToDeviceProximityAuthPairing)
|
||||
}
|
||||
CloudToDeviceProximityAuthPairing::CloudToDeviceProximityAuthPairing(const CloudToDeviceProximityAuthPairing& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
||||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
||||
initiating_device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
initiating_device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (from._internal_has_initiating_device_name()) {
|
||||
initiating_device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_initiating_device_name(),
|
||||
GetArenaForAllocation());
|
||||
}
|
||||
initiating_device_bt_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
initiating_device_bt_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (from._internal_has_initiating_device_bt_address()) {
|
||||
initiating_device_bt_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_initiating_device_bt_address(),
|
||||
GetArenaForAllocation());
|
||||
}
|
||||
ephemeral_symmetric_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
ephemeral_symmetric_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (from._internal_has_ephemeral_symmetric_key()) {
|
||||
ephemeral_symmetric_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_ephemeral_symmetric_key(),
|
||||
GetArenaForAllocation());
|
||||
}
|
||||
additional_metadata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
additional_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (from._internal_has_additional_metadata()) {
|
||||
additional_metadata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_additional_metadata(),
|
||||
GetArenaForAllocation());
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:securegcm.CloudToDeviceProximityAuthPairing)
|
||||
}
|
||||
|
||||
inline void CloudToDeviceProximityAuthPairing::SharedCtor() {
|
||||
initiating_device_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
initiating_device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
initiating_device_bt_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
initiating_device_bt_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
ephemeral_symmetric_key_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
ephemeral_symmetric_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
additional_metadata_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
additional_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
}
|
||||
|
||||
CloudToDeviceProximityAuthPairing::~CloudToDeviceProximityAuthPairing() {
|
||||
// @@protoc_insertion_point(destructor:securegcm.CloudToDeviceProximityAuthPairing)
|
||||
if (GetArenaForAllocation() != nullptr) return;
|
||||
SharedDtor();
|
||||
_internal_metadata_.Delete<std::string>();
|
||||
}
|
||||
|
||||
inline void CloudToDeviceProximityAuthPairing::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
initiating_device_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
initiating_device_bt_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
ephemeral_symmetric_key_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
additional_metadata_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
|
||||
void CloudToDeviceProximityAuthPairing::ArenaDtor(void* object) {
|
||||
CloudToDeviceProximityAuthPairing* _this = reinterpret_cast< CloudToDeviceProximityAuthPairing* >(object);
|
||||
(void)_this;
|
||||
}
|
||||
void CloudToDeviceProximityAuthPairing::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
||||
}
|
||||
void CloudToDeviceProximityAuthPairing::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void CloudToDeviceProximityAuthPairing::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:securegcm.CloudToDeviceProximityAuthPairing)
|
||||
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 & 0x0000000fu) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
initiating_device_name_.ClearNonDefaultToEmpty();
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
initiating_device_bt_address_.ClearNonDefaultToEmpty();
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
ephemeral_symmetric_key_.ClearNonDefaultToEmpty();
|
||||
}
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
additional_metadata_.ClearNonDefaultToEmpty();
|
||||
}
|
||||
}
|
||||
_has_bits_.Clear();
|
||||
_internal_metadata_.Clear<std::string>();
|
||||
}
|
||||
|
||||
const char* CloudToDeviceProximityAuthPairing::_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 string initiating_device_name = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
auto str = _internal_mutable_initiating_device_name();
|
||||
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// optional string initiating_device_bt_address = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||
auto str = _internal_mutable_initiating_device_bt_address();
|
||||
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// optional bytes ephemeral_symmetric_key = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
||||
auto str = _internal_mutable_ephemeral_symmetric_key();
|
||||
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// optional bytes additional_metadata = 4;
|
||||
case 4:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
|
||||
auto str = _internal_mutable_additional_metadata();
|
||||
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* CloudToDeviceProximityAuthPairing::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:securegcm.CloudToDeviceProximityAuthPairing)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// optional string initiating_device_name = 1;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
target = stream->WriteStringMaybeAliased(
|
||||
1, this->_internal_initiating_device_name(), target);
|
||||
}
|
||||
|
||||
// optional string initiating_device_bt_address = 2;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
target = stream->WriteStringMaybeAliased(
|
||||
2, this->_internal_initiating_device_bt_address(), target);
|
||||
}
|
||||
|
||||
// optional bytes ephemeral_symmetric_key = 3;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = stream->WriteBytesMaybeAliased(
|
||||
3, this->_internal_ephemeral_symmetric_key(), target);
|
||||
}
|
||||
|
||||
// optional bytes additional_metadata = 4;
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
target = stream->WriteBytesMaybeAliased(
|
||||
4, this->_internal_additional_metadata(), 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:securegcm.CloudToDeviceProximityAuthPairing)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t CloudToDeviceProximityAuthPairing::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:securegcm.CloudToDeviceProximityAuthPairing)
|
||||
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 & 0x0000000fu) {
|
||||
// optional string initiating_device_name = 1;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||
this->_internal_initiating_device_name());
|
||||
}
|
||||
|
||||
// optional string initiating_device_bt_address = 2;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||
this->_internal_initiating_device_bt_address());
|
||||
}
|
||||
|
||||
// optional bytes ephemeral_symmetric_key = 3;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||
this->_internal_ephemeral_symmetric_key());
|
||||
}
|
||||
|
||||
// optional bytes additional_metadata = 4;
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
||||
this->_internal_additional_metadata());
|
||||
}
|
||||
|
||||
}
|
||||
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 CloudToDeviceProximityAuthPairing::CheckTypeAndMergeFrom(
|
||||
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
||||
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const CloudToDeviceProximityAuthPairing*>(
|
||||
&from));
|
||||
}
|
||||
|
||||
void CloudToDeviceProximityAuthPairing::MergeFrom(const CloudToDeviceProximityAuthPairing& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.CloudToDeviceProximityAuthPairing)
|
||||
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 & 0x0000000fu) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
_internal_set_initiating_device_name(from._internal_initiating_device_name());
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
_internal_set_initiating_device_bt_address(from._internal_initiating_device_bt_address());
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
_internal_set_ephemeral_symmetric_key(from._internal_ephemeral_symmetric_key());
|
||||
}
|
||||
if (cached_has_bits & 0x00000008u) {
|
||||
_internal_set_additional_metadata(from._internal_additional_metadata());
|
||||
}
|
||||
}
|
||||
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void CloudToDeviceProximityAuthPairing::CopyFrom(const CloudToDeviceProximityAuthPairing& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.CloudToDeviceProximityAuthPairing)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool CloudToDeviceProximityAuthPairing::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void CloudToDeviceProximityAuthPairing::InternalSwap(CloudToDeviceProximityAuthPairing* 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(),
|
||||
&initiating_device_name_, lhs_arena,
|
||||
&other->initiating_device_name_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
||||
&initiating_device_bt_address_, lhs_arena,
|
||||
&other->initiating_device_bt_address_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
||||
&ephemeral_symmetric_key_, lhs_arena,
|
||||
&other->ephemeral_symmetric_key_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
|
||||
&additional_metadata_, lhs_arena,
|
||||
&other->additional_metadata_, rhs_arena
|
||||
);
|
||||
}
|
||||
|
||||
std::string CloudToDeviceProximityAuthPairing::GetTypeName() const {
|
||||
return "securegcm.CloudToDeviceProximityAuthPairing";
|
||||
}
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class DeviceProximityCallback::_Internal {
|
||||
public:
|
||||
using HasBits = decltype(std::declval<DeviceProximityCallback>()._has_bits_);
|
||||
static void set_has_callback_bluetooth_address(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 1u;
|
||||
}
|
||||
static void set_has_source_device_type(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 2u;
|
||||
}
|
||||
static void set_has_protocol_version(HasBits* has_bits) {
|
||||
(*has_bits)[0] |= 4u;
|
||||
}
|
||||
};
|
||||
|
||||
DeviceProximityCallback::DeviceProximityCallback(::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:securegcm.DeviceProximityCallback)
|
||||
}
|
||||
DeviceProximityCallback::DeviceProximityCallback(const DeviceProximityCallback& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::MessageLite(),
|
||||
_has_bits_(from._has_bits_) {
|
||||
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
||||
callback_bluetooth_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
callback_bluetooth_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (from._internal_has_callback_bluetooth_address()) {
|
||||
callback_bluetooth_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_callback_bluetooth_address(),
|
||||
GetArenaForAllocation());
|
||||
}
|
||||
::memcpy(&source_device_type_, &from.source_device_type_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&protocol_version_) -
|
||||
reinterpret_cast<char*>(&source_device_type_)) + sizeof(protocol_version_));
|
||||
// @@protoc_insertion_point(copy_constructor:securegcm.DeviceProximityCallback)
|
||||
}
|
||||
|
||||
inline void DeviceProximityCallback::SharedCtor() {
|
||||
callback_bluetooth_address_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
callback_bluetooth_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&source_device_type_) - reinterpret_cast<char*>(this)),
|
||||
0, static_cast<size_t>(reinterpret_cast<char*>(&protocol_version_) -
|
||||
reinterpret_cast<char*>(&source_device_type_)) + sizeof(protocol_version_));
|
||||
}
|
||||
|
||||
DeviceProximityCallback::~DeviceProximityCallback() {
|
||||
// @@protoc_insertion_point(destructor:securegcm.DeviceProximityCallback)
|
||||
if (GetArenaForAllocation() != nullptr) return;
|
||||
SharedDtor();
|
||||
_internal_metadata_.Delete<std::string>();
|
||||
}
|
||||
|
||||
inline void DeviceProximityCallback::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
callback_bluetooth_address_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
||||
}
|
||||
|
||||
void DeviceProximityCallback::ArenaDtor(void* object) {
|
||||
DeviceProximityCallback* _this = reinterpret_cast< DeviceProximityCallback* >(object);
|
||||
(void)_this;
|
||||
}
|
||||
void DeviceProximityCallback::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
|
||||
}
|
||||
void DeviceProximityCallback::SetCachedSize(int size) const {
|
||||
_cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void DeviceProximityCallback::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:securegcm.DeviceProximityCallback)
|
||||
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 & 0x00000001u) {
|
||||
callback_bluetooth_address_.ClearNonDefaultToEmpty();
|
||||
}
|
||||
if (cached_has_bits & 0x00000006u) {
|
||||
::memset(&source_device_type_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&protocol_version_) -
|
||||
reinterpret_cast<char*>(&source_device_type_)) + sizeof(protocol_version_));
|
||||
}
|
||||
_has_bits_.Clear();
|
||||
_internal_metadata_.Clear<std::string>();
|
||||
}
|
||||
|
||||
const char* DeviceProximityCallback::_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 string callback_bluetooth_address = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
auto str = _internal_mutable_callback_bluetooth_address();
|
||||
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// optional .securegcm.DeviceType source_device_type = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
if (PROTOBUF_PREDICT_TRUE(::securegcm::DeviceType_IsValid(val))) {
|
||||
_internal_set_source_device_type(static_cast<::securegcm::DeviceType>(val));
|
||||
} else {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields());
|
||||
}
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// optional int32 protocol_version = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
||||
_Internal::set_has_protocol_version(&has_bits);
|
||||
protocol_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
handle_unusual:
|
||||
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||
CHK_(ptr);
|
||||
ctx->SetLastTag(tag);
|
||||
goto message_done;
|
||||
}
|
||||
ptr = UnknownFieldParse(
|
||||
tag,
|
||||
_internal_metadata_.mutable_unknown_fields<std::string>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
_has_bits_.Or(has_bits);
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto message_done;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* DeviceProximityCallback::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:securegcm.DeviceProximityCallback)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
cached_has_bits = _has_bits_[0];
|
||||
// optional string callback_bluetooth_address = 1;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
target = stream->WriteStringMaybeAliased(
|
||||
1, this->_internal_callback_bluetooth_address(), target);
|
||||
}
|
||||
|
||||
// optional .securegcm.DeviceType source_device_type = 2;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
|
||||
2, this->_internal_source_device_type(), target);
|
||||
}
|
||||
|
||||
// optional int32 protocol_version = 3;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_protocol_version(), 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:securegcm.DeviceProximityCallback)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t DeviceProximityCallback::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:securegcm.DeviceProximityCallback)
|
||||
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 & 0x00000007u) {
|
||||
// optional string callback_bluetooth_address = 1;
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||
this->_internal_callback_bluetooth_address());
|
||||
}
|
||||
|
||||
// optional .securegcm.DeviceType source_device_type = 2;
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_source_device_type());
|
||||
}
|
||||
|
||||
// optional int32 protocol_version = 3;
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_protocol_version());
|
||||
}
|
||||
|
||||
}
|
||||
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 DeviceProximityCallback::CheckTypeAndMergeFrom(
|
||||
const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
|
||||
MergeFrom(*::PROTOBUF_NAMESPACE_ID::internal::DownCast<const DeviceProximityCallback*>(
|
||||
&from));
|
||||
}
|
||||
|
||||
void DeviceProximityCallback::MergeFrom(const DeviceProximityCallback& from) {
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:securegcm.DeviceProximityCallback)
|
||||
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 & 0x00000007u) {
|
||||
if (cached_has_bits & 0x00000001u) {
|
||||
_internal_set_callback_bluetooth_address(from._internal_callback_bluetooth_address());
|
||||
}
|
||||
if (cached_has_bits & 0x00000002u) {
|
||||
source_device_type_ = from.source_device_type_;
|
||||
}
|
||||
if (cached_has_bits & 0x00000004u) {
|
||||
protocol_version_ = from.protocol_version_;
|
||||
}
|
||||
_has_bits_[0] |= cached_has_bits;
|
||||
}
|
||||
_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void DeviceProximityCallback::CopyFrom(const DeviceProximityCallback& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:securegcm.DeviceProximityCallback)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool DeviceProximityCallback::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void DeviceProximityCallback::InternalSwap(DeviceProximityCallback* 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(),
|
||||
&callback_bluetooth_address_, lhs_arena,
|
||||
&other->callback_bluetooth_address_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(DeviceProximityCallback, protocol_version_)
|
||||
+ sizeof(DeviceProximityCallback::protocol_version_)
|
||||
- PROTOBUF_FIELD_OFFSET(DeviceProximityCallback, source_device_type_)>(
|
||||
reinterpret_cast<char*>(&source_device_type_),
|
||||
reinterpret_cast<char*>(&other->source_device_type_));
|
||||
}
|
||||
|
||||
std::string DeviceProximityCallback::GetTypeName() const {
|
||||
return "securegcm.DeviceProximityCallback";
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace securegcm
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::securegcm::CloudToDeviceProximityAuthPairing* Arena::CreateMaybeMessage< ::securegcm::CloudToDeviceProximityAuthPairing >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::securegcm::CloudToDeviceProximityAuthPairing >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::securegcm::DeviceProximityCallback* Arena::CreateMaybeMessage< ::securegcm::DeviceProximityCallback >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::securegcm::DeviceProximityCallback >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
@@ -1,882 +0,0 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: proto/proximity_payloads.proto
|
||||
|
||||
#ifndef GOOGLE_PROTOBUF_INCLUDED_proto_2fproximity_5fpayloads_2eproto
|
||||
#define GOOGLE_PROTOBUF_INCLUDED_proto_2fproximity_5fpayloads_2eproto
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#if PROTOBUF_VERSION < 3019000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
#endif
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/arena.h>
|
||||
#include <google/protobuf/arenastring.h>
|
||||
#include <google/protobuf/generated_message_table_driven.h>
|
||||
#include <google/protobuf/generated_message_util.h>
|
||||
#include <google/protobuf/metadata_lite.h>
|
||||
#include <google/protobuf/message_lite.h>
|
||||
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
#include "securegcm.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_proto_2fproximity_5fpayloads_2eproto
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
namespace internal {
|
||||
class AnyMetadata;
|
||||
} // namespace internal
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// Internal implementation detail -- do not use these members.
|
||||
struct TableStruct_proto_2fproximity_5fpayloads_2eproto {
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
|
||||
static const uint32_t offsets[];
|
||||
};
|
||||
namespace securegcm {
|
||||
class CloudToDeviceProximityAuthPairing;
|
||||
struct CloudToDeviceProximityAuthPairingDefaultTypeInternal;
|
||||
extern CloudToDeviceProximityAuthPairingDefaultTypeInternal _CloudToDeviceProximityAuthPairing_default_instance_;
|
||||
class DeviceProximityCallback;
|
||||
struct DeviceProximityCallbackDefaultTypeInternal;
|
||||
extern DeviceProximityCallbackDefaultTypeInternal _DeviceProximityCallback_default_instance_;
|
||||
} // namespace securegcm
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::securegcm::CloudToDeviceProximityAuthPairing* Arena::CreateMaybeMessage<::securegcm::CloudToDeviceProximityAuthPairing>(Arena*);
|
||||
template<> ::securegcm::DeviceProximityCallback* Arena::CreateMaybeMessage<::securegcm::DeviceProximityCallback>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace securegcm {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class CloudToDeviceProximityAuthPairing final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.CloudToDeviceProximityAuthPairing) */ {
|
||||
public:
|
||||
inline CloudToDeviceProximityAuthPairing() : CloudToDeviceProximityAuthPairing(nullptr) {}
|
||||
~CloudToDeviceProximityAuthPairing() override;
|
||||
explicit constexpr CloudToDeviceProximityAuthPairing(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
CloudToDeviceProximityAuthPairing(const CloudToDeviceProximityAuthPairing& from);
|
||||
CloudToDeviceProximityAuthPairing(CloudToDeviceProximityAuthPairing&& from) noexcept
|
||||
: CloudToDeviceProximityAuthPairing() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline CloudToDeviceProximityAuthPairing& operator=(const CloudToDeviceProximityAuthPairing& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline CloudToDeviceProximityAuthPairing& operator=(CloudToDeviceProximityAuthPairing&& 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 CloudToDeviceProximityAuthPairing& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const CloudToDeviceProximityAuthPairing* internal_default_instance() {
|
||||
return reinterpret_cast<const CloudToDeviceProximityAuthPairing*>(
|
||||
&_CloudToDeviceProximityAuthPairing_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(CloudToDeviceProximityAuthPairing& a, CloudToDeviceProximityAuthPairing& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(CloudToDeviceProximityAuthPairing* 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(CloudToDeviceProximityAuthPairing* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
CloudToDeviceProximityAuthPairing* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<CloudToDeviceProximityAuthPairing>(arena);
|
||||
}
|
||||
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
|
||||
void CopyFrom(const CloudToDeviceProximityAuthPairing& from);
|
||||
void MergeFrom(const CloudToDeviceProximityAuthPairing& 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(CloudToDeviceProximityAuthPairing* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "securegcm.CloudToDeviceProximityAuthPairing";
|
||||
}
|
||||
protected:
|
||||
explicit CloudToDeviceProximityAuthPairing(::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 {
|
||||
kInitiatingDeviceNameFieldNumber = 1,
|
||||
kInitiatingDeviceBtAddressFieldNumber = 2,
|
||||
kEphemeralSymmetricKeyFieldNumber = 3,
|
||||
kAdditionalMetadataFieldNumber = 4,
|
||||
};
|
||||
// optional string initiating_device_name = 1;
|
||||
bool has_initiating_device_name() const;
|
||||
private:
|
||||
bool _internal_has_initiating_device_name() const;
|
||||
public:
|
||||
void clear_initiating_device_name();
|
||||
const std::string& initiating_device_name() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_initiating_device_name(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_initiating_device_name();
|
||||
PROTOBUF_NODISCARD std::string* release_initiating_device_name();
|
||||
void set_allocated_initiating_device_name(std::string* initiating_device_name);
|
||||
private:
|
||||
const std::string& _internal_initiating_device_name() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_initiating_device_name(const std::string& value);
|
||||
std::string* _internal_mutable_initiating_device_name();
|
||||
public:
|
||||
|
||||
// optional string initiating_device_bt_address = 2;
|
||||
bool has_initiating_device_bt_address() const;
|
||||
private:
|
||||
bool _internal_has_initiating_device_bt_address() const;
|
||||
public:
|
||||
void clear_initiating_device_bt_address();
|
||||
const std::string& initiating_device_bt_address() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_initiating_device_bt_address(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_initiating_device_bt_address();
|
||||
PROTOBUF_NODISCARD std::string* release_initiating_device_bt_address();
|
||||
void set_allocated_initiating_device_bt_address(std::string* initiating_device_bt_address);
|
||||
private:
|
||||
const std::string& _internal_initiating_device_bt_address() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_initiating_device_bt_address(const std::string& value);
|
||||
std::string* _internal_mutable_initiating_device_bt_address();
|
||||
public:
|
||||
|
||||
// optional bytes ephemeral_symmetric_key = 3;
|
||||
bool has_ephemeral_symmetric_key() const;
|
||||
private:
|
||||
bool _internal_has_ephemeral_symmetric_key() const;
|
||||
public:
|
||||
void clear_ephemeral_symmetric_key();
|
||||
const std::string& ephemeral_symmetric_key() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_ephemeral_symmetric_key(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_ephemeral_symmetric_key();
|
||||
PROTOBUF_NODISCARD std::string* release_ephemeral_symmetric_key();
|
||||
void set_allocated_ephemeral_symmetric_key(std::string* ephemeral_symmetric_key);
|
||||
private:
|
||||
const std::string& _internal_ephemeral_symmetric_key() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_ephemeral_symmetric_key(const std::string& value);
|
||||
std::string* _internal_mutable_ephemeral_symmetric_key();
|
||||
public:
|
||||
|
||||
// optional bytes additional_metadata = 4;
|
||||
bool has_additional_metadata() const;
|
||||
private:
|
||||
bool _internal_has_additional_metadata() const;
|
||||
public:
|
||||
void clear_additional_metadata();
|
||||
const std::string& additional_metadata() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_additional_metadata(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_additional_metadata();
|
||||
PROTOBUF_NODISCARD std::string* release_additional_metadata();
|
||||
void set_allocated_additional_metadata(std::string* additional_metadata);
|
||||
private:
|
||||
const std::string& _internal_additional_metadata() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_additional_metadata(const std::string& value);
|
||||
std::string* _internal_mutable_additional_metadata();
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:securegcm.CloudToDeviceProximityAuthPairing)
|
||||
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 initiating_device_name_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr initiating_device_bt_address_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ephemeral_symmetric_key_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr additional_metadata_;
|
||||
friend struct ::TableStruct_proto_2fproximity_5fpayloads_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class DeviceProximityCallback final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:securegcm.DeviceProximityCallback) */ {
|
||||
public:
|
||||
inline DeviceProximityCallback() : DeviceProximityCallback(nullptr) {}
|
||||
~DeviceProximityCallback() override;
|
||||
explicit constexpr DeviceProximityCallback(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
DeviceProximityCallback(const DeviceProximityCallback& from);
|
||||
DeviceProximityCallback(DeviceProximityCallback&& from) noexcept
|
||||
: DeviceProximityCallback() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline DeviceProximityCallback& operator=(const DeviceProximityCallback& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline DeviceProximityCallback& operator=(DeviceProximityCallback&& 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 DeviceProximityCallback& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const DeviceProximityCallback* internal_default_instance() {
|
||||
return reinterpret_cast<const DeviceProximityCallback*>(
|
||||
&_DeviceProximityCallback_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
1;
|
||||
|
||||
friend void swap(DeviceProximityCallback& a, DeviceProximityCallback& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(DeviceProximityCallback* 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(DeviceProximityCallback* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
DeviceProximityCallback* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<DeviceProximityCallback>(arena);
|
||||
}
|
||||
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
|
||||
void CopyFrom(const DeviceProximityCallback& from);
|
||||
void MergeFrom(const DeviceProximityCallback& 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(DeviceProximityCallback* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "securegcm.DeviceProximityCallback";
|
||||
}
|
||||
protected:
|
||||
explicit DeviceProximityCallback(::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 {
|
||||
kCallbackBluetoothAddressFieldNumber = 1,
|
||||
kSourceDeviceTypeFieldNumber = 2,
|
||||
kProtocolVersionFieldNumber = 3,
|
||||
};
|
||||
// optional string callback_bluetooth_address = 1;
|
||||
bool has_callback_bluetooth_address() const;
|
||||
private:
|
||||
bool _internal_has_callback_bluetooth_address() const;
|
||||
public:
|
||||
void clear_callback_bluetooth_address();
|
||||
const std::string& callback_bluetooth_address() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_callback_bluetooth_address(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_callback_bluetooth_address();
|
||||
PROTOBUF_NODISCARD std::string* release_callback_bluetooth_address();
|
||||
void set_allocated_callback_bluetooth_address(std::string* callback_bluetooth_address);
|
||||
private:
|
||||
const std::string& _internal_callback_bluetooth_address() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_callback_bluetooth_address(const std::string& value);
|
||||
std::string* _internal_mutable_callback_bluetooth_address();
|
||||
public:
|
||||
|
||||
// optional .securegcm.DeviceType source_device_type = 2;
|
||||
bool has_source_device_type() const;
|
||||
private:
|
||||
bool _internal_has_source_device_type() const;
|
||||
public:
|
||||
void clear_source_device_type();
|
||||
::securegcm::DeviceType source_device_type() const;
|
||||
void set_source_device_type(::securegcm::DeviceType value);
|
||||
private:
|
||||
::securegcm::DeviceType _internal_source_device_type() const;
|
||||
void _internal_set_source_device_type(::securegcm::DeviceType value);
|
||||
public:
|
||||
|
||||
// optional int32 protocol_version = 3;
|
||||
bool has_protocol_version() const;
|
||||
private:
|
||||
bool _internal_has_protocol_version() const;
|
||||
public:
|
||||
void clear_protocol_version();
|
||||
int32_t protocol_version() const;
|
||||
void set_protocol_version(int32_t value);
|
||||
private:
|
||||
int32_t _internal_protocol_version() const;
|
||||
void _internal_set_protocol_version(int32_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:securegcm.DeviceProximityCallback)
|
||||
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 callback_bluetooth_address_;
|
||||
int source_device_type_;
|
||||
int32_t protocol_version_;
|
||||
friend struct ::TableStruct_proto_2fproximity_5fpayloads_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// CloudToDeviceProximityAuthPairing
|
||||
|
||||
// optional string initiating_device_name = 1;
|
||||
inline bool CloudToDeviceProximityAuthPairing::_internal_has_initiating_device_name() const {
|
||||
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool CloudToDeviceProximityAuthPairing::has_initiating_device_name() const {
|
||||
return _internal_has_initiating_device_name();
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::clear_initiating_device_name() {
|
||||
initiating_device_name_.ClearToEmpty();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const std::string& CloudToDeviceProximityAuthPairing::initiating_device_name() const {
|
||||
// @@protoc_insertion_point(field_get:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_name)
|
||||
return _internal_initiating_device_name();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void CloudToDeviceProximityAuthPairing::set_initiating_device_name(ArgT0&& arg0, ArgT... args) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
initiating_device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_name)
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::mutable_initiating_device_name() {
|
||||
std::string* _s = _internal_mutable_initiating_device_name();
|
||||
// @@protoc_insertion_point(field_mutable:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_name)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& CloudToDeviceProximityAuthPairing::_internal_initiating_device_name() const {
|
||||
return initiating_device_name_.Get();
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::_internal_set_initiating_device_name(const std::string& value) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
initiating_device_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::_internal_mutable_initiating_device_name() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
return initiating_device_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::release_initiating_device_name() {
|
||||
// @@protoc_insertion_point(field_release:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_name)
|
||||
if (!_internal_has_initiating_device_name()) {
|
||||
return nullptr;
|
||||
}
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
auto* p = initiating_device_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (initiating_device_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
initiating_device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
return p;
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::set_allocated_initiating_device_name(std::string* initiating_device_name) {
|
||||
if (initiating_device_name != nullptr) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
initiating_device_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), initiating_device_name,
|
||||
GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (initiating_device_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
initiating_device_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_name)
|
||||
}
|
||||
|
||||
// optional string initiating_device_bt_address = 2;
|
||||
inline bool CloudToDeviceProximityAuthPairing::_internal_has_initiating_device_bt_address() const {
|
||||
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool CloudToDeviceProximityAuthPairing::has_initiating_device_bt_address() const {
|
||||
return _internal_has_initiating_device_bt_address();
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::clear_initiating_device_bt_address() {
|
||||
initiating_device_bt_address_.ClearToEmpty();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline const std::string& CloudToDeviceProximityAuthPairing::initiating_device_bt_address() const {
|
||||
// @@protoc_insertion_point(field_get:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_bt_address)
|
||||
return _internal_initiating_device_bt_address();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void CloudToDeviceProximityAuthPairing::set_initiating_device_bt_address(ArgT0&& arg0, ArgT... args) {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
initiating_device_bt_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_bt_address)
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::mutable_initiating_device_bt_address() {
|
||||
std::string* _s = _internal_mutable_initiating_device_bt_address();
|
||||
// @@protoc_insertion_point(field_mutable:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_bt_address)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& CloudToDeviceProximityAuthPairing::_internal_initiating_device_bt_address() const {
|
||||
return initiating_device_bt_address_.Get();
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::_internal_set_initiating_device_bt_address(const std::string& value) {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
initiating_device_bt_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::_internal_mutable_initiating_device_bt_address() {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
return initiating_device_bt_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::release_initiating_device_bt_address() {
|
||||
// @@protoc_insertion_point(field_release:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_bt_address)
|
||||
if (!_internal_has_initiating_device_bt_address()) {
|
||||
return nullptr;
|
||||
}
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
auto* p = initiating_device_bt_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (initiating_device_bt_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
initiating_device_bt_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
return p;
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::set_allocated_initiating_device_bt_address(std::string* initiating_device_bt_address) {
|
||||
if (initiating_device_bt_address != nullptr) {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
initiating_device_bt_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), initiating_device_bt_address,
|
||||
GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (initiating_device_bt_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
initiating_device_bt_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:securegcm.CloudToDeviceProximityAuthPairing.initiating_device_bt_address)
|
||||
}
|
||||
|
||||
// optional bytes ephemeral_symmetric_key = 3;
|
||||
inline bool CloudToDeviceProximityAuthPairing::_internal_has_ephemeral_symmetric_key() const {
|
||||
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool CloudToDeviceProximityAuthPairing::has_ephemeral_symmetric_key() const {
|
||||
return _internal_has_ephemeral_symmetric_key();
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::clear_ephemeral_symmetric_key() {
|
||||
ephemeral_symmetric_key_.ClearToEmpty();
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline const std::string& CloudToDeviceProximityAuthPairing::ephemeral_symmetric_key() const {
|
||||
// @@protoc_insertion_point(field_get:securegcm.CloudToDeviceProximityAuthPairing.ephemeral_symmetric_key)
|
||||
return _internal_ephemeral_symmetric_key();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void CloudToDeviceProximityAuthPairing::set_ephemeral_symmetric_key(ArgT0&& arg0, ArgT... args) {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
ephemeral_symmetric_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:securegcm.CloudToDeviceProximityAuthPairing.ephemeral_symmetric_key)
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::mutable_ephemeral_symmetric_key() {
|
||||
std::string* _s = _internal_mutable_ephemeral_symmetric_key();
|
||||
// @@protoc_insertion_point(field_mutable:securegcm.CloudToDeviceProximityAuthPairing.ephemeral_symmetric_key)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& CloudToDeviceProximityAuthPairing::_internal_ephemeral_symmetric_key() const {
|
||||
return ephemeral_symmetric_key_.Get();
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::_internal_set_ephemeral_symmetric_key(const std::string& value) {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
ephemeral_symmetric_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::_internal_mutable_ephemeral_symmetric_key() {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
return ephemeral_symmetric_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::release_ephemeral_symmetric_key() {
|
||||
// @@protoc_insertion_point(field_release:securegcm.CloudToDeviceProximityAuthPairing.ephemeral_symmetric_key)
|
||||
if (!_internal_has_ephemeral_symmetric_key()) {
|
||||
return nullptr;
|
||||
}
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
auto* p = ephemeral_symmetric_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (ephemeral_symmetric_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
ephemeral_symmetric_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
return p;
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::set_allocated_ephemeral_symmetric_key(std::string* ephemeral_symmetric_key) {
|
||||
if (ephemeral_symmetric_key != nullptr) {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
ephemeral_symmetric_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ephemeral_symmetric_key,
|
||||
GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (ephemeral_symmetric_key_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
ephemeral_symmetric_key_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:securegcm.CloudToDeviceProximityAuthPairing.ephemeral_symmetric_key)
|
||||
}
|
||||
|
||||
// optional bytes additional_metadata = 4;
|
||||
inline bool CloudToDeviceProximityAuthPairing::_internal_has_additional_metadata() const {
|
||||
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool CloudToDeviceProximityAuthPairing::has_additional_metadata() const {
|
||||
return _internal_has_additional_metadata();
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::clear_additional_metadata() {
|
||||
additional_metadata_.ClearToEmpty();
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline const std::string& CloudToDeviceProximityAuthPairing::additional_metadata() const {
|
||||
// @@protoc_insertion_point(field_get:securegcm.CloudToDeviceProximityAuthPairing.additional_metadata)
|
||||
return _internal_additional_metadata();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void CloudToDeviceProximityAuthPairing::set_additional_metadata(ArgT0&& arg0, ArgT... args) {
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
additional_metadata_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:securegcm.CloudToDeviceProximityAuthPairing.additional_metadata)
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::mutable_additional_metadata() {
|
||||
std::string* _s = _internal_mutable_additional_metadata();
|
||||
// @@protoc_insertion_point(field_mutable:securegcm.CloudToDeviceProximityAuthPairing.additional_metadata)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& CloudToDeviceProximityAuthPairing::_internal_additional_metadata() const {
|
||||
return additional_metadata_.Get();
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::_internal_set_additional_metadata(const std::string& value) {
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
additional_metadata_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::_internal_mutable_additional_metadata() {
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
return additional_metadata_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CloudToDeviceProximityAuthPairing::release_additional_metadata() {
|
||||
// @@protoc_insertion_point(field_release:securegcm.CloudToDeviceProximityAuthPairing.additional_metadata)
|
||||
if (!_internal_has_additional_metadata()) {
|
||||
return nullptr;
|
||||
}
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
auto* p = additional_metadata_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (additional_metadata_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
additional_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
return p;
|
||||
}
|
||||
inline void CloudToDeviceProximityAuthPairing::set_allocated_additional_metadata(std::string* additional_metadata) {
|
||||
if (additional_metadata != nullptr) {
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
additional_metadata_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), additional_metadata,
|
||||
GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (additional_metadata_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
additional_metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:securegcm.CloudToDeviceProximityAuthPairing.additional_metadata)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DeviceProximityCallback
|
||||
|
||||
// optional string callback_bluetooth_address = 1;
|
||||
inline bool DeviceProximityCallback::_internal_has_callback_bluetooth_address() const {
|
||||
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool DeviceProximityCallback::has_callback_bluetooth_address() const {
|
||||
return _internal_has_callback_bluetooth_address();
|
||||
}
|
||||
inline void DeviceProximityCallback::clear_callback_bluetooth_address() {
|
||||
callback_bluetooth_address_.ClearToEmpty();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const std::string& DeviceProximityCallback::callback_bluetooth_address() const {
|
||||
// @@protoc_insertion_point(field_get:securegcm.DeviceProximityCallback.callback_bluetooth_address)
|
||||
return _internal_callback_bluetooth_address();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void DeviceProximityCallback::set_callback_bluetooth_address(ArgT0&& arg0, ArgT... args) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
callback_bluetooth_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:securegcm.DeviceProximityCallback.callback_bluetooth_address)
|
||||
}
|
||||
inline std::string* DeviceProximityCallback::mutable_callback_bluetooth_address() {
|
||||
std::string* _s = _internal_mutable_callback_bluetooth_address();
|
||||
// @@protoc_insertion_point(field_mutable:securegcm.DeviceProximityCallback.callback_bluetooth_address)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& DeviceProximityCallback::_internal_callback_bluetooth_address() const {
|
||||
return callback_bluetooth_address_.Get();
|
||||
}
|
||||
inline void DeviceProximityCallback::_internal_set_callback_bluetooth_address(const std::string& value) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
callback_bluetooth_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* DeviceProximityCallback::_internal_mutable_callback_bluetooth_address() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
return callback_bluetooth_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* DeviceProximityCallback::release_callback_bluetooth_address() {
|
||||
// @@protoc_insertion_point(field_release:securegcm.DeviceProximityCallback.callback_bluetooth_address)
|
||||
if (!_internal_has_callback_bluetooth_address()) {
|
||||
return nullptr;
|
||||
}
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
auto* p = callback_bluetooth_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (callback_bluetooth_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
callback_bluetooth_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
return p;
|
||||
}
|
||||
inline void DeviceProximityCallback::set_allocated_callback_bluetooth_address(std::string* callback_bluetooth_address) {
|
||||
if (callback_bluetooth_address != nullptr) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
callback_bluetooth_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), callback_bluetooth_address,
|
||||
GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (callback_bluetooth_address_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
|
||||
callback_bluetooth_address_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:securegcm.DeviceProximityCallback.callback_bluetooth_address)
|
||||
}
|
||||
|
||||
// optional .securegcm.DeviceType source_device_type = 2;
|
||||
inline bool DeviceProximityCallback::_internal_has_source_device_type() const {
|
||||
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool DeviceProximityCallback::has_source_device_type() const {
|
||||
return _internal_has_source_device_type();
|
||||
}
|
||||
inline void DeviceProximityCallback::clear_source_device_type() {
|
||||
source_device_type_ = 0;
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline ::securegcm::DeviceType DeviceProximityCallback::_internal_source_device_type() const {
|
||||
return static_cast< ::securegcm::DeviceType >(source_device_type_);
|
||||
}
|
||||
inline ::securegcm::DeviceType DeviceProximityCallback::source_device_type() const {
|
||||
// @@protoc_insertion_point(field_get:securegcm.DeviceProximityCallback.source_device_type)
|
||||
return _internal_source_device_type();
|
||||
}
|
||||
inline void DeviceProximityCallback::_internal_set_source_device_type(::securegcm::DeviceType value) {
|
||||
assert(::securegcm::DeviceType_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
source_device_type_ = value;
|
||||
}
|
||||
inline void DeviceProximityCallback::set_source_device_type(::securegcm::DeviceType value) {
|
||||
_internal_set_source_device_type(value);
|
||||
// @@protoc_insertion_point(field_set:securegcm.DeviceProximityCallback.source_device_type)
|
||||
}
|
||||
|
||||
// optional int32 protocol_version = 3;
|
||||
inline bool DeviceProximityCallback::_internal_has_protocol_version() const {
|
||||
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool DeviceProximityCallback::has_protocol_version() const {
|
||||
return _internal_has_protocol_version();
|
||||
}
|
||||
inline void DeviceProximityCallback::clear_protocol_version() {
|
||||
protocol_version_ = 0;
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline int32_t DeviceProximityCallback::_internal_protocol_version() const {
|
||||
return protocol_version_;
|
||||
}
|
||||
inline int32_t DeviceProximityCallback::protocol_version() const {
|
||||
// @@protoc_insertion_point(field_get:securegcm.DeviceProximityCallback.protocol_version)
|
||||
return _internal_protocol_version();
|
||||
}
|
||||
inline void DeviceProximityCallback::_internal_set_protocol_version(int32_t value) {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
protocol_version_ = value;
|
||||
}
|
||||
inline void DeviceProximityCallback::set_protocol_version(int32_t value) {
|
||||
_internal_set_protocol_version(value);
|
||||
// @@protoc_insertion_point(field_set:securegcm.DeviceProximityCallback.protocol_version)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace securegcm
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#include <google/protobuf/port_undef.inc>
|
||||
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_proto_2fproximity_5fpayloads_2eproto
|
||||
-2085
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user