1479 lines
61 KiB
C++
Executable File
1479 lines
61 KiB
C++
Executable File
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: protos/public/drm_certificate.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fdrm_5fcertificate_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fdrm_5fcertificate_2eproto
|
|
|
|
#include <limits>
|
|
#include <string>
|
|
|
|
#include <google/protobuf/port_def.inc>
|
|
#if PROTOBUF_VERSION < 3017000
|
|
#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 3017003 < 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/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
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
namespace internal {
|
|
class AnyMetadata;
|
|
} // namespace internal
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// Internal implementation detail -- do not use these members.
|
|
struct TableStruct_protos_2fpublic_2fdrm_5fcertificate_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 ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
|
|
};
|
|
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fpublic_2fdrm_5fcertificate_2eproto;
|
|
namespace video_widevine {
|
|
class DrmCertificate;
|
|
struct DrmCertificateDefaultTypeInternal;
|
|
extern DrmCertificateDefaultTypeInternal _DrmCertificate_default_instance_;
|
|
class DrmCertificate_EncryptionKey;
|
|
struct DrmCertificate_EncryptionKeyDefaultTypeInternal;
|
|
extern DrmCertificate_EncryptionKeyDefaultTypeInternal _DrmCertificate_EncryptionKey_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*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace video_widevine {
|
|
|
|
enum DrmCertificate_Type : int {
|
|
DrmCertificate_Type_ROOT = 0,
|
|
DrmCertificate_Type_DEVICE_MODEL = 1,
|
|
DrmCertificate_Type_DEVICE = 2,
|
|
DrmCertificate_Type_SERVICE = 3,
|
|
DrmCertificate_Type_PROVISIONER = 4
|
|
};
|
|
bool DrmCertificate_Type_IsValid(int value);
|
|
constexpr DrmCertificate_Type DrmCertificate_Type_Type_MIN = DrmCertificate_Type_ROOT;
|
|
constexpr DrmCertificate_Type DrmCertificate_Type_Type_MAX = DrmCertificate_Type_PROVISIONER;
|
|
constexpr int DrmCertificate_Type_Type_ARRAYSIZE = DrmCertificate_Type_Type_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DrmCertificate_Type_descriptor();
|
|
template<typename T>
|
|
inline const std::string& DrmCertificate_Type_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, DrmCertificate_Type>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function DrmCertificate_Type_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
DrmCertificate_Type_descriptor(), enum_t_value);
|
|
}
|
|
inline bool DrmCertificate_Type_Parse(
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DrmCertificate_Type* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DrmCertificate_Type>(
|
|
DrmCertificate_Type_descriptor(), name, value);
|
|
}
|
|
enum DrmCertificate_ServiceType : int {
|
|
DrmCertificate_ServiceType_UNKNOWN_SERVICE_TYPE = 0,
|
|
DrmCertificate_ServiceType_LICENSE_SERVER_SDK = 1,
|
|
DrmCertificate_ServiceType_LICENSE_SERVER_PROXY_SDK = 2,
|
|
DrmCertificate_ServiceType_PROVISIONING_SDK = 3,
|
|
DrmCertificate_ServiceType_CAS_PROXY_SDK = 4
|
|
};
|
|
bool DrmCertificate_ServiceType_IsValid(int value);
|
|
constexpr DrmCertificate_ServiceType DrmCertificate_ServiceType_ServiceType_MIN = DrmCertificate_ServiceType_UNKNOWN_SERVICE_TYPE;
|
|
constexpr DrmCertificate_ServiceType DrmCertificate_ServiceType_ServiceType_MAX = DrmCertificate_ServiceType_CAS_PROXY_SDK;
|
|
constexpr int DrmCertificate_ServiceType_ServiceType_ARRAYSIZE = DrmCertificate_ServiceType_ServiceType_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DrmCertificate_ServiceType_descriptor();
|
|
template<typename T>
|
|
inline const std::string& DrmCertificate_ServiceType_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, DrmCertificate_ServiceType>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function DrmCertificate_ServiceType_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
DrmCertificate_ServiceType_descriptor(), enum_t_value);
|
|
}
|
|
inline bool DrmCertificate_ServiceType_Parse(
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DrmCertificate_ServiceType* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DrmCertificate_ServiceType>(
|
|
DrmCertificate_ServiceType_descriptor(), name, value);
|
|
}
|
|
enum DrmCertificate_Algorithm : int {
|
|
DrmCertificate_Algorithm_UNKNOWN_ALGORITHM = 0,
|
|
DrmCertificate_Algorithm_RSA = 1,
|
|
DrmCertificate_Algorithm_ECC_SECP256R1 = 2,
|
|
DrmCertificate_Algorithm_ECC_SECP384R1 = 3,
|
|
DrmCertificate_Algorithm_ECC_SECP521R1 = 4
|
|
};
|
|
bool DrmCertificate_Algorithm_IsValid(int value);
|
|
constexpr DrmCertificate_Algorithm DrmCertificate_Algorithm_Algorithm_MIN = DrmCertificate_Algorithm_UNKNOWN_ALGORITHM;
|
|
constexpr DrmCertificate_Algorithm DrmCertificate_Algorithm_Algorithm_MAX = DrmCertificate_Algorithm_ECC_SECP521R1;
|
|
constexpr int DrmCertificate_Algorithm_Algorithm_ARRAYSIZE = DrmCertificate_Algorithm_Algorithm_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DrmCertificate_Algorithm_descriptor();
|
|
template<typename T>
|
|
inline const std::string& DrmCertificate_Algorithm_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, DrmCertificate_Algorithm>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function DrmCertificate_Algorithm_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
DrmCertificate_Algorithm_descriptor(), enum_t_value);
|
|
}
|
|
inline bool DrmCertificate_Algorithm_Parse(
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, DrmCertificate_Algorithm* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DrmCertificate_Algorithm>(
|
|
DrmCertificate_Algorithm_descriptor(), name, value);
|
|
}
|
|
// ===================================================================
|
|
|
|
class DrmCertificate_EncryptionKey final :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.DrmCertificate.EncryptionKey) */ {
|
|
public:
|
|
inline DrmCertificate_EncryptionKey() : DrmCertificate_EncryptionKey(nullptr) {}
|
|
~DrmCertificate_EncryptionKey() override;
|
|
explicit constexpr DrmCertificate_EncryptionKey(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
|
|
|
DrmCertificate_EncryptionKey(const DrmCertificate_EncryptionKey& from);
|
|
DrmCertificate_EncryptionKey(DrmCertificate_EncryptionKey&& from) noexcept
|
|
: DrmCertificate_EncryptionKey() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline DrmCertificate_EncryptionKey& operator=(const DrmCertificate_EncryptionKey& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline DrmCertificate_EncryptionKey& operator=(DrmCertificate_EncryptionKey&& 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 DrmCertificate_EncryptionKey& default_instance() {
|
|
return *internal_default_instance();
|
|
}
|
|
static inline const DrmCertificate_EncryptionKey* internal_default_instance() {
|
|
return reinterpret_cast<const DrmCertificate_EncryptionKey*>(
|
|
&_DrmCertificate_EncryptionKey_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(DrmCertificate_EncryptionKey& a, DrmCertificate_EncryptionKey& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(DrmCertificate_EncryptionKey* other) {
|
|
if (other == this) return;
|
|
if (GetOwningArena() == other->GetOwningArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(DrmCertificate_EncryptionKey* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline DrmCertificate_EncryptionKey* New() const final {
|
|
return new DrmCertificate_EncryptionKey();
|
|
}
|
|
|
|
DrmCertificate_EncryptionKey* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<DrmCertificate_EncryptionKey>(arena);
|
|
}
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
|
void CopyFrom(const DrmCertificate_EncryptionKey& from);
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
|
void MergeFrom(const DrmCertificate_EncryptionKey& 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(DrmCertificate_EncryptionKey* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.DrmCertificate.EncryptionKey";
|
|
}
|
|
protected:
|
|
explicit DrmCertificate_EncryptionKey(::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 ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kPublicKeyFieldNumber = 1,
|
|
kAlgorithmFieldNumber = 2,
|
|
};
|
|
// optional bytes public_key = 1;
|
|
bool has_public_key() const;
|
|
private:
|
|
bool _internal_has_public_key() const;
|
|
public:
|
|
void clear_public_key();
|
|
const std::string& public_key() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_public_key(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_public_key();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_public_key();
|
|
void set_allocated_public_key(std::string* public_key);
|
|
private:
|
|
const std::string& _internal_public_key() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value);
|
|
std::string* _internal_mutable_public_key();
|
|
public:
|
|
|
|
// optional .video_widevine.DrmCertificate.Algorithm algorithm = 2 [default = RSA];
|
|
bool has_algorithm() const;
|
|
private:
|
|
bool _internal_has_algorithm() const;
|
|
public:
|
|
void clear_algorithm();
|
|
::video_widevine::DrmCertificate_Algorithm algorithm() const;
|
|
void set_algorithm(::video_widevine::DrmCertificate_Algorithm value);
|
|
private:
|
|
::video_widevine::DrmCertificate_Algorithm _internal_algorithm() const;
|
|
void _internal_set_algorithm(::video_widevine::DrmCertificate_Algorithm value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.DrmCertificate.EncryptionKey)
|
|
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 public_key_;
|
|
int algorithm_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fdrm_5fcertificate_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class DrmCertificate final :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.DrmCertificate) */ {
|
|
public:
|
|
inline DrmCertificate() : DrmCertificate(nullptr) {}
|
|
~DrmCertificate() override;
|
|
explicit constexpr DrmCertificate(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
|
|
|
DrmCertificate(const DrmCertificate& from);
|
|
DrmCertificate(DrmCertificate&& from) noexcept
|
|
: DrmCertificate() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline DrmCertificate& operator=(const DrmCertificate& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline DrmCertificate& operator=(DrmCertificate&& 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 DrmCertificate& default_instance() {
|
|
return *internal_default_instance();
|
|
}
|
|
static inline const DrmCertificate* internal_default_instance() {
|
|
return reinterpret_cast<const DrmCertificate*>(
|
|
&_DrmCertificate_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
1;
|
|
|
|
friend void swap(DrmCertificate& a, DrmCertificate& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(DrmCertificate* other) {
|
|
if (other == this) return;
|
|
if (GetOwningArena() == other->GetOwningArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(DrmCertificate* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline DrmCertificate* New() const final {
|
|
return new DrmCertificate();
|
|
}
|
|
|
|
DrmCertificate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<DrmCertificate>(arena);
|
|
}
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
|
void CopyFrom(const DrmCertificate& from);
|
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
|
void MergeFrom(const DrmCertificate& 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(DrmCertificate* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.DrmCertificate";
|
|
}
|
|
protected:
|
|
explicit DrmCertificate(::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 DrmCertificate_EncryptionKey EncryptionKey;
|
|
|
|
typedef DrmCertificate_Type Type;
|
|
static constexpr Type ROOT =
|
|
DrmCertificate_Type_ROOT;
|
|
static constexpr Type DEVICE_MODEL =
|
|
DrmCertificate_Type_DEVICE_MODEL;
|
|
static constexpr Type DEVICE =
|
|
DrmCertificate_Type_DEVICE;
|
|
static constexpr Type SERVICE =
|
|
DrmCertificate_Type_SERVICE;
|
|
static constexpr Type PROVISIONER =
|
|
DrmCertificate_Type_PROVISIONER;
|
|
static inline bool Type_IsValid(int value) {
|
|
return DrmCertificate_Type_IsValid(value);
|
|
}
|
|
static constexpr Type Type_MIN =
|
|
DrmCertificate_Type_Type_MIN;
|
|
static constexpr Type Type_MAX =
|
|
DrmCertificate_Type_Type_MAX;
|
|
static constexpr int Type_ARRAYSIZE =
|
|
DrmCertificate_Type_Type_ARRAYSIZE;
|
|
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
|
Type_descriptor() {
|
|
return DrmCertificate_Type_descriptor();
|
|
}
|
|
template<typename T>
|
|
static inline const std::string& Type_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, Type>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function Type_Name.");
|
|
return DrmCertificate_Type_Name(enum_t_value);
|
|
}
|
|
static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
|
Type* value) {
|
|
return DrmCertificate_Type_Parse(name, value);
|
|
}
|
|
|
|
typedef DrmCertificate_ServiceType ServiceType;
|
|
static constexpr ServiceType UNKNOWN_SERVICE_TYPE =
|
|
DrmCertificate_ServiceType_UNKNOWN_SERVICE_TYPE;
|
|
static constexpr ServiceType LICENSE_SERVER_SDK =
|
|
DrmCertificate_ServiceType_LICENSE_SERVER_SDK;
|
|
static constexpr ServiceType LICENSE_SERVER_PROXY_SDK =
|
|
DrmCertificate_ServiceType_LICENSE_SERVER_PROXY_SDK;
|
|
static constexpr ServiceType PROVISIONING_SDK =
|
|
DrmCertificate_ServiceType_PROVISIONING_SDK;
|
|
static constexpr ServiceType CAS_PROXY_SDK =
|
|
DrmCertificate_ServiceType_CAS_PROXY_SDK;
|
|
static inline bool ServiceType_IsValid(int value) {
|
|
return DrmCertificate_ServiceType_IsValid(value);
|
|
}
|
|
static constexpr ServiceType ServiceType_MIN =
|
|
DrmCertificate_ServiceType_ServiceType_MIN;
|
|
static constexpr ServiceType ServiceType_MAX =
|
|
DrmCertificate_ServiceType_ServiceType_MAX;
|
|
static constexpr int ServiceType_ARRAYSIZE =
|
|
DrmCertificate_ServiceType_ServiceType_ARRAYSIZE;
|
|
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
|
ServiceType_descriptor() {
|
|
return DrmCertificate_ServiceType_descriptor();
|
|
}
|
|
template<typename T>
|
|
static inline const std::string& ServiceType_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, ServiceType>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function ServiceType_Name.");
|
|
return DrmCertificate_ServiceType_Name(enum_t_value);
|
|
}
|
|
static inline bool ServiceType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
|
ServiceType* value) {
|
|
return DrmCertificate_ServiceType_Parse(name, value);
|
|
}
|
|
|
|
typedef DrmCertificate_Algorithm Algorithm;
|
|
static constexpr Algorithm UNKNOWN_ALGORITHM =
|
|
DrmCertificate_Algorithm_UNKNOWN_ALGORITHM;
|
|
static constexpr Algorithm RSA =
|
|
DrmCertificate_Algorithm_RSA;
|
|
static constexpr Algorithm ECC_SECP256R1 =
|
|
DrmCertificate_Algorithm_ECC_SECP256R1;
|
|
static constexpr Algorithm ECC_SECP384R1 =
|
|
DrmCertificate_Algorithm_ECC_SECP384R1;
|
|
static constexpr Algorithm ECC_SECP521R1 =
|
|
DrmCertificate_Algorithm_ECC_SECP521R1;
|
|
static inline bool Algorithm_IsValid(int value) {
|
|
return DrmCertificate_Algorithm_IsValid(value);
|
|
}
|
|
static constexpr Algorithm Algorithm_MIN =
|
|
DrmCertificate_Algorithm_Algorithm_MIN;
|
|
static constexpr Algorithm Algorithm_MAX =
|
|
DrmCertificate_Algorithm_Algorithm_MAX;
|
|
static constexpr int Algorithm_ARRAYSIZE =
|
|
DrmCertificate_Algorithm_Algorithm_ARRAYSIZE;
|
|
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
|
Algorithm_descriptor() {
|
|
return DrmCertificate_Algorithm_descriptor();
|
|
}
|
|
template<typename T>
|
|
static inline const std::string& Algorithm_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, Algorithm>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function Algorithm_Name.");
|
|
return DrmCertificate_Algorithm_Name(enum_t_value);
|
|
}
|
|
static inline bool Algorithm_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
|
Algorithm* value) {
|
|
return DrmCertificate_Algorithm_Parse(name, value);
|
|
}
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kServiceTypesFieldNumber = 8,
|
|
kSerialNumberFieldNumber = 2,
|
|
kPublicKeyFieldNumber = 4,
|
|
kProviderIdFieldNumber = 7,
|
|
kRotIdFieldNumber = 10,
|
|
kEncryptionKeyFieldNumber = 11,
|
|
kTypeFieldNumber = 1,
|
|
kCreationTimeSecondsFieldNumber = 3,
|
|
kSystemIdFieldNumber = 5,
|
|
kTestDeviceDeprecatedFieldNumber = 6,
|
|
kExpirationTimeSecondsFieldNumber = 12,
|
|
kAlgorithmFieldNumber = 9,
|
|
};
|
|
// repeated .video_widevine.DrmCertificate.ServiceType service_types = 8;
|
|
int service_types_size() const;
|
|
private:
|
|
int _internal_service_types_size() const;
|
|
public:
|
|
void clear_service_types();
|
|
private:
|
|
::video_widevine::DrmCertificate_ServiceType _internal_service_types(int index) const;
|
|
void _internal_add_service_types(::video_widevine::DrmCertificate_ServiceType value);
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_service_types();
|
|
public:
|
|
::video_widevine::DrmCertificate_ServiceType service_types(int index) const;
|
|
void set_service_types(int index, ::video_widevine::DrmCertificate_ServiceType value);
|
|
void add_service_types(::video_widevine::DrmCertificate_ServiceType value);
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& service_types() const;
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_service_types();
|
|
|
|
// optional bytes serial_number = 2;
|
|
bool has_serial_number() const;
|
|
private:
|
|
bool _internal_has_serial_number() const;
|
|
public:
|
|
void clear_serial_number();
|
|
const std::string& serial_number() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_serial_number(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_serial_number();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_serial_number();
|
|
void set_allocated_serial_number(std::string* serial_number);
|
|
private:
|
|
const std::string& _internal_serial_number() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_serial_number(const std::string& value);
|
|
std::string* _internal_mutable_serial_number();
|
|
public:
|
|
|
|
// optional bytes public_key = 4;
|
|
bool has_public_key() const;
|
|
private:
|
|
bool _internal_has_public_key() const;
|
|
public:
|
|
void clear_public_key();
|
|
const std::string& public_key() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_public_key(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_public_key();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_public_key();
|
|
void set_allocated_public_key(std::string* public_key);
|
|
private:
|
|
const std::string& _internal_public_key() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_public_key(const std::string& value);
|
|
std::string* _internal_mutable_public_key();
|
|
public:
|
|
|
|
// optional string provider_id = 7;
|
|
bool has_provider_id() const;
|
|
private:
|
|
bool _internal_has_provider_id() const;
|
|
public:
|
|
void clear_provider_id();
|
|
const std::string& provider_id() const;
|
|
template <typename ArgT0 = const std::string&, typename... ArgT>
|
|
void set_provider_id(ArgT0&& arg0, ArgT... args);
|
|
std::string* mutable_provider_id();
|
|
PROTOBUF_MUST_USE_RESULT std::string* release_provider_id();
|
|
void set_allocated_provider_id(std::string* provider_id);
|
|
private:
|
|
const std::string& _internal_provider_id() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_provider_id(const std::string& value);
|
|
std::string* _internal_mutable_provider_id();
|
|
public:
|
|
|
|
// optional .video_widevine.RootOfTrustId rot_id = 10;
|
|
bool has_rot_id() const;
|
|
private:
|
|
bool _internal_has_rot_id() const;
|
|
public:
|
|
void clear_rot_id();
|
|
const ::video_widevine::RootOfTrustId& rot_id() const;
|
|
PROTOBUF_MUST_USE_RESULT ::video_widevine::RootOfTrustId* release_rot_id();
|
|
::video_widevine::RootOfTrustId* mutable_rot_id();
|
|
void set_allocated_rot_id(::video_widevine::RootOfTrustId* rot_id);
|
|
private:
|
|
const ::video_widevine::RootOfTrustId& _internal_rot_id() const;
|
|
::video_widevine::RootOfTrustId* _internal_mutable_rot_id();
|
|
public:
|
|
void unsafe_arena_set_allocated_rot_id(
|
|
::video_widevine::RootOfTrustId* rot_id);
|
|
::video_widevine::RootOfTrustId* unsafe_arena_release_rot_id();
|
|
|
|
// optional .video_widevine.DrmCertificate.EncryptionKey encryption_key = 11;
|
|
bool has_encryption_key() const;
|
|
private:
|
|
bool _internal_has_encryption_key() const;
|
|
public:
|
|
void clear_encryption_key();
|
|
const ::video_widevine::DrmCertificate_EncryptionKey& encryption_key() const;
|
|
PROTOBUF_MUST_USE_RESULT ::video_widevine::DrmCertificate_EncryptionKey* release_encryption_key();
|
|
::video_widevine::DrmCertificate_EncryptionKey* mutable_encryption_key();
|
|
void set_allocated_encryption_key(::video_widevine::DrmCertificate_EncryptionKey* encryption_key);
|
|
private:
|
|
const ::video_widevine::DrmCertificate_EncryptionKey& _internal_encryption_key() const;
|
|
::video_widevine::DrmCertificate_EncryptionKey* _internal_mutable_encryption_key();
|
|
public:
|
|
void unsafe_arena_set_allocated_encryption_key(
|
|
::video_widevine::DrmCertificate_EncryptionKey* encryption_key);
|
|
::video_widevine::DrmCertificate_EncryptionKey* unsafe_arena_release_encryption_key();
|
|
|
|
// optional .video_widevine.DrmCertificate.Type type = 1;
|
|
bool has_type() const;
|
|
private:
|
|
bool _internal_has_type() const;
|
|
public:
|
|
void clear_type();
|
|
::video_widevine::DrmCertificate_Type type() const;
|
|
void set_type(::video_widevine::DrmCertificate_Type value);
|
|
private:
|
|
::video_widevine::DrmCertificate_Type _internal_type() const;
|
|
void _internal_set_type(::video_widevine::DrmCertificate_Type value);
|
|
public:
|
|
|
|
// optional uint32 creation_time_seconds = 3;
|
|
bool has_creation_time_seconds() const;
|
|
private:
|
|
bool _internal_has_creation_time_seconds() const;
|
|
public:
|
|
void clear_creation_time_seconds();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 creation_time_seconds() const;
|
|
void set_creation_time_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_creation_time_seconds() const;
|
|
void _internal_set_creation_time_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// optional uint32 system_id = 5;
|
|
bool has_system_id() const;
|
|
private:
|
|
bool _internal_has_system_id() const;
|
|
public:
|
|
void clear_system_id();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 system_id() const;
|
|
void set_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_system_id() const;
|
|
void _internal_set_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// optional bool test_device_deprecated = 6 [deprecated = true];
|
|
PROTOBUF_DEPRECATED bool has_test_device_deprecated() const;
|
|
private:
|
|
bool _internal_has_test_device_deprecated() const;
|
|
public:
|
|
PROTOBUF_DEPRECATED void clear_test_device_deprecated();
|
|
PROTOBUF_DEPRECATED bool test_device_deprecated() const;
|
|
PROTOBUF_DEPRECATED void set_test_device_deprecated(bool value);
|
|
private:
|
|
bool _internal_test_device_deprecated() const;
|
|
void _internal_set_test_device_deprecated(bool value);
|
|
public:
|
|
|
|
// optional uint32 expiration_time_seconds = 12;
|
|
bool has_expiration_time_seconds() const;
|
|
private:
|
|
bool _internal_has_expiration_time_seconds() const;
|
|
public:
|
|
void clear_expiration_time_seconds();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 expiration_time_seconds() const;
|
|
void set_expiration_time_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_expiration_time_seconds() const;
|
|
void _internal_set_expiration_time_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// optional .video_widevine.DrmCertificate.Algorithm algorithm = 9 [default = RSA];
|
|
bool has_algorithm() const;
|
|
private:
|
|
bool _internal_has_algorithm() const;
|
|
public:
|
|
void clear_algorithm();
|
|
::video_widevine::DrmCertificate_Algorithm algorithm() const;
|
|
void set_algorithm(::video_widevine::DrmCertificate_Algorithm value);
|
|
private:
|
|
::video_widevine::DrmCertificate_Algorithm _internal_algorithm() const;
|
|
void _internal_set_algorithm(::video_widevine::DrmCertificate_Algorithm value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.DrmCertificate)
|
|
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::RepeatedField<int> service_types_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr serial_number_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr public_key_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_id_;
|
|
::video_widevine::RootOfTrustId* rot_id_;
|
|
::video_widevine::DrmCertificate_EncryptionKey* encryption_key_;
|
|
int type_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 creation_time_seconds_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 system_id_;
|
|
bool test_device_deprecated_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 expiration_time_seconds_;
|
|
int algorithm_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fdrm_5fcertificate_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// DrmCertificate_EncryptionKey
|
|
|
|
// optional bytes public_key = 1;
|
|
inline bool DrmCertificate_EncryptionKey::_internal_has_public_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate_EncryptionKey::has_public_key() const {
|
|
return _internal_has_public_key();
|
|
}
|
|
inline void DrmCertificate_EncryptionKey::clear_public_key() {
|
|
public_key_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& DrmCertificate_EncryptionKey::public_key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.EncryptionKey.public_key)
|
|
return _internal_public_key();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void DrmCertificate_EncryptionKey::set_public_key(ArgT0&& arg0, ArgT... args) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.EncryptionKey.public_key)
|
|
}
|
|
inline std::string* DrmCertificate_EncryptionKey::mutable_public_key() {
|
|
std::string* _s = _internal_mutable_public_key();
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.DrmCertificate.EncryptionKey.public_key)
|
|
return _s;
|
|
}
|
|
inline const std::string& DrmCertificate_EncryptionKey::_internal_public_key() const {
|
|
return public_key_.Get();
|
|
}
|
|
inline void DrmCertificate_EncryptionKey::_internal_set_public_key(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* DrmCertificate_EncryptionKey::_internal_mutable_public_key() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* DrmCertificate_EncryptionKey::release_public_key() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.DrmCertificate.EncryptionKey.public_key)
|
|
if (!_internal_has_public_key()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void DrmCertificate_EncryptionKey::set_allocated_public_key(std::string* public_key) {
|
|
if (public_key != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.DrmCertificate.EncryptionKey.public_key)
|
|
}
|
|
|
|
// optional .video_widevine.DrmCertificate.Algorithm algorithm = 2 [default = RSA];
|
|
inline bool DrmCertificate_EncryptionKey::_internal_has_algorithm() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate_EncryptionKey::has_algorithm() const {
|
|
return _internal_has_algorithm();
|
|
}
|
|
inline void DrmCertificate_EncryptionKey::clear_algorithm() {
|
|
algorithm_ = 1;
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline ::video_widevine::DrmCertificate_Algorithm DrmCertificate_EncryptionKey::_internal_algorithm() const {
|
|
return static_cast< ::video_widevine::DrmCertificate_Algorithm >(algorithm_);
|
|
}
|
|
inline ::video_widevine::DrmCertificate_Algorithm DrmCertificate_EncryptionKey::algorithm() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.EncryptionKey.algorithm)
|
|
return _internal_algorithm();
|
|
}
|
|
inline void DrmCertificate_EncryptionKey::_internal_set_algorithm(::video_widevine::DrmCertificate_Algorithm value) {
|
|
assert(::video_widevine::DrmCertificate_Algorithm_IsValid(value));
|
|
_has_bits_[0] |= 0x00000002u;
|
|
algorithm_ = value;
|
|
}
|
|
inline void DrmCertificate_EncryptionKey::set_algorithm(::video_widevine::DrmCertificate_Algorithm value) {
|
|
_internal_set_algorithm(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.EncryptionKey.algorithm)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// DrmCertificate
|
|
|
|
// optional .video_widevine.DrmCertificate.Type type = 1;
|
|
inline bool DrmCertificate::_internal_has_type() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_type() const {
|
|
return _internal_has_type();
|
|
}
|
|
inline void DrmCertificate::clear_type() {
|
|
type_ = 0;
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline ::video_widevine::DrmCertificate_Type DrmCertificate::_internal_type() const {
|
|
return static_cast< ::video_widevine::DrmCertificate_Type >(type_);
|
|
}
|
|
inline ::video_widevine::DrmCertificate_Type DrmCertificate::type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.type)
|
|
return _internal_type();
|
|
}
|
|
inline void DrmCertificate::_internal_set_type(::video_widevine::DrmCertificate_Type value) {
|
|
assert(::video_widevine::DrmCertificate_Type_IsValid(value));
|
|
_has_bits_[0] |= 0x00000020u;
|
|
type_ = value;
|
|
}
|
|
inline void DrmCertificate::set_type(::video_widevine::DrmCertificate_Type value) {
|
|
_internal_set_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.type)
|
|
}
|
|
|
|
// optional bytes serial_number = 2;
|
|
inline bool DrmCertificate::_internal_has_serial_number() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_serial_number() const {
|
|
return _internal_has_serial_number();
|
|
}
|
|
inline void DrmCertificate::clear_serial_number() {
|
|
serial_number_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& DrmCertificate::serial_number() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.serial_number)
|
|
return _internal_serial_number();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void DrmCertificate::set_serial_number(ArgT0&& arg0, ArgT... args) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
serial_number_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.serial_number)
|
|
}
|
|
inline std::string* DrmCertificate::mutable_serial_number() {
|
|
std::string* _s = _internal_mutable_serial_number();
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.DrmCertificate.serial_number)
|
|
return _s;
|
|
}
|
|
inline const std::string& DrmCertificate::_internal_serial_number() const {
|
|
return serial_number_.Get();
|
|
}
|
|
inline void DrmCertificate::_internal_set_serial_number(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
serial_number_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* DrmCertificate::_internal_mutable_serial_number() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return serial_number_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* DrmCertificate::release_serial_number() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.DrmCertificate.serial_number)
|
|
if (!_internal_has_serial_number()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return serial_number_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void DrmCertificate::set_allocated_serial_number(std::string* serial_number) {
|
|
if (serial_number != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
serial_number_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), serial_number,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.DrmCertificate.serial_number)
|
|
}
|
|
|
|
// optional uint32 creation_time_seconds = 3;
|
|
inline bool DrmCertificate::_internal_has_creation_time_seconds() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_creation_time_seconds() const {
|
|
return _internal_has_creation_time_seconds();
|
|
}
|
|
inline void DrmCertificate::clear_creation_time_seconds() {
|
|
creation_time_seconds_ = 0u;
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 DrmCertificate::_internal_creation_time_seconds() const {
|
|
return creation_time_seconds_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 DrmCertificate::creation_time_seconds() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.creation_time_seconds)
|
|
return _internal_creation_time_seconds();
|
|
}
|
|
inline void DrmCertificate::_internal_set_creation_time_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
creation_time_seconds_ = value;
|
|
}
|
|
inline void DrmCertificate::set_creation_time_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_creation_time_seconds(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.creation_time_seconds)
|
|
}
|
|
|
|
// optional uint32 expiration_time_seconds = 12;
|
|
inline bool DrmCertificate::_internal_has_expiration_time_seconds() const {
|
|
bool value = (_has_bits_[0] & 0x00000200u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_expiration_time_seconds() const {
|
|
return _internal_has_expiration_time_seconds();
|
|
}
|
|
inline void DrmCertificate::clear_expiration_time_seconds() {
|
|
expiration_time_seconds_ = 0u;
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 DrmCertificate::_internal_expiration_time_seconds() const {
|
|
return expiration_time_seconds_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 DrmCertificate::expiration_time_seconds() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.expiration_time_seconds)
|
|
return _internal_expiration_time_seconds();
|
|
}
|
|
inline void DrmCertificate::_internal_set_expiration_time_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
expiration_time_seconds_ = value;
|
|
}
|
|
inline void DrmCertificate::set_expiration_time_seconds(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_expiration_time_seconds(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.expiration_time_seconds)
|
|
}
|
|
|
|
// optional bytes public_key = 4;
|
|
inline bool DrmCertificate::_internal_has_public_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_public_key() const {
|
|
return _internal_has_public_key();
|
|
}
|
|
inline void DrmCertificate::clear_public_key() {
|
|
public_key_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& DrmCertificate::public_key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.public_key)
|
|
return _internal_public_key();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void DrmCertificate::set_public_key(ArgT0&& arg0, ArgT... args) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
public_key_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.public_key)
|
|
}
|
|
inline std::string* DrmCertificate::mutable_public_key() {
|
|
std::string* _s = _internal_mutable_public_key();
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.DrmCertificate.public_key)
|
|
return _s;
|
|
}
|
|
inline const std::string& DrmCertificate::_internal_public_key() const {
|
|
return public_key_.Get();
|
|
}
|
|
inline void DrmCertificate::_internal_set_public_key(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* DrmCertificate::_internal_mutable_public_key() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* DrmCertificate::release_public_key() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.DrmCertificate.public_key)
|
|
if (!_internal_has_public_key()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void DrmCertificate::set_allocated_public_key(std::string* public_key) {
|
|
if (public_key != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), public_key,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.DrmCertificate.public_key)
|
|
}
|
|
|
|
// optional uint32 system_id = 5;
|
|
inline bool DrmCertificate::_internal_has_system_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000080u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_system_id() const {
|
|
return _internal_has_system_id();
|
|
}
|
|
inline void DrmCertificate::clear_system_id() {
|
|
system_id_ = 0u;
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 DrmCertificate::_internal_system_id() const {
|
|
return system_id_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 DrmCertificate::system_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.system_id)
|
|
return _internal_system_id();
|
|
}
|
|
inline void DrmCertificate::_internal_set_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
system_id_ = value;
|
|
}
|
|
inline void DrmCertificate::set_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_system_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.system_id)
|
|
}
|
|
|
|
// optional bool test_device_deprecated = 6 [deprecated = true];
|
|
inline bool DrmCertificate::_internal_has_test_device_deprecated() const {
|
|
bool value = (_has_bits_[0] & 0x00000100u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_test_device_deprecated() const {
|
|
return _internal_has_test_device_deprecated();
|
|
}
|
|
inline void DrmCertificate::clear_test_device_deprecated() {
|
|
test_device_deprecated_ = false;
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
inline bool DrmCertificate::_internal_test_device_deprecated() const {
|
|
return test_device_deprecated_;
|
|
}
|
|
inline bool DrmCertificate::test_device_deprecated() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.test_device_deprecated)
|
|
return _internal_test_device_deprecated();
|
|
}
|
|
inline void DrmCertificate::_internal_set_test_device_deprecated(bool value) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
test_device_deprecated_ = value;
|
|
}
|
|
inline void DrmCertificate::set_test_device_deprecated(bool value) {
|
|
_internal_set_test_device_deprecated(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.test_device_deprecated)
|
|
}
|
|
|
|
// optional string provider_id = 7;
|
|
inline bool DrmCertificate::_internal_has_provider_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_provider_id() const {
|
|
return _internal_has_provider_id();
|
|
}
|
|
inline void DrmCertificate::clear_provider_id() {
|
|
provider_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& DrmCertificate::provider_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.provider_id)
|
|
return _internal_provider_id();
|
|
}
|
|
template <typename ArgT0, typename... ArgT>
|
|
inline PROTOBUF_ALWAYS_INLINE
|
|
void DrmCertificate::set_provider_id(ArgT0&& arg0, ArgT... args) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
provider_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.provider_id)
|
|
}
|
|
inline std::string* DrmCertificate::mutable_provider_id() {
|
|
std::string* _s = _internal_mutable_provider_id();
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.DrmCertificate.provider_id)
|
|
return _s;
|
|
}
|
|
inline const std::string& DrmCertificate::_internal_provider_id() const {
|
|
return provider_id_.Get();
|
|
}
|
|
inline void DrmCertificate::_internal_set_provider_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
provider_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
|
}
|
|
inline std::string* DrmCertificate::_internal_mutable_provider_id() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return provider_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
|
}
|
|
inline std::string* DrmCertificate::release_provider_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.DrmCertificate.provider_id)
|
|
if (!_internal_has_provider_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return provider_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
|
}
|
|
inline void DrmCertificate::set_allocated_provider_id(std::string* provider_id) {
|
|
if (provider_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
provider_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider_id,
|
|
GetArenaForAllocation());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.DrmCertificate.provider_id)
|
|
}
|
|
|
|
// repeated .video_widevine.DrmCertificate.ServiceType service_types = 8;
|
|
inline int DrmCertificate::_internal_service_types_size() const {
|
|
return service_types_.size();
|
|
}
|
|
inline int DrmCertificate::service_types_size() const {
|
|
return _internal_service_types_size();
|
|
}
|
|
inline void DrmCertificate::clear_service_types() {
|
|
service_types_.Clear();
|
|
}
|
|
inline ::video_widevine::DrmCertificate_ServiceType DrmCertificate::_internal_service_types(int index) const {
|
|
return static_cast< ::video_widevine::DrmCertificate_ServiceType >(service_types_.Get(index));
|
|
}
|
|
inline ::video_widevine::DrmCertificate_ServiceType DrmCertificate::service_types(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.service_types)
|
|
return _internal_service_types(index);
|
|
}
|
|
inline void DrmCertificate::set_service_types(int index, ::video_widevine::DrmCertificate_ServiceType value) {
|
|
assert(::video_widevine::DrmCertificate_ServiceType_IsValid(value));
|
|
service_types_.Set(index, value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.service_types)
|
|
}
|
|
inline void DrmCertificate::_internal_add_service_types(::video_widevine::DrmCertificate_ServiceType value) {
|
|
assert(::video_widevine::DrmCertificate_ServiceType_IsValid(value));
|
|
service_types_.Add(value);
|
|
}
|
|
inline void DrmCertificate::add_service_types(::video_widevine::DrmCertificate_ServiceType value) {
|
|
_internal_add_service_types(value);
|
|
// @@protoc_insertion_point(field_add:video_widevine.DrmCertificate.service_types)
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>&
|
|
DrmCertificate::service_types() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.DrmCertificate.service_types)
|
|
return service_types_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
|
|
DrmCertificate::_internal_mutable_service_types() {
|
|
return &service_types_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>*
|
|
DrmCertificate::mutable_service_types() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.DrmCertificate.service_types)
|
|
return _internal_mutable_service_types();
|
|
}
|
|
|
|
// optional .video_widevine.DrmCertificate.Algorithm algorithm = 9 [default = RSA];
|
|
inline bool DrmCertificate::_internal_has_algorithm() const {
|
|
bool value = (_has_bits_[0] & 0x00000400u) != 0;
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_algorithm() const {
|
|
return _internal_has_algorithm();
|
|
}
|
|
inline void DrmCertificate::clear_algorithm() {
|
|
algorithm_ = 1;
|
|
_has_bits_[0] &= ~0x00000400u;
|
|
}
|
|
inline ::video_widevine::DrmCertificate_Algorithm DrmCertificate::_internal_algorithm() const {
|
|
return static_cast< ::video_widevine::DrmCertificate_Algorithm >(algorithm_);
|
|
}
|
|
inline ::video_widevine::DrmCertificate_Algorithm DrmCertificate::algorithm() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.algorithm)
|
|
return _internal_algorithm();
|
|
}
|
|
inline void DrmCertificate::_internal_set_algorithm(::video_widevine::DrmCertificate_Algorithm value) {
|
|
assert(::video_widevine::DrmCertificate_Algorithm_IsValid(value));
|
|
_has_bits_[0] |= 0x00000400u;
|
|
algorithm_ = value;
|
|
}
|
|
inline void DrmCertificate::set_algorithm(::video_widevine::DrmCertificate_Algorithm value) {
|
|
_internal_set_algorithm(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.DrmCertificate.algorithm)
|
|
}
|
|
|
|
// optional .video_widevine.RootOfTrustId rot_id = 10;
|
|
inline bool DrmCertificate::_internal_has_rot_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
PROTOBUF_ASSUME(!value || rot_id_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_rot_id() const {
|
|
return _internal_has_rot_id();
|
|
}
|
|
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&>(
|
|
::video_widevine::_RootOfTrustId_default_instance_);
|
|
}
|
|
inline const ::video_widevine::RootOfTrustId& DrmCertificate::rot_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.rot_id)
|
|
return _internal_rot_id();
|
|
}
|
|
inline void DrmCertificate::unsafe_arena_set_allocated_rot_id(
|
|
::video_widevine::RootOfTrustId* rot_id) {
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(rot_id_);
|
|
}
|
|
rot_id_ = rot_id;
|
|
if (rot_id) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.DrmCertificate.rot_id)
|
|
}
|
|
inline ::video_widevine::RootOfTrustId* DrmCertificate::release_rot_id() {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
::video_widevine::RootOfTrustId* temp = rot_id_;
|
|
rot_id_ = nullptr;
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
if (GetArenaForAllocation() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::RootOfTrustId* DrmCertificate::unsafe_arena_release_rot_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.DrmCertificate.rot_id)
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
::video_widevine::RootOfTrustId* temp = rot_id_;
|
|
rot_id_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::RootOfTrustId* DrmCertificate::_internal_mutable_rot_id() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
if (rot_id_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::RootOfTrustId>(GetArenaForAllocation());
|
|
rot_id_ = p;
|
|
}
|
|
return rot_id_;
|
|
}
|
|
inline ::video_widevine::RootOfTrustId* DrmCertificate::mutable_rot_id() {
|
|
::video_widevine::RootOfTrustId* _msg = _internal_mutable_rot_id();
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.DrmCertificate.rot_id)
|
|
return _msg;
|
|
}
|
|
inline void DrmCertificate::set_allocated_rot_id(::video_widevine::RootOfTrustId* rot_id) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(rot_id_);
|
|
}
|
|
if (rot_id) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
::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);
|
|
}
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
rot_id_ = rot_id;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.DrmCertificate.rot_id)
|
|
}
|
|
|
|
// optional .video_widevine.DrmCertificate.EncryptionKey encryption_key = 11;
|
|
inline bool DrmCertificate::_internal_has_encryption_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
PROTOBUF_ASSUME(!value || encryption_key_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool DrmCertificate::has_encryption_key() const {
|
|
return _internal_has_encryption_key();
|
|
}
|
|
inline void DrmCertificate::clear_encryption_key() {
|
|
if (encryption_key_ != nullptr) encryption_key_->Clear();
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline const ::video_widevine::DrmCertificate_EncryptionKey& DrmCertificate::_internal_encryption_key() const {
|
|
const ::video_widevine::DrmCertificate_EncryptionKey* p = encryption_key_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::DrmCertificate_EncryptionKey&>(
|
|
::video_widevine::_DrmCertificate_EncryptionKey_default_instance_);
|
|
}
|
|
inline const ::video_widevine::DrmCertificate_EncryptionKey& DrmCertificate::encryption_key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.DrmCertificate.encryption_key)
|
|
return _internal_encryption_key();
|
|
}
|
|
inline void DrmCertificate::unsafe_arena_set_allocated_encryption_key(
|
|
::video_widevine::DrmCertificate_EncryptionKey* encryption_key) {
|
|
if (GetArenaForAllocation() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(encryption_key_);
|
|
}
|
|
encryption_key_ = encryption_key;
|
|
if (encryption_key) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.DrmCertificate.encryption_key)
|
|
}
|
|
inline ::video_widevine::DrmCertificate_EncryptionKey* DrmCertificate::release_encryption_key() {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
::video_widevine::DrmCertificate_EncryptionKey* temp = encryption_key_;
|
|
encryption_key_ = nullptr;
|
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
if (GetArenaForAllocation() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::DrmCertificate_EncryptionKey* DrmCertificate::unsafe_arena_release_encryption_key() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.DrmCertificate.encryption_key)
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
::video_widevine::DrmCertificate_EncryptionKey* temp = encryption_key_;
|
|
encryption_key_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::DrmCertificate_EncryptionKey* DrmCertificate::_internal_mutable_encryption_key() {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
if (encryption_key_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::DrmCertificate_EncryptionKey>(GetArenaForAllocation());
|
|
encryption_key_ = p;
|
|
}
|
|
return encryption_key_;
|
|
}
|
|
inline ::video_widevine::DrmCertificate_EncryptionKey* DrmCertificate::mutable_encryption_key() {
|
|
::video_widevine::DrmCertificate_EncryptionKey* _msg = _internal_mutable_encryption_key();
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.DrmCertificate.encryption_key)
|
|
return _msg;
|
|
}
|
|
inline void DrmCertificate::set_allocated_encryption_key(::video_widevine::DrmCertificate_EncryptionKey* encryption_key) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
|
if (message_arena == nullptr) {
|
|
delete encryption_key_;
|
|
}
|
|
if (encryption_key) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::video_widevine::DrmCertificate_EncryptionKey>::GetOwningArena(encryption_key);
|
|
if (message_arena != submessage_arena) {
|
|
encryption_key = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, encryption_key, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000010u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
encryption_key_ = encryption_key;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.DrmCertificate.encryption_key)
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
// -------------------------------------------------------------------
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace video_widevine
|
|
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
|
|
template <> struct is_proto_enum< ::video_widevine::DrmCertificate_Type> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::DrmCertificate_Type>() {
|
|
return ::video_widevine::DrmCertificate_Type_descriptor();
|
|
}
|
|
template <> struct is_proto_enum< ::video_widevine::DrmCertificate_ServiceType> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::DrmCertificate_ServiceType>() {
|
|
return ::video_widevine::DrmCertificate_ServiceType_descriptor();
|
|
}
|
|
template <> struct is_proto_enum< ::video_widevine::DrmCertificate_Algorithm> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::DrmCertificate_Algorithm>() {
|
|
return ::video_widevine::DrmCertificate_Algorithm_descriptor();
|
|
}
|
|
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fdrm_5fcertificate_2eproto
|