512 lines
21 KiB
C++
512 lines
21 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: protos/public/remote_attestation.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fremote_5fattestation_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fremote_5fattestation_2eproto
|
|
|
|
#include <limits>
|
|
#include <string>
|
|
|
|
#include <google/protobuf/port_def.inc>
|
|
#if PROTOBUF_VERSION < 3014000
|
|
#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 3014000 < 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/generated_message_reflection.h>
|
|
#include <google/protobuf/message.h>
|
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
#include "protos/public/client_identification.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_protos_2fpublic_2fremote_5fattestation_2eproto
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
namespace internal {
|
|
class AnyMetadata;
|
|
} // namespace internal
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// Internal implementation detail -- do not use these members.
|
|
struct TableStruct_protos_2fpublic_2fremote_5fattestation_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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
|
|
};
|
|
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fpublic_2fremote_5fattestation_2eproto;
|
|
namespace video_widevine {
|
|
class RemoteAttestation;
|
|
class RemoteAttestationDefaultTypeInternal;
|
|
extern RemoteAttestationDefaultTypeInternal _RemoteAttestation_default_instance_;
|
|
} // namespace video_widevine
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> ::video_widevine::RemoteAttestation* Arena::CreateMaybeMessage<::video_widevine::RemoteAttestation>(Arena*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace video_widevine {
|
|
|
|
// ===================================================================
|
|
|
|
class RemoteAttestation PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.RemoteAttestation) */ {
|
|
public:
|
|
inline RemoteAttestation() : RemoteAttestation(nullptr) {}
|
|
virtual ~RemoteAttestation();
|
|
|
|
RemoteAttestation(const RemoteAttestation& from);
|
|
RemoteAttestation(RemoteAttestation&& from) noexcept
|
|
: RemoteAttestation() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline RemoteAttestation& operator=(const RemoteAttestation& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline RemoteAttestation& operator=(RemoteAttestation&& from) noexcept {
|
|
if (GetArena() == from.GetArena()) {
|
|
if (this != &from) InternalSwap(&from);
|
|
} else {
|
|
CopyFrom(from);
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
|
return GetDescriptor();
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
|
return GetMetadataStatic().descriptor;
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
|
return GetMetadataStatic().reflection;
|
|
}
|
|
static const RemoteAttestation& default_instance();
|
|
|
|
static inline const RemoteAttestation* internal_default_instance() {
|
|
return reinterpret_cast<const RemoteAttestation*>(
|
|
&_RemoteAttestation_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(RemoteAttestation& a, RemoteAttestation& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(RemoteAttestation* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(RemoteAttestation* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline RemoteAttestation* New() const final {
|
|
return CreateMaybeMessage<RemoteAttestation>(nullptr);
|
|
}
|
|
|
|
RemoteAttestation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<RemoteAttestation>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const RemoteAttestation& from);
|
|
void MergeFrom(const RemoteAttestation& 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;
|
|
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
|
int GetCachedSize() const final { return _cached_size_.Get(); }
|
|
|
|
private:
|
|
inline void SharedCtor();
|
|
inline void SharedDtor();
|
|
void SetCachedSize(int size) const final;
|
|
void InternalSwap(RemoteAttestation* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.RemoteAttestation";
|
|
}
|
|
protected:
|
|
explicit RemoteAttestation(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
private:
|
|
static void ArenaDtor(void* object);
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
public:
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
private:
|
|
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fpublic_2fremote_5fattestation_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2fremote_5fattestation_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kSaltFieldNumber = 2,
|
|
kSignatureFieldNumber = 3,
|
|
kCertificateFieldNumber = 1,
|
|
};
|
|
// optional bytes salt = 2;
|
|
bool has_salt() const;
|
|
private:
|
|
bool _internal_has_salt() const;
|
|
public:
|
|
void clear_salt();
|
|
const std::string& salt() const;
|
|
void set_salt(const std::string& value);
|
|
void set_salt(std::string&& value);
|
|
void set_salt(const char* value);
|
|
void set_salt(const void* value, size_t size);
|
|
std::string* mutable_salt();
|
|
std::string* release_salt();
|
|
void set_allocated_salt(std::string* salt);
|
|
private:
|
|
const std::string& _internal_salt() const;
|
|
void _internal_set_salt(const std::string& value);
|
|
std::string* _internal_mutable_salt();
|
|
public:
|
|
|
|
// optional bytes signature = 3;
|
|
bool has_signature() const;
|
|
private:
|
|
bool _internal_has_signature() const;
|
|
public:
|
|
void clear_signature();
|
|
const std::string& signature() const;
|
|
void set_signature(const std::string& value);
|
|
void set_signature(std::string&& value);
|
|
void set_signature(const char* value);
|
|
void set_signature(const void* value, size_t size);
|
|
std::string* mutable_signature();
|
|
std::string* release_signature();
|
|
void set_allocated_signature(std::string* signature);
|
|
private:
|
|
const std::string& _internal_signature() const;
|
|
void _internal_set_signature(const std::string& value);
|
|
std::string* _internal_mutable_signature();
|
|
public:
|
|
|
|
// optional .video_widevine.EncryptedClientIdentification certificate = 1;
|
|
bool has_certificate() const;
|
|
private:
|
|
bool _internal_has_certificate() const;
|
|
public:
|
|
void clear_certificate();
|
|
const ::video_widevine::EncryptedClientIdentification& certificate() const;
|
|
::video_widevine::EncryptedClientIdentification* release_certificate();
|
|
::video_widevine::EncryptedClientIdentification* mutable_certificate();
|
|
void set_allocated_certificate(::video_widevine::EncryptedClientIdentification* certificate);
|
|
private:
|
|
const ::video_widevine::EncryptedClientIdentification& _internal_certificate() const;
|
|
::video_widevine::EncryptedClientIdentification* _internal_mutable_certificate();
|
|
public:
|
|
void unsafe_arena_set_allocated_certificate(
|
|
::video_widevine::EncryptedClientIdentification* certificate);
|
|
::video_widevine::EncryptedClientIdentification* unsafe_arena_release_certificate();
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.RemoteAttestation)
|
|
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 salt_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signature_;
|
|
::video_widevine::EncryptedClientIdentification* certificate_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fremote_5fattestation_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// RemoteAttestation
|
|
|
|
// optional .video_widevine.EncryptedClientIdentification certificate = 1;
|
|
inline bool RemoteAttestation::_internal_has_certificate() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
PROTOBUF_ASSUME(!value || certificate_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool RemoteAttestation::has_certificate() const {
|
|
return _internal_has_certificate();
|
|
}
|
|
inline const ::video_widevine::EncryptedClientIdentification& RemoteAttestation::_internal_certificate() const {
|
|
const ::video_widevine::EncryptedClientIdentification* p = certificate_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::EncryptedClientIdentification&>(
|
|
::video_widevine::_EncryptedClientIdentification_default_instance_);
|
|
}
|
|
inline const ::video_widevine::EncryptedClientIdentification& RemoteAttestation::certificate() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.RemoteAttestation.certificate)
|
|
return _internal_certificate();
|
|
}
|
|
inline void RemoteAttestation::unsafe_arena_set_allocated_certificate(
|
|
::video_widevine::EncryptedClientIdentification* certificate) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(certificate_);
|
|
}
|
|
certificate_ = certificate;
|
|
if (certificate) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.RemoteAttestation.certificate)
|
|
}
|
|
inline ::video_widevine::EncryptedClientIdentification* RemoteAttestation::release_certificate() {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
::video_widevine::EncryptedClientIdentification* temp = certificate_;
|
|
certificate_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::EncryptedClientIdentification* RemoteAttestation::unsafe_arena_release_certificate() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.RemoteAttestation.certificate)
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
::video_widevine::EncryptedClientIdentification* temp = certificate_;
|
|
certificate_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::EncryptedClientIdentification* RemoteAttestation::_internal_mutable_certificate() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
if (certificate_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::EncryptedClientIdentification>(GetArena());
|
|
certificate_ = p;
|
|
}
|
|
return certificate_;
|
|
}
|
|
inline ::video_widevine::EncryptedClientIdentification* RemoteAttestation::mutable_certificate() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.RemoteAttestation.certificate)
|
|
return _internal_mutable_certificate();
|
|
}
|
|
inline void RemoteAttestation::set_allocated_certificate(::video_widevine::EncryptedClientIdentification* certificate) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(certificate_);
|
|
}
|
|
if (certificate) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(certificate)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
certificate = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, certificate, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
certificate_ = certificate;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.RemoteAttestation.certificate)
|
|
}
|
|
|
|
// optional bytes salt = 2;
|
|
inline bool RemoteAttestation::_internal_has_salt() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool RemoteAttestation::has_salt() const {
|
|
return _internal_has_salt();
|
|
}
|
|
inline void RemoteAttestation::clear_salt() {
|
|
salt_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& RemoteAttestation::salt() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.RemoteAttestation.salt)
|
|
return _internal_salt();
|
|
}
|
|
inline void RemoteAttestation::set_salt(const std::string& value) {
|
|
_internal_set_salt(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.RemoteAttestation.salt)
|
|
}
|
|
inline std::string* RemoteAttestation::mutable_salt() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.RemoteAttestation.salt)
|
|
return _internal_mutable_salt();
|
|
}
|
|
inline const std::string& RemoteAttestation::_internal_salt() const {
|
|
return salt_.Get();
|
|
}
|
|
inline void RemoteAttestation::_internal_set_salt(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
salt_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void RemoteAttestation::set_salt(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
salt_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.RemoteAttestation.salt)
|
|
}
|
|
inline void RemoteAttestation::set_salt(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
salt_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.RemoteAttestation.salt)
|
|
}
|
|
inline void RemoteAttestation::set_salt(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
salt_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.RemoteAttestation.salt)
|
|
}
|
|
inline std::string* RemoteAttestation::_internal_mutable_salt() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return salt_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* RemoteAttestation::release_salt() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.RemoteAttestation.salt)
|
|
if (!_internal_has_salt()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return salt_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void RemoteAttestation::set_allocated_salt(std::string* salt) {
|
|
if (salt != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
salt_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), salt,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.RemoteAttestation.salt)
|
|
}
|
|
|
|
// optional bytes signature = 3;
|
|
inline bool RemoteAttestation::_internal_has_signature() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool RemoteAttestation::has_signature() const {
|
|
return _internal_has_signature();
|
|
}
|
|
inline void RemoteAttestation::clear_signature() {
|
|
signature_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& RemoteAttestation::signature() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.RemoteAttestation.signature)
|
|
return _internal_signature();
|
|
}
|
|
inline void RemoteAttestation::set_signature(const std::string& value) {
|
|
_internal_set_signature(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.RemoteAttestation.signature)
|
|
}
|
|
inline std::string* RemoteAttestation::mutable_signature() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.RemoteAttestation.signature)
|
|
return _internal_mutable_signature();
|
|
}
|
|
inline const std::string& RemoteAttestation::_internal_signature() const {
|
|
return signature_.Get();
|
|
}
|
|
inline void RemoteAttestation::_internal_set_signature(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void RemoteAttestation::set_signature(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.RemoteAttestation.signature)
|
|
}
|
|
inline void RemoteAttestation::set_signature(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.RemoteAttestation.signature)
|
|
}
|
|
inline void RemoteAttestation::set_signature(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.RemoteAttestation.signature)
|
|
}
|
|
inline std::string* RemoteAttestation::_internal_mutable_signature() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* RemoteAttestation::release_signature() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.RemoteAttestation.signature)
|
|
if (!_internal_has_signature()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return signature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void RemoteAttestation::set_allocated_signature(std::string* signature) {
|
|
if (signature != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
signature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signature,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.RemoteAttestation.signature)
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace video_widevine
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fremote_5fattestation_2eproto
|