5130 lines
227 KiB
C++
5130 lines
227 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: protos/public/media_cas_license.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fmedia_5fcas_5flicense_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/generated_enum_reflection.h>
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
#include "protos/public/hash_algorithm.pb.h"
|
|
#include "protos/public/license_protocol.pb.h"
|
|
#include "protos/public/license_server_sdk.pb.h"
|
|
#include "protos/public/media_cas_encryption.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_protos_2fpublic_2fmedia_5fcas_5flicense_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_2fmedia_5fcas_5flicense_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[7]
|
|
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_2fmedia_5fcas_5flicense_2eproto;
|
|
namespace video_widevine {
|
|
class CasDrmLicenseRequest;
|
|
class CasDrmLicenseRequestDefaultTypeInternal;
|
|
extern CasDrmLicenseRequestDefaultTypeInternal _CasDrmLicenseRequest_default_instance_;
|
|
class CasDrmLicenseRequest_ContentKeySpec;
|
|
class CasDrmLicenseRequest_ContentKeySpecDefaultTypeInternal;
|
|
extern CasDrmLicenseRequest_ContentKeySpecDefaultTypeInternal _CasDrmLicenseRequest_ContentKeySpec_default_instance_;
|
|
class CasDrmLicenseResponse;
|
|
class CasDrmLicenseResponseDefaultTypeInternal;
|
|
extern CasDrmLicenseResponseDefaultTypeInternal _CasDrmLicenseResponse_default_instance_;
|
|
class CasDrmLicenseResponse_DeviceInfo;
|
|
class CasDrmLicenseResponse_DeviceInfoDefaultTypeInternal;
|
|
extern CasDrmLicenseResponse_DeviceInfoDefaultTypeInternal _CasDrmLicenseResponse_DeviceInfo_default_instance_;
|
|
class CasDrmLicenseResponse_LicenseMetadata;
|
|
class CasDrmLicenseResponse_LicenseMetadataDefaultTypeInternal;
|
|
extern CasDrmLicenseResponse_LicenseMetadataDefaultTypeInternal _CasDrmLicenseResponse_LicenseMetadata_default_instance_;
|
|
class CasDrmLicenseResponse_PsshData;
|
|
class CasDrmLicenseResponse_PsshDataDefaultTypeInternal;
|
|
extern CasDrmLicenseResponse_PsshDataDefaultTypeInternal _CasDrmLicenseResponse_PsshData_default_instance_;
|
|
class SignedCasDrmRequest;
|
|
class SignedCasDrmRequestDefaultTypeInternal;
|
|
extern SignedCasDrmRequestDefaultTypeInternal _SignedCasDrmRequest_default_instance_;
|
|
} // namespace video_widevine
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> ::video_widevine::CasDrmLicenseRequest* Arena::CreateMaybeMessage<::video_widevine::CasDrmLicenseRequest>(Arena*);
|
|
template<> ::video_widevine::CasDrmLicenseRequest_ContentKeySpec* Arena::CreateMaybeMessage<::video_widevine::CasDrmLicenseRequest_ContentKeySpec>(Arena*);
|
|
template<> ::video_widevine::CasDrmLicenseResponse* Arena::CreateMaybeMessage<::video_widevine::CasDrmLicenseResponse>(Arena*);
|
|
template<> ::video_widevine::CasDrmLicenseResponse_DeviceInfo* Arena::CreateMaybeMessage<::video_widevine::CasDrmLicenseResponse_DeviceInfo>(Arena*);
|
|
template<> ::video_widevine::CasDrmLicenseResponse_LicenseMetadata* Arena::CreateMaybeMessage<::video_widevine::CasDrmLicenseResponse_LicenseMetadata>(Arena*);
|
|
template<> ::video_widevine::CasDrmLicenseResponse_PsshData* Arena::CreateMaybeMessage<::video_widevine::CasDrmLicenseResponse_PsshData>(Arena*);
|
|
template<> ::video_widevine::SignedCasDrmRequest* Arena::CreateMaybeMessage<::video_widevine::SignedCasDrmRequest>(Arena*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace video_widevine {
|
|
|
|
enum CasDrmLicenseResponse_Status : int {
|
|
CasDrmLicenseResponse_Status_UNKNOWN = 0,
|
|
CasDrmLicenseResponse_Status_OK = 1,
|
|
CasDrmLicenseResponse_Status_SIGNATURE_FAILED = 2,
|
|
CasDrmLicenseResponse_Status_INVALID_LICENSE_CHALLENGE = 3,
|
|
CasDrmLicenseResponse_Status_PROVIDER_ID_MISSING = 4,
|
|
CasDrmLicenseResponse_Status_INVALID_CONTENT_INFO = 5,
|
|
CasDrmLicenseResponse_Status_EMPTY_CONTENT_INFO = 6,
|
|
CasDrmLicenseResponse_Status_CONTENT_ID_MISMATCH = 7,
|
|
CasDrmLicenseResponse_Status_DEPRECATED_MISSING_CONTENT_ID = 8,
|
|
CasDrmLicenseResponse_Status_MALFORMED_REQUEST = 9,
|
|
CasDrmLicenseResponse_Status_INTERNAL_ERROR = 10,
|
|
CasDrmLicenseResponse_Status_SIGNING_KEY_EXPIRED = 11
|
|
};
|
|
bool CasDrmLicenseResponse_Status_IsValid(int value);
|
|
constexpr CasDrmLicenseResponse_Status CasDrmLicenseResponse_Status_Status_MIN = CasDrmLicenseResponse_Status_UNKNOWN;
|
|
constexpr CasDrmLicenseResponse_Status CasDrmLicenseResponse_Status_Status_MAX = CasDrmLicenseResponse_Status_SIGNING_KEY_EXPIRED;
|
|
constexpr int CasDrmLicenseResponse_Status_Status_ARRAYSIZE = CasDrmLicenseResponse_Status_Status_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CasDrmLicenseResponse_Status_descriptor();
|
|
template<typename T>
|
|
inline const std::string& CasDrmLicenseResponse_Status_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, CasDrmLicenseResponse_Status>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function CasDrmLicenseResponse_Status_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
CasDrmLicenseResponse_Status_descriptor(), enum_t_value);
|
|
}
|
|
inline bool CasDrmLicenseResponse_Status_Parse(
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CasDrmLicenseResponse_Status* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<CasDrmLicenseResponse_Status>(
|
|
CasDrmLicenseResponse_Status_descriptor(), name, value);
|
|
}
|
|
// ===================================================================
|
|
|
|
class CasDrmLicenseRequest_ContentKeySpec PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.CasDrmLicenseRequest.ContentKeySpec) */ {
|
|
public:
|
|
inline CasDrmLicenseRequest_ContentKeySpec() : CasDrmLicenseRequest_ContentKeySpec(nullptr) {}
|
|
virtual ~CasDrmLicenseRequest_ContentKeySpec();
|
|
|
|
CasDrmLicenseRequest_ContentKeySpec(const CasDrmLicenseRequest_ContentKeySpec& from);
|
|
CasDrmLicenseRequest_ContentKeySpec(CasDrmLicenseRequest_ContentKeySpec&& from) noexcept
|
|
: CasDrmLicenseRequest_ContentKeySpec() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline CasDrmLicenseRequest_ContentKeySpec& operator=(const CasDrmLicenseRequest_ContentKeySpec& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline CasDrmLicenseRequest_ContentKeySpec& operator=(CasDrmLicenseRequest_ContentKeySpec&& 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 CasDrmLicenseRequest_ContentKeySpec& default_instance();
|
|
|
|
static inline const CasDrmLicenseRequest_ContentKeySpec* internal_default_instance() {
|
|
return reinterpret_cast<const CasDrmLicenseRequest_ContentKeySpec*>(
|
|
&_CasDrmLicenseRequest_ContentKeySpec_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(CasDrmLicenseRequest_ContentKeySpec& a, CasDrmLicenseRequest_ContentKeySpec& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(CasDrmLicenseRequest_ContentKeySpec* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(CasDrmLicenseRequest_ContentKeySpec* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline CasDrmLicenseRequest_ContentKeySpec* New() const final {
|
|
return CreateMaybeMessage<CasDrmLicenseRequest_ContentKeySpec>(nullptr);
|
|
}
|
|
|
|
CasDrmLicenseRequest_ContentKeySpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<CasDrmLicenseRequest_ContentKeySpec>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const CasDrmLicenseRequest_ContentKeySpec& from);
|
|
void MergeFrom(const CasDrmLicenseRequest_ContentKeySpec& 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(CasDrmLicenseRequest_ContentKeySpec* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.CasDrmLicenseRequest.ContentKeySpec";
|
|
}
|
|
protected:
|
|
explicit CasDrmLicenseRequest_ContentKeySpec(::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_2fmedia_5fcas_5flicense_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kEntitlementKeysFieldNumber = 4,
|
|
kTrackTypeFieldNumber = 6,
|
|
kRequiredOutputProtectionFieldNumber = 2,
|
|
kRequestedOutputProtectionFieldNumber = 3,
|
|
kKeyCategorySpecFieldNumber = 7,
|
|
kSecurityLevelFieldNumber = 1,
|
|
kKeyTypeFieldNumber = 5,
|
|
};
|
|
// repeated .video_widevine.CasEncryptionResponse.KeyInfo entitlement_keys = 4;
|
|
int entitlement_keys_size() const;
|
|
private:
|
|
int _internal_entitlement_keys_size() const;
|
|
public:
|
|
void clear_entitlement_keys();
|
|
::video_widevine::CasEncryptionResponse_KeyInfo* mutable_entitlement_keys(int index);
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::CasEncryptionResponse_KeyInfo >*
|
|
mutable_entitlement_keys();
|
|
private:
|
|
const ::video_widevine::CasEncryptionResponse_KeyInfo& _internal_entitlement_keys(int index) const;
|
|
::video_widevine::CasEncryptionResponse_KeyInfo* _internal_add_entitlement_keys();
|
|
public:
|
|
const ::video_widevine::CasEncryptionResponse_KeyInfo& entitlement_keys(int index) const;
|
|
::video_widevine::CasEncryptionResponse_KeyInfo* add_entitlement_keys();
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::CasEncryptionResponse_KeyInfo >&
|
|
entitlement_keys() const;
|
|
|
|
// optional string track_type = 6;
|
|
bool has_track_type() const;
|
|
private:
|
|
bool _internal_has_track_type() const;
|
|
public:
|
|
void clear_track_type();
|
|
const std::string& track_type() const;
|
|
void set_track_type(const std::string& value);
|
|
void set_track_type(std::string&& value);
|
|
void set_track_type(const char* value);
|
|
void set_track_type(const char* value, size_t size);
|
|
std::string* mutable_track_type();
|
|
std::string* release_track_type();
|
|
void set_allocated_track_type(std::string* track_type);
|
|
private:
|
|
const std::string& _internal_track_type() const;
|
|
void _internal_set_track_type(const std::string& value);
|
|
std::string* _internal_mutable_track_type();
|
|
public:
|
|
|
|
// optional .video_widevine.License.KeyContainer.OutputProtection required_output_protection = 2;
|
|
bool has_required_output_protection() const;
|
|
private:
|
|
bool _internal_has_required_output_protection() const;
|
|
public:
|
|
void clear_required_output_protection();
|
|
const ::video_widevine::License_KeyContainer_OutputProtection& required_output_protection() const;
|
|
::video_widevine::License_KeyContainer_OutputProtection* release_required_output_protection();
|
|
::video_widevine::License_KeyContainer_OutputProtection* mutable_required_output_protection();
|
|
void set_allocated_required_output_protection(::video_widevine::License_KeyContainer_OutputProtection* required_output_protection);
|
|
private:
|
|
const ::video_widevine::License_KeyContainer_OutputProtection& _internal_required_output_protection() const;
|
|
::video_widevine::License_KeyContainer_OutputProtection* _internal_mutable_required_output_protection();
|
|
public:
|
|
void unsafe_arena_set_allocated_required_output_protection(
|
|
::video_widevine::License_KeyContainer_OutputProtection* required_output_protection);
|
|
::video_widevine::License_KeyContainer_OutputProtection* unsafe_arena_release_required_output_protection();
|
|
|
|
// optional .video_widevine.License.KeyContainer.OutputProtection requested_output_protection = 3;
|
|
bool has_requested_output_protection() const;
|
|
private:
|
|
bool _internal_has_requested_output_protection() const;
|
|
public:
|
|
void clear_requested_output_protection();
|
|
const ::video_widevine::License_KeyContainer_OutputProtection& requested_output_protection() const;
|
|
::video_widevine::License_KeyContainer_OutputProtection* release_requested_output_protection();
|
|
::video_widevine::License_KeyContainer_OutputProtection* mutable_requested_output_protection();
|
|
void set_allocated_requested_output_protection(::video_widevine::License_KeyContainer_OutputProtection* requested_output_protection);
|
|
private:
|
|
const ::video_widevine::License_KeyContainer_OutputProtection& _internal_requested_output_protection() const;
|
|
::video_widevine::License_KeyContainer_OutputProtection* _internal_mutable_requested_output_protection();
|
|
public:
|
|
void unsafe_arena_set_allocated_requested_output_protection(
|
|
::video_widevine::License_KeyContainer_OutputProtection* requested_output_protection);
|
|
::video_widevine::License_KeyContainer_OutputProtection* unsafe_arena_release_requested_output_protection();
|
|
|
|
// optional .video_widevine.License.KeyContainer.KeyCategorySpec key_category_spec = 7;
|
|
bool has_key_category_spec() const;
|
|
private:
|
|
bool _internal_has_key_category_spec() const;
|
|
public:
|
|
void clear_key_category_spec();
|
|
const ::video_widevine::License_KeyContainer_KeyCategorySpec& key_category_spec() const;
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* release_key_category_spec();
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* mutable_key_category_spec();
|
|
void set_allocated_key_category_spec(::video_widevine::License_KeyContainer_KeyCategorySpec* key_category_spec);
|
|
private:
|
|
const ::video_widevine::License_KeyContainer_KeyCategorySpec& _internal_key_category_spec() const;
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* _internal_mutable_key_category_spec();
|
|
public:
|
|
void unsafe_arena_set_allocated_key_category_spec(
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* key_category_spec);
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* unsafe_arena_release_key_category_spec();
|
|
|
|
// optional .video_widevine.License.KeyContainer.SecurityLevel security_level = 1;
|
|
bool has_security_level() const;
|
|
private:
|
|
bool _internal_has_security_level() const;
|
|
public:
|
|
void clear_security_level();
|
|
::video_widevine::License_KeyContainer_SecurityLevel security_level() const;
|
|
void set_security_level(::video_widevine::License_KeyContainer_SecurityLevel value);
|
|
private:
|
|
::video_widevine::License_KeyContainer_SecurityLevel _internal_security_level() const;
|
|
void _internal_set_security_level(::video_widevine::License_KeyContainer_SecurityLevel value);
|
|
public:
|
|
|
|
// optional .video_widevine.License.KeyContainer.KeyType key_type = 5;
|
|
bool has_key_type() const;
|
|
private:
|
|
bool _internal_has_key_type() const;
|
|
public:
|
|
void clear_key_type();
|
|
::video_widevine::License_KeyContainer_KeyType key_type() const;
|
|
void set_key_type(::video_widevine::License_KeyContainer_KeyType value);
|
|
private:
|
|
::video_widevine::License_KeyContainer_KeyType _internal_key_type() const;
|
|
void _internal_set_key_type(::video_widevine::License_KeyContainer_KeyType value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.CasDrmLicenseRequest.ContentKeySpec)
|
|
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::RepeatedPtrField< ::video_widevine::CasEncryptionResponse_KeyInfo > entitlement_keys_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr track_type_;
|
|
::video_widevine::License_KeyContainer_OutputProtection* required_output_protection_;
|
|
::video_widevine::License_KeyContainer_OutputProtection* requested_output_protection_;
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* key_category_spec_;
|
|
int security_level_;
|
|
int key_type_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class CasDrmLicenseRequest PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.CasDrmLicenseRequest) */ {
|
|
public:
|
|
inline CasDrmLicenseRequest() : CasDrmLicenseRequest(nullptr) {}
|
|
virtual ~CasDrmLicenseRequest();
|
|
|
|
CasDrmLicenseRequest(const CasDrmLicenseRequest& from);
|
|
CasDrmLicenseRequest(CasDrmLicenseRequest&& from) noexcept
|
|
: CasDrmLicenseRequest() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline CasDrmLicenseRequest& operator=(const CasDrmLicenseRequest& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline CasDrmLicenseRequest& operator=(CasDrmLicenseRequest&& 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 CasDrmLicenseRequest& default_instance();
|
|
|
|
static inline const CasDrmLicenseRequest* internal_default_instance() {
|
|
return reinterpret_cast<const CasDrmLicenseRequest*>(
|
|
&_CasDrmLicenseRequest_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
1;
|
|
|
|
friend void swap(CasDrmLicenseRequest& a, CasDrmLicenseRequest& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(CasDrmLicenseRequest* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(CasDrmLicenseRequest* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline CasDrmLicenseRequest* New() const final {
|
|
return CreateMaybeMessage<CasDrmLicenseRequest>(nullptr);
|
|
}
|
|
|
|
CasDrmLicenseRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<CasDrmLicenseRequest>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const CasDrmLicenseRequest& from);
|
|
void MergeFrom(const CasDrmLicenseRequest& 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(CasDrmLicenseRequest* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.CasDrmLicenseRequest";
|
|
}
|
|
protected:
|
|
explicit CasDrmLicenseRequest(::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_2fmedia_5fcas_5flicense_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
typedef CasDrmLicenseRequest_ContentKeySpec ContentKeySpec;
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kContentKeySpecsFieldNumber = 4,
|
|
kPayloadFieldNumber = 1,
|
|
kProviderIdFieldNumber = 2,
|
|
kContentIdFieldNumber = 3,
|
|
kSessionKeyFieldNumber = 8,
|
|
kSessionIvFieldNumber = 9,
|
|
kProviderEcmVerifierPublicKeyFieldNumber = 10,
|
|
kPolicyFieldNumber = 5,
|
|
kSessionInitFieldNumber = 6,
|
|
kProxyInfoFieldNumber = 7,
|
|
};
|
|
// repeated .video_widevine.CasDrmLicenseRequest.ContentKeySpec content_key_specs = 4;
|
|
int content_key_specs_size() const;
|
|
private:
|
|
int _internal_content_key_specs_size() const;
|
|
public:
|
|
void clear_content_key_specs();
|
|
::video_widevine::CasDrmLicenseRequest_ContentKeySpec* mutable_content_key_specs(int index);
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::CasDrmLicenseRequest_ContentKeySpec >*
|
|
mutable_content_key_specs();
|
|
private:
|
|
const ::video_widevine::CasDrmLicenseRequest_ContentKeySpec& _internal_content_key_specs(int index) const;
|
|
::video_widevine::CasDrmLicenseRequest_ContentKeySpec* _internal_add_content_key_specs();
|
|
public:
|
|
const ::video_widevine::CasDrmLicenseRequest_ContentKeySpec& content_key_specs(int index) const;
|
|
::video_widevine::CasDrmLicenseRequest_ContentKeySpec* add_content_key_specs();
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::CasDrmLicenseRequest_ContentKeySpec >&
|
|
content_key_specs() const;
|
|
|
|
// optional bytes payload = 1;
|
|
bool has_payload() const;
|
|
private:
|
|
bool _internal_has_payload() const;
|
|
public:
|
|
void clear_payload();
|
|
const std::string& payload() const;
|
|
void set_payload(const std::string& value);
|
|
void set_payload(std::string&& value);
|
|
void set_payload(const char* value);
|
|
void set_payload(const void* value, size_t size);
|
|
std::string* mutable_payload();
|
|
std::string* release_payload();
|
|
void set_allocated_payload(std::string* payload);
|
|
private:
|
|
const std::string& _internal_payload() const;
|
|
void _internal_set_payload(const std::string& value);
|
|
std::string* _internal_mutable_payload();
|
|
public:
|
|
|
|
// optional string provider_id = 2;
|
|
bool has_provider_id() const;
|
|
private:
|
|
bool _internal_has_provider_id() const;
|
|
public:
|
|
void clear_provider_id();
|
|
const std::string& provider_id() const;
|
|
void set_provider_id(const std::string& value);
|
|
void set_provider_id(std::string&& value);
|
|
void set_provider_id(const char* value);
|
|
void set_provider_id(const char* value, size_t size);
|
|
std::string* mutable_provider_id();
|
|
std::string* release_provider_id();
|
|
void set_allocated_provider_id(std::string* provider_id);
|
|
private:
|
|
const std::string& _internal_provider_id() const;
|
|
void _internal_set_provider_id(const std::string& value);
|
|
std::string* _internal_mutable_provider_id();
|
|
public:
|
|
|
|
// optional bytes content_id = 3;
|
|
bool has_content_id() const;
|
|
private:
|
|
bool _internal_has_content_id() const;
|
|
public:
|
|
void clear_content_id();
|
|
const std::string& content_id() const;
|
|
void set_content_id(const std::string& value);
|
|
void set_content_id(std::string&& value);
|
|
void set_content_id(const char* value);
|
|
void set_content_id(const void* value, size_t size);
|
|
std::string* mutable_content_id();
|
|
std::string* release_content_id();
|
|
void set_allocated_content_id(std::string* content_id);
|
|
private:
|
|
const std::string& _internal_content_id() const;
|
|
void _internal_set_content_id(const std::string& value);
|
|
std::string* _internal_mutable_content_id();
|
|
public:
|
|
|
|
// optional bytes session_key = 8;
|
|
bool has_session_key() const;
|
|
private:
|
|
bool _internal_has_session_key() const;
|
|
public:
|
|
void clear_session_key();
|
|
const std::string& session_key() const;
|
|
void set_session_key(const std::string& value);
|
|
void set_session_key(std::string&& value);
|
|
void set_session_key(const char* value);
|
|
void set_session_key(const void* value, size_t size);
|
|
std::string* mutable_session_key();
|
|
std::string* release_session_key();
|
|
void set_allocated_session_key(std::string* session_key);
|
|
private:
|
|
const std::string& _internal_session_key() const;
|
|
void _internal_set_session_key(const std::string& value);
|
|
std::string* _internal_mutable_session_key();
|
|
public:
|
|
|
|
// optional bytes session_iv = 9;
|
|
bool has_session_iv() const;
|
|
private:
|
|
bool _internal_has_session_iv() const;
|
|
public:
|
|
void clear_session_iv();
|
|
const std::string& session_iv() const;
|
|
void set_session_iv(const std::string& value);
|
|
void set_session_iv(std::string&& value);
|
|
void set_session_iv(const char* value);
|
|
void set_session_iv(const void* value, size_t size);
|
|
std::string* mutable_session_iv();
|
|
std::string* release_session_iv();
|
|
void set_allocated_session_iv(std::string* session_iv);
|
|
private:
|
|
const std::string& _internal_session_iv() const;
|
|
void _internal_set_session_iv(const std::string& value);
|
|
std::string* _internal_mutable_session_iv();
|
|
public:
|
|
|
|
// optional bytes provider_ecm_verifier_public_key = 10;
|
|
bool has_provider_ecm_verifier_public_key() const;
|
|
private:
|
|
bool _internal_has_provider_ecm_verifier_public_key() const;
|
|
public:
|
|
void clear_provider_ecm_verifier_public_key();
|
|
const std::string& provider_ecm_verifier_public_key() const;
|
|
void set_provider_ecm_verifier_public_key(const std::string& value);
|
|
void set_provider_ecm_verifier_public_key(std::string&& value);
|
|
void set_provider_ecm_verifier_public_key(const char* value);
|
|
void set_provider_ecm_verifier_public_key(const void* value, size_t size);
|
|
std::string* mutable_provider_ecm_verifier_public_key();
|
|
std::string* release_provider_ecm_verifier_public_key();
|
|
void set_allocated_provider_ecm_verifier_public_key(std::string* provider_ecm_verifier_public_key);
|
|
private:
|
|
const std::string& _internal_provider_ecm_verifier_public_key() const;
|
|
void _internal_set_provider_ecm_verifier_public_key(const std::string& value);
|
|
std::string* _internal_mutable_provider_ecm_verifier_public_key();
|
|
public:
|
|
|
|
// optional .video_widevine.License.Policy policy = 5;
|
|
bool has_policy() const;
|
|
private:
|
|
bool _internal_has_policy() const;
|
|
public:
|
|
void clear_policy();
|
|
const ::video_widevine::License_Policy& policy() const;
|
|
::video_widevine::License_Policy* release_policy();
|
|
::video_widevine::License_Policy* mutable_policy();
|
|
void set_allocated_policy(::video_widevine::License_Policy* policy);
|
|
private:
|
|
const ::video_widevine::License_Policy& _internal_policy() const;
|
|
::video_widevine::License_Policy* _internal_mutable_policy();
|
|
public:
|
|
void unsafe_arena_set_allocated_policy(
|
|
::video_widevine::License_Policy* policy);
|
|
::video_widevine::License_Policy* unsafe_arena_release_policy();
|
|
|
|
// optional .video_widevine.SessionInit session_init = 6;
|
|
bool has_session_init() const;
|
|
private:
|
|
bool _internal_has_session_init() const;
|
|
public:
|
|
void clear_session_init();
|
|
const ::video_widevine::SessionInit& session_init() const;
|
|
::video_widevine::SessionInit* release_session_init();
|
|
::video_widevine::SessionInit* mutable_session_init();
|
|
void set_allocated_session_init(::video_widevine::SessionInit* session_init);
|
|
private:
|
|
const ::video_widevine::SessionInit& _internal_session_init() const;
|
|
::video_widevine::SessionInit* _internal_mutable_session_init();
|
|
public:
|
|
void unsafe_arena_set_allocated_session_init(
|
|
::video_widevine::SessionInit* session_init);
|
|
::video_widevine::SessionInit* unsafe_arena_release_session_init();
|
|
|
|
// optional .video_widevine.ProxyInfo proxy_info = 7;
|
|
bool has_proxy_info() const;
|
|
private:
|
|
bool _internal_has_proxy_info() const;
|
|
public:
|
|
void clear_proxy_info();
|
|
const ::video_widevine::ProxyInfo& proxy_info() const;
|
|
::video_widevine::ProxyInfo* release_proxy_info();
|
|
::video_widevine::ProxyInfo* mutable_proxy_info();
|
|
void set_allocated_proxy_info(::video_widevine::ProxyInfo* proxy_info);
|
|
private:
|
|
const ::video_widevine::ProxyInfo& _internal_proxy_info() const;
|
|
::video_widevine::ProxyInfo* _internal_mutable_proxy_info();
|
|
public:
|
|
void unsafe_arena_set_allocated_proxy_info(
|
|
::video_widevine::ProxyInfo* proxy_info);
|
|
::video_widevine::ProxyInfo* unsafe_arena_release_proxy_info();
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.CasDrmLicenseRequest)
|
|
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::RepeatedPtrField< ::video_widevine::CasDrmLicenseRequest_ContentKeySpec > content_key_specs_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_key_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_iv_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_ecm_verifier_public_key_;
|
|
::video_widevine::License_Policy* policy_;
|
|
::video_widevine::SessionInit* session_init_;
|
|
::video_widevine::ProxyInfo* proxy_info_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class CasDrmLicenseResponse_PsshData PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.CasDrmLicenseResponse.PsshData) */ {
|
|
public:
|
|
inline CasDrmLicenseResponse_PsshData() : CasDrmLicenseResponse_PsshData(nullptr) {}
|
|
virtual ~CasDrmLicenseResponse_PsshData();
|
|
|
|
CasDrmLicenseResponse_PsshData(const CasDrmLicenseResponse_PsshData& from);
|
|
CasDrmLicenseResponse_PsshData(CasDrmLicenseResponse_PsshData&& from) noexcept
|
|
: CasDrmLicenseResponse_PsshData() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline CasDrmLicenseResponse_PsshData& operator=(const CasDrmLicenseResponse_PsshData& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline CasDrmLicenseResponse_PsshData& operator=(CasDrmLicenseResponse_PsshData&& 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 CasDrmLicenseResponse_PsshData& default_instance();
|
|
|
|
static inline const CasDrmLicenseResponse_PsshData* internal_default_instance() {
|
|
return reinterpret_cast<const CasDrmLicenseResponse_PsshData*>(
|
|
&_CasDrmLicenseResponse_PsshData_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
2;
|
|
|
|
friend void swap(CasDrmLicenseResponse_PsshData& a, CasDrmLicenseResponse_PsshData& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(CasDrmLicenseResponse_PsshData* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(CasDrmLicenseResponse_PsshData* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline CasDrmLicenseResponse_PsshData* New() const final {
|
|
return CreateMaybeMessage<CasDrmLicenseResponse_PsshData>(nullptr);
|
|
}
|
|
|
|
CasDrmLicenseResponse_PsshData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<CasDrmLicenseResponse_PsshData>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const CasDrmLicenseResponse_PsshData& from);
|
|
void MergeFrom(const CasDrmLicenseResponse_PsshData& 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(CasDrmLicenseResponse_PsshData* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.CasDrmLicenseResponse.PsshData";
|
|
}
|
|
protected:
|
|
explicit CasDrmLicenseResponse_PsshData(::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_2fmedia_5fcas_5flicense_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kKeyIdFieldNumber = 1,
|
|
kContentIdFieldNumber = 2,
|
|
kGroupIdFieldNumber = 3,
|
|
};
|
|
// repeated bytes key_id = 1;
|
|
int key_id_size() const;
|
|
private:
|
|
int _internal_key_id_size() const;
|
|
public:
|
|
void clear_key_id();
|
|
const std::string& key_id(int index) const;
|
|
std::string* mutable_key_id(int index);
|
|
void set_key_id(int index, const std::string& value);
|
|
void set_key_id(int index, std::string&& value);
|
|
void set_key_id(int index, const char* value);
|
|
void set_key_id(int index, const void* value, size_t size);
|
|
std::string* add_key_id();
|
|
void add_key_id(const std::string& value);
|
|
void add_key_id(std::string&& value);
|
|
void add_key_id(const char* value);
|
|
void add_key_id(const void* value, size_t size);
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& key_id() const;
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_key_id();
|
|
private:
|
|
const std::string& _internal_key_id(int index) const;
|
|
std::string* _internal_add_key_id();
|
|
public:
|
|
|
|
// optional bytes content_id = 2;
|
|
bool has_content_id() const;
|
|
private:
|
|
bool _internal_has_content_id() const;
|
|
public:
|
|
void clear_content_id();
|
|
const std::string& content_id() const;
|
|
void set_content_id(const std::string& value);
|
|
void set_content_id(std::string&& value);
|
|
void set_content_id(const char* value);
|
|
void set_content_id(const void* value, size_t size);
|
|
std::string* mutable_content_id();
|
|
std::string* release_content_id();
|
|
void set_allocated_content_id(std::string* content_id);
|
|
private:
|
|
const std::string& _internal_content_id() const;
|
|
void _internal_set_content_id(const std::string& value);
|
|
std::string* _internal_mutable_content_id();
|
|
public:
|
|
|
|
// optional bytes group_id = 3;
|
|
bool has_group_id() const;
|
|
private:
|
|
bool _internal_has_group_id() const;
|
|
public:
|
|
void clear_group_id();
|
|
const std::string& group_id() const;
|
|
void set_group_id(const std::string& value);
|
|
void set_group_id(std::string&& value);
|
|
void set_group_id(const char* value);
|
|
void set_group_id(const void* value, size_t size);
|
|
std::string* mutable_group_id();
|
|
std::string* release_group_id();
|
|
void set_allocated_group_id(std::string* group_id);
|
|
private:
|
|
const std::string& _internal_group_id() const;
|
|
void _internal_set_group_id(const std::string& value);
|
|
std::string* _internal_mutable_group_id();
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.CasDrmLicenseResponse.PsshData)
|
|
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::RepeatedPtrField<std::string> key_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr group_id_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class CasDrmLicenseResponse_LicenseMetadata PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.CasDrmLicenseResponse.LicenseMetadata) */ {
|
|
public:
|
|
inline CasDrmLicenseResponse_LicenseMetadata() : CasDrmLicenseResponse_LicenseMetadata(nullptr) {}
|
|
virtual ~CasDrmLicenseResponse_LicenseMetadata();
|
|
|
|
CasDrmLicenseResponse_LicenseMetadata(const CasDrmLicenseResponse_LicenseMetadata& from);
|
|
CasDrmLicenseResponse_LicenseMetadata(CasDrmLicenseResponse_LicenseMetadata&& from) noexcept
|
|
: CasDrmLicenseResponse_LicenseMetadata() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline CasDrmLicenseResponse_LicenseMetadata& operator=(const CasDrmLicenseResponse_LicenseMetadata& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline CasDrmLicenseResponse_LicenseMetadata& operator=(CasDrmLicenseResponse_LicenseMetadata&& 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 CasDrmLicenseResponse_LicenseMetadata& default_instance();
|
|
|
|
static inline const CasDrmLicenseResponse_LicenseMetadata* internal_default_instance() {
|
|
return reinterpret_cast<const CasDrmLicenseResponse_LicenseMetadata*>(
|
|
&_CasDrmLicenseResponse_LicenseMetadata_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
3;
|
|
|
|
friend void swap(CasDrmLicenseResponse_LicenseMetadata& a, CasDrmLicenseResponse_LicenseMetadata& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(CasDrmLicenseResponse_LicenseMetadata* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(CasDrmLicenseResponse_LicenseMetadata* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline CasDrmLicenseResponse_LicenseMetadata* New() const final {
|
|
return CreateMaybeMessage<CasDrmLicenseResponse_LicenseMetadata>(nullptr);
|
|
}
|
|
|
|
CasDrmLicenseResponse_LicenseMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<CasDrmLicenseResponse_LicenseMetadata>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const CasDrmLicenseResponse_LicenseMetadata& from);
|
|
void MergeFrom(const CasDrmLicenseResponse_LicenseMetadata& 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(CasDrmLicenseResponse_LicenseMetadata* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.CasDrmLicenseResponse.LicenseMetadata";
|
|
}
|
|
protected:
|
|
explicit CasDrmLicenseResponse_LicenseMetadata(::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_2fmedia_5fcas_5flicense_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kKeyIdFieldNumber = 2,
|
|
kContentIdFieldNumber = 1,
|
|
};
|
|
// repeated bytes key_id = 2;
|
|
int key_id_size() const;
|
|
private:
|
|
int _internal_key_id_size() const;
|
|
public:
|
|
void clear_key_id();
|
|
const std::string& key_id(int index) const;
|
|
std::string* mutable_key_id(int index);
|
|
void set_key_id(int index, const std::string& value);
|
|
void set_key_id(int index, std::string&& value);
|
|
void set_key_id(int index, const char* value);
|
|
void set_key_id(int index, const void* value, size_t size);
|
|
std::string* add_key_id();
|
|
void add_key_id(const std::string& value);
|
|
void add_key_id(std::string&& value);
|
|
void add_key_id(const char* value);
|
|
void add_key_id(const void* value, size_t size);
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& key_id() const;
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_key_id();
|
|
private:
|
|
const std::string& _internal_key_id(int index) const;
|
|
std::string* _internal_add_key_id();
|
|
public:
|
|
|
|
// optional bytes content_id = 1;
|
|
bool has_content_id() const;
|
|
private:
|
|
bool _internal_has_content_id() const;
|
|
public:
|
|
void clear_content_id();
|
|
const std::string& content_id() const;
|
|
void set_content_id(const std::string& value);
|
|
void set_content_id(std::string&& value);
|
|
void set_content_id(const char* value);
|
|
void set_content_id(const void* value, size_t size);
|
|
std::string* mutable_content_id();
|
|
std::string* release_content_id();
|
|
void set_allocated_content_id(std::string* content_id);
|
|
private:
|
|
const std::string& _internal_content_id() const;
|
|
void _internal_set_content_id(const std::string& value);
|
|
std::string* _internal_mutable_content_id();
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.CasDrmLicenseResponse.LicenseMetadata)
|
|
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::RepeatedPtrField<std::string> key_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_id_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class CasDrmLicenseResponse_DeviceInfo PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.CasDrmLicenseResponse.DeviceInfo) */ {
|
|
public:
|
|
inline CasDrmLicenseResponse_DeviceInfo() : CasDrmLicenseResponse_DeviceInfo(nullptr) {}
|
|
virtual ~CasDrmLicenseResponse_DeviceInfo();
|
|
|
|
CasDrmLicenseResponse_DeviceInfo(const CasDrmLicenseResponse_DeviceInfo& from);
|
|
CasDrmLicenseResponse_DeviceInfo(CasDrmLicenseResponse_DeviceInfo&& from) noexcept
|
|
: CasDrmLicenseResponse_DeviceInfo() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline CasDrmLicenseResponse_DeviceInfo& operator=(const CasDrmLicenseResponse_DeviceInfo& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline CasDrmLicenseResponse_DeviceInfo& operator=(CasDrmLicenseResponse_DeviceInfo&& 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 CasDrmLicenseResponse_DeviceInfo& default_instance();
|
|
|
|
static inline const CasDrmLicenseResponse_DeviceInfo* internal_default_instance() {
|
|
return reinterpret_cast<const CasDrmLicenseResponse_DeviceInfo*>(
|
|
&_CasDrmLicenseResponse_DeviceInfo_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
4;
|
|
|
|
friend void swap(CasDrmLicenseResponse_DeviceInfo& a, CasDrmLicenseResponse_DeviceInfo& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(CasDrmLicenseResponse_DeviceInfo* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(CasDrmLicenseResponse_DeviceInfo* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline CasDrmLicenseResponse_DeviceInfo* New() const final {
|
|
return CreateMaybeMessage<CasDrmLicenseResponse_DeviceInfo>(nullptr);
|
|
}
|
|
|
|
CasDrmLicenseResponse_DeviceInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<CasDrmLicenseResponse_DeviceInfo>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const CasDrmLicenseResponse_DeviceInfo& from);
|
|
void MergeFrom(const CasDrmLicenseResponse_DeviceInfo& 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(CasDrmLicenseResponse_DeviceInfo* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.CasDrmLicenseResponse.DeviceInfo";
|
|
}
|
|
protected:
|
|
explicit CasDrmLicenseResponse_DeviceInfo(::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_2fmedia_5fcas_5flicense_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kMakeFieldNumber = 1,
|
|
kModelFieldNumber = 2,
|
|
kDrmCertSerialNumberFieldNumber = 4,
|
|
kPlatformFieldNumber = 5,
|
|
kSecurityLevelFieldNumber = 3,
|
|
kSystemIdFieldNumber = 6,
|
|
};
|
|
// optional string make = 1;
|
|
bool has_make() const;
|
|
private:
|
|
bool _internal_has_make() const;
|
|
public:
|
|
void clear_make();
|
|
const std::string& make() const;
|
|
void set_make(const std::string& value);
|
|
void set_make(std::string&& value);
|
|
void set_make(const char* value);
|
|
void set_make(const char* value, size_t size);
|
|
std::string* mutable_make();
|
|
std::string* release_make();
|
|
void set_allocated_make(std::string* make);
|
|
private:
|
|
const std::string& _internal_make() const;
|
|
void _internal_set_make(const std::string& value);
|
|
std::string* _internal_mutable_make();
|
|
public:
|
|
|
|
// optional string model = 2;
|
|
bool has_model() const;
|
|
private:
|
|
bool _internal_has_model() const;
|
|
public:
|
|
void clear_model();
|
|
const std::string& model() const;
|
|
void set_model(const std::string& value);
|
|
void set_model(std::string&& value);
|
|
void set_model(const char* value);
|
|
void set_model(const char* value, size_t size);
|
|
std::string* mutable_model();
|
|
std::string* release_model();
|
|
void set_allocated_model(std::string* model);
|
|
private:
|
|
const std::string& _internal_model() const;
|
|
void _internal_set_model(const std::string& value);
|
|
std::string* _internal_mutable_model();
|
|
public:
|
|
|
|
// optional bytes drm_cert_serial_number = 4;
|
|
bool has_drm_cert_serial_number() const;
|
|
private:
|
|
bool _internal_has_drm_cert_serial_number() const;
|
|
public:
|
|
void clear_drm_cert_serial_number();
|
|
const std::string& drm_cert_serial_number() const;
|
|
void set_drm_cert_serial_number(const std::string& value);
|
|
void set_drm_cert_serial_number(std::string&& value);
|
|
void set_drm_cert_serial_number(const char* value);
|
|
void set_drm_cert_serial_number(const void* value, size_t size);
|
|
std::string* mutable_drm_cert_serial_number();
|
|
std::string* release_drm_cert_serial_number();
|
|
void set_allocated_drm_cert_serial_number(std::string* drm_cert_serial_number);
|
|
private:
|
|
const std::string& _internal_drm_cert_serial_number() const;
|
|
void _internal_set_drm_cert_serial_number(const std::string& value);
|
|
std::string* _internal_mutable_drm_cert_serial_number();
|
|
public:
|
|
|
|
// optional string platform = 5;
|
|
bool has_platform() const;
|
|
private:
|
|
bool _internal_has_platform() const;
|
|
public:
|
|
void clear_platform();
|
|
const std::string& platform() const;
|
|
void set_platform(const std::string& value);
|
|
void set_platform(std::string&& value);
|
|
void set_platform(const char* value);
|
|
void set_platform(const char* value, size_t size);
|
|
std::string* mutable_platform();
|
|
std::string* release_platform();
|
|
void set_allocated_platform(std::string* platform);
|
|
private:
|
|
const std::string& _internal_platform() const;
|
|
void _internal_set_platform(const std::string& value);
|
|
std::string* _internal_mutable_platform();
|
|
public:
|
|
|
|
// optional uint32 security_level = 3;
|
|
bool has_security_level() const;
|
|
private:
|
|
bool _internal_has_security_level() const;
|
|
public:
|
|
void clear_security_level();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 security_level() const;
|
|
void set_security_level(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_security_level() const;
|
|
void _internal_set_security_level(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// optional uint32 system_id = 6;
|
|
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:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.CasDrmLicenseResponse.DeviceInfo)
|
|
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 make_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr drm_cert_serial_number_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr platform_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 security_level_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 system_id_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class CasDrmLicenseResponse PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.CasDrmLicenseResponse) */ {
|
|
public:
|
|
inline CasDrmLicenseResponse() : CasDrmLicenseResponse(nullptr) {}
|
|
virtual ~CasDrmLicenseResponse();
|
|
|
|
CasDrmLicenseResponse(const CasDrmLicenseResponse& from);
|
|
CasDrmLicenseResponse(CasDrmLicenseResponse&& from) noexcept
|
|
: CasDrmLicenseResponse() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline CasDrmLicenseResponse& operator=(const CasDrmLicenseResponse& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline CasDrmLicenseResponse& operator=(CasDrmLicenseResponse&& 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 CasDrmLicenseResponse& default_instance();
|
|
|
|
static inline const CasDrmLicenseResponse* internal_default_instance() {
|
|
return reinterpret_cast<const CasDrmLicenseResponse*>(
|
|
&_CasDrmLicenseResponse_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
5;
|
|
|
|
friend void swap(CasDrmLicenseResponse& a, CasDrmLicenseResponse& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(CasDrmLicenseResponse* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(CasDrmLicenseResponse* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline CasDrmLicenseResponse* New() const final {
|
|
return CreateMaybeMessage<CasDrmLicenseResponse>(nullptr);
|
|
}
|
|
|
|
CasDrmLicenseResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<CasDrmLicenseResponse>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const CasDrmLicenseResponse& from);
|
|
void MergeFrom(const CasDrmLicenseResponse& 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(CasDrmLicenseResponse* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.CasDrmLicenseResponse";
|
|
}
|
|
protected:
|
|
explicit CasDrmLicenseResponse(::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_2fmedia_5fcas_5flicense_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
typedef CasDrmLicenseResponse_PsshData PsshData;
|
|
typedef CasDrmLicenseResponse_LicenseMetadata LicenseMetadata;
|
|
typedef CasDrmLicenseResponse_DeviceInfo DeviceInfo;
|
|
|
|
typedef CasDrmLicenseResponse_Status Status;
|
|
static constexpr Status UNKNOWN =
|
|
CasDrmLicenseResponse_Status_UNKNOWN;
|
|
static constexpr Status OK =
|
|
CasDrmLicenseResponse_Status_OK;
|
|
static constexpr Status SIGNATURE_FAILED =
|
|
CasDrmLicenseResponse_Status_SIGNATURE_FAILED;
|
|
static constexpr Status INVALID_LICENSE_CHALLENGE =
|
|
CasDrmLicenseResponse_Status_INVALID_LICENSE_CHALLENGE;
|
|
static constexpr Status PROVIDER_ID_MISSING =
|
|
CasDrmLicenseResponse_Status_PROVIDER_ID_MISSING;
|
|
static constexpr Status INVALID_CONTENT_INFO =
|
|
CasDrmLicenseResponse_Status_INVALID_CONTENT_INFO;
|
|
static constexpr Status EMPTY_CONTENT_INFO =
|
|
CasDrmLicenseResponse_Status_EMPTY_CONTENT_INFO;
|
|
static constexpr Status CONTENT_ID_MISMATCH =
|
|
CasDrmLicenseResponse_Status_CONTENT_ID_MISMATCH;
|
|
static constexpr Status DEPRECATED_MISSING_CONTENT_ID =
|
|
CasDrmLicenseResponse_Status_DEPRECATED_MISSING_CONTENT_ID;
|
|
static constexpr Status MALFORMED_REQUEST =
|
|
CasDrmLicenseResponse_Status_MALFORMED_REQUEST;
|
|
static constexpr Status INTERNAL_ERROR =
|
|
CasDrmLicenseResponse_Status_INTERNAL_ERROR;
|
|
static constexpr Status SIGNING_KEY_EXPIRED =
|
|
CasDrmLicenseResponse_Status_SIGNING_KEY_EXPIRED;
|
|
static inline bool Status_IsValid(int value) {
|
|
return CasDrmLicenseResponse_Status_IsValid(value);
|
|
}
|
|
static constexpr Status Status_MIN =
|
|
CasDrmLicenseResponse_Status_Status_MIN;
|
|
static constexpr Status Status_MAX =
|
|
CasDrmLicenseResponse_Status_Status_MAX;
|
|
static constexpr int Status_ARRAYSIZE =
|
|
CasDrmLicenseResponse_Status_Status_ARRAYSIZE;
|
|
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
|
Status_descriptor() {
|
|
return CasDrmLicenseResponse_Status_descriptor();
|
|
}
|
|
template<typename T>
|
|
static inline const std::string& Status_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, Status>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function Status_Name.");
|
|
return CasDrmLicenseResponse_Status_Name(enum_t_value);
|
|
}
|
|
static inline bool Status_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
|
Status* value) {
|
|
return CasDrmLicenseResponse_Status_Parse(name, value);
|
|
}
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kStatusMessageFieldNumber = 2,
|
|
kLicenseFieldNumber = 3,
|
|
kContentOwnerFieldNumber = 8,
|
|
kContentProviderFieldNumber = 9,
|
|
kPsshDataFieldNumber = 6,
|
|
kSessionStateFieldNumber = 7,
|
|
kLicenseMetadataFieldNumber = 10,
|
|
kDeviceInfoFieldNumber = 11,
|
|
kStatusFieldNumber = 1,
|
|
kInternalStatusFieldNumber = 4,
|
|
kMessageTypeFieldNumber = 5,
|
|
};
|
|
// optional string status_message = 2;
|
|
bool has_status_message() const;
|
|
private:
|
|
bool _internal_has_status_message() const;
|
|
public:
|
|
void clear_status_message();
|
|
const std::string& status_message() const;
|
|
void set_status_message(const std::string& value);
|
|
void set_status_message(std::string&& value);
|
|
void set_status_message(const char* value);
|
|
void set_status_message(const char* value, size_t size);
|
|
std::string* mutable_status_message();
|
|
std::string* release_status_message();
|
|
void set_allocated_status_message(std::string* status_message);
|
|
private:
|
|
const std::string& _internal_status_message() const;
|
|
void _internal_set_status_message(const std::string& value);
|
|
std::string* _internal_mutable_status_message();
|
|
public:
|
|
|
|
// optional bytes license = 3;
|
|
bool has_license() const;
|
|
private:
|
|
bool _internal_has_license() const;
|
|
public:
|
|
void clear_license();
|
|
const std::string& license() const;
|
|
void set_license(const std::string& value);
|
|
void set_license(std::string&& value);
|
|
void set_license(const char* value);
|
|
void set_license(const void* value, size_t size);
|
|
std::string* mutable_license();
|
|
std::string* release_license();
|
|
void set_allocated_license(std::string* license);
|
|
private:
|
|
const std::string& _internal_license() const;
|
|
void _internal_set_license(const std::string& value);
|
|
std::string* _internal_mutable_license();
|
|
public:
|
|
|
|
// optional string content_owner = 8;
|
|
bool has_content_owner() const;
|
|
private:
|
|
bool _internal_has_content_owner() const;
|
|
public:
|
|
void clear_content_owner();
|
|
const std::string& content_owner() const;
|
|
void set_content_owner(const std::string& value);
|
|
void set_content_owner(std::string&& value);
|
|
void set_content_owner(const char* value);
|
|
void set_content_owner(const char* value, size_t size);
|
|
std::string* mutable_content_owner();
|
|
std::string* release_content_owner();
|
|
void set_allocated_content_owner(std::string* content_owner);
|
|
private:
|
|
const std::string& _internal_content_owner() const;
|
|
void _internal_set_content_owner(const std::string& value);
|
|
std::string* _internal_mutable_content_owner();
|
|
public:
|
|
|
|
// optional string content_provider = 9;
|
|
bool has_content_provider() const;
|
|
private:
|
|
bool _internal_has_content_provider() const;
|
|
public:
|
|
void clear_content_provider();
|
|
const std::string& content_provider() const;
|
|
void set_content_provider(const std::string& value);
|
|
void set_content_provider(std::string&& value);
|
|
void set_content_provider(const char* value);
|
|
void set_content_provider(const char* value, size_t size);
|
|
std::string* mutable_content_provider();
|
|
std::string* release_content_provider();
|
|
void set_allocated_content_provider(std::string* content_provider);
|
|
private:
|
|
const std::string& _internal_content_provider() const;
|
|
void _internal_set_content_provider(const std::string& value);
|
|
std::string* _internal_mutable_content_provider();
|
|
public:
|
|
|
|
// optional .video_widevine.CasDrmLicenseResponse.PsshData pssh_data = 6;
|
|
bool has_pssh_data() const;
|
|
private:
|
|
bool _internal_has_pssh_data() const;
|
|
public:
|
|
void clear_pssh_data();
|
|
const ::video_widevine::CasDrmLicenseResponse_PsshData& pssh_data() const;
|
|
::video_widevine::CasDrmLicenseResponse_PsshData* release_pssh_data();
|
|
::video_widevine::CasDrmLicenseResponse_PsshData* mutable_pssh_data();
|
|
void set_allocated_pssh_data(::video_widevine::CasDrmLicenseResponse_PsshData* pssh_data);
|
|
private:
|
|
const ::video_widevine::CasDrmLicenseResponse_PsshData& _internal_pssh_data() const;
|
|
::video_widevine::CasDrmLicenseResponse_PsshData* _internal_mutable_pssh_data();
|
|
public:
|
|
void unsafe_arena_set_allocated_pssh_data(
|
|
::video_widevine::CasDrmLicenseResponse_PsshData* pssh_data);
|
|
::video_widevine::CasDrmLicenseResponse_PsshData* unsafe_arena_release_pssh_data();
|
|
|
|
// optional .video_widevine.SessionState session_state = 7;
|
|
bool has_session_state() const;
|
|
private:
|
|
bool _internal_has_session_state() const;
|
|
public:
|
|
void clear_session_state();
|
|
const ::video_widevine::SessionState& session_state() const;
|
|
::video_widevine::SessionState* release_session_state();
|
|
::video_widevine::SessionState* mutable_session_state();
|
|
void set_allocated_session_state(::video_widevine::SessionState* session_state);
|
|
private:
|
|
const ::video_widevine::SessionState& _internal_session_state() const;
|
|
::video_widevine::SessionState* _internal_mutable_session_state();
|
|
public:
|
|
void unsafe_arena_set_allocated_session_state(
|
|
::video_widevine::SessionState* session_state);
|
|
::video_widevine::SessionState* unsafe_arena_release_session_state();
|
|
|
|
// optional .video_widevine.CasDrmLicenseResponse.LicenseMetadata license_metadata = 10;
|
|
bool has_license_metadata() const;
|
|
private:
|
|
bool _internal_has_license_metadata() const;
|
|
public:
|
|
void clear_license_metadata();
|
|
const ::video_widevine::CasDrmLicenseResponse_LicenseMetadata& license_metadata() const;
|
|
::video_widevine::CasDrmLicenseResponse_LicenseMetadata* release_license_metadata();
|
|
::video_widevine::CasDrmLicenseResponse_LicenseMetadata* mutable_license_metadata();
|
|
void set_allocated_license_metadata(::video_widevine::CasDrmLicenseResponse_LicenseMetadata* license_metadata);
|
|
private:
|
|
const ::video_widevine::CasDrmLicenseResponse_LicenseMetadata& _internal_license_metadata() const;
|
|
::video_widevine::CasDrmLicenseResponse_LicenseMetadata* _internal_mutable_license_metadata();
|
|
public:
|
|
void unsafe_arena_set_allocated_license_metadata(
|
|
::video_widevine::CasDrmLicenseResponse_LicenseMetadata* license_metadata);
|
|
::video_widevine::CasDrmLicenseResponse_LicenseMetadata* unsafe_arena_release_license_metadata();
|
|
|
|
// optional .video_widevine.CasDrmLicenseResponse.DeviceInfo device_info = 11;
|
|
bool has_device_info() const;
|
|
private:
|
|
bool _internal_has_device_info() const;
|
|
public:
|
|
void clear_device_info();
|
|
const ::video_widevine::CasDrmLicenseResponse_DeviceInfo& device_info() const;
|
|
::video_widevine::CasDrmLicenseResponse_DeviceInfo* release_device_info();
|
|
::video_widevine::CasDrmLicenseResponse_DeviceInfo* mutable_device_info();
|
|
void set_allocated_device_info(::video_widevine::CasDrmLicenseResponse_DeviceInfo* device_info);
|
|
private:
|
|
const ::video_widevine::CasDrmLicenseResponse_DeviceInfo& _internal_device_info() const;
|
|
::video_widevine::CasDrmLicenseResponse_DeviceInfo* _internal_mutable_device_info();
|
|
public:
|
|
void unsafe_arena_set_allocated_device_info(
|
|
::video_widevine::CasDrmLicenseResponse_DeviceInfo* device_info);
|
|
::video_widevine::CasDrmLicenseResponse_DeviceInfo* unsafe_arena_release_device_info();
|
|
|
|
// optional .video_widevine.CasDrmLicenseResponse.Status status = 1;
|
|
bool has_status() const;
|
|
private:
|
|
bool _internal_has_status() const;
|
|
public:
|
|
void clear_status();
|
|
::video_widevine::CasDrmLicenseResponse_Status status() const;
|
|
void set_status(::video_widevine::CasDrmLicenseResponse_Status value);
|
|
private:
|
|
::video_widevine::CasDrmLicenseResponse_Status _internal_status() const;
|
|
void _internal_set_status(::video_widevine::CasDrmLicenseResponse_Status value);
|
|
public:
|
|
|
|
// optional uint32 internal_status = 4;
|
|
bool has_internal_status() const;
|
|
private:
|
|
bool _internal_has_internal_status() const;
|
|
public:
|
|
void clear_internal_status();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 internal_status() const;
|
|
void set_internal_status(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_internal_status() const;
|
|
void _internal_set_internal_status(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// optional .video_widevine.SignedMessage.MessageType message_type = 5;
|
|
bool has_message_type() const;
|
|
private:
|
|
bool _internal_has_message_type() const;
|
|
public:
|
|
void clear_message_type();
|
|
::video_widevine::SignedMessage_MessageType message_type() const;
|
|
void set_message_type(::video_widevine::SignedMessage_MessageType value);
|
|
private:
|
|
::video_widevine::SignedMessage_MessageType _internal_message_type() const;
|
|
void _internal_set_message_type(::video_widevine::SignedMessage_MessageType value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.CasDrmLicenseResponse)
|
|
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 status_message_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr license_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_owner_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_provider_;
|
|
::video_widevine::CasDrmLicenseResponse_PsshData* pssh_data_;
|
|
::video_widevine::SessionState* session_state_;
|
|
::video_widevine::CasDrmLicenseResponse_LicenseMetadata* license_metadata_;
|
|
::video_widevine::CasDrmLicenseResponse_DeviceInfo* device_info_;
|
|
int status_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 internal_status_;
|
|
int message_type_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class SignedCasDrmRequest PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.SignedCasDrmRequest) */ {
|
|
public:
|
|
inline SignedCasDrmRequest() : SignedCasDrmRequest(nullptr) {}
|
|
virtual ~SignedCasDrmRequest();
|
|
|
|
SignedCasDrmRequest(const SignedCasDrmRequest& from);
|
|
SignedCasDrmRequest(SignedCasDrmRequest&& from) noexcept
|
|
: SignedCasDrmRequest() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline SignedCasDrmRequest& operator=(const SignedCasDrmRequest& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline SignedCasDrmRequest& operator=(SignedCasDrmRequest&& 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 SignedCasDrmRequest& default_instance();
|
|
|
|
static inline const SignedCasDrmRequest* internal_default_instance() {
|
|
return reinterpret_cast<const SignedCasDrmRequest*>(
|
|
&_SignedCasDrmRequest_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
6;
|
|
|
|
friend void swap(SignedCasDrmRequest& a, SignedCasDrmRequest& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(SignedCasDrmRequest* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(SignedCasDrmRequest* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline SignedCasDrmRequest* New() const final {
|
|
return CreateMaybeMessage<SignedCasDrmRequest>(nullptr);
|
|
}
|
|
|
|
SignedCasDrmRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<SignedCasDrmRequest>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const SignedCasDrmRequest& from);
|
|
void MergeFrom(const SignedCasDrmRequest& 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(SignedCasDrmRequest* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.SignedCasDrmRequest";
|
|
}
|
|
protected:
|
|
explicit SignedCasDrmRequest(::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_2fmedia_5fcas_5flicense_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kRequestFieldNumber = 1,
|
|
kSignatureFieldNumber = 2,
|
|
kSignerFieldNumber = 3,
|
|
kClientIpAddressFieldNumber = 4,
|
|
kUserAgentFieldNumber = 5,
|
|
kProviderFieldNumber = 6,
|
|
kHashAlgorithmFieldNumber = 7,
|
|
};
|
|
// optional bytes request = 1;
|
|
bool has_request() const;
|
|
private:
|
|
bool _internal_has_request() const;
|
|
public:
|
|
void clear_request();
|
|
const std::string& request() const;
|
|
void set_request(const std::string& value);
|
|
void set_request(std::string&& value);
|
|
void set_request(const char* value);
|
|
void set_request(const void* value, size_t size);
|
|
std::string* mutable_request();
|
|
std::string* release_request();
|
|
void set_allocated_request(std::string* request);
|
|
private:
|
|
const std::string& _internal_request() const;
|
|
void _internal_set_request(const std::string& value);
|
|
std::string* _internal_mutable_request();
|
|
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 string signer = 3;
|
|
bool has_signer() const;
|
|
private:
|
|
bool _internal_has_signer() const;
|
|
public:
|
|
void clear_signer();
|
|
const std::string& signer() const;
|
|
void set_signer(const std::string& value);
|
|
void set_signer(std::string&& value);
|
|
void set_signer(const char* value);
|
|
void set_signer(const char* value, size_t size);
|
|
std::string* mutable_signer();
|
|
std::string* release_signer();
|
|
void set_allocated_signer(std::string* signer);
|
|
private:
|
|
const std::string& _internal_signer() const;
|
|
void _internal_set_signer(const std::string& value);
|
|
std::string* _internal_mutable_signer();
|
|
public:
|
|
|
|
// optional string client_ip_address = 4;
|
|
bool has_client_ip_address() const;
|
|
private:
|
|
bool _internal_has_client_ip_address() const;
|
|
public:
|
|
void clear_client_ip_address();
|
|
const std::string& client_ip_address() const;
|
|
void set_client_ip_address(const std::string& value);
|
|
void set_client_ip_address(std::string&& value);
|
|
void set_client_ip_address(const char* value);
|
|
void set_client_ip_address(const char* value, size_t size);
|
|
std::string* mutable_client_ip_address();
|
|
std::string* release_client_ip_address();
|
|
void set_allocated_client_ip_address(std::string* client_ip_address);
|
|
private:
|
|
const std::string& _internal_client_ip_address() const;
|
|
void _internal_set_client_ip_address(const std::string& value);
|
|
std::string* _internal_mutable_client_ip_address();
|
|
public:
|
|
|
|
// optional string user_agent = 5;
|
|
bool has_user_agent() const;
|
|
private:
|
|
bool _internal_has_user_agent() const;
|
|
public:
|
|
void clear_user_agent();
|
|
const std::string& user_agent() const;
|
|
void set_user_agent(const std::string& value);
|
|
void set_user_agent(std::string&& value);
|
|
void set_user_agent(const char* value);
|
|
void set_user_agent(const char* value, size_t size);
|
|
std::string* mutable_user_agent();
|
|
std::string* release_user_agent();
|
|
void set_allocated_user_agent(std::string* user_agent);
|
|
private:
|
|
const std::string& _internal_user_agent() const;
|
|
void _internal_set_user_agent(const std::string& value);
|
|
std::string* _internal_mutable_user_agent();
|
|
public:
|
|
|
|
// optional string provider = 6;
|
|
bool has_provider() const;
|
|
private:
|
|
bool _internal_has_provider() const;
|
|
public:
|
|
void clear_provider();
|
|
const std::string& provider() const;
|
|
void set_provider(const std::string& value);
|
|
void set_provider(std::string&& value);
|
|
void set_provider(const char* value);
|
|
void set_provider(const char* value, size_t size);
|
|
std::string* mutable_provider();
|
|
std::string* release_provider();
|
|
void set_allocated_provider(std::string* provider);
|
|
private:
|
|
const std::string& _internal_provider() const;
|
|
void _internal_set_provider(const std::string& value);
|
|
std::string* _internal_mutable_provider();
|
|
public:
|
|
|
|
// optional .video_widevine.HashAlgorithmProto hash_algorithm = 7;
|
|
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.SignedCasDrmRequest)
|
|
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 request_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signature_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signer_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_ip_address_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr user_agent_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_;
|
|
int hash_algorithm_;
|
|
friend struct ::TableStruct_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// CasDrmLicenseRequest_ContentKeySpec
|
|
|
|
// optional .video_widevine.License.KeyContainer.SecurityLevel security_level = 1;
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::_internal_has_security_level() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::has_security_level() const {
|
|
return _internal_has_security_level();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::clear_security_level() {
|
|
security_level_ = 1;
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_SecurityLevel CasDrmLicenseRequest_ContentKeySpec::_internal_security_level() const {
|
|
return static_cast< ::video_widevine::License_KeyContainer_SecurityLevel >(security_level_);
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_SecurityLevel CasDrmLicenseRequest_ContentKeySpec::security_level() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.ContentKeySpec.security_level)
|
|
return _internal_security_level();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::_internal_set_security_level(::video_widevine::License_KeyContainer_SecurityLevel value) {
|
|
assert(::video_widevine::License_KeyContainer_SecurityLevel_IsValid(value));
|
|
_has_bits_[0] |= 0x00000010u;
|
|
security_level_ = value;
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::set_security_level(::video_widevine::License_KeyContainer_SecurityLevel value) {
|
|
_internal_set_security_level(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseRequest.ContentKeySpec.security_level)
|
|
}
|
|
|
|
// optional .video_widevine.License.KeyContainer.OutputProtection required_output_protection = 2;
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::_internal_has_required_output_protection() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
PROTOBUF_ASSUME(!value || required_output_protection_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::has_required_output_protection() const {
|
|
return _internal_has_required_output_protection();
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_OutputProtection& CasDrmLicenseRequest_ContentKeySpec::_internal_required_output_protection() const {
|
|
const ::video_widevine::License_KeyContainer_OutputProtection* p = required_output_protection_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::License_KeyContainer_OutputProtection&>(
|
|
::video_widevine::_License_KeyContainer_OutputProtection_default_instance_);
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_OutputProtection& CasDrmLicenseRequest_ContentKeySpec::required_output_protection() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.ContentKeySpec.required_output_protection)
|
|
return _internal_required_output_protection();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::unsafe_arena_set_allocated_required_output_protection(
|
|
::video_widevine::License_KeyContainer_OutputProtection* required_output_protection) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(required_output_protection_);
|
|
}
|
|
required_output_protection_ = required_output_protection;
|
|
if (required_output_protection) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.CasDrmLicenseRequest.ContentKeySpec.required_output_protection)
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* CasDrmLicenseRequest_ContentKeySpec::release_required_output_protection() {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
::video_widevine::License_KeyContainer_OutputProtection* temp = required_output_protection_;
|
|
required_output_protection_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* CasDrmLicenseRequest_ContentKeySpec::unsafe_arena_release_required_output_protection() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.ContentKeySpec.required_output_protection)
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
::video_widevine::License_KeyContainer_OutputProtection* temp = required_output_protection_;
|
|
required_output_protection_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* CasDrmLicenseRequest_ContentKeySpec::_internal_mutable_required_output_protection() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
if (required_output_protection_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::License_KeyContainer_OutputProtection>(GetArena());
|
|
required_output_protection_ = p;
|
|
}
|
|
return required_output_protection_;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* CasDrmLicenseRequest_ContentKeySpec::mutable_required_output_protection() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.ContentKeySpec.required_output_protection)
|
|
return _internal_mutable_required_output_protection();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::set_allocated_required_output_protection(::video_widevine::License_KeyContainer_OutputProtection* required_output_protection) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(required_output_protection_);
|
|
}
|
|
if (required_output_protection) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(required_output_protection)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
required_output_protection = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, required_output_protection, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
required_output_protection_ = required_output_protection;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.ContentKeySpec.required_output_protection)
|
|
}
|
|
|
|
// optional .video_widevine.License.KeyContainer.OutputProtection requested_output_protection = 3;
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::_internal_has_requested_output_protection() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
PROTOBUF_ASSUME(!value || requested_output_protection_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::has_requested_output_protection() const {
|
|
return _internal_has_requested_output_protection();
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_OutputProtection& CasDrmLicenseRequest_ContentKeySpec::_internal_requested_output_protection() const {
|
|
const ::video_widevine::License_KeyContainer_OutputProtection* p = requested_output_protection_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::License_KeyContainer_OutputProtection&>(
|
|
::video_widevine::_License_KeyContainer_OutputProtection_default_instance_);
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_OutputProtection& CasDrmLicenseRequest_ContentKeySpec::requested_output_protection() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.ContentKeySpec.requested_output_protection)
|
|
return _internal_requested_output_protection();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::unsafe_arena_set_allocated_requested_output_protection(
|
|
::video_widevine::License_KeyContainer_OutputProtection* requested_output_protection) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(requested_output_protection_);
|
|
}
|
|
requested_output_protection_ = requested_output_protection;
|
|
if (requested_output_protection) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.CasDrmLicenseRequest.ContentKeySpec.requested_output_protection)
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* CasDrmLicenseRequest_ContentKeySpec::release_requested_output_protection() {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
::video_widevine::License_KeyContainer_OutputProtection* temp = requested_output_protection_;
|
|
requested_output_protection_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* CasDrmLicenseRequest_ContentKeySpec::unsafe_arena_release_requested_output_protection() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.ContentKeySpec.requested_output_protection)
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
::video_widevine::License_KeyContainer_OutputProtection* temp = requested_output_protection_;
|
|
requested_output_protection_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* CasDrmLicenseRequest_ContentKeySpec::_internal_mutable_requested_output_protection() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
if (requested_output_protection_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::License_KeyContainer_OutputProtection>(GetArena());
|
|
requested_output_protection_ = p;
|
|
}
|
|
return requested_output_protection_;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* CasDrmLicenseRequest_ContentKeySpec::mutable_requested_output_protection() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.ContentKeySpec.requested_output_protection)
|
|
return _internal_mutable_requested_output_protection();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::set_allocated_requested_output_protection(::video_widevine::License_KeyContainer_OutputProtection* requested_output_protection) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(requested_output_protection_);
|
|
}
|
|
if (requested_output_protection) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(requested_output_protection)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
requested_output_protection = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, requested_output_protection, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
requested_output_protection_ = requested_output_protection;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.ContentKeySpec.requested_output_protection)
|
|
}
|
|
|
|
// repeated .video_widevine.CasEncryptionResponse.KeyInfo entitlement_keys = 4;
|
|
inline int CasDrmLicenseRequest_ContentKeySpec::_internal_entitlement_keys_size() const {
|
|
return entitlement_keys_.size();
|
|
}
|
|
inline int CasDrmLicenseRequest_ContentKeySpec::entitlement_keys_size() const {
|
|
return _internal_entitlement_keys_size();
|
|
}
|
|
inline ::video_widevine::CasEncryptionResponse_KeyInfo* CasDrmLicenseRequest_ContentKeySpec::mutable_entitlement_keys(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.ContentKeySpec.entitlement_keys)
|
|
return entitlement_keys_.Mutable(index);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::CasEncryptionResponse_KeyInfo >*
|
|
CasDrmLicenseRequest_ContentKeySpec::mutable_entitlement_keys() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.CasDrmLicenseRequest.ContentKeySpec.entitlement_keys)
|
|
return &entitlement_keys_;
|
|
}
|
|
inline const ::video_widevine::CasEncryptionResponse_KeyInfo& CasDrmLicenseRequest_ContentKeySpec::_internal_entitlement_keys(int index) const {
|
|
return entitlement_keys_.Get(index);
|
|
}
|
|
inline const ::video_widevine::CasEncryptionResponse_KeyInfo& CasDrmLicenseRequest_ContentKeySpec::entitlement_keys(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.ContentKeySpec.entitlement_keys)
|
|
return _internal_entitlement_keys(index);
|
|
}
|
|
inline ::video_widevine::CasEncryptionResponse_KeyInfo* CasDrmLicenseRequest_ContentKeySpec::_internal_add_entitlement_keys() {
|
|
return entitlement_keys_.Add();
|
|
}
|
|
inline ::video_widevine::CasEncryptionResponse_KeyInfo* CasDrmLicenseRequest_ContentKeySpec::add_entitlement_keys() {
|
|
// @@protoc_insertion_point(field_add:video_widevine.CasDrmLicenseRequest.ContentKeySpec.entitlement_keys)
|
|
return _internal_add_entitlement_keys();
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::CasEncryptionResponse_KeyInfo >&
|
|
CasDrmLicenseRequest_ContentKeySpec::entitlement_keys() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.CasDrmLicenseRequest.ContentKeySpec.entitlement_keys)
|
|
return entitlement_keys_;
|
|
}
|
|
|
|
// optional .video_widevine.License.KeyContainer.KeyType key_type = 5;
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::_internal_has_key_type() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::has_key_type() const {
|
|
return _internal_has_key_type();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::clear_key_type() {
|
|
key_type_ = 1;
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_KeyType CasDrmLicenseRequest_ContentKeySpec::_internal_key_type() const {
|
|
return static_cast< ::video_widevine::License_KeyContainer_KeyType >(key_type_);
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_KeyType CasDrmLicenseRequest_ContentKeySpec::key_type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.ContentKeySpec.key_type)
|
|
return _internal_key_type();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::_internal_set_key_type(::video_widevine::License_KeyContainer_KeyType value) {
|
|
assert(::video_widevine::License_KeyContainer_KeyType_IsValid(value));
|
|
_has_bits_[0] |= 0x00000020u;
|
|
key_type_ = value;
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::set_key_type(::video_widevine::License_KeyContainer_KeyType value) {
|
|
_internal_set_key_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseRequest.ContentKeySpec.key_type)
|
|
}
|
|
|
|
// optional string track_type = 6;
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::_internal_has_track_type() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::has_track_type() const {
|
|
return _internal_has_track_type();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::clear_track_type() {
|
|
track_type_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest_ContentKeySpec::track_type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.ContentKeySpec.track_type)
|
|
return _internal_track_type();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::set_track_type(const std::string& value) {
|
|
_internal_set_track_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseRequest.ContentKeySpec.track_type)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest_ContentKeySpec::mutable_track_type() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.ContentKeySpec.track_type)
|
|
return _internal_mutable_track_type();
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest_ContentKeySpec::_internal_track_type() const {
|
|
return track_type_.Get();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::_internal_set_track_type(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
track_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::set_track_type(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
track_type_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseRequest.ContentKeySpec.track_type)
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::set_track_type(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
track_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseRequest.ContentKeySpec.track_type)
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::set_track_type(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
track_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseRequest.ContentKeySpec.track_type)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest_ContentKeySpec::_internal_mutable_track_type() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return track_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseRequest_ContentKeySpec::release_track_type() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.ContentKeySpec.track_type)
|
|
if (!_internal_has_track_type()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return track_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::set_allocated_track_type(std::string* track_type) {
|
|
if (track_type != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
track_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), track_type,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.ContentKeySpec.track_type)
|
|
}
|
|
|
|
// optional .video_widevine.License.KeyContainer.KeyCategorySpec key_category_spec = 7;
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::_internal_has_key_category_spec() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
PROTOBUF_ASSUME(!value || key_category_spec_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest_ContentKeySpec::has_key_category_spec() const {
|
|
return _internal_has_key_category_spec();
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_KeyCategorySpec& CasDrmLicenseRequest_ContentKeySpec::_internal_key_category_spec() const {
|
|
const ::video_widevine::License_KeyContainer_KeyCategorySpec* p = key_category_spec_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::License_KeyContainer_KeyCategorySpec&>(
|
|
::video_widevine::_License_KeyContainer_KeyCategorySpec_default_instance_);
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_KeyCategorySpec& CasDrmLicenseRequest_ContentKeySpec::key_category_spec() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.ContentKeySpec.key_category_spec)
|
|
return _internal_key_category_spec();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::unsafe_arena_set_allocated_key_category_spec(
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* key_category_spec) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_category_spec_);
|
|
}
|
|
key_category_spec_ = key_category_spec;
|
|
if (key_category_spec) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.CasDrmLicenseRequest.ContentKeySpec.key_category_spec)
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_KeyCategorySpec* CasDrmLicenseRequest_ContentKeySpec::release_key_category_spec() {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* temp = key_category_spec_;
|
|
key_category_spec_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_KeyCategorySpec* CasDrmLicenseRequest_ContentKeySpec::unsafe_arena_release_key_category_spec() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.ContentKeySpec.key_category_spec)
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* temp = key_category_spec_;
|
|
key_category_spec_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_KeyCategorySpec* CasDrmLicenseRequest_ContentKeySpec::_internal_mutable_key_category_spec() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
if (key_category_spec_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::License_KeyContainer_KeyCategorySpec>(GetArena());
|
|
key_category_spec_ = p;
|
|
}
|
|
return key_category_spec_;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_KeyCategorySpec* CasDrmLicenseRequest_ContentKeySpec::mutable_key_category_spec() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.ContentKeySpec.key_category_spec)
|
|
return _internal_mutable_key_category_spec();
|
|
}
|
|
inline void CasDrmLicenseRequest_ContentKeySpec::set_allocated_key_category_spec(::video_widevine::License_KeyContainer_KeyCategorySpec* key_category_spec) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_category_spec_);
|
|
}
|
|
if (key_category_spec) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(key_category_spec)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
key_category_spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, key_category_spec, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
key_category_spec_ = key_category_spec;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.ContentKeySpec.key_category_spec)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// CasDrmLicenseRequest
|
|
|
|
// optional bytes payload = 1;
|
|
inline bool CasDrmLicenseRequest::_internal_has_payload() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest::has_payload() const {
|
|
return _internal_has_payload();
|
|
}
|
|
inline void CasDrmLicenseRequest::clear_payload() {
|
|
payload_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::payload() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.payload)
|
|
return _internal_payload();
|
|
}
|
|
inline void CasDrmLicenseRequest::set_payload(const std::string& value) {
|
|
_internal_set_payload(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseRequest.payload)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::mutable_payload() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.payload)
|
|
return _internal_mutable_payload();
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::_internal_payload() const {
|
|
return payload_.Get();
|
|
}
|
|
inline void CasDrmLicenseRequest::_internal_set_payload(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_payload(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
payload_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseRequest.payload)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_payload(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseRequest.payload)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_payload(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseRequest.payload)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::_internal_mutable_payload() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return payload_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::release_payload() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.payload)
|
|
if (!_internal_has_payload()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return payload_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_allocated_payload(std::string* payload) {
|
|
if (payload != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
payload_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), payload,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.payload)
|
|
}
|
|
|
|
// optional string provider_id = 2;
|
|
inline bool CasDrmLicenseRequest::_internal_has_provider_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest::has_provider_id() const {
|
|
return _internal_has_provider_id();
|
|
}
|
|
inline void CasDrmLicenseRequest::clear_provider_id() {
|
|
provider_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::provider_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.provider_id)
|
|
return _internal_provider_id();
|
|
}
|
|
inline void CasDrmLicenseRequest::set_provider_id(const std::string& value) {
|
|
_internal_set_provider_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseRequest.provider_id)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::mutable_provider_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.provider_id)
|
|
return _internal_mutable_provider_id();
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::_internal_provider_id() const {
|
|
return provider_id_.Get();
|
|
}
|
|
inline void CasDrmLicenseRequest::_internal_set_provider_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
provider_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_provider_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
provider_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseRequest.provider_id)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_provider_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
provider_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseRequest.provider_id)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_provider_id(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
provider_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseRequest.provider_id)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::_internal_mutable_provider_id() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return provider_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::release_provider_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.provider_id)
|
|
if (!_internal_has_provider_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return provider_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_allocated_provider_id(std::string* provider_id) {
|
|
if (provider_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
provider_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.provider_id)
|
|
}
|
|
|
|
// optional bytes content_id = 3;
|
|
inline bool CasDrmLicenseRequest::_internal_has_content_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest::has_content_id() const {
|
|
return _internal_has_content_id();
|
|
}
|
|
inline void CasDrmLicenseRequest::clear_content_id() {
|
|
content_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::content_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.content_id)
|
|
return _internal_content_id();
|
|
}
|
|
inline void CasDrmLicenseRequest::set_content_id(const std::string& value) {
|
|
_internal_set_content_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseRequest.content_id)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::mutable_content_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.content_id)
|
|
return _internal_mutable_content_id();
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::_internal_content_id() const {
|
|
return content_id_.Get();
|
|
}
|
|
inline void CasDrmLicenseRequest::_internal_set_content_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_content_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
content_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseRequest.content_id)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_content_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000004u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseRequest.content_id)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_content_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseRequest.content_id)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::_internal_mutable_content_id() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return content_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::release_content_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.content_id)
|
|
if (!_internal_has_content_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return content_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_allocated_content_id(std::string* content_id) {
|
|
if (content_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
content_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.content_id)
|
|
}
|
|
|
|
// repeated .video_widevine.CasDrmLicenseRequest.ContentKeySpec content_key_specs = 4;
|
|
inline int CasDrmLicenseRequest::_internal_content_key_specs_size() const {
|
|
return content_key_specs_.size();
|
|
}
|
|
inline int CasDrmLicenseRequest::content_key_specs_size() const {
|
|
return _internal_content_key_specs_size();
|
|
}
|
|
inline void CasDrmLicenseRequest::clear_content_key_specs() {
|
|
content_key_specs_.Clear();
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseRequest_ContentKeySpec* CasDrmLicenseRequest::mutable_content_key_specs(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.content_key_specs)
|
|
return content_key_specs_.Mutable(index);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::CasDrmLicenseRequest_ContentKeySpec >*
|
|
CasDrmLicenseRequest::mutable_content_key_specs() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.CasDrmLicenseRequest.content_key_specs)
|
|
return &content_key_specs_;
|
|
}
|
|
inline const ::video_widevine::CasDrmLicenseRequest_ContentKeySpec& CasDrmLicenseRequest::_internal_content_key_specs(int index) const {
|
|
return content_key_specs_.Get(index);
|
|
}
|
|
inline const ::video_widevine::CasDrmLicenseRequest_ContentKeySpec& CasDrmLicenseRequest::content_key_specs(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.content_key_specs)
|
|
return _internal_content_key_specs(index);
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseRequest_ContentKeySpec* CasDrmLicenseRequest::_internal_add_content_key_specs() {
|
|
return content_key_specs_.Add();
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseRequest_ContentKeySpec* CasDrmLicenseRequest::add_content_key_specs() {
|
|
// @@protoc_insertion_point(field_add:video_widevine.CasDrmLicenseRequest.content_key_specs)
|
|
return _internal_add_content_key_specs();
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::CasDrmLicenseRequest_ContentKeySpec >&
|
|
CasDrmLicenseRequest::content_key_specs() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.CasDrmLicenseRequest.content_key_specs)
|
|
return content_key_specs_;
|
|
}
|
|
|
|
// optional .video_widevine.License.Policy policy = 5;
|
|
inline bool CasDrmLicenseRequest::_internal_has_policy() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
PROTOBUF_ASSUME(!value || policy_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest::has_policy() const {
|
|
return _internal_has_policy();
|
|
}
|
|
inline const ::video_widevine::License_Policy& CasDrmLicenseRequest::_internal_policy() const {
|
|
const ::video_widevine::License_Policy* p = policy_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::License_Policy&>(
|
|
::video_widevine::_License_Policy_default_instance_);
|
|
}
|
|
inline const ::video_widevine::License_Policy& CasDrmLicenseRequest::policy() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.policy)
|
|
return _internal_policy();
|
|
}
|
|
inline void CasDrmLicenseRequest::unsafe_arena_set_allocated_policy(
|
|
::video_widevine::License_Policy* policy) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(policy_);
|
|
}
|
|
policy_ = policy;
|
|
if (policy) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.CasDrmLicenseRequest.policy)
|
|
}
|
|
inline ::video_widevine::License_Policy* CasDrmLicenseRequest::release_policy() {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
::video_widevine::License_Policy* temp = policy_;
|
|
policy_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_Policy* CasDrmLicenseRequest::unsafe_arena_release_policy() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.policy)
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
::video_widevine::License_Policy* temp = policy_;
|
|
policy_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_Policy* CasDrmLicenseRequest::_internal_mutable_policy() {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
if (policy_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::License_Policy>(GetArena());
|
|
policy_ = p;
|
|
}
|
|
return policy_;
|
|
}
|
|
inline ::video_widevine::License_Policy* CasDrmLicenseRequest::mutable_policy() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.policy)
|
|
return _internal_mutable_policy();
|
|
}
|
|
inline void CasDrmLicenseRequest::set_allocated_policy(::video_widevine::License_Policy* policy) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(policy_);
|
|
}
|
|
if (policy) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(policy)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
policy = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, policy, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000040u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
policy_ = policy;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.policy)
|
|
}
|
|
|
|
// optional .video_widevine.SessionInit session_init = 6;
|
|
inline bool CasDrmLicenseRequest::_internal_has_session_init() const {
|
|
bool value = (_has_bits_[0] & 0x00000080u) != 0;
|
|
PROTOBUF_ASSUME(!value || session_init_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest::has_session_init() const {
|
|
return _internal_has_session_init();
|
|
}
|
|
inline const ::video_widevine::SessionInit& CasDrmLicenseRequest::_internal_session_init() const {
|
|
const ::video_widevine::SessionInit* p = session_init_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::SessionInit&>(
|
|
::video_widevine::_SessionInit_default_instance_);
|
|
}
|
|
inline const ::video_widevine::SessionInit& CasDrmLicenseRequest::session_init() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.session_init)
|
|
return _internal_session_init();
|
|
}
|
|
inline void CasDrmLicenseRequest::unsafe_arena_set_allocated_session_init(
|
|
::video_widevine::SessionInit* session_init) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_init_);
|
|
}
|
|
session_init_ = session_init;
|
|
if (session_init) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.CasDrmLicenseRequest.session_init)
|
|
}
|
|
inline ::video_widevine::SessionInit* CasDrmLicenseRequest::release_session_init() {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
::video_widevine::SessionInit* temp = session_init_;
|
|
session_init_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SessionInit* CasDrmLicenseRequest::unsafe_arena_release_session_init() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.session_init)
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
::video_widevine::SessionInit* temp = session_init_;
|
|
session_init_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SessionInit* CasDrmLicenseRequest::_internal_mutable_session_init() {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
if (session_init_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::SessionInit>(GetArena());
|
|
session_init_ = p;
|
|
}
|
|
return session_init_;
|
|
}
|
|
inline ::video_widevine::SessionInit* CasDrmLicenseRequest::mutable_session_init() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.session_init)
|
|
return _internal_mutable_session_init();
|
|
}
|
|
inline void CasDrmLicenseRequest::set_allocated_session_init(::video_widevine::SessionInit* session_init) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_init_);
|
|
}
|
|
if (session_init) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_init)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
session_init = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, session_init, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000080u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
session_init_ = session_init;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.session_init)
|
|
}
|
|
|
|
// optional .video_widevine.ProxyInfo proxy_info = 7;
|
|
inline bool CasDrmLicenseRequest::_internal_has_proxy_info() const {
|
|
bool value = (_has_bits_[0] & 0x00000100u) != 0;
|
|
PROTOBUF_ASSUME(!value || proxy_info_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest::has_proxy_info() const {
|
|
return _internal_has_proxy_info();
|
|
}
|
|
inline const ::video_widevine::ProxyInfo& CasDrmLicenseRequest::_internal_proxy_info() const {
|
|
const ::video_widevine::ProxyInfo* p = proxy_info_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::ProxyInfo&>(
|
|
::video_widevine::_ProxyInfo_default_instance_);
|
|
}
|
|
inline const ::video_widevine::ProxyInfo& CasDrmLicenseRequest::proxy_info() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.proxy_info)
|
|
return _internal_proxy_info();
|
|
}
|
|
inline void CasDrmLicenseRequest::unsafe_arena_set_allocated_proxy_info(
|
|
::video_widevine::ProxyInfo* proxy_info) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(proxy_info_);
|
|
}
|
|
proxy_info_ = proxy_info;
|
|
if (proxy_info) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.CasDrmLicenseRequest.proxy_info)
|
|
}
|
|
inline ::video_widevine::ProxyInfo* CasDrmLicenseRequest::release_proxy_info() {
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
::video_widevine::ProxyInfo* temp = proxy_info_;
|
|
proxy_info_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ProxyInfo* CasDrmLicenseRequest::unsafe_arena_release_proxy_info() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.proxy_info)
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
::video_widevine::ProxyInfo* temp = proxy_info_;
|
|
proxy_info_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ProxyInfo* CasDrmLicenseRequest::_internal_mutable_proxy_info() {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
if (proxy_info_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::ProxyInfo>(GetArena());
|
|
proxy_info_ = p;
|
|
}
|
|
return proxy_info_;
|
|
}
|
|
inline ::video_widevine::ProxyInfo* CasDrmLicenseRequest::mutable_proxy_info() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.proxy_info)
|
|
return _internal_mutable_proxy_info();
|
|
}
|
|
inline void CasDrmLicenseRequest::set_allocated_proxy_info(::video_widevine::ProxyInfo* proxy_info) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(proxy_info_);
|
|
}
|
|
if (proxy_info) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(proxy_info)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
proxy_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, proxy_info, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000100u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
proxy_info_ = proxy_info;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.proxy_info)
|
|
}
|
|
|
|
// optional bytes session_key = 8;
|
|
inline bool CasDrmLicenseRequest::_internal_has_session_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest::has_session_key() const {
|
|
return _internal_has_session_key();
|
|
}
|
|
inline void CasDrmLicenseRequest::clear_session_key() {
|
|
session_key_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::session_key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.session_key)
|
|
return _internal_session_key();
|
|
}
|
|
inline void CasDrmLicenseRequest::set_session_key(const std::string& value) {
|
|
_internal_set_session_key(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseRequest.session_key)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::mutable_session_key() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.session_key)
|
|
return _internal_mutable_session_key();
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::_internal_session_key() const {
|
|
return session_key_.Get();
|
|
}
|
|
inline void CasDrmLicenseRequest::_internal_set_session_key(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
session_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_session_key(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
session_key_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseRequest.session_key)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_session_key(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000008u;
|
|
session_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseRequest.session_key)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_session_key(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
session_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseRequest.session_key)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::_internal_mutable_session_key() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return session_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::release_session_key() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.session_key)
|
|
if (!_internal_has_session_key()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
return session_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_allocated_session_key(std::string* session_key) {
|
|
if (session_key != nullptr) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
session_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), session_key,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.session_key)
|
|
}
|
|
|
|
// optional bytes session_iv = 9;
|
|
inline bool CasDrmLicenseRequest::_internal_has_session_iv() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest::has_session_iv() const {
|
|
return _internal_has_session_iv();
|
|
}
|
|
inline void CasDrmLicenseRequest::clear_session_iv() {
|
|
session_iv_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::session_iv() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.session_iv)
|
|
return _internal_session_iv();
|
|
}
|
|
inline void CasDrmLicenseRequest::set_session_iv(const std::string& value) {
|
|
_internal_set_session_iv(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseRequest.session_iv)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::mutable_session_iv() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.session_iv)
|
|
return _internal_mutable_session_iv();
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::_internal_session_iv() const {
|
|
return session_iv_.Get();
|
|
}
|
|
inline void CasDrmLicenseRequest::_internal_set_session_iv(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
session_iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_session_iv(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
session_iv_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseRequest.session_iv)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_session_iv(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000010u;
|
|
session_iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseRequest.session_iv)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_session_iv(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
session_iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseRequest.session_iv)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::_internal_mutable_session_iv() {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
return session_iv_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::release_session_iv() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.session_iv)
|
|
if (!_internal_has_session_iv()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
return session_iv_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_allocated_session_iv(std::string* session_iv) {
|
|
if (session_iv != nullptr) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
session_iv_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), session_iv,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.session_iv)
|
|
}
|
|
|
|
// optional bytes provider_ecm_verifier_public_key = 10;
|
|
inline bool CasDrmLicenseRequest::_internal_has_provider_ecm_verifier_public_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseRequest::has_provider_ecm_verifier_public_key() const {
|
|
return _internal_has_provider_ecm_verifier_public_key();
|
|
}
|
|
inline void CasDrmLicenseRequest::clear_provider_ecm_verifier_public_key() {
|
|
provider_ecm_verifier_public_key_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::provider_ecm_verifier_public_key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseRequest.provider_ecm_verifier_public_key)
|
|
return _internal_provider_ecm_verifier_public_key();
|
|
}
|
|
inline void CasDrmLicenseRequest::set_provider_ecm_verifier_public_key(const std::string& value) {
|
|
_internal_set_provider_ecm_verifier_public_key(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseRequest.provider_ecm_verifier_public_key)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::mutable_provider_ecm_verifier_public_key() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseRequest.provider_ecm_verifier_public_key)
|
|
return _internal_mutable_provider_ecm_verifier_public_key();
|
|
}
|
|
inline const std::string& CasDrmLicenseRequest::_internal_provider_ecm_verifier_public_key() const {
|
|
return provider_ecm_verifier_public_key_.Get();
|
|
}
|
|
inline void CasDrmLicenseRequest::_internal_set_provider_ecm_verifier_public_key(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_ecm_verifier_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_provider_ecm_verifier_public_key(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_ecm_verifier_public_key_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseRequest.provider_ecm_verifier_public_key)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_provider_ecm_verifier_public_key(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_ecm_verifier_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseRequest.provider_ecm_verifier_public_key)
|
|
}
|
|
inline void CasDrmLicenseRequest::set_provider_ecm_verifier_public_key(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_ecm_verifier_public_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseRequest.provider_ecm_verifier_public_key)
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::_internal_mutable_provider_ecm_verifier_public_key() {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
return provider_ecm_verifier_public_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseRequest::release_provider_ecm_verifier_public_key() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseRequest.provider_ecm_verifier_public_key)
|
|
if (!_internal_has_provider_ecm_verifier_public_key()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
return provider_ecm_verifier_public_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseRequest::set_allocated_provider_ecm_verifier_public_key(std::string* provider_ecm_verifier_public_key) {
|
|
if (provider_ecm_verifier_public_key != nullptr) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
provider_ecm_verifier_public_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider_ecm_verifier_public_key,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseRequest.provider_ecm_verifier_public_key)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// CasDrmLicenseResponse_PsshData
|
|
|
|
// repeated bytes key_id = 1;
|
|
inline int CasDrmLicenseResponse_PsshData::_internal_key_id_size() const {
|
|
return key_id_.size();
|
|
}
|
|
inline int CasDrmLicenseResponse_PsshData::key_id_size() const {
|
|
return _internal_key_id_size();
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::clear_key_id() {
|
|
key_id_.Clear();
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_PsshData::add_key_id() {
|
|
// @@protoc_insertion_point(field_add_mutable:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
return _internal_add_key_id();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_PsshData::_internal_key_id(int index) const {
|
|
return key_id_.Get(index);
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_PsshData::key_id(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
return _internal_key_id(index);
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_PsshData::mutable_key_id(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
return key_id_.Mutable(index);
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_key_id(int index, const std::string& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
key_id_.Mutable(index)->assign(value);
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_key_id(int index, std::string&& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
key_id_.Mutable(index)->assign(std::move(value));
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_key_id(int index, const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
key_id_.Mutable(index)->assign(value);
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_key_id(int index, const void* value, size_t size) {
|
|
key_id_.Mutable(index)->assign(
|
|
reinterpret_cast<const char*>(value), size);
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_PsshData::_internal_add_key_id() {
|
|
return key_id_.Add();
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::add_key_id(const std::string& value) {
|
|
key_id_.Add()->assign(value);
|
|
// @@protoc_insertion_point(field_add:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::add_key_id(std::string&& value) {
|
|
key_id_.Add(std::move(value));
|
|
// @@protoc_insertion_point(field_add:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::add_key_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
key_id_.Add()->assign(value);
|
|
// @@protoc_insertion_point(field_add_char:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::add_key_id(const void* value, size_t size) {
|
|
key_id_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
|
// @@protoc_insertion_point(field_add_pointer:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
|
|
CasDrmLicenseResponse_PsshData::key_id() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
return key_id_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
|
|
CasDrmLicenseResponse_PsshData::mutable_key_id() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.CasDrmLicenseResponse.PsshData.key_id)
|
|
return &key_id_;
|
|
}
|
|
|
|
// optional bytes content_id = 2;
|
|
inline bool CasDrmLicenseResponse_PsshData::_internal_has_content_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse_PsshData::has_content_id() const {
|
|
return _internal_has_content_id();
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::clear_content_id() {
|
|
content_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_PsshData::content_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.PsshData.content_id)
|
|
return _internal_content_id();
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_content_id(const std::string& value) {
|
|
_internal_set_content_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.PsshData.content_id)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_PsshData::mutable_content_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.PsshData.content_id)
|
|
return _internal_mutable_content_id();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_PsshData::_internal_content_id() const {
|
|
return content_id_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::_internal_set_content_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_content_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
content_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.PsshData.content_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_content_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.PsshData.content_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_content_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.PsshData.content_id)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_PsshData::_internal_mutable_content_id() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return content_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_PsshData::release_content_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.PsshData.content_id)
|
|
if (!_internal_has_content_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return content_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_allocated_content_id(std::string* content_id) {
|
|
if (content_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
content_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.PsshData.content_id)
|
|
}
|
|
|
|
// optional bytes group_id = 3;
|
|
inline bool CasDrmLicenseResponse_PsshData::_internal_has_group_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse_PsshData::has_group_id() const {
|
|
return _internal_has_group_id();
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::clear_group_id() {
|
|
group_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_PsshData::group_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.PsshData.group_id)
|
|
return _internal_group_id();
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_group_id(const std::string& value) {
|
|
_internal_set_group_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.PsshData.group_id)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_PsshData::mutable_group_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.PsshData.group_id)
|
|
return _internal_mutable_group_id();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_PsshData::_internal_group_id() const {
|
|
return group_id_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::_internal_set_group_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_group_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
group_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.PsshData.group_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_group_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.PsshData.group_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_group_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.PsshData.group_id)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_PsshData::_internal_mutable_group_id() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return group_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_PsshData::release_group_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.PsshData.group_id)
|
|
if (!_internal_has_group_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return group_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_PsshData::set_allocated_group_id(std::string* group_id) {
|
|
if (group_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
group_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), group_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.PsshData.group_id)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// CasDrmLicenseResponse_LicenseMetadata
|
|
|
|
// optional bytes content_id = 1;
|
|
inline bool CasDrmLicenseResponse_LicenseMetadata::_internal_has_content_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse_LicenseMetadata::has_content_id() const {
|
|
return _internal_has_content_id();
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::clear_content_id() {
|
|
content_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_LicenseMetadata::content_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.LicenseMetadata.content_id)
|
|
return _internal_content_id();
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::set_content_id(const std::string& value) {
|
|
_internal_set_content_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.LicenseMetadata.content_id)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_LicenseMetadata::mutable_content_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.LicenseMetadata.content_id)
|
|
return _internal_mutable_content_id();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_LicenseMetadata::_internal_content_id() const {
|
|
return content_id_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::_internal_set_content_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::set_content_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
content_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.LicenseMetadata.content_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::set_content_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.LicenseMetadata.content_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::set_content_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.LicenseMetadata.content_id)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_LicenseMetadata::_internal_mutable_content_id() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return content_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_LicenseMetadata::release_content_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.LicenseMetadata.content_id)
|
|
if (!_internal_has_content_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return content_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::set_allocated_content_id(std::string* content_id) {
|
|
if (content_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
content_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.LicenseMetadata.content_id)
|
|
}
|
|
|
|
// repeated bytes key_id = 2;
|
|
inline int CasDrmLicenseResponse_LicenseMetadata::_internal_key_id_size() const {
|
|
return key_id_.size();
|
|
}
|
|
inline int CasDrmLicenseResponse_LicenseMetadata::key_id_size() const {
|
|
return _internal_key_id_size();
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::clear_key_id() {
|
|
key_id_.Clear();
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_LicenseMetadata::add_key_id() {
|
|
// @@protoc_insertion_point(field_add_mutable:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
return _internal_add_key_id();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_LicenseMetadata::_internal_key_id(int index) const {
|
|
return key_id_.Get(index);
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_LicenseMetadata::key_id(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
return _internal_key_id(index);
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_LicenseMetadata::mutable_key_id(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
return key_id_.Mutable(index);
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::set_key_id(int index, const std::string& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
key_id_.Mutable(index)->assign(value);
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::set_key_id(int index, std::string&& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
key_id_.Mutable(index)->assign(std::move(value));
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::set_key_id(int index, const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
key_id_.Mutable(index)->assign(value);
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::set_key_id(int index, const void* value, size_t size) {
|
|
key_id_.Mutable(index)->assign(
|
|
reinterpret_cast<const char*>(value), size);
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_LicenseMetadata::_internal_add_key_id() {
|
|
return key_id_.Add();
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::add_key_id(const std::string& value) {
|
|
key_id_.Add()->assign(value);
|
|
// @@protoc_insertion_point(field_add:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::add_key_id(std::string&& value) {
|
|
key_id_.Add(std::move(value));
|
|
// @@protoc_insertion_point(field_add:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::add_key_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
key_id_.Add()->assign(value);
|
|
// @@protoc_insertion_point(field_add_char:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
}
|
|
inline void CasDrmLicenseResponse_LicenseMetadata::add_key_id(const void* value, size_t size) {
|
|
key_id_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
|
// @@protoc_insertion_point(field_add_pointer:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
|
|
CasDrmLicenseResponse_LicenseMetadata::key_id() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
return key_id_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
|
|
CasDrmLicenseResponse_LicenseMetadata::mutable_key_id() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.CasDrmLicenseResponse.LicenseMetadata.key_id)
|
|
return &key_id_;
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// CasDrmLicenseResponse_DeviceInfo
|
|
|
|
// optional string make = 1;
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::_internal_has_make() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::has_make() const {
|
|
return _internal_has_make();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::clear_make() {
|
|
make_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_DeviceInfo::make() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.DeviceInfo.make)
|
|
return _internal_make();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_make(const std::string& value) {
|
|
_internal_set_make(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.DeviceInfo.make)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::mutable_make() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.DeviceInfo.make)
|
|
return _internal_mutable_make();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_DeviceInfo::_internal_make() const {
|
|
return make_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::_internal_set_make(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
make_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_make(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
make_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.DeviceInfo.make)
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_make(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
make_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.DeviceInfo.make)
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_make(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
make_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.DeviceInfo.make)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::_internal_mutable_make() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return make_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::release_make() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.DeviceInfo.make)
|
|
if (!_internal_has_make()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return make_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_allocated_make(std::string* make) {
|
|
if (make != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
make_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), make,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.DeviceInfo.make)
|
|
}
|
|
|
|
// optional string model = 2;
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::_internal_has_model() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::has_model() const {
|
|
return _internal_has_model();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::clear_model() {
|
|
model_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_DeviceInfo::model() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.DeviceInfo.model)
|
|
return _internal_model();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_model(const std::string& value) {
|
|
_internal_set_model(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.DeviceInfo.model)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::mutable_model() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.DeviceInfo.model)
|
|
return _internal_mutable_model();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_DeviceInfo::_internal_model() const {
|
|
return model_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::_internal_set_model(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_model(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
model_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.DeviceInfo.model)
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_model(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.DeviceInfo.model)
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_model(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.DeviceInfo.model)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::_internal_mutable_model() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return model_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::release_model() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.DeviceInfo.model)
|
|
if (!_internal_has_model()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return model_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_allocated_model(std::string* model) {
|
|
if (model != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
model_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), model,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.DeviceInfo.model)
|
|
}
|
|
|
|
// optional uint32 security_level = 3;
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::_internal_has_security_level() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::has_security_level() const {
|
|
return _internal_has_security_level();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::clear_security_level() {
|
|
security_level_ = 0u;
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 CasDrmLicenseResponse_DeviceInfo::_internal_security_level() const {
|
|
return security_level_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 CasDrmLicenseResponse_DeviceInfo::security_level() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.DeviceInfo.security_level)
|
|
return _internal_security_level();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::_internal_set_security_level(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
security_level_ = value;
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_security_level(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_security_level(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.DeviceInfo.security_level)
|
|
}
|
|
|
|
// optional bytes drm_cert_serial_number = 4;
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::_internal_has_drm_cert_serial_number() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::has_drm_cert_serial_number() const {
|
|
return _internal_has_drm_cert_serial_number();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::clear_drm_cert_serial_number() {
|
|
drm_cert_serial_number_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_DeviceInfo::drm_cert_serial_number() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.DeviceInfo.drm_cert_serial_number)
|
|
return _internal_drm_cert_serial_number();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_drm_cert_serial_number(const std::string& value) {
|
|
_internal_set_drm_cert_serial_number(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.DeviceInfo.drm_cert_serial_number)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::mutable_drm_cert_serial_number() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.DeviceInfo.drm_cert_serial_number)
|
|
return _internal_mutable_drm_cert_serial_number();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_DeviceInfo::_internal_drm_cert_serial_number() const {
|
|
return drm_cert_serial_number_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::_internal_set_drm_cert_serial_number(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
drm_cert_serial_number_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_drm_cert_serial_number(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
drm_cert_serial_number_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.DeviceInfo.drm_cert_serial_number)
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_drm_cert_serial_number(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000004u;
|
|
drm_cert_serial_number_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.DeviceInfo.drm_cert_serial_number)
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_drm_cert_serial_number(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
drm_cert_serial_number_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.DeviceInfo.drm_cert_serial_number)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::_internal_mutable_drm_cert_serial_number() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return drm_cert_serial_number_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::release_drm_cert_serial_number() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.DeviceInfo.drm_cert_serial_number)
|
|
if (!_internal_has_drm_cert_serial_number()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return drm_cert_serial_number_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_allocated_drm_cert_serial_number(std::string* drm_cert_serial_number) {
|
|
if (drm_cert_serial_number != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
drm_cert_serial_number_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), drm_cert_serial_number,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.DeviceInfo.drm_cert_serial_number)
|
|
}
|
|
|
|
// optional string platform = 5;
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::_internal_has_platform() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::has_platform() const {
|
|
return _internal_has_platform();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::clear_platform() {
|
|
platform_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_DeviceInfo::platform() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.DeviceInfo.platform)
|
|
return _internal_platform();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_platform(const std::string& value) {
|
|
_internal_set_platform(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.DeviceInfo.platform)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::mutable_platform() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.DeviceInfo.platform)
|
|
return _internal_mutable_platform();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse_DeviceInfo::_internal_platform() const {
|
|
return platform_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::_internal_set_platform(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
platform_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_platform(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
platform_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.DeviceInfo.platform)
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_platform(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000008u;
|
|
platform_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.DeviceInfo.platform)
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_platform(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
platform_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.DeviceInfo.platform)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::_internal_mutable_platform() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return platform_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse_DeviceInfo::release_platform() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.DeviceInfo.platform)
|
|
if (!_internal_has_platform()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
return platform_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_allocated_platform(std::string* platform) {
|
|
if (platform != nullptr) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
platform_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), platform,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.DeviceInfo.platform)
|
|
}
|
|
|
|
// optional uint32 system_id = 6;
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::_internal_has_system_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse_DeviceInfo::has_system_id() const {
|
|
return _internal_has_system_id();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::clear_system_id() {
|
|
system_id_ = 0u;
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 CasDrmLicenseResponse_DeviceInfo::_internal_system_id() const {
|
|
return system_id_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 CasDrmLicenseResponse_DeviceInfo::system_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.DeviceInfo.system_id)
|
|
return _internal_system_id();
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::_internal_set_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
system_id_ = value;
|
|
}
|
|
inline void CasDrmLicenseResponse_DeviceInfo::set_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_system_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.DeviceInfo.system_id)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// CasDrmLicenseResponse
|
|
|
|
// optional .video_widevine.CasDrmLicenseResponse.Status status = 1;
|
|
inline bool CasDrmLicenseResponse::_internal_has_status() const {
|
|
bool value = (_has_bits_[0] & 0x00000100u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_status() const {
|
|
return _internal_has_status();
|
|
}
|
|
inline void CasDrmLicenseResponse::clear_status() {
|
|
status_ = 0;
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_Status CasDrmLicenseResponse::_internal_status() const {
|
|
return static_cast< ::video_widevine::CasDrmLicenseResponse_Status >(status_);
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_Status CasDrmLicenseResponse::status() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.status)
|
|
return _internal_status();
|
|
}
|
|
inline void CasDrmLicenseResponse::_internal_set_status(::video_widevine::CasDrmLicenseResponse_Status value) {
|
|
assert(::video_widevine::CasDrmLicenseResponse_Status_IsValid(value));
|
|
_has_bits_[0] |= 0x00000100u;
|
|
status_ = value;
|
|
}
|
|
inline void CasDrmLicenseResponse::set_status(::video_widevine::CasDrmLicenseResponse_Status value) {
|
|
_internal_set_status(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.status)
|
|
}
|
|
|
|
// optional string status_message = 2;
|
|
inline bool CasDrmLicenseResponse::_internal_has_status_message() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_status_message() const {
|
|
return _internal_has_status_message();
|
|
}
|
|
inline void CasDrmLicenseResponse::clear_status_message() {
|
|
status_message_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse::status_message() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.status_message)
|
|
return _internal_status_message();
|
|
}
|
|
inline void CasDrmLicenseResponse::set_status_message(const std::string& value) {
|
|
_internal_set_status_message(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.status_message)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::mutable_status_message() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.status_message)
|
|
return _internal_mutable_status_message();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse::_internal_status_message() const {
|
|
return status_message_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse::_internal_set_status_message(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
status_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse::set_status_message(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
status_message_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.status_message)
|
|
}
|
|
inline void CasDrmLicenseResponse::set_status_message(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
status_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.status_message)
|
|
}
|
|
inline void CasDrmLicenseResponse::set_status_message(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
status_message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.status_message)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::_internal_mutable_status_message() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return status_message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::release_status_message() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.status_message)
|
|
if (!_internal_has_status_message()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return status_message_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse::set_allocated_status_message(std::string* status_message) {
|
|
if (status_message != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
status_message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), status_message,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.status_message)
|
|
}
|
|
|
|
// optional bytes license = 3;
|
|
inline bool CasDrmLicenseResponse::_internal_has_license() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_license() const {
|
|
return _internal_has_license();
|
|
}
|
|
inline void CasDrmLicenseResponse::clear_license() {
|
|
license_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse::license() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.license)
|
|
return _internal_license();
|
|
}
|
|
inline void CasDrmLicenseResponse::set_license(const std::string& value) {
|
|
_internal_set_license(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.license)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::mutable_license() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.license)
|
|
return _internal_mutable_license();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse::_internal_license() const {
|
|
return license_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse::_internal_set_license(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
license_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse::set_license(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
license_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.license)
|
|
}
|
|
inline void CasDrmLicenseResponse::set_license(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
license_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.license)
|
|
}
|
|
inline void CasDrmLicenseResponse::set_license(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
license_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.license)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::_internal_mutable_license() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return license_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::release_license() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.license)
|
|
if (!_internal_has_license()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return license_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse::set_allocated_license(std::string* license) {
|
|
if (license != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
license_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), license,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.license)
|
|
}
|
|
|
|
// optional uint32 internal_status = 4;
|
|
inline bool CasDrmLicenseResponse::_internal_has_internal_status() const {
|
|
bool value = (_has_bits_[0] & 0x00000200u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_internal_status() const {
|
|
return _internal_has_internal_status();
|
|
}
|
|
inline void CasDrmLicenseResponse::clear_internal_status() {
|
|
internal_status_ = 0u;
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 CasDrmLicenseResponse::_internal_internal_status() const {
|
|
return internal_status_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 CasDrmLicenseResponse::internal_status() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.internal_status)
|
|
return _internal_internal_status();
|
|
}
|
|
inline void CasDrmLicenseResponse::_internal_set_internal_status(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
internal_status_ = value;
|
|
}
|
|
inline void CasDrmLicenseResponse::set_internal_status(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_internal_status(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.internal_status)
|
|
}
|
|
|
|
// optional .video_widevine.SignedMessage.MessageType message_type = 5;
|
|
inline bool CasDrmLicenseResponse::_internal_has_message_type() const {
|
|
bool value = (_has_bits_[0] & 0x00000400u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_message_type() const {
|
|
return _internal_has_message_type();
|
|
}
|
|
inline void CasDrmLicenseResponse::clear_message_type() {
|
|
message_type_ = 1;
|
|
_has_bits_[0] &= ~0x00000400u;
|
|
}
|
|
inline ::video_widevine::SignedMessage_MessageType CasDrmLicenseResponse::_internal_message_type() const {
|
|
return static_cast< ::video_widevine::SignedMessage_MessageType >(message_type_);
|
|
}
|
|
inline ::video_widevine::SignedMessage_MessageType CasDrmLicenseResponse::message_type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.message_type)
|
|
return _internal_message_type();
|
|
}
|
|
inline void CasDrmLicenseResponse::_internal_set_message_type(::video_widevine::SignedMessage_MessageType value) {
|
|
assert(::video_widevine::SignedMessage_MessageType_IsValid(value));
|
|
_has_bits_[0] |= 0x00000400u;
|
|
message_type_ = value;
|
|
}
|
|
inline void CasDrmLicenseResponse::set_message_type(::video_widevine::SignedMessage_MessageType value) {
|
|
_internal_set_message_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.message_type)
|
|
}
|
|
|
|
// optional .video_widevine.CasDrmLicenseResponse.PsshData pssh_data = 6;
|
|
inline bool CasDrmLicenseResponse::_internal_has_pssh_data() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
PROTOBUF_ASSUME(!value || pssh_data_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_pssh_data() const {
|
|
return _internal_has_pssh_data();
|
|
}
|
|
inline void CasDrmLicenseResponse::clear_pssh_data() {
|
|
if (pssh_data_ != nullptr) pssh_data_->Clear();
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline const ::video_widevine::CasDrmLicenseResponse_PsshData& CasDrmLicenseResponse::_internal_pssh_data() const {
|
|
const ::video_widevine::CasDrmLicenseResponse_PsshData* p = pssh_data_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::CasDrmLicenseResponse_PsshData&>(
|
|
::video_widevine::_CasDrmLicenseResponse_PsshData_default_instance_);
|
|
}
|
|
inline const ::video_widevine::CasDrmLicenseResponse_PsshData& CasDrmLicenseResponse::pssh_data() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.pssh_data)
|
|
return _internal_pssh_data();
|
|
}
|
|
inline void CasDrmLicenseResponse::unsafe_arena_set_allocated_pssh_data(
|
|
::video_widevine::CasDrmLicenseResponse_PsshData* pssh_data) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pssh_data_);
|
|
}
|
|
pssh_data_ = pssh_data;
|
|
if (pssh_data) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.CasDrmLicenseResponse.pssh_data)
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_PsshData* CasDrmLicenseResponse::release_pssh_data() {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
::video_widevine::CasDrmLicenseResponse_PsshData* temp = pssh_data_;
|
|
pssh_data_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_PsshData* CasDrmLicenseResponse::unsafe_arena_release_pssh_data() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.pssh_data)
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
::video_widevine::CasDrmLicenseResponse_PsshData* temp = pssh_data_;
|
|
pssh_data_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_PsshData* CasDrmLicenseResponse::_internal_mutable_pssh_data() {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
if (pssh_data_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::CasDrmLicenseResponse_PsshData>(GetArena());
|
|
pssh_data_ = p;
|
|
}
|
|
return pssh_data_;
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_PsshData* CasDrmLicenseResponse::mutable_pssh_data() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.pssh_data)
|
|
return _internal_mutable_pssh_data();
|
|
}
|
|
inline void CasDrmLicenseResponse::set_allocated_pssh_data(::video_widevine::CasDrmLicenseResponse_PsshData* pssh_data) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete pssh_data_;
|
|
}
|
|
if (pssh_data) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pssh_data);
|
|
if (message_arena != submessage_arena) {
|
|
pssh_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, pssh_data, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000010u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
pssh_data_ = pssh_data;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.pssh_data)
|
|
}
|
|
|
|
// optional .video_widevine.SessionState session_state = 7;
|
|
inline bool CasDrmLicenseResponse::_internal_has_session_state() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
PROTOBUF_ASSUME(!value || session_state_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_session_state() const {
|
|
return _internal_has_session_state();
|
|
}
|
|
inline const ::video_widevine::SessionState& CasDrmLicenseResponse::_internal_session_state() const {
|
|
const ::video_widevine::SessionState* p = session_state_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::SessionState&>(
|
|
::video_widevine::_SessionState_default_instance_);
|
|
}
|
|
inline const ::video_widevine::SessionState& CasDrmLicenseResponse::session_state() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.session_state)
|
|
return _internal_session_state();
|
|
}
|
|
inline void CasDrmLicenseResponse::unsafe_arena_set_allocated_session_state(
|
|
::video_widevine::SessionState* session_state) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_state_);
|
|
}
|
|
session_state_ = session_state;
|
|
if (session_state) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.CasDrmLicenseResponse.session_state)
|
|
}
|
|
inline ::video_widevine::SessionState* CasDrmLicenseResponse::release_session_state() {
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
::video_widevine::SessionState* temp = session_state_;
|
|
session_state_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SessionState* CasDrmLicenseResponse::unsafe_arena_release_session_state() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.session_state)
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
::video_widevine::SessionState* temp = session_state_;
|
|
session_state_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SessionState* CasDrmLicenseResponse::_internal_mutable_session_state() {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
if (session_state_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::SessionState>(GetArena());
|
|
session_state_ = p;
|
|
}
|
|
return session_state_;
|
|
}
|
|
inline ::video_widevine::SessionState* CasDrmLicenseResponse::mutable_session_state() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.session_state)
|
|
return _internal_mutable_session_state();
|
|
}
|
|
inline void CasDrmLicenseResponse::set_allocated_session_state(::video_widevine::SessionState* session_state) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_state_);
|
|
}
|
|
if (session_state) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_state)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
session_state = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, session_state, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000020u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
session_state_ = session_state;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.session_state)
|
|
}
|
|
|
|
// optional string content_owner = 8;
|
|
inline bool CasDrmLicenseResponse::_internal_has_content_owner() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_content_owner() const {
|
|
return _internal_has_content_owner();
|
|
}
|
|
inline void CasDrmLicenseResponse::clear_content_owner() {
|
|
content_owner_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse::content_owner() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.content_owner)
|
|
return _internal_content_owner();
|
|
}
|
|
inline void CasDrmLicenseResponse::set_content_owner(const std::string& value) {
|
|
_internal_set_content_owner(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.content_owner)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::mutable_content_owner() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.content_owner)
|
|
return _internal_mutable_content_owner();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse::_internal_content_owner() const {
|
|
return content_owner_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse::_internal_set_content_owner(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
content_owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse::set_content_owner(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
content_owner_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.content_owner)
|
|
}
|
|
inline void CasDrmLicenseResponse::set_content_owner(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000004u;
|
|
content_owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.content_owner)
|
|
}
|
|
inline void CasDrmLicenseResponse::set_content_owner(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
content_owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.content_owner)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::_internal_mutable_content_owner() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return content_owner_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::release_content_owner() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.content_owner)
|
|
if (!_internal_has_content_owner()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return content_owner_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse::set_allocated_content_owner(std::string* content_owner) {
|
|
if (content_owner != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
content_owner_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content_owner,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.content_owner)
|
|
}
|
|
|
|
// optional string content_provider = 9;
|
|
inline bool CasDrmLicenseResponse::_internal_has_content_provider() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_content_provider() const {
|
|
return _internal_has_content_provider();
|
|
}
|
|
inline void CasDrmLicenseResponse::clear_content_provider() {
|
|
content_provider_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse::content_provider() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.content_provider)
|
|
return _internal_content_provider();
|
|
}
|
|
inline void CasDrmLicenseResponse::set_content_provider(const std::string& value) {
|
|
_internal_set_content_provider(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.CasDrmLicenseResponse.content_provider)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::mutable_content_provider() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.content_provider)
|
|
return _internal_mutable_content_provider();
|
|
}
|
|
inline const std::string& CasDrmLicenseResponse::_internal_content_provider() const {
|
|
return content_provider_.Get();
|
|
}
|
|
inline void CasDrmLicenseResponse::_internal_set_content_provider(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
content_provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse::set_content_provider(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
content_provider_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.CasDrmLicenseResponse.content_provider)
|
|
}
|
|
inline void CasDrmLicenseResponse::set_content_provider(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000008u;
|
|
content_provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.CasDrmLicenseResponse.content_provider)
|
|
}
|
|
inline void CasDrmLicenseResponse::set_content_provider(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
content_provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.CasDrmLicenseResponse.content_provider)
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::_internal_mutable_content_provider() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return content_provider_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* CasDrmLicenseResponse::release_content_provider() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.content_provider)
|
|
if (!_internal_has_content_provider()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
return content_provider_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void CasDrmLicenseResponse::set_allocated_content_provider(std::string* content_provider) {
|
|
if (content_provider != nullptr) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
content_provider_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content_provider,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.content_provider)
|
|
}
|
|
|
|
// optional .video_widevine.CasDrmLicenseResponse.LicenseMetadata license_metadata = 10;
|
|
inline bool CasDrmLicenseResponse::_internal_has_license_metadata() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
PROTOBUF_ASSUME(!value || license_metadata_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_license_metadata() const {
|
|
return _internal_has_license_metadata();
|
|
}
|
|
inline void CasDrmLicenseResponse::clear_license_metadata() {
|
|
if (license_metadata_ != nullptr) license_metadata_->Clear();
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
inline const ::video_widevine::CasDrmLicenseResponse_LicenseMetadata& CasDrmLicenseResponse::_internal_license_metadata() const {
|
|
const ::video_widevine::CasDrmLicenseResponse_LicenseMetadata* p = license_metadata_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::CasDrmLicenseResponse_LicenseMetadata&>(
|
|
::video_widevine::_CasDrmLicenseResponse_LicenseMetadata_default_instance_);
|
|
}
|
|
inline const ::video_widevine::CasDrmLicenseResponse_LicenseMetadata& CasDrmLicenseResponse::license_metadata() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.license_metadata)
|
|
return _internal_license_metadata();
|
|
}
|
|
inline void CasDrmLicenseResponse::unsafe_arena_set_allocated_license_metadata(
|
|
::video_widevine::CasDrmLicenseResponse_LicenseMetadata* license_metadata) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(license_metadata_);
|
|
}
|
|
license_metadata_ = license_metadata;
|
|
if (license_metadata) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.CasDrmLicenseResponse.license_metadata)
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_LicenseMetadata* CasDrmLicenseResponse::release_license_metadata() {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
::video_widevine::CasDrmLicenseResponse_LicenseMetadata* temp = license_metadata_;
|
|
license_metadata_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_LicenseMetadata* CasDrmLicenseResponse::unsafe_arena_release_license_metadata() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.license_metadata)
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
::video_widevine::CasDrmLicenseResponse_LicenseMetadata* temp = license_metadata_;
|
|
license_metadata_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_LicenseMetadata* CasDrmLicenseResponse::_internal_mutable_license_metadata() {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
if (license_metadata_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::CasDrmLicenseResponse_LicenseMetadata>(GetArena());
|
|
license_metadata_ = p;
|
|
}
|
|
return license_metadata_;
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_LicenseMetadata* CasDrmLicenseResponse::mutable_license_metadata() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.license_metadata)
|
|
return _internal_mutable_license_metadata();
|
|
}
|
|
inline void CasDrmLicenseResponse::set_allocated_license_metadata(::video_widevine::CasDrmLicenseResponse_LicenseMetadata* license_metadata) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete license_metadata_;
|
|
}
|
|
if (license_metadata) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(license_metadata);
|
|
if (message_arena != submessage_arena) {
|
|
license_metadata = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, license_metadata, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000040u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
license_metadata_ = license_metadata;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.license_metadata)
|
|
}
|
|
|
|
// optional .video_widevine.CasDrmLicenseResponse.DeviceInfo device_info = 11;
|
|
inline bool CasDrmLicenseResponse::_internal_has_device_info() const {
|
|
bool value = (_has_bits_[0] & 0x00000080u) != 0;
|
|
PROTOBUF_ASSUME(!value || device_info_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool CasDrmLicenseResponse::has_device_info() const {
|
|
return _internal_has_device_info();
|
|
}
|
|
inline void CasDrmLicenseResponse::clear_device_info() {
|
|
if (device_info_ != nullptr) device_info_->Clear();
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
inline const ::video_widevine::CasDrmLicenseResponse_DeviceInfo& CasDrmLicenseResponse::_internal_device_info() const {
|
|
const ::video_widevine::CasDrmLicenseResponse_DeviceInfo* p = device_info_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::CasDrmLicenseResponse_DeviceInfo&>(
|
|
::video_widevine::_CasDrmLicenseResponse_DeviceInfo_default_instance_);
|
|
}
|
|
inline const ::video_widevine::CasDrmLicenseResponse_DeviceInfo& CasDrmLicenseResponse::device_info() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.CasDrmLicenseResponse.device_info)
|
|
return _internal_device_info();
|
|
}
|
|
inline void CasDrmLicenseResponse::unsafe_arena_set_allocated_device_info(
|
|
::video_widevine::CasDrmLicenseResponse_DeviceInfo* device_info) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(device_info_);
|
|
}
|
|
device_info_ = device_info;
|
|
if (device_info) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.CasDrmLicenseResponse.device_info)
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_DeviceInfo* CasDrmLicenseResponse::release_device_info() {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
::video_widevine::CasDrmLicenseResponse_DeviceInfo* temp = device_info_;
|
|
device_info_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_DeviceInfo* CasDrmLicenseResponse::unsafe_arena_release_device_info() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.CasDrmLicenseResponse.device_info)
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
::video_widevine::CasDrmLicenseResponse_DeviceInfo* temp = device_info_;
|
|
device_info_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_DeviceInfo* CasDrmLicenseResponse::_internal_mutable_device_info() {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
if (device_info_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::CasDrmLicenseResponse_DeviceInfo>(GetArena());
|
|
device_info_ = p;
|
|
}
|
|
return device_info_;
|
|
}
|
|
inline ::video_widevine::CasDrmLicenseResponse_DeviceInfo* CasDrmLicenseResponse::mutable_device_info() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.CasDrmLicenseResponse.device_info)
|
|
return _internal_mutable_device_info();
|
|
}
|
|
inline void CasDrmLicenseResponse::set_allocated_device_info(::video_widevine::CasDrmLicenseResponse_DeviceInfo* device_info) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete device_info_;
|
|
}
|
|
if (device_info) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(device_info);
|
|
if (message_arena != submessage_arena) {
|
|
device_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, device_info, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000080u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
device_info_ = device_info;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.CasDrmLicenseResponse.device_info)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// SignedCasDrmRequest
|
|
|
|
// optional bytes request = 1;
|
|
inline bool SignedCasDrmRequest::_internal_has_request() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedCasDrmRequest::has_request() const {
|
|
return _internal_has_request();
|
|
}
|
|
inline void SignedCasDrmRequest::clear_request() {
|
|
request_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::request() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedCasDrmRequest.request)
|
|
return _internal_request();
|
|
}
|
|
inline void SignedCasDrmRequest::set_request(const std::string& value) {
|
|
_internal_set_request(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedCasDrmRequest.request)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::mutable_request() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedCasDrmRequest.request)
|
|
return _internal_mutable_request();
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::_internal_request() const {
|
|
return request_.Get();
|
|
}
|
|
inline void SignedCasDrmRequest::_internal_set_request(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
request_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::set_request(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
request_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SignedCasDrmRequest.request)
|
|
}
|
|
inline void SignedCasDrmRequest::set_request(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
request_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SignedCasDrmRequest.request)
|
|
}
|
|
inline void SignedCasDrmRequest::set_request(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
request_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.SignedCasDrmRequest.request)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::_internal_mutable_request() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return request_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedCasDrmRequest::release_request() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedCasDrmRequest.request)
|
|
if (!_internal_has_request()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return request_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::set_allocated_request(std::string* request) {
|
|
if (request != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
request_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), request,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedCasDrmRequest.request)
|
|
}
|
|
|
|
// optional bytes signature = 2;
|
|
inline bool SignedCasDrmRequest::_internal_has_signature() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedCasDrmRequest::has_signature() const {
|
|
return _internal_has_signature();
|
|
}
|
|
inline void SignedCasDrmRequest::clear_signature() {
|
|
signature_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::signature() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedCasDrmRequest.signature)
|
|
return _internal_signature();
|
|
}
|
|
inline void SignedCasDrmRequest::set_signature(const std::string& value) {
|
|
_internal_set_signature(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedCasDrmRequest.signature)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::mutable_signature() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedCasDrmRequest.signature)
|
|
return _internal_mutable_signature();
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::_internal_signature() const {
|
|
return signature_.Get();
|
|
}
|
|
inline void SignedCasDrmRequest::_internal_set_signature(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::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.SignedCasDrmRequest.signature)
|
|
}
|
|
inline void SignedCasDrmRequest::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.SignedCasDrmRequest.signature)
|
|
}
|
|
inline void SignedCasDrmRequest::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.SignedCasDrmRequest.signature)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::_internal_mutable_signature() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedCasDrmRequest::release_signature() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedCasDrmRequest.signature)
|
|
if (!_internal_has_signature()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return signature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::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.SignedCasDrmRequest.signature)
|
|
}
|
|
|
|
// optional string signer = 3;
|
|
inline bool SignedCasDrmRequest::_internal_has_signer() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedCasDrmRequest::has_signer() const {
|
|
return _internal_has_signer();
|
|
}
|
|
inline void SignedCasDrmRequest::clear_signer() {
|
|
signer_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::signer() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedCasDrmRequest.signer)
|
|
return _internal_signer();
|
|
}
|
|
inline void SignedCasDrmRequest::set_signer(const std::string& value) {
|
|
_internal_set_signer(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedCasDrmRequest.signer)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::mutable_signer() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedCasDrmRequest.signer)
|
|
return _internal_mutable_signer();
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::_internal_signer() const {
|
|
return signer_.Get();
|
|
}
|
|
inline void SignedCasDrmRequest::_internal_set_signer(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
signer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::set_signer(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
signer_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SignedCasDrmRequest.signer)
|
|
}
|
|
inline void SignedCasDrmRequest::set_signer(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000004u;
|
|
signer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SignedCasDrmRequest.signer)
|
|
}
|
|
inline void SignedCasDrmRequest::set_signer(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
signer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.SignedCasDrmRequest.signer)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::_internal_mutable_signer() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return signer_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedCasDrmRequest::release_signer() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedCasDrmRequest.signer)
|
|
if (!_internal_has_signer()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return signer_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::set_allocated_signer(std::string* signer) {
|
|
if (signer != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
signer_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signer,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedCasDrmRequest.signer)
|
|
}
|
|
|
|
// optional string client_ip_address = 4;
|
|
inline bool SignedCasDrmRequest::_internal_has_client_ip_address() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedCasDrmRequest::has_client_ip_address() const {
|
|
return _internal_has_client_ip_address();
|
|
}
|
|
inline void SignedCasDrmRequest::clear_client_ip_address() {
|
|
client_ip_address_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::client_ip_address() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedCasDrmRequest.client_ip_address)
|
|
return _internal_client_ip_address();
|
|
}
|
|
inline void SignedCasDrmRequest::set_client_ip_address(const std::string& value) {
|
|
_internal_set_client_ip_address(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedCasDrmRequest.client_ip_address)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::mutable_client_ip_address() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedCasDrmRequest.client_ip_address)
|
|
return _internal_mutable_client_ip_address();
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::_internal_client_ip_address() const {
|
|
return client_ip_address_.Get();
|
|
}
|
|
inline void SignedCasDrmRequest::_internal_set_client_ip_address(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
client_ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::set_client_ip_address(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
client_ip_address_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SignedCasDrmRequest.client_ip_address)
|
|
}
|
|
inline void SignedCasDrmRequest::set_client_ip_address(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000008u;
|
|
client_ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SignedCasDrmRequest.client_ip_address)
|
|
}
|
|
inline void SignedCasDrmRequest::set_client_ip_address(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
client_ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.SignedCasDrmRequest.client_ip_address)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::_internal_mutable_client_ip_address() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return client_ip_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedCasDrmRequest::release_client_ip_address() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedCasDrmRequest.client_ip_address)
|
|
if (!_internal_has_client_ip_address()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
return client_ip_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::set_allocated_client_ip_address(std::string* client_ip_address) {
|
|
if (client_ip_address != nullptr) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
client_ip_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), client_ip_address,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedCasDrmRequest.client_ip_address)
|
|
}
|
|
|
|
// optional string user_agent = 5;
|
|
inline bool SignedCasDrmRequest::_internal_has_user_agent() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedCasDrmRequest::has_user_agent() const {
|
|
return _internal_has_user_agent();
|
|
}
|
|
inline void SignedCasDrmRequest::clear_user_agent() {
|
|
user_agent_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::user_agent() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedCasDrmRequest.user_agent)
|
|
return _internal_user_agent();
|
|
}
|
|
inline void SignedCasDrmRequest::set_user_agent(const std::string& value) {
|
|
_internal_set_user_agent(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedCasDrmRequest.user_agent)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::mutable_user_agent() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedCasDrmRequest.user_agent)
|
|
return _internal_mutable_user_agent();
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::_internal_user_agent() const {
|
|
return user_agent_.Get();
|
|
}
|
|
inline void SignedCasDrmRequest::_internal_set_user_agent(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
user_agent_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::set_user_agent(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
user_agent_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SignedCasDrmRequest.user_agent)
|
|
}
|
|
inline void SignedCasDrmRequest::set_user_agent(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000010u;
|
|
user_agent_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SignedCasDrmRequest.user_agent)
|
|
}
|
|
inline void SignedCasDrmRequest::set_user_agent(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
user_agent_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.SignedCasDrmRequest.user_agent)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::_internal_mutable_user_agent() {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
return user_agent_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedCasDrmRequest::release_user_agent() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedCasDrmRequest.user_agent)
|
|
if (!_internal_has_user_agent()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
return user_agent_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::set_allocated_user_agent(std::string* user_agent) {
|
|
if (user_agent != nullptr) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
user_agent_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), user_agent,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedCasDrmRequest.user_agent)
|
|
}
|
|
|
|
// optional string provider = 6;
|
|
inline bool SignedCasDrmRequest::_internal_has_provider() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedCasDrmRequest::has_provider() const {
|
|
return _internal_has_provider();
|
|
}
|
|
inline void SignedCasDrmRequest::clear_provider() {
|
|
provider_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::provider() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedCasDrmRequest.provider)
|
|
return _internal_provider();
|
|
}
|
|
inline void SignedCasDrmRequest::set_provider(const std::string& value) {
|
|
_internal_set_provider(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedCasDrmRequest.provider)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::mutable_provider() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedCasDrmRequest.provider)
|
|
return _internal_mutable_provider();
|
|
}
|
|
inline const std::string& SignedCasDrmRequest::_internal_provider() const {
|
|
return provider_.Get();
|
|
}
|
|
inline void SignedCasDrmRequest::_internal_set_provider(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::set_provider(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SignedCasDrmRequest.provider)
|
|
}
|
|
inline void SignedCasDrmRequest::set_provider(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SignedCasDrmRequest.provider)
|
|
}
|
|
inline void SignedCasDrmRequest::set_provider(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.SignedCasDrmRequest.provider)
|
|
}
|
|
inline std::string* SignedCasDrmRequest::_internal_mutable_provider() {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
return provider_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedCasDrmRequest::release_provider() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedCasDrmRequest.provider)
|
|
if (!_internal_has_provider()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
return provider_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedCasDrmRequest::set_allocated_provider(std::string* provider) {
|
|
if (provider != nullptr) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
provider_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedCasDrmRequest.provider)
|
|
}
|
|
|
|
// optional .video_widevine.HashAlgorithmProto hash_algorithm = 7;
|
|
inline bool SignedCasDrmRequest::_internal_has_hash_algorithm() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedCasDrmRequest::has_hash_algorithm() const {
|
|
return _internal_has_hash_algorithm();
|
|
}
|
|
inline void SignedCasDrmRequest::clear_hash_algorithm() {
|
|
hash_algorithm_ = 0;
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
inline ::video_widevine::HashAlgorithmProto SignedCasDrmRequest::_internal_hash_algorithm() const {
|
|
return static_cast< ::video_widevine::HashAlgorithmProto >(hash_algorithm_);
|
|
}
|
|
inline ::video_widevine::HashAlgorithmProto SignedCasDrmRequest::hash_algorithm() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedCasDrmRequest.hash_algorithm)
|
|
return _internal_hash_algorithm();
|
|
}
|
|
inline void SignedCasDrmRequest::_internal_set_hash_algorithm(::video_widevine::HashAlgorithmProto value) {
|
|
assert(::video_widevine::HashAlgorithmProto_IsValid(value));
|
|
_has_bits_[0] |= 0x00000040u;
|
|
hash_algorithm_ = value;
|
|
}
|
|
inline void SignedCasDrmRequest::set_hash_algorithm(::video_widevine::HashAlgorithmProto value) {
|
|
_internal_set_hash_algorithm(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedCasDrmRequest.hash_algorithm)
|
|
}
|
|
|
|
#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::CasDrmLicenseResponse_Status> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::CasDrmLicenseResponse_Status>() {
|
|
return ::video_widevine::CasDrmLicenseResponse_Status_descriptor();
|
|
}
|
|
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2fmedia_5fcas_5flicense_2eproto
|