WvPL License SDK release: 17.0.1
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
#include <google/protobuf/generated_enum_reflection.h>
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
#include "protos/public/root_of_trust_id.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#define PROTOBUF_INTERNAL_EXPORT_protos_2fpublic_2fdrm_5fcertificate_2eproto
|
||||
@@ -47,7 +48,7 @@ struct TableStruct_protos_2fpublic_2fdrm_5fcertificate_2eproto {
|
||||
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[3]
|
||||
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[];
|
||||
@@ -61,40 +62,13 @@ extern DrmCertificateDefaultTypeInternal _DrmCertificate_default_instance_;
|
||||
class DrmCertificate_EncryptionKey;
|
||||
struct DrmCertificate_EncryptionKeyDefaultTypeInternal;
|
||||
extern DrmCertificate_EncryptionKeyDefaultTypeInternal _DrmCertificate_EncryptionKey_default_instance_;
|
||||
class RootOfTrustId;
|
||||
struct RootOfTrustIdDefaultTypeInternal;
|
||||
extern RootOfTrustIdDefaultTypeInternal _RootOfTrustId_default_instance_;
|
||||
} // namespace video_widevine
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::video_widevine::DrmCertificate* Arena::CreateMaybeMessage<::video_widevine::DrmCertificate>(Arena*);
|
||||
template<> ::video_widevine::DrmCertificate_EncryptionKey* Arena::CreateMaybeMessage<::video_widevine::DrmCertificate_EncryptionKey>(Arena*);
|
||||
template<> ::video_widevine::RootOfTrustId* Arena::CreateMaybeMessage<::video_widevine::RootOfTrustId>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace video_widevine {
|
||||
|
||||
enum RootOfTrustId_RootOfTrustIdVersion : int {
|
||||
RootOfTrustId_RootOfTrustIdVersion_ROOT_OF_TRUST_ID_VERSION_UNSPECIFIED = 0,
|
||||
RootOfTrustId_RootOfTrustIdVersion_ROOT_OF_TRUST_ID_VERSION_1 = 1
|
||||
};
|
||||
bool RootOfTrustId_RootOfTrustIdVersion_IsValid(int value);
|
||||
constexpr RootOfTrustId_RootOfTrustIdVersion RootOfTrustId_RootOfTrustIdVersion_RootOfTrustIdVersion_MIN = RootOfTrustId_RootOfTrustIdVersion_ROOT_OF_TRUST_ID_VERSION_UNSPECIFIED;
|
||||
constexpr RootOfTrustId_RootOfTrustIdVersion RootOfTrustId_RootOfTrustIdVersion_RootOfTrustIdVersion_MAX = RootOfTrustId_RootOfTrustIdVersion_ROOT_OF_TRUST_ID_VERSION_1;
|
||||
constexpr int RootOfTrustId_RootOfTrustIdVersion_RootOfTrustIdVersion_ARRAYSIZE = RootOfTrustId_RootOfTrustIdVersion_RootOfTrustIdVersion_MAX + 1;
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RootOfTrustId_RootOfTrustIdVersion_descriptor();
|
||||
template<typename T>
|
||||
inline const std::string& RootOfTrustId_RootOfTrustIdVersion_Name(T enum_t_value) {
|
||||
static_assert(::std::is_same<T, RootOfTrustId_RootOfTrustIdVersion>::value ||
|
||||
::std::is_integral<T>::value,
|
||||
"Incorrect type passed to function RootOfTrustId_RootOfTrustIdVersion_Name.");
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
||||
RootOfTrustId_RootOfTrustIdVersion_descriptor(), enum_t_value);
|
||||
}
|
||||
inline bool RootOfTrustId_RootOfTrustIdVersion_Parse(
|
||||
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, RootOfTrustId_RootOfTrustIdVersion* value) {
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<RootOfTrustId_RootOfTrustIdVersion>(
|
||||
RootOfTrustId_RootOfTrustIdVersion_descriptor(), name, value);
|
||||
}
|
||||
enum DrmCertificate_Type : int {
|
||||
DrmCertificate_Type_ROOT = 0,
|
||||
DrmCertificate_Type_DEVICE_MODEL = 1,
|
||||
@@ -175,242 +149,6 @@ inline bool DrmCertificate_Algorithm_Parse(
|
||||
}
|
||||
// ===================================================================
|
||||
|
||||
class RootOfTrustId final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.RootOfTrustId) */ {
|
||||
public:
|
||||
inline RootOfTrustId() : RootOfTrustId(nullptr) {}
|
||||
~RootOfTrustId() override;
|
||||
explicit constexpr RootOfTrustId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
RootOfTrustId(const RootOfTrustId& from);
|
||||
RootOfTrustId(RootOfTrustId&& from) noexcept
|
||||
: RootOfTrustId() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline RootOfTrustId& operator=(const RootOfTrustId& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline RootOfTrustId& operator=(RootOfTrustId&& from) noexcept {
|
||||
if (this == &from) return *this;
|
||||
if (GetOwningArena() == from.GetOwningArena()) {
|
||||
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 default_instance().GetMetadata().descriptor;
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
||||
return default_instance().GetMetadata().reflection;
|
||||
}
|
||||
static const RootOfTrustId& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const RootOfTrustId* internal_default_instance() {
|
||||
return reinterpret_cast<const RootOfTrustId*>(
|
||||
&_RootOfTrustId_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
|
||||
friend void swap(RootOfTrustId& a, RootOfTrustId& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(RootOfTrustId* other) {
|
||||
if (other == this) return;
|
||||
if (GetOwningArena() == other->GetOwningArena()) {
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
||||
}
|
||||
}
|
||||
void UnsafeArenaSwap(RootOfTrustId* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
inline RootOfTrustId* New() const final {
|
||||
return new RootOfTrustId();
|
||||
}
|
||||
|
||||
RootOfTrustId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
||||
return CreateMaybeMessage<RootOfTrustId>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const RootOfTrustId& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom(const RootOfTrustId& from);
|
||||
private:
|
||||
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from);
|
||||
public:
|
||||
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:
|
||||
void SharedCtor();
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const final;
|
||||
void InternalSwap(RootOfTrustId* other);
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "video_widevine.RootOfTrustId";
|
||||
}
|
||||
protected:
|
||||
explicit RootOfTrustId(::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:
|
||||
|
||||
static const ClassData _class_data_;
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
typedef RootOfTrustId_RootOfTrustIdVersion RootOfTrustIdVersion;
|
||||
static constexpr RootOfTrustIdVersion ROOT_OF_TRUST_ID_VERSION_UNSPECIFIED =
|
||||
RootOfTrustId_RootOfTrustIdVersion_ROOT_OF_TRUST_ID_VERSION_UNSPECIFIED;
|
||||
static constexpr RootOfTrustIdVersion ROOT_OF_TRUST_ID_VERSION_1 =
|
||||
RootOfTrustId_RootOfTrustIdVersion_ROOT_OF_TRUST_ID_VERSION_1;
|
||||
static inline bool RootOfTrustIdVersion_IsValid(int value) {
|
||||
return RootOfTrustId_RootOfTrustIdVersion_IsValid(value);
|
||||
}
|
||||
static constexpr RootOfTrustIdVersion RootOfTrustIdVersion_MIN =
|
||||
RootOfTrustId_RootOfTrustIdVersion_RootOfTrustIdVersion_MIN;
|
||||
static constexpr RootOfTrustIdVersion RootOfTrustIdVersion_MAX =
|
||||
RootOfTrustId_RootOfTrustIdVersion_RootOfTrustIdVersion_MAX;
|
||||
static constexpr int RootOfTrustIdVersion_ARRAYSIZE =
|
||||
RootOfTrustId_RootOfTrustIdVersion_RootOfTrustIdVersion_ARRAYSIZE;
|
||||
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
||||
RootOfTrustIdVersion_descriptor() {
|
||||
return RootOfTrustId_RootOfTrustIdVersion_descriptor();
|
||||
}
|
||||
template<typename T>
|
||||
static inline const std::string& RootOfTrustIdVersion_Name(T enum_t_value) {
|
||||
static_assert(::std::is_same<T, RootOfTrustIdVersion>::value ||
|
||||
::std::is_integral<T>::value,
|
||||
"Incorrect type passed to function RootOfTrustIdVersion_Name.");
|
||||
return RootOfTrustId_RootOfTrustIdVersion_Name(enum_t_value);
|
||||
}
|
||||
static inline bool RootOfTrustIdVersion_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
||||
RootOfTrustIdVersion* value) {
|
||||
return RootOfTrustId_RootOfTrustIdVersion_Parse(name, value);
|
||||
}
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kEncryptedUniqueIdFieldNumber = 3,
|
||||
kUniqueIdHashFieldNumber = 4,
|
||||
kVersionFieldNumber = 1,
|
||||
kKeyIdFieldNumber = 2,
|
||||
};
|
||||
// optional bytes encrypted_unique_id = 3;
|
||||
bool has_encrypted_unique_id() const;
|
||||
private:
|
||||
bool _internal_has_encrypted_unique_id() const;
|
||||
public:
|
||||
void clear_encrypted_unique_id();
|
||||
const std::string& encrypted_unique_id() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_encrypted_unique_id(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_encrypted_unique_id();
|
||||
PROTOBUF_MUST_USE_RESULT std::string* release_encrypted_unique_id();
|
||||
void set_allocated_encrypted_unique_id(std::string* encrypted_unique_id);
|
||||
private:
|
||||
const std::string& _internal_encrypted_unique_id() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_encrypted_unique_id(const std::string& value);
|
||||
std::string* _internal_mutable_encrypted_unique_id();
|
||||
public:
|
||||
|
||||
// optional bytes unique_id_hash = 4;
|
||||
bool has_unique_id_hash() const;
|
||||
private:
|
||||
bool _internal_has_unique_id_hash() const;
|
||||
public:
|
||||
void clear_unique_id_hash();
|
||||
const std::string& unique_id_hash() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_unique_id_hash(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_unique_id_hash();
|
||||
PROTOBUF_MUST_USE_RESULT std::string* release_unique_id_hash();
|
||||
void set_allocated_unique_id_hash(std::string* unique_id_hash);
|
||||
private:
|
||||
const std::string& _internal_unique_id_hash() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_unique_id_hash(const std::string& value);
|
||||
std::string* _internal_mutable_unique_id_hash();
|
||||
public:
|
||||
|
||||
// optional .video_widevine.RootOfTrustId.RootOfTrustIdVersion version = 1;
|
||||
bool has_version() const;
|
||||
private:
|
||||
bool _internal_has_version() const;
|
||||
public:
|
||||
void clear_version();
|
||||
::video_widevine::RootOfTrustId_RootOfTrustIdVersion version() const;
|
||||
void set_version(::video_widevine::RootOfTrustId_RootOfTrustIdVersion value);
|
||||
private:
|
||||
::video_widevine::RootOfTrustId_RootOfTrustIdVersion _internal_version() const;
|
||||
void _internal_set_version(::video_widevine::RootOfTrustId_RootOfTrustIdVersion value);
|
||||
public:
|
||||
|
||||
// optional uint32 key_id = 2;
|
||||
bool has_key_id() const;
|
||||
private:
|
||||
bool _internal_has_key_id() const;
|
||||
public:
|
||||
void clear_key_id();
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 key_id() const;
|
||||
void set_key_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
||||
private:
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 _internal_key_id() const;
|
||||
void _internal_set_key_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:video_widevine.RootOfTrustId)
|
||||
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 encrypted_unique_id_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr unique_id_hash_;
|
||||
int version_;
|
||||
::PROTOBUF_NAMESPACE_ID::uint32 key_id_;
|
||||
friend struct ::TableStruct_protos_2fpublic_2fdrm_5fcertificate_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class DrmCertificate_EncryptionKey final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.DrmCertificate.EncryptionKey) */ {
|
||||
public:
|
||||
@@ -462,7 +200,7 @@ class DrmCertificate_EncryptionKey final :
|
||||
&_DrmCertificate_EncryptionKey_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
1;
|
||||
0;
|
||||
|
||||
friend void swap(DrmCertificate_EncryptionKey& a, DrmCertificate_EncryptionKey& b) {
|
||||
a.Swap(&b);
|
||||
@@ -633,7 +371,7 @@ class DrmCertificate final :
|
||||
&_DrmCertificate_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
2;
|
||||
1;
|
||||
|
||||
friend void swap(DrmCertificate& a, DrmCertificate& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1044,183 +782,6 @@ class DrmCertificate final :
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// RootOfTrustId
|
||||
|
||||
// optional .video_widevine.RootOfTrustId.RootOfTrustIdVersion version = 1;
|
||||
inline bool RootOfTrustId::_internal_has_version() const {
|
||||
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool RootOfTrustId::has_version() const {
|
||||
return _internal_has_version();
|
||||
}
|
||||
inline void RootOfTrustId::clear_version() {
|
||||
version_ = 0;
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline ::video_widevine::RootOfTrustId_RootOfTrustIdVersion RootOfTrustId::_internal_version() const {
|
||||
return static_cast< ::video_widevine::RootOfTrustId_RootOfTrustIdVersion >(version_);
|
||||
}
|
||||
inline ::video_widevine::RootOfTrustId_RootOfTrustIdVersion RootOfTrustId::version() const {
|
||||
// @@protoc_insertion_point(field_get:video_widevine.RootOfTrustId.version)
|
||||
return _internal_version();
|
||||
}
|
||||
inline void RootOfTrustId::_internal_set_version(::video_widevine::RootOfTrustId_RootOfTrustIdVersion value) {
|
||||
assert(::video_widevine::RootOfTrustId_RootOfTrustIdVersion_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
version_ = value;
|
||||
}
|
||||
inline void RootOfTrustId::set_version(::video_widevine::RootOfTrustId_RootOfTrustIdVersion value) {
|
||||
_internal_set_version(value);
|
||||
// @@protoc_insertion_point(field_set:video_widevine.RootOfTrustId.version)
|
||||
}
|
||||
|
||||
// optional uint32 key_id = 2;
|
||||
inline bool RootOfTrustId::_internal_has_key_id() const {
|
||||
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool RootOfTrustId::has_key_id() const {
|
||||
return _internal_has_key_id();
|
||||
}
|
||||
inline void RootOfTrustId::clear_key_id() {
|
||||
key_id_ = 0u;
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::uint32 RootOfTrustId::_internal_key_id() const {
|
||||
return key_id_;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::uint32 RootOfTrustId::key_id() const {
|
||||
// @@protoc_insertion_point(field_get:video_widevine.RootOfTrustId.key_id)
|
||||
return _internal_key_id();
|
||||
}
|
||||
inline void RootOfTrustId::_internal_set_key_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
key_id_ = value;
|
||||
}
|
||||
inline void RootOfTrustId::set_key_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
||||
_internal_set_key_id(value);
|
||||
// @@protoc_insertion_point(field_set:video_widevine.RootOfTrustId.key_id)
|
||||
}
|
||||
|
||||
// optional bytes encrypted_unique_id = 3;
|
||||
inline bool RootOfTrustId::_internal_has_encrypted_unique_id() const {
|
||||
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool RootOfTrustId::has_encrypted_unique_id() const {
|
||||
return _internal_has_encrypted_unique_id();
|
||||
}
|
||||
inline void RootOfTrustId::clear_encrypted_unique_id() {
|
||||
encrypted_unique_id_.ClearToEmpty();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const std::string& RootOfTrustId::encrypted_unique_id() const {
|
||||
// @@protoc_insertion_point(field_get:video_widevine.RootOfTrustId.encrypted_unique_id)
|
||||
return _internal_encrypted_unique_id();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void RootOfTrustId::set_encrypted_unique_id(ArgT0&& arg0, ArgT... args) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
encrypted_unique_id_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:video_widevine.RootOfTrustId.encrypted_unique_id)
|
||||
}
|
||||
inline std::string* RootOfTrustId::mutable_encrypted_unique_id() {
|
||||
std::string* _s = _internal_mutable_encrypted_unique_id();
|
||||
// @@protoc_insertion_point(field_mutable:video_widevine.RootOfTrustId.encrypted_unique_id)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& RootOfTrustId::_internal_encrypted_unique_id() const {
|
||||
return encrypted_unique_id_.Get();
|
||||
}
|
||||
inline void RootOfTrustId::_internal_set_encrypted_unique_id(const std::string& value) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
encrypted_unique_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* RootOfTrustId::_internal_mutable_encrypted_unique_id() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
return encrypted_unique_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* RootOfTrustId::release_encrypted_unique_id() {
|
||||
// @@protoc_insertion_point(field_release:video_widevine.RootOfTrustId.encrypted_unique_id)
|
||||
if (!_internal_has_encrypted_unique_id()) {
|
||||
return nullptr;
|
||||
}
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
return encrypted_unique_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
||||
}
|
||||
inline void RootOfTrustId::set_allocated_encrypted_unique_id(std::string* encrypted_unique_id) {
|
||||
if (encrypted_unique_id != nullptr) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
encrypted_unique_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), encrypted_unique_id,
|
||||
GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set_allocated:video_widevine.RootOfTrustId.encrypted_unique_id)
|
||||
}
|
||||
|
||||
// optional bytes unique_id_hash = 4;
|
||||
inline bool RootOfTrustId::_internal_has_unique_id_hash() const {
|
||||
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool RootOfTrustId::has_unique_id_hash() const {
|
||||
return _internal_has_unique_id_hash();
|
||||
}
|
||||
inline void RootOfTrustId::clear_unique_id_hash() {
|
||||
unique_id_hash_.ClearToEmpty();
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline const std::string& RootOfTrustId::unique_id_hash() const {
|
||||
// @@protoc_insertion_point(field_get:video_widevine.RootOfTrustId.unique_id_hash)
|
||||
return _internal_unique_id_hash();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void RootOfTrustId::set_unique_id_hash(ArgT0&& arg0, ArgT... args) {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
unique_id_hash_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:video_widevine.RootOfTrustId.unique_id_hash)
|
||||
}
|
||||
inline std::string* RootOfTrustId::mutable_unique_id_hash() {
|
||||
std::string* _s = _internal_mutable_unique_id_hash();
|
||||
// @@protoc_insertion_point(field_mutable:video_widevine.RootOfTrustId.unique_id_hash)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& RootOfTrustId::_internal_unique_id_hash() const {
|
||||
return unique_id_hash_.Get();
|
||||
}
|
||||
inline void RootOfTrustId::_internal_set_unique_id_hash(const std::string& value) {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
unique_id_hash_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* RootOfTrustId::_internal_mutable_unique_id_hash() {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
return unique_id_hash_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* RootOfTrustId::release_unique_id_hash() {
|
||||
// @@protoc_insertion_point(field_release:video_widevine.RootOfTrustId.unique_id_hash)
|
||||
if (!_internal_has_unique_id_hash()) {
|
||||
return nullptr;
|
||||
}
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
return unique_id_hash_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
||||
}
|
||||
inline void RootOfTrustId::set_allocated_unique_id_hash(std::string* unique_id_hash) {
|
||||
if (unique_id_hash != nullptr) {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
unique_id_hash_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), unique_id_hash,
|
||||
GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set_allocated:video_widevine.RootOfTrustId.unique_id_hash)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DrmCertificate_EncryptionKey
|
||||
|
||||
// optional bytes public_key = 1;
|
||||
@@ -1712,10 +1273,6 @@ inline bool DrmCertificate::_internal_has_rot_id() const {
|
||||
inline bool DrmCertificate::has_rot_id() const {
|
||||
return _internal_has_rot_id();
|
||||
}
|
||||
inline void DrmCertificate::clear_rot_id() {
|
||||
if (rot_id_ != nullptr) rot_id_->Clear();
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline const ::video_widevine::RootOfTrustId& DrmCertificate::_internal_rot_id() const {
|
||||
const ::video_widevine::RootOfTrustId* p = rot_id_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::RootOfTrustId&>(
|
||||
@@ -1776,11 +1333,13 @@ inline ::video_widevine::RootOfTrustId* DrmCertificate::mutable_rot_id() {
|
||||
inline void DrmCertificate::set_allocated_rot_id(::video_widevine::RootOfTrustId* rot_id) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete rot_id_;
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(rot_id_);
|
||||
}
|
||||
if (rot_id) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::video_widevine::RootOfTrustId>::GetOwningArena(rot_id);
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
|
||||
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rot_id));
|
||||
if (message_arena != submessage_arena) {
|
||||
rot_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, rot_id, submessage_arena);
|
||||
@@ -1888,8 +1447,6 @@ inline void DrmCertificate::set_allocated_encryption_key(::video_widevine::DrmCe
|
||||
#endif // __GNUC__
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
@@ -1897,11 +1454,6 @@ inline void DrmCertificate::set_allocated_encryption_key(::video_widevine::DrmCe
|
||||
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
|
||||
template <> struct is_proto_enum< ::video_widevine::RootOfTrustId_RootOfTrustIdVersion> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::RootOfTrustId_RootOfTrustIdVersion>() {
|
||||
return ::video_widevine::RootOfTrustId_RootOfTrustIdVersion_descriptor();
|
||||
}
|
||||
template <> struct is_proto_enum< ::video_widevine::DrmCertificate_Type> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::DrmCertificate_Type>() {
|
||||
|
||||
Reference in New Issue
Block a user