560 lines
23 KiB
C++
560 lines
23 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: protos/public/signed_drm_certificate.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fsigned_5fdrm_5fcertificate_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fsigned_5fdrm_5fcertificate_2eproto
|
|
|
|
#include <limits>
|
|
#include <string>
|
|
|
|
#include <google/protobuf/port_def.inc>
|
|
#if PROTOBUF_VERSION < 3014000
|
|
#error This file was generated by a newer version of protoc which is
|
|
#error incompatible with your Protocol Buffer headers. Please update
|
|
#error your headers.
|
|
#endif
|
|
#if 3014000 < PROTOBUF_MIN_PROTOC_VERSION
|
|
#error This file was generated by an older version of protoc which is
|
|
#error incompatible with your Protocol Buffer headers. Please
|
|
#error regenerate this file with a newer version of protoc.
|
|
#endif
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#include <google/protobuf/io/coded_stream.h>
|
|
#include <google/protobuf/arena.h>
|
|
#include <google/protobuf/arenastring.h>
|
|
#include <google/protobuf/generated_message_table_driven.h>
|
|
#include <google/protobuf/generated_message_util.h>
|
|
#include <google/protobuf/metadata_lite.h>
|
|
#include <google/protobuf/generated_message_reflection.h>
|
|
#include <google/protobuf/message.h>
|
|
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
|
|
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
#include "protos/public/hash_algorithm.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_protos_2fpublic_2fsigned_5fdrm_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_2fsigned_5fdrm_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[1]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
|
|
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
|
|
};
|
|
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fpublic_2fsigned_5fdrm_5fcertificate_2eproto;
|
|
namespace video_widevine {
|
|
class SignedDrmCertificate;
|
|
class SignedDrmCertificateDefaultTypeInternal;
|
|
extern SignedDrmCertificateDefaultTypeInternal _SignedDrmCertificate_default_instance_;
|
|
} // namespace video_widevine
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> ::video_widevine::SignedDrmCertificate* Arena::CreateMaybeMessage<::video_widevine::SignedDrmCertificate>(Arena*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace video_widevine {
|
|
|
|
// ===================================================================
|
|
|
|
class SignedDrmCertificate PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.SignedDrmCertificate) */ {
|
|
public:
|
|
inline SignedDrmCertificate() : SignedDrmCertificate(nullptr) {}
|
|
virtual ~SignedDrmCertificate();
|
|
|
|
SignedDrmCertificate(const SignedDrmCertificate& from);
|
|
SignedDrmCertificate(SignedDrmCertificate&& from) noexcept
|
|
: SignedDrmCertificate() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline SignedDrmCertificate& operator=(const SignedDrmCertificate& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline SignedDrmCertificate& operator=(SignedDrmCertificate&& from) noexcept {
|
|
if (GetArena() == from.GetArena()) {
|
|
if (this != &from) InternalSwap(&from);
|
|
} else {
|
|
CopyFrom(from);
|
|
}
|
|
return *this;
|
|
}
|
|
|
|
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
|
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
|
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
|
return GetDescriptor();
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
|
return GetMetadataStatic().descriptor;
|
|
}
|
|
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
|
return GetMetadataStatic().reflection;
|
|
}
|
|
static const SignedDrmCertificate& default_instance();
|
|
|
|
static inline const SignedDrmCertificate* internal_default_instance() {
|
|
return reinterpret_cast<const SignedDrmCertificate*>(
|
|
&_SignedDrmCertificate_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(SignedDrmCertificate& a, SignedDrmCertificate& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(SignedDrmCertificate* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(SignedDrmCertificate* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline SignedDrmCertificate* New() const final {
|
|
return CreateMaybeMessage<SignedDrmCertificate>(nullptr);
|
|
}
|
|
|
|
SignedDrmCertificate* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<SignedDrmCertificate>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const SignedDrmCertificate& from);
|
|
void MergeFrom(const SignedDrmCertificate& from);
|
|
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
|
bool IsInitialized() const final;
|
|
|
|
size_t ByteSizeLong() const final;
|
|
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
|
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
|
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
|
int GetCachedSize() const final { return _cached_size_.Get(); }
|
|
|
|
private:
|
|
inline void SharedCtor();
|
|
inline void SharedDtor();
|
|
void SetCachedSize(int size) const final;
|
|
void InternalSwap(SignedDrmCertificate* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.SignedDrmCertificate";
|
|
}
|
|
protected:
|
|
explicit SignedDrmCertificate(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
private:
|
|
static void ArenaDtor(void* object);
|
|
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
|
public:
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
|
private:
|
|
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_protos_2fpublic_2fsigned_5fdrm_5fcertificate_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2fsigned_5fdrm_5fcertificate_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kDrmCertificateFieldNumber = 1,
|
|
kSignatureFieldNumber = 2,
|
|
kSignerFieldNumber = 3,
|
|
kHashAlgorithmFieldNumber = 4,
|
|
};
|
|
// optional bytes drm_certificate = 1;
|
|
bool has_drm_certificate() const;
|
|
private:
|
|
bool _internal_has_drm_certificate() const;
|
|
public:
|
|
void clear_drm_certificate();
|
|
const std::string& drm_certificate() const;
|
|
void set_drm_certificate(const std::string& value);
|
|
void set_drm_certificate(std::string&& value);
|
|
void set_drm_certificate(const char* value);
|
|
void set_drm_certificate(const void* value, size_t size);
|
|
std::string* mutable_drm_certificate();
|
|
std::string* release_drm_certificate();
|
|
void set_allocated_drm_certificate(std::string* drm_certificate);
|
|
private:
|
|
const std::string& _internal_drm_certificate() const;
|
|
void _internal_set_drm_certificate(const std::string& value);
|
|
std::string* _internal_mutable_drm_certificate();
|
|
public:
|
|
|
|
// optional bytes signature = 2;
|
|
bool has_signature() const;
|
|
private:
|
|
bool _internal_has_signature() const;
|
|
public:
|
|
void clear_signature();
|
|
const std::string& signature() const;
|
|
void set_signature(const std::string& value);
|
|
void set_signature(std::string&& value);
|
|
void set_signature(const char* value);
|
|
void set_signature(const void* value, size_t size);
|
|
std::string* mutable_signature();
|
|
std::string* release_signature();
|
|
void set_allocated_signature(std::string* signature);
|
|
private:
|
|
const std::string& _internal_signature() const;
|
|
void _internal_set_signature(const std::string& value);
|
|
std::string* _internal_mutable_signature();
|
|
public:
|
|
|
|
// optional .video_widevine.SignedDrmCertificate signer = 3;
|
|
bool has_signer() const;
|
|
private:
|
|
bool _internal_has_signer() const;
|
|
public:
|
|
void clear_signer();
|
|
const ::video_widevine::SignedDrmCertificate& signer() const;
|
|
::video_widevine::SignedDrmCertificate* release_signer();
|
|
::video_widevine::SignedDrmCertificate* mutable_signer();
|
|
void set_allocated_signer(::video_widevine::SignedDrmCertificate* signer);
|
|
private:
|
|
const ::video_widevine::SignedDrmCertificate& _internal_signer() const;
|
|
::video_widevine::SignedDrmCertificate* _internal_mutable_signer();
|
|
public:
|
|
void unsafe_arena_set_allocated_signer(
|
|
::video_widevine::SignedDrmCertificate* signer);
|
|
::video_widevine::SignedDrmCertificate* unsafe_arena_release_signer();
|
|
|
|
// optional .video_widevine.HashAlgorithmProto hash_algorithm = 4;
|
|
bool has_hash_algorithm() const;
|
|
private:
|
|
bool _internal_has_hash_algorithm() const;
|
|
public:
|
|
void clear_hash_algorithm();
|
|
::video_widevine::HashAlgorithmProto hash_algorithm() const;
|
|
void set_hash_algorithm(::video_widevine::HashAlgorithmProto value);
|
|
private:
|
|
::video_widevine::HashAlgorithmProto _internal_hash_algorithm() const;
|
|
void _internal_set_hash_algorithm(::video_widevine::HashAlgorithmProto value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.SignedDrmCertificate)
|
|
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 drm_certificate_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signature_;
|
|
::video_widevine::SignedDrmCertificate* signer_;
|
|
int hash_algorithm_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fsigned_5fdrm_5fcertificate_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// SignedDrmCertificate
|
|
|
|
// optional bytes drm_certificate = 1;
|
|
inline bool SignedDrmCertificate::_internal_has_drm_certificate() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedDrmCertificate::has_drm_certificate() const {
|
|
return _internal_has_drm_certificate();
|
|
}
|
|
inline void SignedDrmCertificate::clear_drm_certificate() {
|
|
drm_certificate_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& SignedDrmCertificate::drm_certificate() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedDrmCertificate.drm_certificate)
|
|
return _internal_drm_certificate();
|
|
}
|
|
inline void SignedDrmCertificate::set_drm_certificate(const std::string& value) {
|
|
_internal_set_drm_certificate(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedDrmCertificate.drm_certificate)
|
|
}
|
|
inline std::string* SignedDrmCertificate::mutable_drm_certificate() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedDrmCertificate.drm_certificate)
|
|
return _internal_mutable_drm_certificate();
|
|
}
|
|
inline const std::string& SignedDrmCertificate::_internal_drm_certificate() const {
|
|
return drm_certificate_.Get();
|
|
}
|
|
inline void SignedDrmCertificate::_internal_set_drm_certificate(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
drm_certificate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedDrmCertificate::set_drm_certificate(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
drm_certificate_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SignedDrmCertificate.drm_certificate)
|
|
}
|
|
inline void SignedDrmCertificate::set_drm_certificate(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
drm_certificate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SignedDrmCertificate.drm_certificate)
|
|
}
|
|
inline void SignedDrmCertificate::set_drm_certificate(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
drm_certificate_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.SignedDrmCertificate.drm_certificate)
|
|
}
|
|
inline std::string* SignedDrmCertificate::_internal_mutable_drm_certificate() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return drm_certificate_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedDrmCertificate::release_drm_certificate() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedDrmCertificate.drm_certificate)
|
|
if (!_internal_has_drm_certificate()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return drm_certificate_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedDrmCertificate::set_allocated_drm_certificate(std::string* drm_certificate) {
|
|
if (drm_certificate != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
drm_certificate_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), drm_certificate,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedDrmCertificate.drm_certificate)
|
|
}
|
|
|
|
// optional bytes signature = 2;
|
|
inline bool SignedDrmCertificate::_internal_has_signature() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedDrmCertificate::has_signature() const {
|
|
return _internal_has_signature();
|
|
}
|
|
inline void SignedDrmCertificate::clear_signature() {
|
|
signature_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& SignedDrmCertificate::signature() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedDrmCertificate.signature)
|
|
return _internal_signature();
|
|
}
|
|
inline void SignedDrmCertificate::set_signature(const std::string& value) {
|
|
_internal_set_signature(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedDrmCertificate.signature)
|
|
}
|
|
inline std::string* SignedDrmCertificate::mutable_signature() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedDrmCertificate.signature)
|
|
return _internal_mutable_signature();
|
|
}
|
|
inline const std::string& SignedDrmCertificate::_internal_signature() const {
|
|
return signature_.Get();
|
|
}
|
|
inline void SignedDrmCertificate::_internal_set_signature(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedDrmCertificate::set_signature(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SignedDrmCertificate.signature)
|
|
}
|
|
inline void SignedDrmCertificate::set_signature(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SignedDrmCertificate.signature)
|
|
}
|
|
inline void SignedDrmCertificate::set_signature(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.SignedDrmCertificate.signature)
|
|
}
|
|
inline std::string* SignedDrmCertificate::_internal_mutable_signature() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedDrmCertificate::release_signature() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedDrmCertificate.signature)
|
|
if (!_internal_has_signature()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return signature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedDrmCertificate::set_allocated_signature(std::string* signature) {
|
|
if (signature != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
signature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signature,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedDrmCertificate.signature)
|
|
}
|
|
|
|
// optional .video_widevine.SignedDrmCertificate signer = 3;
|
|
inline bool SignedDrmCertificate::_internal_has_signer() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
PROTOBUF_ASSUME(!value || signer_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool SignedDrmCertificate::has_signer() const {
|
|
return _internal_has_signer();
|
|
}
|
|
inline void SignedDrmCertificate::clear_signer() {
|
|
if (signer_ != nullptr) signer_->Clear();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const ::video_widevine::SignedDrmCertificate& SignedDrmCertificate::_internal_signer() const {
|
|
const ::video_widevine::SignedDrmCertificate* p = signer_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::SignedDrmCertificate&>(
|
|
::video_widevine::_SignedDrmCertificate_default_instance_);
|
|
}
|
|
inline const ::video_widevine::SignedDrmCertificate& SignedDrmCertificate::signer() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedDrmCertificate.signer)
|
|
return _internal_signer();
|
|
}
|
|
inline void SignedDrmCertificate::unsafe_arena_set_allocated_signer(
|
|
::video_widevine::SignedDrmCertificate* signer) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(signer_);
|
|
}
|
|
signer_ = signer;
|
|
if (signer) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.SignedDrmCertificate.signer)
|
|
}
|
|
inline ::video_widevine::SignedDrmCertificate* SignedDrmCertificate::release_signer() {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
::video_widevine::SignedDrmCertificate* temp = signer_;
|
|
signer_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SignedDrmCertificate* SignedDrmCertificate::unsafe_arena_release_signer() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedDrmCertificate.signer)
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
::video_widevine::SignedDrmCertificate* temp = signer_;
|
|
signer_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SignedDrmCertificate* SignedDrmCertificate::_internal_mutable_signer() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
if (signer_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::SignedDrmCertificate>(GetArena());
|
|
signer_ = p;
|
|
}
|
|
return signer_;
|
|
}
|
|
inline ::video_widevine::SignedDrmCertificate* SignedDrmCertificate::mutable_signer() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedDrmCertificate.signer)
|
|
return _internal_mutable_signer();
|
|
}
|
|
inline void SignedDrmCertificate::set_allocated_signer(::video_widevine::SignedDrmCertificate* signer) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete signer_;
|
|
}
|
|
if (signer) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(signer);
|
|
if (message_arena != submessage_arena) {
|
|
signer = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, signer, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
signer_ = signer;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedDrmCertificate.signer)
|
|
}
|
|
|
|
// optional .video_widevine.HashAlgorithmProto hash_algorithm = 4;
|
|
inline bool SignedDrmCertificate::_internal_has_hash_algorithm() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedDrmCertificate::has_hash_algorithm() const {
|
|
return _internal_has_hash_algorithm();
|
|
}
|
|
inline void SignedDrmCertificate::clear_hash_algorithm() {
|
|
hash_algorithm_ = 0;
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline ::video_widevine::HashAlgorithmProto SignedDrmCertificate::_internal_hash_algorithm() const {
|
|
return static_cast< ::video_widevine::HashAlgorithmProto >(hash_algorithm_);
|
|
}
|
|
inline ::video_widevine::HashAlgorithmProto SignedDrmCertificate::hash_algorithm() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedDrmCertificate.hash_algorithm)
|
|
return _internal_hash_algorithm();
|
|
}
|
|
inline void SignedDrmCertificate::_internal_set_hash_algorithm(::video_widevine::HashAlgorithmProto value) {
|
|
assert(::video_widevine::HashAlgorithmProto_IsValid(value));
|
|
_has_bits_[0] |= 0x00000008u;
|
|
hash_algorithm_ = value;
|
|
}
|
|
inline void SignedDrmCertificate::set_hash_algorithm(::video_widevine::HashAlgorithmProto value) {
|
|
_internal_set_hash_algorithm(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedDrmCertificate.hash_algorithm)
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace video_widevine
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fsigned_5fdrm_5fcertificate_2eproto
|