10416 lines
470 KiB
C++
10416 lines
470 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: protos/public/license_services.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2flicense_5fservices_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2flicense_5fservices_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/device_security_profile_data.pb.h"
|
|
#include "protos/public/hash_algorithm.pb.h"
|
|
#include "protos/public/client_identification.pb.h"
|
|
#include "protos/public/license_protocol.pb.h"
|
|
#include "protos/public/license_server_sdk.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_protos_2fpublic_2flicense_5fservices_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_2flicense_5fservices_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[12]
|
|
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_2flicense_5fservices_2eproto;
|
|
namespace video_widevine {
|
|
class LicenseMetadata;
|
|
class LicenseMetadataDefaultTypeInternal;
|
|
extern LicenseMetadataDefaultTypeInternal _LicenseMetadata_default_instance_;
|
|
class LicenseResponse;
|
|
class LicenseResponseDefaultTypeInternal;
|
|
extern LicenseResponseDefaultTypeInternal _LicenseResponse_default_instance_;
|
|
class ModularDrmLicenseRequest;
|
|
class ModularDrmLicenseRequestDefaultTypeInternal;
|
|
extern ModularDrmLicenseRequestDefaultTypeInternal _ModularDrmLicenseRequest_default_instance_;
|
|
class ModularDrmLicenseRequest_ContentKeySpec;
|
|
class ModularDrmLicenseRequest_ContentKeySpecDefaultTypeInternal;
|
|
extern ModularDrmLicenseRequest_ContentKeySpecDefaultTypeInternal _ModularDrmLicenseRequest_ContentKeySpec_default_instance_;
|
|
class ModularDrmLicenseRequest_Verification;
|
|
class ModularDrmLicenseRequest_VerificationDefaultTypeInternal;
|
|
extern ModularDrmLicenseRequest_VerificationDefaultTypeInternal _ModularDrmLicenseRequest_Verification_default_instance_;
|
|
class ModularDrmLicenseResponse;
|
|
class ModularDrmLicenseResponseDefaultTypeInternal;
|
|
extern ModularDrmLicenseResponseDefaultTypeInternal _ModularDrmLicenseResponse_default_instance_;
|
|
class ModularDrmLicenseResponse_DeviceSecurityProfiles;
|
|
class ModularDrmLicenseResponse_DeviceSecurityProfilesDefaultTypeInternal;
|
|
extern ModularDrmLicenseResponse_DeviceSecurityProfilesDefaultTypeInternal _ModularDrmLicenseResponse_DeviceSecurityProfiles_default_instance_;
|
|
class ModularDrmLicenseResponse_LicenseMetadata;
|
|
class ModularDrmLicenseResponse_LicenseMetadataDefaultTypeInternal;
|
|
extern ModularDrmLicenseResponse_LicenseMetadataDefaultTypeInternal _ModularDrmLicenseResponse_LicenseMetadata_default_instance_;
|
|
class ModularDrmLicenseResponse_Pssh;
|
|
class ModularDrmLicenseResponse_PsshDefaultTypeInternal;
|
|
extern ModularDrmLicenseResponse_PsshDefaultTypeInternal _ModularDrmLicenseResponse_Pssh_default_instance_;
|
|
class ModularDrmLicenseResponse_Track;
|
|
class ModularDrmLicenseResponse_TrackDefaultTypeInternal;
|
|
extern ModularDrmLicenseResponse_TrackDefaultTypeInternal _ModularDrmLicenseResponse_Track_default_instance_;
|
|
class SignedModularDrmRequest;
|
|
class SignedModularDrmRequestDefaultTypeInternal;
|
|
extern SignedModularDrmRequestDefaultTypeInternal _SignedModularDrmRequest_default_instance_;
|
|
class SignedModularDrmResponse;
|
|
class SignedModularDrmResponseDefaultTypeInternal;
|
|
extern SignedModularDrmResponseDefaultTypeInternal _SignedModularDrmResponse_default_instance_;
|
|
} // namespace video_widevine
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> ::video_widevine::LicenseMetadata* Arena::CreateMaybeMessage<::video_widevine::LicenseMetadata>(Arena*);
|
|
template<> ::video_widevine::LicenseResponse* Arena::CreateMaybeMessage<::video_widevine::LicenseResponse>(Arena*);
|
|
template<> ::video_widevine::ModularDrmLicenseRequest* Arena::CreateMaybeMessage<::video_widevine::ModularDrmLicenseRequest>(Arena*);
|
|
template<> ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec* Arena::CreateMaybeMessage<::video_widevine::ModularDrmLicenseRequest_ContentKeySpec>(Arena*);
|
|
template<> ::video_widevine::ModularDrmLicenseRequest_Verification* Arena::CreateMaybeMessage<::video_widevine::ModularDrmLicenseRequest_Verification>(Arena*);
|
|
template<> ::video_widevine::ModularDrmLicenseResponse* Arena::CreateMaybeMessage<::video_widevine::ModularDrmLicenseResponse>(Arena*);
|
|
template<> ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* Arena::CreateMaybeMessage<::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles>(Arena*);
|
|
template<> ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* Arena::CreateMaybeMessage<::video_widevine::ModularDrmLicenseResponse_LicenseMetadata>(Arena*);
|
|
template<> ::video_widevine::ModularDrmLicenseResponse_Pssh* Arena::CreateMaybeMessage<::video_widevine::ModularDrmLicenseResponse_Pssh>(Arena*);
|
|
template<> ::video_widevine::ModularDrmLicenseResponse_Track* Arena::CreateMaybeMessage<::video_widevine::ModularDrmLicenseResponse_Track>(Arena*);
|
|
template<> ::video_widevine::SignedModularDrmRequest* Arena::CreateMaybeMessage<::video_widevine::SignedModularDrmRequest>(Arena*);
|
|
template<> ::video_widevine::SignedModularDrmResponse* Arena::CreateMaybeMessage<::video_widevine::SignedModularDrmResponse>(Arena*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace video_widevine {
|
|
|
|
enum ModularDrmLicenseRequest_CommonTrackTypeSet : int {
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_SD_HD = 0,
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_SD_ONLY = 1,
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_SD_UHD1 = 2,
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_SD_UHD2 = 3
|
|
};
|
|
bool ModularDrmLicenseRequest_CommonTrackTypeSet_IsValid(int value);
|
|
constexpr ModularDrmLicenseRequest_CommonTrackTypeSet ModularDrmLicenseRequest_CommonTrackTypeSet_CommonTrackTypeSet_MIN = ModularDrmLicenseRequest_CommonTrackTypeSet_SD_HD;
|
|
constexpr ModularDrmLicenseRequest_CommonTrackTypeSet ModularDrmLicenseRequest_CommonTrackTypeSet_CommonTrackTypeSet_MAX = ModularDrmLicenseRequest_CommonTrackTypeSet_SD_UHD2;
|
|
constexpr int ModularDrmLicenseRequest_CommonTrackTypeSet_CommonTrackTypeSet_ARRAYSIZE = ModularDrmLicenseRequest_CommonTrackTypeSet_CommonTrackTypeSet_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModularDrmLicenseRequest_CommonTrackTypeSet_descriptor();
|
|
template<typename T>
|
|
inline const std::string& ModularDrmLicenseRequest_CommonTrackTypeSet_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, ModularDrmLicenseRequest_CommonTrackTypeSet>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function ModularDrmLicenseRequest_CommonTrackTypeSet_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_descriptor(), enum_t_value);
|
|
}
|
|
inline bool ModularDrmLicenseRequest_CommonTrackTypeSet_Parse(
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ModularDrmLicenseRequest_CommonTrackTypeSet* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ModularDrmLicenseRequest_CommonTrackTypeSet>(
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_descriptor(), name, value);
|
|
}
|
|
enum ModularDrmLicenseRequest_VideoFeatureKeySet : int {
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VF_UNSPECIFIED = 0,
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VF_EXCLUDED = 1,
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VF_ONLY = 2,
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VF_INCLUDED = 3
|
|
};
|
|
bool ModularDrmLicenseRequest_VideoFeatureKeySet_IsValid(int value);
|
|
constexpr ModularDrmLicenseRequest_VideoFeatureKeySet ModularDrmLicenseRequest_VideoFeatureKeySet_VideoFeatureKeySet_MIN = ModularDrmLicenseRequest_VideoFeatureKeySet_VF_UNSPECIFIED;
|
|
constexpr ModularDrmLicenseRequest_VideoFeatureKeySet ModularDrmLicenseRequest_VideoFeatureKeySet_VideoFeatureKeySet_MAX = ModularDrmLicenseRequest_VideoFeatureKeySet_VF_INCLUDED;
|
|
constexpr int ModularDrmLicenseRequest_VideoFeatureKeySet_VideoFeatureKeySet_ARRAYSIZE = ModularDrmLicenseRequest_VideoFeatureKeySet_VideoFeatureKeySet_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModularDrmLicenseRequest_VideoFeatureKeySet_descriptor();
|
|
template<typename T>
|
|
inline const std::string& ModularDrmLicenseRequest_VideoFeatureKeySet_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, ModularDrmLicenseRequest_VideoFeatureKeySet>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function ModularDrmLicenseRequest_VideoFeatureKeySet_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_descriptor(), enum_t_value);
|
|
}
|
|
inline bool ModularDrmLicenseRequest_VideoFeatureKeySet_Parse(
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ModularDrmLicenseRequest_VideoFeatureKeySet* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ModularDrmLicenseRequest_VideoFeatureKeySet>(
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_descriptor(), name, value);
|
|
}
|
|
enum ModularDrmLicenseResponse_Status : int {
|
|
ModularDrmLicenseResponse_Status_OK = 0,
|
|
ModularDrmLicenseResponse_Status_SIGNATURE_FAILED = 1,
|
|
ModularDrmLicenseResponse_Status_INVALID_LICENSE_CHALLENGE = 2,
|
|
ModularDrmLicenseResponse_Status_INVALID_CONTENT_INFO = 3,
|
|
ModularDrmLicenseResponse_Status_POLICY_UNKNOWN = 4,
|
|
ModularDrmLicenseResponse_Status_MALFORMED_REQUEST = 5,
|
|
ModularDrmLicenseResponse_Status_INTERNAL_ERROR = 6,
|
|
ModularDrmLicenseResponse_Status_PROVIDER_MISSING = 7,
|
|
ModularDrmLicenseResponse_Status_INVALID_REQUEST = 8,
|
|
ModularDrmLicenseResponse_Status_ACCESS_DENIED = 9,
|
|
ModularDrmLicenseResponse_Status_SIGNING_KEY_EXPIRED = 10,
|
|
ModularDrmLicenseResponse_Status_EXTERNAL_LICENSE_ERROR = 11
|
|
};
|
|
bool ModularDrmLicenseResponse_Status_IsValid(int value);
|
|
constexpr ModularDrmLicenseResponse_Status ModularDrmLicenseResponse_Status_Status_MIN = ModularDrmLicenseResponse_Status_OK;
|
|
constexpr ModularDrmLicenseResponse_Status ModularDrmLicenseResponse_Status_Status_MAX = ModularDrmLicenseResponse_Status_EXTERNAL_LICENSE_ERROR;
|
|
constexpr int ModularDrmLicenseResponse_Status_Status_ARRAYSIZE = ModularDrmLicenseResponse_Status_Status_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModularDrmLicenseResponse_Status_descriptor();
|
|
template<typename T>
|
|
inline const std::string& ModularDrmLicenseResponse_Status_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, ModularDrmLicenseResponse_Status>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function ModularDrmLicenseResponse_Status_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
ModularDrmLicenseResponse_Status_descriptor(), enum_t_value);
|
|
}
|
|
inline bool ModularDrmLicenseResponse_Status_Parse(
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ModularDrmLicenseResponse_Status* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ModularDrmLicenseResponse_Status>(
|
|
ModularDrmLicenseResponse_Status_descriptor(), name, value);
|
|
}
|
|
enum ModularDrmType : int {
|
|
WIDEVINE = 0,
|
|
PLAYREADY = 1,
|
|
FAIRPLAY = 2
|
|
};
|
|
bool ModularDrmType_IsValid(int value);
|
|
constexpr ModularDrmType ModularDrmType_MIN = WIDEVINE;
|
|
constexpr ModularDrmType ModularDrmType_MAX = FAIRPLAY;
|
|
constexpr int ModularDrmType_ARRAYSIZE = ModularDrmType_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModularDrmType_descriptor();
|
|
template<typename T>
|
|
inline const std::string& ModularDrmType_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, ModularDrmType>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function ModularDrmType_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
ModularDrmType_descriptor(), enum_t_value);
|
|
}
|
|
inline bool ModularDrmType_Parse(
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ModularDrmType* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ModularDrmType>(
|
|
ModularDrmType_descriptor(), name, value);
|
|
}
|
|
// ===================================================================
|
|
|
|
class ModularDrmLicenseRequest_ContentKeySpec PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ModularDrmLicenseRequest.ContentKeySpec) */ {
|
|
public:
|
|
inline ModularDrmLicenseRequest_ContentKeySpec() : ModularDrmLicenseRequest_ContentKeySpec(nullptr) {}
|
|
virtual ~ModularDrmLicenseRequest_ContentKeySpec();
|
|
|
|
ModularDrmLicenseRequest_ContentKeySpec(const ModularDrmLicenseRequest_ContentKeySpec& from);
|
|
ModularDrmLicenseRequest_ContentKeySpec(ModularDrmLicenseRequest_ContentKeySpec&& from) noexcept
|
|
: ModularDrmLicenseRequest_ContentKeySpec() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ModularDrmLicenseRequest_ContentKeySpec& operator=(const ModularDrmLicenseRequest_ContentKeySpec& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ModularDrmLicenseRequest_ContentKeySpec& operator=(ModularDrmLicenseRequest_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 ModularDrmLicenseRequest_ContentKeySpec& default_instance();
|
|
|
|
static inline const ModularDrmLicenseRequest_ContentKeySpec* internal_default_instance() {
|
|
return reinterpret_cast<const ModularDrmLicenseRequest_ContentKeySpec*>(
|
|
&_ModularDrmLicenseRequest_ContentKeySpec_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(ModularDrmLicenseRequest_ContentKeySpec& a, ModularDrmLicenseRequest_ContentKeySpec& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ModularDrmLicenseRequest_ContentKeySpec* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ModularDrmLicenseRequest_ContentKeySpec* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ModularDrmLicenseRequest_ContentKeySpec* New() const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseRequest_ContentKeySpec>(nullptr);
|
|
}
|
|
|
|
ModularDrmLicenseRequest_ContentKeySpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseRequest_ContentKeySpec>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ModularDrmLicenseRequest_ContentKeySpec& from);
|
|
void MergeFrom(const ModularDrmLicenseRequest_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(ModularDrmLicenseRequest_ContentKeySpec* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ModularDrmLicenseRequest.ContentKeySpec";
|
|
}
|
|
protected:
|
|
explicit ModularDrmLicenseRequest_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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kVideoResolutionConstraintsFieldNumber = 10,
|
|
kTrackTypeFieldNumber = 1,
|
|
kKeyIdFieldNumber = 5,
|
|
kKeyFieldNumber = 6,
|
|
kIvFieldNumber = 7,
|
|
kVideoFeatureFieldNumber = 11,
|
|
kAudioFeatureFieldNumber = 13,
|
|
kRequiredOutputProtectionFieldNumber = 3,
|
|
kRequestedOutputProtectionFieldNumber = 4,
|
|
kOperatorSessionKeyPermissionsFieldNumber = 9,
|
|
kKeyCategorySpecFieldNumber = 12,
|
|
kSecurityLevelFieldNumber = 2,
|
|
kKeyTypeFieldNumber = 8,
|
|
};
|
|
// repeated .video_widevine.License.KeyContainer.VideoResolutionConstraint video_resolution_constraints = 10;
|
|
int video_resolution_constraints_size() const;
|
|
private:
|
|
int _internal_video_resolution_constraints_size() const;
|
|
public:
|
|
void clear_video_resolution_constraints();
|
|
::video_widevine::License_KeyContainer_VideoResolutionConstraint* mutable_video_resolution_constraints(int index);
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::License_KeyContainer_VideoResolutionConstraint >*
|
|
mutable_video_resolution_constraints();
|
|
private:
|
|
const ::video_widevine::License_KeyContainer_VideoResolutionConstraint& _internal_video_resolution_constraints(int index) const;
|
|
::video_widevine::License_KeyContainer_VideoResolutionConstraint* _internal_add_video_resolution_constraints();
|
|
public:
|
|
const ::video_widevine::License_KeyContainer_VideoResolutionConstraint& video_resolution_constraints(int index) const;
|
|
::video_widevine::License_KeyContainer_VideoResolutionConstraint* add_video_resolution_constraints();
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::License_KeyContainer_VideoResolutionConstraint >&
|
|
video_resolution_constraints() const;
|
|
|
|
// optional string track_type = 1;
|
|
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 bytes key_id = 5;
|
|
bool has_key_id() const;
|
|
private:
|
|
bool _internal_has_key_id() const;
|
|
public:
|
|
void clear_key_id();
|
|
const std::string& key_id() const;
|
|
void set_key_id(const std::string& value);
|
|
void set_key_id(std::string&& value);
|
|
void set_key_id(const char* value);
|
|
void set_key_id(const void* value, size_t size);
|
|
std::string* mutable_key_id();
|
|
std::string* release_key_id();
|
|
void set_allocated_key_id(std::string* key_id);
|
|
private:
|
|
const std::string& _internal_key_id() const;
|
|
void _internal_set_key_id(const std::string& value);
|
|
std::string* _internal_mutable_key_id();
|
|
public:
|
|
|
|
// optional bytes key = 6;
|
|
bool has_key() const;
|
|
private:
|
|
bool _internal_has_key() const;
|
|
public:
|
|
void clear_key();
|
|
const std::string& key() const;
|
|
void set_key(const std::string& value);
|
|
void set_key(std::string&& value);
|
|
void set_key(const char* value);
|
|
void set_key(const void* value, size_t size);
|
|
std::string* mutable_key();
|
|
std::string* release_key();
|
|
void set_allocated_key(std::string* key);
|
|
private:
|
|
const std::string& _internal_key() const;
|
|
void _internal_set_key(const std::string& value);
|
|
std::string* _internal_mutable_key();
|
|
public:
|
|
|
|
// optional bytes iv = 7;
|
|
bool has_iv() const;
|
|
private:
|
|
bool _internal_has_iv() const;
|
|
public:
|
|
void clear_iv();
|
|
const std::string& iv() const;
|
|
void set_iv(const std::string& value);
|
|
void set_iv(std::string&& value);
|
|
void set_iv(const char* value);
|
|
void set_iv(const void* value, size_t size);
|
|
std::string* mutable_iv();
|
|
std::string* release_iv();
|
|
void set_allocated_iv(std::string* iv);
|
|
private:
|
|
const std::string& _internal_iv() const;
|
|
void _internal_set_iv(const std::string& value);
|
|
std::string* _internal_mutable_iv();
|
|
public:
|
|
|
|
// optional string video_feature = 11;
|
|
bool has_video_feature() const;
|
|
private:
|
|
bool _internal_has_video_feature() const;
|
|
public:
|
|
void clear_video_feature();
|
|
const std::string& video_feature() const;
|
|
void set_video_feature(const std::string& value);
|
|
void set_video_feature(std::string&& value);
|
|
void set_video_feature(const char* value);
|
|
void set_video_feature(const char* value, size_t size);
|
|
std::string* mutable_video_feature();
|
|
std::string* release_video_feature();
|
|
void set_allocated_video_feature(std::string* video_feature);
|
|
private:
|
|
const std::string& _internal_video_feature() const;
|
|
void _internal_set_video_feature(const std::string& value);
|
|
std::string* _internal_mutable_video_feature();
|
|
public:
|
|
|
|
// optional string audio_feature = 13;
|
|
bool has_audio_feature() const;
|
|
private:
|
|
bool _internal_has_audio_feature() const;
|
|
public:
|
|
void clear_audio_feature();
|
|
const std::string& audio_feature() const;
|
|
void set_audio_feature(const std::string& value);
|
|
void set_audio_feature(std::string&& value);
|
|
void set_audio_feature(const char* value);
|
|
void set_audio_feature(const char* value, size_t size);
|
|
std::string* mutable_audio_feature();
|
|
std::string* release_audio_feature();
|
|
void set_allocated_audio_feature(std::string* audio_feature);
|
|
private:
|
|
const std::string& _internal_audio_feature() const;
|
|
void _internal_set_audio_feature(const std::string& value);
|
|
std::string* _internal_mutable_audio_feature();
|
|
public:
|
|
|
|
// optional .video_widevine.License.KeyContainer.OutputProtection required_output_protection = 3;
|
|
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 = 4;
|
|
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.OperatorSessionKeyPermissions operator_session_key_permissions = 9;
|
|
bool has_operator_session_key_permissions() const;
|
|
private:
|
|
bool _internal_has_operator_session_key_permissions() const;
|
|
public:
|
|
void clear_operator_session_key_permissions();
|
|
const ::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions& operator_session_key_permissions() const;
|
|
::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* release_operator_session_key_permissions();
|
|
::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* mutable_operator_session_key_permissions();
|
|
void set_allocated_operator_session_key_permissions(::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* operator_session_key_permissions);
|
|
private:
|
|
const ::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions& _internal_operator_session_key_permissions() const;
|
|
::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* _internal_mutable_operator_session_key_permissions();
|
|
public:
|
|
void unsafe_arena_set_allocated_operator_session_key_permissions(
|
|
::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* operator_session_key_permissions);
|
|
::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* unsafe_arena_release_operator_session_key_permissions();
|
|
|
|
// optional .video_widevine.License.KeyContainer.KeyCategorySpec key_category_spec = 12;
|
|
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 = 2;
|
|
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 = 8;
|
|
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.ModularDrmLicenseRequest.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::License_KeyContainer_VideoResolutionConstraint > video_resolution_constraints_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr track_type_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr iv_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr video_feature_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr audio_feature_;
|
|
::video_widevine::License_KeyContainer_OutputProtection* required_output_protection_;
|
|
::video_widevine::License_KeyContainer_OutputProtection* requested_output_protection_;
|
|
::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* operator_session_key_permissions_;
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* key_category_spec_;
|
|
int security_level_;
|
|
int key_type_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class ModularDrmLicenseRequest_Verification PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ModularDrmLicenseRequest.Verification) */ {
|
|
public:
|
|
inline ModularDrmLicenseRequest_Verification() : ModularDrmLicenseRequest_Verification(nullptr) {}
|
|
virtual ~ModularDrmLicenseRequest_Verification();
|
|
|
|
ModularDrmLicenseRequest_Verification(const ModularDrmLicenseRequest_Verification& from);
|
|
ModularDrmLicenseRequest_Verification(ModularDrmLicenseRequest_Verification&& from) noexcept
|
|
: ModularDrmLicenseRequest_Verification() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ModularDrmLicenseRequest_Verification& operator=(const ModularDrmLicenseRequest_Verification& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ModularDrmLicenseRequest_Verification& operator=(ModularDrmLicenseRequest_Verification&& 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 ModularDrmLicenseRequest_Verification& default_instance();
|
|
|
|
static inline const ModularDrmLicenseRequest_Verification* internal_default_instance() {
|
|
return reinterpret_cast<const ModularDrmLicenseRequest_Verification*>(
|
|
&_ModularDrmLicenseRequest_Verification_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
1;
|
|
|
|
friend void swap(ModularDrmLicenseRequest_Verification& a, ModularDrmLicenseRequest_Verification& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ModularDrmLicenseRequest_Verification* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ModularDrmLicenseRequest_Verification* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ModularDrmLicenseRequest_Verification* New() const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseRequest_Verification>(nullptr);
|
|
}
|
|
|
|
ModularDrmLicenseRequest_Verification* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseRequest_Verification>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ModularDrmLicenseRequest_Verification& from);
|
|
void MergeFrom(const ModularDrmLicenseRequest_Verification& 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(ModularDrmLicenseRequest_Verification* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ModularDrmLicenseRequest.Verification";
|
|
}
|
|
protected:
|
|
explicit ModularDrmLicenseRequest_Verification(::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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kRejectUnknownMakeModelFieldNumber = 1,
|
|
};
|
|
// optional bool reject_unknown_make_model = 1 [default = false];
|
|
bool has_reject_unknown_make_model() const;
|
|
private:
|
|
bool _internal_has_reject_unknown_make_model() const;
|
|
public:
|
|
void clear_reject_unknown_make_model();
|
|
bool reject_unknown_make_model() const;
|
|
void set_reject_unknown_make_model(bool value);
|
|
private:
|
|
bool _internal_reject_unknown_make_model() const;
|
|
void _internal_set_reject_unknown_make_model(bool value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.ModularDrmLicenseRequest.Verification)
|
|
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_;
|
|
bool reject_unknown_make_model_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class ModularDrmLicenseRequest PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ModularDrmLicenseRequest) */ {
|
|
public:
|
|
inline ModularDrmLicenseRequest() : ModularDrmLicenseRequest(nullptr) {}
|
|
virtual ~ModularDrmLicenseRequest();
|
|
|
|
ModularDrmLicenseRequest(const ModularDrmLicenseRequest& from);
|
|
ModularDrmLicenseRequest(ModularDrmLicenseRequest&& from) noexcept
|
|
: ModularDrmLicenseRequest() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ModularDrmLicenseRequest& operator=(const ModularDrmLicenseRequest& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ModularDrmLicenseRequest& operator=(ModularDrmLicenseRequest&& 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 ModularDrmLicenseRequest& default_instance();
|
|
|
|
static inline const ModularDrmLicenseRequest* internal_default_instance() {
|
|
return reinterpret_cast<const ModularDrmLicenseRequest*>(
|
|
&_ModularDrmLicenseRequest_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
2;
|
|
|
|
friend void swap(ModularDrmLicenseRequest& a, ModularDrmLicenseRequest& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ModularDrmLicenseRequest* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ModularDrmLicenseRequest* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ModularDrmLicenseRequest* New() const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseRequest>(nullptr);
|
|
}
|
|
|
|
ModularDrmLicenseRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseRequest>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ModularDrmLicenseRequest& from);
|
|
void MergeFrom(const ModularDrmLicenseRequest& 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(ModularDrmLicenseRequest* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ModularDrmLicenseRequest";
|
|
}
|
|
protected:
|
|
explicit ModularDrmLicenseRequest(::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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
typedef ModularDrmLicenseRequest_ContentKeySpec ContentKeySpec;
|
|
typedef ModularDrmLicenseRequest_Verification Verification;
|
|
|
|
typedef ModularDrmLicenseRequest_CommonTrackTypeSet CommonTrackTypeSet;
|
|
static constexpr CommonTrackTypeSet SD_HD =
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_SD_HD;
|
|
static constexpr CommonTrackTypeSet SD_ONLY =
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_SD_ONLY;
|
|
static constexpr CommonTrackTypeSet SD_UHD1 =
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_SD_UHD1;
|
|
static constexpr CommonTrackTypeSet SD_UHD2 =
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_SD_UHD2;
|
|
static inline bool CommonTrackTypeSet_IsValid(int value) {
|
|
return ModularDrmLicenseRequest_CommonTrackTypeSet_IsValid(value);
|
|
}
|
|
static constexpr CommonTrackTypeSet CommonTrackTypeSet_MIN =
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_CommonTrackTypeSet_MIN;
|
|
static constexpr CommonTrackTypeSet CommonTrackTypeSet_MAX =
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_CommonTrackTypeSet_MAX;
|
|
static constexpr int CommonTrackTypeSet_ARRAYSIZE =
|
|
ModularDrmLicenseRequest_CommonTrackTypeSet_CommonTrackTypeSet_ARRAYSIZE;
|
|
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
|
CommonTrackTypeSet_descriptor() {
|
|
return ModularDrmLicenseRequest_CommonTrackTypeSet_descriptor();
|
|
}
|
|
template<typename T>
|
|
static inline const std::string& CommonTrackTypeSet_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, CommonTrackTypeSet>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function CommonTrackTypeSet_Name.");
|
|
return ModularDrmLicenseRequest_CommonTrackTypeSet_Name(enum_t_value);
|
|
}
|
|
static inline bool CommonTrackTypeSet_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
|
CommonTrackTypeSet* value) {
|
|
return ModularDrmLicenseRequest_CommonTrackTypeSet_Parse(name, value);
|
|
}
|
|
|
|
typedef ModularDrmLicenseRequest_VideoFeatureKeySet VideoFeatureKeySet;
|
|
static constexpr VideoFeatureKeySet VF_UNSPECIFIED =
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VF_UNSPECIFIED;
|
|
static constexpr VideoFeatureKeySet VF_EXCLUDED =
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VF_EXCLUDED;
|
|
static constexpr VideoFeatureKeySet VF_ONLY =
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VF_ONLY;
|
|
static constexpr VideoFeatureKeySet VF_INCLUDED =
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VF_INCLUDED;
|
|
static inline bool VideoFeatureKeySet_IsValid(int value) {
|
|
return ModularDrmLicenseRequest_VideoFeatureKeySet_IsValid(value);
|
|
}
|
|
static constexpr VideoFeatureKeySet VideoFeatureKeySet_MIN =
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VideoFeatureKeySet_MIN;
|
|
static constexpr VideoFeatureKeySet VideoFeatureKeySet_MAX =
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VideoFeatureKeySet_MAX;
|
|
static constexpr int VideoFeatureKeySet_ARRAYSIZE =
|
|
ModularDrmLicenseRequest_VideoFeatureKeySet_VideoFeatureKeySet_ARRAYSIZE;
|
|
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
|
VideoFeatureKeySet_descriptor() {
|
|
return ModularDrmLicenseRequest_VideoFeatureKeySet_descriptor();
|
|
}
|
|
template<typename T>
|
|
static inline const std::string& VideoFeatureKeySet_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, VideoFeatureKeySet>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function VideoFeatureKeySet_Name.");
|
|
return ModularDrmLicenseRequest_VideoFeatureKeySet_Name(enum_t_value);
|
|
}
|
|
static inline bool VideoFeatureKeySet_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
|
VideoFeatureKeySet* value) {
|
|
return ModularDrmLicenseRequest_VideoFeatureKeySet_Parse(name, value);
|
|
}
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kContentKeySpecsFieldNumber = 2,
|
|
kPayloadFieldNumber = 1,
|
|
kContentIdFieldNumber = 4,
|
|
kProviderFieldNumber = 5,
|
|
kReplayDataFieldNumber = 6,
|
|
kPolicyNameFieldNumber = 8,
|
|
kClientIpAddressFieldNumber = 13,
|
|
kUserAgentFieldNumber = 14,
|
|
kProviderClientTokenFieldNumber = 15,
|
|
kProviderSessionTokenFieldNumber = 16,
|
|
kContentProviderRequestIdFieldNumber = 19,
|
|
kSessionKeyFieldNumber = 20,
|
|
kSessionIvFieldNumber = 21,
|
|
kRequestingProviderFieldNumber = 23,
|
|
kClientIdMsgFieldNumber = 24,
|
|
kPolicyOverridesFieldNumber = 7,
|
|
kSessionInitFieldNumber = 17,
|
|
kVerifyFieldNumber = 30,
|
|
kProxyInfoFieldNumber = 31,
|
|
kDrmTypeFieldNumber = 10,
|
|
kUsePolicyOverridesExclusivelyFieldNumber = 9,
|
|
kAllowTestDeviceDeprecatedFieldNumber = 11,
|
|
kParseOnlyFieldNumber = 18,
|
|
kTestContentFieldNumber = 22,
|
|
kSdOnlyForL3FieldNumber = 25,
|
|
kAllowedTrackTypesFieldNumber = 3,
|
|
kPlatformVerificationStatusFieldNumber = 26,
|
|
kAllowUnverifiedPlatformFieldNumber = 27,
|
|
kAllowTamperedPlatformFieldNumber = 28,
|
|
kVideoFeatureKeySetFieldNumber = 29,
|
|
};
|
|
// repeated .video_widevine.ModularDrmLicenseRequest.ContentKeySpec content_key_specs = 2;
|
|
int content_key_specs_size() const;
|
|
private:
|
|
int _internal_content_key_specs_size() const;
|
|
public:
|
|
void clear_content_key_specs();
|
|
::video_widevine::ModularDrmLicenseRequest_ContentKeySpec* mutable_content_key_specs(int index);
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec >*
|
|
mutable_content_key_specs();
|
|
private:
|
|
const ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec& _internal_content_key_specs(int index) const;
|
|
::video_widevine::ModularDrmLicenseRequest_ContentKeySpec* _internal_add_content_key_specs();
|
|
public:
|
|
const ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec& content_key_specs(int index) const;
|
|
::video_widevine::ModularDrmLicenseRequest_ContentKeySpec* add_content_key_specs();
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ModularDrmLicenseRequest_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 bytes content_id = 4;
|
|
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 string provider = 5;
|
|
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 string replay_data = 6;
|
|
bool has_replay_data() const;
|
|
private:
|
|
bool _internal_has_replay_data() const;
|
|
public:
|
|
void clear_replay_data();
|
|
const std::string& replay_data() const;
|
|
void set_replay_data(const std::string& value);
|
|
void set_replay_data(std::string&& value);
|
|
void set_replay_data(const char* value);
|
|
void set_replay_data(const char* value, size_t size);
|
|
std::string* mutable_replay_data();
|
|
std::string* release_replay_data();
|
|
void set_allocated_replay_data(std::string* replay_data);
|
|
private:
|
|
const std::string& _internal_replay_data() const;
|
|
void _internal_set_replay_data(const std::string& value);
|
|
std::string* _internal_mutable_replay_data();
|
|
public:
|
|
|
|
// optional string policy_name = 8;
|
|
bool has_policy_name() const;
|
|
private:
|
|
bool _internal_has_policy_name() const;
|
|
public:
|
|
void clear_policy_name();
|
|
const std::string& policy_name() const;
|
|
void set_policy_name(const std::string& value);
|
|
void set_policy_name(std::string&& value);
|
|
void set_policy_name(const char* value);
|
|
void set_policy_name(const char* value, size_t size);
|
|
std::string* mutable_policy_name();
|
|
std::string* release_policy_name();
|
|
void set_allocated_policy_name(std::string* policy_name);
|
|
private:
|
|
const std::string& _internal_policy_name() const;
|
|
void _internal_set_policy_name(const std::string& value);
|
|
std::string* _internal_mutable_policy_name();
|
|
public:
|
|
|
|
// optional string client_ip_address = 13;
|
|
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 = 14;
|
|
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 bytes provider_client_token = 15;
|
|
bool has_provider_client_token() const;
|
|
private:
|
|
bool _internal_has_provider_client_token() const;
|
|
public:
|
|
void clear_provider_client_token();
|
|
const std::string& provider_client_token() const;
|
|
void set_provider_client_token(const std::string& value);
|
|
void set_provider_client_token(std::string&& value);
|
|
void set_provider_client_token(const char* value);
|
|
void set_provider_client_token(const void* value, size_t size);
|
|
std::string* mutable_provider_client_token();
|
|
std::string* release_provider_client_token();
|
|
void set_allocated_provider_client_token(std::string* provider_client_token);
|
|
private:
|
|
const std::string& _internal_provider_client_token() const;
|
|
void _internal_set_provider_client_token(const std::string& value);
|
|
std::string* _internal_mutable_provider_client_token();
|
|
public:
|
|
|
|
// optional bytes provider_session_token = 16;
|
|
bool has_provider_session_token() const;
|
|
private:
|
|
bool _internal_has_provider_session_token() const;
|
|
public:
|
|
void clear_provider_session_token();
|
|
const std::string& provider_session_token() const;
|
|
void set_provider_session_token(const std::string& value);
|
|
void set_provider_session_token(std::string&& value);
|
|
void set_provider_session_token(const char* value);
|
|
void set_provider_session_token(const void* value, size_t size);
|
|
std::string* mutable_provider_session_token();
|
|
std::string* release_provider_session_token();
|
|
void set_allocated_provider_session_token(std::string* provider_session_token);
|
|
private:
|
|
const std::string& _internal_provider_session_token() const;
|
|
void _internal_set_provider_session_token(const std::string& value);
|
|
std::string* _internal_mutable_provider_session_token();
|
|
public:
|
|
|
|
// optional string content_provider_request_id = 19 [default = "unspecified"];
|
|
bool has_content_provider_request_id() const;
|
|
private:
|
|
bool _internal_has_content_provider_request_id() const;
|
|
public:
|
|
void clear_content_provider_request_id();
|
|
const std::string& content_provider_request_id() const;
|
|
void set_content_provider_request_id(const std::string& value);
|
|
void set_content_provider_request_id(std::string&& value);
|
|
void set_content_provider_request_id(const char* value);
|
|
void set_content_provider_request_id(const char* value, size_t size);
|
|
std::string* mutable_content_provider_request_id();
|
|
std::string* release_content_provider_request_id();
|
|
void set_allocated_content_provider_request_id(std::string* content_provider_request_id);
|
|
private:
|
|
const std::string& _internal_content_provider_request_id() const;
|
|
void _internal_set_content_provider_request_id(const std::string& value);
|
|
std::string* _internal_mutable_content_provider_request_id();
|
|
public:
|
|
|
|
// optional bytes session_key = 20;
|
|
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 = 21;
|
|
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 string requesting_provider = 23;
|
|
bool has_requesting_provider() const;
|
|
private:
|
|
bool _internal_has_requesting_provider() const;
|
|
public:
|
|
void clear_requesting_provider();
|
|
const std::string& requesting_provider() const;
|
|
void set_requesting_provider(const std::string& value);
|
|
void set_requesting_provider(std::string&& value);
|
|
void set_requesting_provider(const char* value);
|
|
void set_requesting_provider(const char* value, size_t size);
|
|
std::string* mutable_requesting_provider();
|
|
std::string* release_requesting_provider();
|
|
void set_allocated_requesting_provider(std::string* requesting_provider);
|
|
private:
|
|
const std::string& _internal_requesting_provider() const;
|
|
void _internal_set_requesting_provider(const std::string& value);
|
|
std::string* _internal_mutable_requesting_provider();
|
|
public:
|
|
|
|
// optional bytes client_id_msg = 24;
|
|
bool has_client_id_msg() const;
|
|
private:
|
|
bool _internal_has_client_id_msg() const;
|
|
public:
|
|
void clear_client_id_msg();
|
|
const std::string& client_id_msg() const;
|
|
void set_client_id_msg(const std::string& value);
|
|
void set_client_id_msg(std::string&& value);
|
|
void set_client_id_msg(const char* value);
|
|
void set_client_id_msg(const void* value, size_t size);
|
|
std::string* mutable_client_id_msg();
|
|
std::string* release_client_id_msg();
|
|
void set_allocated_client_id_msg(std::string* client_id_msg);
|
|
private:
|
|
const std::string& _internal_client_id_msg() const;
|
|
void _internal_set_client_id_msg(const std::string& value);
|
|
std::string* _internal_mutable_client_id_msg();
|
|
public:
|
|
|
|
// optional .video_widevine.License.Policy policy_overrides = 7;
|
|
bool has_policy_overrides() const;
|
|
private:
|
|
bool _internal_has_policy_overrides() const;
|
|
public:
|
|
void clear_policy_overrides();
|
|
const ::video_widevine::License_Policy& policy_overrides() const;
|
|
::video_widevine::License_Policy* release_policy_overrides();
|
|
::video_widevine::License_Policy* mutable_policy_overrides();
|
|
void set_allocated_policy_overrides(::video_widevine::License_Policy* policy_overrides);
|
|
private:
|
|
const ::video_widevine::License_Policy& _internal_policy_overrides() const;
|
|
::video_widevine::License_Policy* _internal_mutable_policy_overrides();
|
|
public:
|
|
void unsafe_arena_set_allocated_policy_overrides(
|
|
::video_widevine::License_Policy* policy_overrides);
|
|
::video_widevine::License_Policy* unsafe_arena_release_policy_overrides();
|
|
|
|
// optional .video_widevine.SessionInit session_init = 17;
|
|
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.ModularDrmLicenseRequest.Verification verify = 30;
|
|
bool has_verify() const;
|
|
private:
|
|
bool _internal_has_verify() const;
|
|
public:
|
|
void clear_verify();
|
|
const ::video_widevine::ModularDrmLicenseRequest_Verification& verify() const;
|
|
::video_widevine::ModularDrmLicenseRequest_Verification* release_verify();
|
|
::video_widevine::ModularDrmLicenseRequest_Verification* mutable_verify();
|
|
void set_allocated_verify(::video_widevine::ModularDrmLicenseRequest_Verification* verify);
|
|
private:
|
|
const ::video_widevine::ModularDrmLicenseRequest_Verification& _internal_verify() const;
|
|
::video_widevine::ModularDrmLicenseRequest_Verification* _internal_mutable_verify();
|
|
public:
|
|
void unsafe_arena_set_allocated_verify(
|
|
::video_widevine::ModularDrmLicenseRequest_Verification* verify);
|
|
::video_widevine::ModularDrmLicenseRequest_Verification* unsafe_arena_release_verify();
|
|
|
|
// optional .video_widevine.ProxyInfo proxy_info = 31;
|
|
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();
|
|
|
|
// optional .video_widevine.ModularDrmType drm_type = 10 [default = WIDEVINE];
|
|
bool has_drm_type() const;
|
|
private:
|
|
bool _internal_has_drm_type() const;
|
|
public:
|
|
void clear_drm_type();
|
|
::video_widevine::ModularDrmType drm_type() const;
|
|
void set_drm_type(::video_widevine::ModularDrmType value);
|
|
private:
|
|
::video_widevine::ModularDrmType _internal_drm_type() const;
|
|
void _internal_set_drm_type(::video_widevine::ModularDrmType value);
|
|
public:
|
|
|
|
// optional bool use_policy_overrides_exclusively = 9 [default = false];
|
|
bool has_use_policy_overrides_exclusively() const;
|
|
private:
|
|
bool _internal_has_use_policy_overrides_exclusively() const;
|
|
public:
|
|
void clear_use_policy_overrides_exclusively();
|
|
bool use_policy_overrides_exclusively() const;
|
|
void set_use_policy_overrides_exclusively(bool value);
|
|
private:
|
|
bool _internal_use_policy_overrides_exclusively() const;
|
|
void _internal_set_use_policy_overrides_exclusively(bool value);
|
|
public:
|
|
|
|
// optional bool allow_test_device_deprecated = 11 [deprecated = true];
|
|
PROTOBUF_DEPRECATED bool has_allow_test_device_deprecated() const;
|
|
private:
|
|
bool _internal_has_allow_test_device_deprecated() const;
|
|
public:
|
|
PROTOBUF_DEPRECATED void clear_allow_test_device_deprecated();
|
|
PROTOBUF_DEPRECATED bool allow_test_device_deprecated() const;
|
|
PROTOBUF_DEPRECATED void set_allow_test_device_deprecated(bool value);
|
|
private:
|
|
bool _internal_allow_test_device_deprecated() const;
|
|
void _internal_set_allow_test_device_deprecated(bool value);
|
|
public:
|
|
|
|
// optional bool parse_only = 18 [default = false];
|
|
bool has_parse_only() const;
|
|
private:
|
|
bool _internal_has_parse_only() const;
|
|
public:
|
|
void clear_parse_only();
|
|
bool parse_only() const;
|
|
void set_parse_only(bool value);
|
|
private:
|
|
bool _internal_parse_only() const;
|
|
void _internal_set_parse_only(bool value);
|
|
public:
|
|
|
|
// optional bool test_content = 22 [default = false];
|
|
bool has_test_content() const;
|
|
private:
|
|
bool _internal_has_test_content() const;
|
|
public:
|
|
void clear_test_content();
|
|
bool test_content() const;
|
|
void set_test_content(bool value);
|
|
private:
|
|
bool _internal_test_content() const;
|
|
void _internal_set_test_content(bool value);
|
|
public:
|
|
|
|
// optional bool sd_only_for_l3 = 25 [default = false];
|
|
bool has_sd_only_for_l3() const;
|
|
private:
|
|
bool _internal_has_sd_only_for_l3() const;
|
|
public:
|
|
void clear_sd_only_for_l3();
|
|
bool sd_only_for_l3() const;
|
|
void set_sd_only_for_l3(bool value);
|
|
private:
|
|
bool _internal_sd_only_for_l3() const;
|
|
void _internal_set_sd_only_for_l3(bool value);
|
|
public:
|
|
|
|
// optional .video_widevine.ModularDrmLicenseRequest.CommonTrackTypeSet allowed_track_types = 3 [default = SD_UHD1];
|
|
bool has_allowed_track_types() const;
|
|
private:
|
|
bool _internal_has_allowed_track_types() const;
|
|
public:
|
|
void clear_allowed_track_types();
|
|
::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet allowed_track_types() const;
|
|
void set_allowed_track_types(::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet value);
|
|
private:
|
|
::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet _internal_allowed_track_types() const;
|
|
void _internal_set_allowed_track_types(::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet value);
|
|
public:
|
|
|
|
// optional .video_widevine.PlatformVerificationStatus platform_verification_status = 26 [default = PLATFORM_NO_VERIFICATION];
|
|
bool has_platform_verification_status() const;
|
|
private:
|
|
bool _internal_has_platform_verification_status() const;
|
|
public:
|
|
void clear_platform_verification_status();
|
|
::video_widevine::PlatformVerificationStatus platform_verification_status() const;
|
|
void set_platform_verification_status(::video_widevine::PlatformVerificationStatus value);
|
|
private:
|
|
::video_widevine::PlatformVerificationStatus _internal_platform_verification_status() const;
|
|
void _internal_set_platform_verification_status(::video_widevine::PlatformVerificationStatus value);
|
|
public:
|
|
|
|
// optional bool allow_unverified_platform = 27 [default = true];
|
|
bool has_allow_unverified_platform() const;
|
|
private:
|
|
bool _internal_has_allow_unverified_platform() const;
|
|
public:
|
|
void clear_allow_unverified_platform();
|
|
bool allow_unverified_platform() const;
|
|
void set_allow_unverified_platform(bool value);
|
|
private:
|
|
bool _internal_allow_unverified_platform() const;
|
|
void _internal_set_allow_unverified_platform(bool value);
|
|
public:
|
|
|
|
// optional bool allow_tampered_platform = 28 [default = true];
|
|
bool has_allow_tampered_platform() const;
|
|
private:
|
|
bool _internal_has_allow_tampered_platform() const;
|
|
public:
|
|
void clear_allow_tampered_platform();
|
|
bool allow_tampered_platform() const;
|
|
void set_allow_tampered_platform(bool value);
|
|
private:
|
|
bool _internal_allow_tampered_platform() const;
|
|
void _internal_set_allow_tampered_platform(bool value);
|
|
public:
|
|
|
|
// optional .video_widevine.ModularDrmLicenseRequest.VideoFeatureKeySet video_feature_key_set = 29 [default = VF_EXCLUDED];
|
|
bool has_video_feature_key_set() const;
|
|
private:
|
|
bool _internal_has_video_feature_key_set() const;
|
|
public:
|
|
void clear_video_feature_key_set();
|
|
::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet video_feature_key_set() const;
|
|
void set_video_feature_key_set(::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet value);
|
|
private:
|
|
::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet _internal_video_feature_key_set() const;
|
|
void _internal_set_video_feature_key_set(::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.ModularDrmLicenseRequest)
|
|
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::ModularDrmLicenseRequest_ContentKeySpec > content_key_specs_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr payload_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr replay_data_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr policy_name_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_ip_address_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr user_agent_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_client_token_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_session_token_;
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_content_provider_request_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_provider_request_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_key_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr session_iv_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr requesting_provider_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr client_id_msg_;
|
|
::video_widevine::License_Policy* policy_overrides_;
|
|
::video_widevine::SessionInit* session_init_;
|
|
::video_widevine::ModularDrmLicenseRequest_Verification* verify_;
|
|
::video_widevine::ProxyInfo* proxy_info_;
|
|
int drm_type_;
|
|
bool use_policy_overrides_exclusively_;
|
|
bool allow_test_device_deprecated_;
|
|
bool parse_only_;
|
|
bool test_content_;
|
|
bool sd_only_for_l3_;
|
|
int allowed_track_types_;
|
|
int platform_verification_status_;
|
|
bool allow_unverified_platform_;
|
|
bool allow_tampered_platform_;
|
|
int video_feature_key_set_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class SignedModularDrmRequest PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.SignedModularDrmRequest) */ {
|
|
public:
|
|
inline SignedModularDrmRequest() : SignedModularDrmRequest(nullptr) {}
|
|
virtual ~SignedModularDrmRequest();
|
|
|
|
SignedModularDrmRequest(const SignedModularDrmRequest& from);
|
|
SignedModularDrmRequest(SignedModularDrmRequest&& from) noexcept
|
|
: SignedModularDrmRequest() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline SignedModularDrmRequest& operator=(const SignedModularDrmRequest& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline SignedModularDrmRequest& operator=(SignedModularDrmRequest&& 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 SignedModularDrmRequest& default_instance();
|
|
|
|
static inline const SignedModularDrmRequest* internal_default_instance() {
|
|
return reinterpret_cast<const SignedModularDrmRequest*>(
|
|
&_SignedModularDrmRequest_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
3;
|
|
|
|
friend void swap(SignedModularDrmRequest& a, SignedModularDrmRequest& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(SignedModularDrmRequest* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(SignedModularDrmRequest* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline SignedModularDrmRequest* New() const final {
|
|
return CreateMaybeMessage<SignedModularDrmRequest>(nullptr);
|
|
}
|
|
|
|
SignedModularDrmRequest* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<SignedModularDrmRequest>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const SignedModularDrmRequest& from);
|
|
void MergeFrom(const SignedModularDrmRequest& 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(SignedModularDrmRequest* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.SignedModularDrmRequest";
|
|
}
|
|
protected:
|
|
explicit SignedModularDrmRequest(::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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kRequestFieldNumber = 1,
|
|
kSignatureFieldNumber = 2,
|
|
kSignerFieldNumber = 3,
|
|
kClientIpAddressFieldNumber = 4,
|
|
kUserAgentFieldNumber = 5,
|
|
kContentProviderRequestIdFieldNumber = 6,
|
|
kProviderFieldNumber = 7,
|
|
kHashAlgorithmFieldNumber = 8,
|
|
};
|
|
// 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 content_provider_request_id = 6 [default = "unspecified"];
|
|
bool has_content_provider_request_id() const;
|
|
private:
|
|
bool _internal_has_content_provider_request_id() const;
|
|
public:
|
|
void clear_content_provider_request_id();
|
|
const std::string& content_provider_request_id() const;
|
|
void set_content_provider_request_id(const std::string& value);
|
|
void set_content_provider_request_id(std::string&& value);
|
|
void set_content_provider_request_id(const char* value);
|
|
void set_content_provider_request_id(const char* value, size_t size);
|
|
std::string* mutable_content_provider_request_id();
|
|
std::string* release_content_provider_request_id();
|
|
void set_allocated_content_provider_request_id(std::string* content_provider_request_id);
|
|
private:
|
|
const std::string& _internal_content_provider_request_id() const;
|
|
void _internal_set_content_provider_request_id(const std::string& value);
|
|
std::string* _internal_mutable_content_provider_request_id();
|
|
public:
|
|
|
|
// optional string provider = 7;
|
|
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 = 8;
|
|
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.SignedModularDrmRequest)
|
|
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_;
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::LazyString _i_give_permission_to_break_this_code_default_content_provider_request_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_provider_request_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_;
|
|
int hash_algorithm_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class SignedModularDrmResponse PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.SignedModularDrmResponse) */ {
|
|
public:
|
|
inline SignedModularDrmResponse() : SignedModularDrmResponse(nullptr) {}
|
|
virtual ~SignedModularDrmResponse();
|
|
|
|
SignedModularDrmResponse(const SignedModularDrmResponse& from);
|
|
SignedModularDrmResponse(SignedModularDrmResponse&& from) noexcept
|
|
: SignedModularDrmResponse() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline SignedModularDrmResponse& operator=(const SignedModularDrmResponse& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline SignedModularDrmResponse& operator=(SignedModularDrmResponse&& 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 SignedModularDrmResponse& default_instance();
|
|
|
|
static inline const SignedModularDrmResponse* internal_default_instance() {
|
|
return reinterpret_cast<const SignedModularDrmResponse*>(
|
|
&_SignedModularDrmResponse_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
4;
|
|
|
|
friend void swap(SignedModularDrmResponse& a, SignedModularDrmResponse& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(SignedModularDrmResponse* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(SignedModularDrmResponse* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline SignedModularDrmResponse* New() const final {
|
|
return CreateMaybeMessage<SignedModularDrmResponse>(nullptr);
|
|
}
|
|
|
|
SignedModularDrmResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<SignedModularDrmResponse>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const SignedModularDrmResponse& from);
|
|
void MergeFrom(const SignedModularDrmResponse& 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(SignedModularDrmResponse* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.SignedModularDrmResponse";
|
|
}
|
|
protected:
|
|
explicit SignedModularDrmResponse(::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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kResponseFieldNumber = 1,
|
|
kSignatureFieldNumber = 2,
|
|
};
|
|
// optional bytes response = 1;
|
|
bool has_response() const;
|
|
private:
|
|
bool _internal_has_response() const;
|
|
public:
|
|
void clear_response();
|
|
const std::string& response() const;
|
|
void set_response(const std::string& value);
|
|
void set_response(std::string&& value);
|
|
void set_response(const char* value);
|
|
void set_response(const void* value, size_t size);
|
|
std::string* mutable_response();
|
|
std::string* release_response();
|
|
void set_allocated_response(std::string* response);
|
|
private:
|
|
const std::string& _internal_response() const;
|
|
void _internal_set_response(const std::string& value);
|
|
std::string* _internal_mutable_response();
|
|
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:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.SignedModularDrmResponse)
|
|
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 response_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signature_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class LicenseMetadata PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.LicenseMetadata) */ {
|
|
public:
|
|
inline LicenseMetadata() : LicenseMetadata(nullptr) {}
|
|
virtual ~LicenseMetadata();
|
|
|
|
LicenseMetadata(const LicenseMetadata& from);
|
|
LicenseMetadata(LicenseMetadata&& from) noexcept
|
|
: LicenseMetadata() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline LicenseMetadata& operator=(const LicenseMetadata& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline LicenseMetadata& operator=(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 LicenseMetadata& default_instance();
|
|
|
|
static inline const LicenseMetadata* internal_default_instance() {
|
|
return reinterpret_cast<const LicenseMetadata*>(
|
|
&_LicenseMetadata_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
5;
|
|
|
|
friend void swap(LicenseMetadata& a, LicenseMetadata& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(LicenseMetadata* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(LicenseMetadata* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline LicenseMetadata* New() const final {
|
|
return CreateMaybeMessage<LicenseMetadata>(nullptr);
|
|
}
|
|
|
|
LicenseMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<LicenseMetadata>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const LicenseMetadata& from);
|
|
void MergeFrom(const 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(LicenseMetadata* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.LicenseMetadata";
|
|
}
|
|
protected:
|
|
explicit 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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kAssetNameFieldNumber = 4,
|
|
kAssetIdFieldNumber = 2,
|
|
kDrmStatusCodeFieldNumber = 1,
|
|
};
|
|
// optional string asset_name = 4;
|
|
bool has_asset_name() const;
|
|
private:
|
|
bool _internal_has_asset_name() const;
|
|
public:
|
|
void clear_asset_name();
|
|
const std::string& asset_name() const;
|
|
void set_asset_name(const std::string& value);
|
|
void set_asset_name(std::string&& value);
|
|
void set_asset_name(const char* value);
|
|
void set_asset_name(const char* value, size_t size);
|
|
std::string* mutable_asset_name();
|
|
std::string* release_asset_name();
|
|
void set_allocated_asset_name(std::string* asset_name);
|
|
private:
|
|
const std::string& _internal_asset_name() const;
|
|
void _internal_set_asset_name(const std::string& value);
|
|
std::string* _internal_mutable_asset_name();
|
|
public:
|
|
|
|
// optional uint64 asset_id = 2;
|
|
bool has_asset_id() const;
|
|
private:
|
|
bool _internal_has_asset_id() const;
|
|
public:
|
|
void clear_asset_id();
|
|
::PROTOBUF_NAMESPACE_ID::uint64 asset_id() const;
|
|
void set_asset_id(::PROTOBUF_NAMESPACE_ID::uint64 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint64 _internal_asset_id() const;
|
|
void _internal_set_asset_id(::PROTOBUF_NAMESPACE_ID::uint64 value);
|
|
public:
|
|
|
|
// optional uint32 drm_status_code = 1;
|
|
bool has_drm_status_code() const;
|
|
private:
|
|
bool _internal_has_drm_status_code() const;
|
|
public:
|
|
void clear_drm_status_code();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 drm_status_code() const;
|
|
void set_drm_status_code(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_drm_status_code() const;
|
|
void _internal_set_drm_status_code(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.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::internal::ArenaStringPtr asset_name_;
|
|
::PROTOBUF_NAMESPACE_ID::uint64 asset_id_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 drm_status_code_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class ModularDrmLicenseResponse_LicenseMetadata PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ModularDrmLicenseResponse.LicenseMetadata) */ {
|
|
public:
|
|
inline ModularDrmLicenseResponse_LicenseMetadata() : ModularDrmLicenseResponse_LicenseMetadata(nullptr) {}
|
|
virtual ~ModularDrmLicenseResponse_LicenseMetadata();
|
|
|
|
ModularDrmLicenseResponse_LicenseMetadata(const ModularDrmLicenseResponse_LicenseMetadata& from);
|
|
ModularDrmLicenseResponse_LicenseMetadata(ModularDrmLicenseResponse_LicenseMetadata&& from) noexcept
|
|
: ModularDrmLicenseResponse_LicenseMetadata() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ModularDrmLicenseResponse_LicenseMetadata& operator=(const ModularDrmLicenseResponse_LicenseMetadata& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ModularDrmLicenseResponse_LicenseMetadata& operator=(ModularDrmLicenseResponse_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 ModularDrmLicenseResponse_LicenseMetadata& default_instance();
|
|
|
|
static inline const ModularDrmLicenseResponse_LicenseMetadata* internal_default_instance() {
|
|
return reinterpret_cast<const ModularDrmLicenseResponse_LicenseMetadata*>(
|
|
&_ModularDrmLicenseResponse_LicenseMetadata_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
6;
|
|
|
|
friend void swap(ModularDrmLicenseResponse_LicenseMetadata& a, ModularDrmLicenseResponse_LicenseMetadata& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ModularDrmLicenseResponse_LicenseMetadata* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ModularDrmLicenseResponse_LicenseMetadata* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ModularDrmLicenseResponse_LicenseMetadata* New() const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseResponse_LicenseMetadata>(nullptr);
|
|
}
|
|
|
|
ModularDrmLicenseResponse_LicenseMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseResponse_LicenseMetadata>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ModularDrmLicenseResponse_LicenseMetadata& from);
|
|
void MergeFrom(const ModularDrmLicenseResponse_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(ModularDrmLicenseResponse_LicenseMetadata* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ModularDrmLicenseResponse.LicenseMetadata";
|
|
}
|
|
protected:
|
|
explicit ModularDrmLicenseResponse_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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kContentIdFieldNumber = 1,
|
|
kSessionInitFieldNumber = 7,
|
|
kSrmVersionFieldNumber = 4,
|
|
kSrmIncludedFieldNumber = 5,
|
|
kCanUpdateSrmFieldNumber = 6,
|
|
kLicenseTypeFieldNumber = 2,
|
|
kRequestTypeFieldNumber = 3,
|
|
};
|
|
// 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:
|
|
|
|
// optional .video_widevine.SessionInit session_init = 7;
|
|
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 uint32 srm_version = 4;
|
|
bool has_srm_version() const;
|
|
private:
|
|
bool _internal_has_srm_version() const;
|
|
public:
|
|
void clear_srm_version();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 srm_version() const;
|
|
void set_srm_version(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_srm_version() const;
|
|
void _internal_set_srm_version(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// optional bool srm_included = 5 [default = false];
|
|
bool has_srm_included() const;
|
|
private:
|
|
bool _internal_has_srm_included() const;
|
|
public:
|
|
void clear_srm_included();
|
|
bool srm_included() const;
|
|
void set_srm_included(bool value);
|
|
private:
|
|
bool _internal_srm_included() const;
|
|
void _internal_set_srm_included(bool value);
|
|
public:
|
|
|
|
// optional bool can_update_srm = 6 [default = false];
|
|
bool has_can_update_srm() const;
|
|
private:
|
|
bool _internal_has_can_update_srm() const;
|
|
public:
|
|
void clear_can_update_srm();
|
|
bool can_update_srm() const;
|
|
void set_can_update_srm(bool value);
|
|
private:
|
|
bool _internal_can_update_srm() const;
|
|
void _internal_set_can_update_srm(bool value);
|
|
public:
|
|
|
|
// optional .video_widevine.LicenseType license_type = 2;
|
|
bool has_license_type() const;
|
|
private:
|
|
bool _internal_has_license_type() const;
|
|
public:
|
|
void clear_license_type();
|
|
::video_widevine::LicenseType license_type() const;
|
|
void set_license_type(::video_widevine::LicenseType value);
|
|
private:
|
|
::video_widevine::LicenseType _internal_license_type() const;
|
|
void _internal_set_license_type(::video_widevine::LicenseType value);
|
|
public:
|
|
|
|
// optional .video_widevine.LicenseRequest.RequestType request_type = 3;
|
|
bool has_request_type() const;
|
|
private:
|
|
bool _internal_has_request_type() const;
|
|
public:
|
|
void clear_request_type();
|
|
::video_widevine::LicenseRequest_RequestType request_type() const;
|
|
void set_request_type(::video_widevine::LicenseRequest_RequestType value);
|
|
private:
|
|
::video_widevine::LicenseRequest_RequestType _internal_request_type() const;
|
|
void _internal_set_request_type(::video_widevine::LicenseRequest_RequestType value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.ModularDrmLicenseResponse.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::internal::ArenaStringPtr content_id_;
|
|
::video_widevine::SessionInit* session_init_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 srm_version_;
|
|
bool srm_included_;
|
|
bool can_update_srm_;
|
|
int license_type_;
|
|
int request_type_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class ModularDrmLicenseResponse_Track PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ModularDrmLicenseResponse.Track) */ {
|
|
public:
|
|
inline ModularDrmLicenseResponse_Track() : ModularDrmLicenseResponse_Track(nullptr) {}
|
|
virtual ~ModularDrmLicenseResponse_Track();
|
|
|
|
ModularDrmLicenseResponse_Track(const ModularDrmLicenseResponse_Track& from);
|
|
ModularDrmLicenseResponse_Track(ModularDrmLicenseResponse_Track&& from) noexcept
|
|
: ModularDrmLicenseResponse_Track() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ModularDrmLicenseResponse_Track& operator=(const ModularDrmLicenseResponse_Track& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ModularDrmLicenseResponse_Track& operator=(ModularDrmLicenseResponse_Track&& 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 ModularDrmLicenseResponse_Track& default_instance();
|
|
|
|
static inline const ModularDrmLicenseResponse_Track* internal_default_instance() {
|
|
return reinterpret_cast<const ModularDrmLicenseResponse_Track*>(
|
|
&_ModularDrmLicenseResponse_Track_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
7;
|
|
|
|
friend void swap(ModularDrmLicenseResponse_Track& a, ModularDrmLicenseResponse_Track& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ModularDrmLicenseResponse_Track* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ModularDrmLicenseResponse_Track* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ModularDrmLicenseResponse_Track* New() const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseResponse_Track>(nullptr);
|
|
}
|
|
|
|
ModularDrmLicenseResponse_Track* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseResponse_Track>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ModularDrmLicenseResponse_Track& from);
|
|
void MergeFrom(const ModularDrmLicenseResponse_Track& 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(ModularDrmLicenseResponse_Track* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ModularDrmLicenseResponse.Track";
|
|
}
|
|
protected:
|
|
explicit ModularDrmLicenseResponse_Track(::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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kTypeFieldNumber = 1,
|
|
kKeyIdFieldNumber = 2,
|
|
kVideoFeatureFieldNumber = 3,
|
|
kAudioFeatureFieldNumber = 4,
|
|
};
|
|
// optional string type = 1;
|
|
bool has_type() const;
|
|
private:
|
|
bool _internal_has_type() const;
|
|
public:
|
|
void clear_type();
|
|
const std::string& type() const;
|
|
void set_type(const std::string& value);
|
|
void set_type(std::string&& value);
|
|
void set_type(const char* value);
|
|
void set_type(const char* value, size_t size);
|
|
std::string* mutable_type();
|
|
std::string* release_type();
|
|
void set_allocated_type(std::string* type);
|
|
private:
|
|
const std::string& _internal_type() const;
|
|
void _internal_set_type(const std::string& value);
|
|
std::string* _internal_mutable_type();
|
|
public:
|
|
|
|
// optional bytes key_id = 2;
|
|
bool has_key_id() const;
|
|
private:
|
|
bool _internal_has_key_id() const;
|
|
public:
|
|
void clear_key_id();
|
|
const std::string& key_id() const;
|
|
void set_key_id(const std::string& value);
|
|
void set_key_id(std::string&& value);
|
|
void set_key_id(const char* value);
|
|
void set_key_id(const void* value, size_t size);
|
|
std::string* mutable_key_id();
|
|
std::string* release_key_id();
|
|
void set_allocated_key_id(std::string* key_id);
|
|
private:
|
|
const std::string& _internal_key_id() const;
|
|
void _internal_set_key_id(const std::string& value);
|
|
std::string* _internal_mutable_key_id();
|
|
public:
|
|
|
|
// optional string video_feature = 3;
|
|
bool has_video_feature() const;
|
|
private:
|
|
bool _internal_has_video_feature() const;
|
|
public:
|
|
void clear_video_feature();
|
|
const std::string& video_feature() const;
|
|
void set_video_feature(const std::string& value);
|
|
void set_video_feature(std::string&& value);
|
|
void set_video_feature(const char* value);
|
|
void set_video_feature(const char* value, size_t size);
|
|
std::string* mutable_video_feature();
|
|
std::string* release_video_feature();
|
|
void set_allocated_video_feature(std::string* video_feature);
|
|
private:
|
|
const std::string& _internal_video_feature() const;
|
|
void _internal_set_video_feature(const std::string& value);
|
|
std::string* _internal_mutable_video_feature();
|
|
public:
|
|
|
|
// optional string audio_feature = 4;
|
|
bool has_audio_feature() const;
|
|
private:
|
|
bool _internal_has_audio_feature() const;
|
|
public:
|
|
void clear_audio_feature();
|
|
const std::string& audio_feature() const;
|
|
void set_audio_feature(const std::string& value);
|
|
void set_audio_feature(std::string&& value);
|
|
void set_audio_feature(const char* value);
|
|
void set_audio_feature(const char* value, size_t size);
|
|
std::string* mutable_audio_feature();
|
|
std::string* release_audio_feature();
|
|
void set_allocated_audio_feature(std::string* audio_feature);
|
|
private:
|
|
const std::string& _internal_audio_feature() const;
|
|
void _internal_set_audio_feature(const std::string& value);
|
|
std::string* _internal_mutable_audio_feature();
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.ModularDrmLicenseResponse.Track)
|
|
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 type_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr key_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr video_feature_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr audio_feature_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class ModularDrmLicenseResponse_Pssh PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ModularDrmLicenseResponse.Pssh) */ {
|
|
public:
|
|
inline ModularDrmLicenseResponse_Pssh() : ModularDrmLicenseResponse_Pssh(nullptr) {}
|
|
virtual ~ModularDrmLicenseResponse_Pssh();
|
|
|
|
ModularDrmLicenseResponse_Pssh(const ModularDrmLicenseResponse_Pssh& from);
|
|
ModularDrmLicenseResponse_Pssh(ModularDrmLicenseResponse_Pssh&& from) noexcept
|
|
: ModularDrmLicenseResponse_Pssh() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ModularDrmLicenseResponse_Pssh& operator=(const ModularDrmLicenseResponse_Pssh& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ModularDrmLicenseResponse_Pssh& operator=(ModularDrmLicenseResponse_Pssh&& 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 ModularDrmLicenseResponse_Pssh& default_instance();
|
|
|
|
static inline const ModularDrmLicenseResponse_Pssh* internal_default_instance() {
|
|
return reinterpret_cast<const ModularDrmLicenseResponse_Pssh*>(
|
|
&_ModularDrmLicenseResponse_Pssh_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
8;
|
|
|
|
friend void swap(ModularDrmLicenseResponse_Pssh& a, ModularDrmLicenseResponse_Pssh& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ModularDrmLicenseResponse_Pssh* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ModularDrmLicenseResponse_Pssh* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ModularDrmLicenseResponse_Pssh* New() const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseResponse_Pssh>(nullptr);
|
|
}
|
|
|
|
ModularDrmLicenseResponse_Pssh* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseResponse_Pssh>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ModularDrmLicenseResponse_Pssh& from);
|
|
void MergeFrom(const ModularDrmLicenseResponse_Pssh& 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(ModularDrmLicenseResponse_Pssh* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ModularDrmLicenseResponse.Pssh";
|
|
}
|
|
protected:
|
|
explicit ModularDrmLicenseResponse_Pssh(::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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kKeyIdFieldNumber = 1,
|
|
kContentIdFieldNumber = 2,
|
|
};
|
|
// 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:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.ModularDrmLicenseResponse.Pssh)
|
|
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_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class ModularDrmLicenseResponse_DeviceSecurityProfiles PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles) */ {
|
|
public:
|
|
inline ModularDrmLicenseResponse_DeviceSecurityProfiles() : ModularDrmLicenseResponse_DeviceSecurityProfiles(nullptr) {}
|
|
virtual ~ModularDrmLicenseResponse_DeviceSecurityProfiles();
|
|
|
|
ModularDrmLicenseResponse_DeviceSecurityProfiles(const ModularDrmLicenseResponse_DeviceSecurityProfiles& from);
|
|
ModularDrmLicenseResponse_DeviceSecurityProfiles(ModularDrmLicenseResponse_DeviceSecurityProfiles&& from) noexcept
|
|
: ModularDrmLicenseResponse_DeviceSecurityProfiles() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ModularDrmLicenseResponse_DeviceSecurityProfiles& operator=(const ModularDrmLicenseResponse_DeviceSecurityProfiles& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ModularDrmLicenseResponse_DeviceSecurityProfiles& operator=(ModularDrmLicenseResponse_DeviceSecurityProfiles&& 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 ModularDrmLicenseResponse_DeviceSecurityProfiles& default_instance();
|
|
|
|
static inline const ModularDrmLicenseResponse_DeviceSecurityProfiles* internal_default_instance() {
|
|
return reinterpret_cast<const ModularDrmLicenseResponse_DeviceSecurityProfiles*>(
|
|
&_ModularDrmLicenseResponse_DeviceSecurityProfiles_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
9;
|
|
|
|
friend void swap(ModularDrmLicenseResponse_DeviceSecurityProfiles& a, ModularDrmLicenseResponse_DeviceSecurityProfiles& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ModularDrmLicenseResponse_DeviceSecurityProfiles* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ModularDrmLicenseResponse_DeviceSecurityProfiles* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ModularDrmLicenseResponse_DeviceSecurityProfiles* New() const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseResponse_DeviceSecurityProfiles>(nullptr);
|
|
}
|
|
|
|
ModularDrmLicenseResponse_DeviceSecurityProfiles* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseResponse_DeviceSecurityProfiles>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ModularDrmLicenseResponse_DeviceSecurityProfiles& from);
|
|
void MergeFrom(const ModularDrmLicenseResponse_DeviceSecurityProfiles& 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(ModularDrmLicenseResponse_DeviceSecurityProfiles* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles";
|
|
}
|
|
protected:
|
|
explicit ModularDrmLicenseResponse_DeviceSecurityProfiles(::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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kProfileNameFieldNumber = 1,
|
|
};
|
|
// repeated string profile_name = 1;
|
|
int profile_name_size() const;
|
|
private:
|
|
int _internal_profile_name_size() const;
|
|
public:
|
|
void clear_profile_name();
|
|
const std::string& profile_name(int index) const;
|
|
std::string* mutable_profile_name(int index);
|
|
void set_profile_name(int index, const std::string& value);
|
|
void set_profile_name(int index, std::string&& value);
|
|
void set_profile_name(int index, const char* value);
|
|
void set_profile_name(int index, const char* value, size_t size);
|
|
std::string* add_profile_name();
|
|
void add_profile_name(const std::string& value);
|
|
void add_profile_name(std::string&& value);
|
|
void add_profile_name(const char* value);
|
|
void add_profile_name(const char* value, size_t size);
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& profile_name() const;
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_profile_name();
|
|
private:
|
|
const std::string& _internal_profile_name(int index) const;
|
|
std::string* _internal_add_profile_name();
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles)
|
|
private:
|
|
class _Internal;
|
|
|
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
|
typedef void InternalArenaConstructable_;
|
|
typedef void DestructorSkippable_;
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> profile_name_;
|
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class ModularDrmLicenseResponse PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ModularDrmLicenseResponse) */ {
|
|
public:
|
|
inline ModularDrmLicenseResponse() : ModularDrmLicenseResponse(nullptr) {}
|
|
virtual ~ModularDrmLicenseResponse();
|
|
|
|
ModularDrmLicenseResponse(const ModularDrmLicenseResponse& from);
|
|
ModularDrmLicenseResponse(ModularDrmLicenseResponse&& from) noexcept
|
|
: ModularDrmLicenseResponse() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ModularDrmLicenseResponse& operator=(const ModularDrmLicenseResponse& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ModularDrmLicenseResponse& operator=(ModularDrmLicenseResponse&& 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 ModularDrmLicenseResponse& default_instance();
|
|
|
|
static inline const ModularDrmLicenseResponse* internal_default_instance() {
|
|
return reinterpret_cast<const ModularDrmLicenseResponse*>(
|
|
&_ModularDrmLicenseResponse_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
10;
|
|
|
|
friend void swap(ModularDrmLicenseResponse& a, ModularDrmLicenseResponse& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ModularDrmLicenseResponse* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ModularDrmLicenseResponse* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ModularDrmLicenseResponse* New() const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseResponse>(nullptr);
|
|
}
|
|
|
|
ModularDrmLicenseResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ModularDrmLicenseResponse>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ModularDrmLicenseResponse& from);
|
|
void MergeFrom(const ModularDrmLicenseResponse& 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(ModularDrmLicenseResponse* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ModularDrmLicenseResponse";
|
|
}
|
|
protected:
|
|
explicit ModularDrmLicenseResponse(::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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
typedef ModularDrmLicenseResponse_LicenseMetadata LicenseMetadata;
|
|
typedef ModularDrmLicenseResponse_Track Track;
|
|
typedef ModularDrmLicenseResponse_Pssh Pssh;
|
|
typedef ModularDrmLicenseResponse_DeviceSecurityProfiles DeviceSecurityProfiles;
|
|
|
|
typedef ModularDrmLicenseResponse_Status Status;
|
|
static constexpr Status OK =
|
|
ModularDrmLicenseResponse_Status_OK;
|
|
static constexpr Status SIGNATURE_FAILED =
|
|
ModularDrmLicenseResponse_Status_SIGNATURE_FAILED;
|
|
static constexpr Status INVALID_LICENSE_CHALLENGE =
|
|
ModularDrmLicenseResponse_Status_INVALID_LICENSE_CHALLENGE;
|
|
static constexpr Status INVALID_CONTENT_INFO =
|
|
ModularDrmLicenseResponse_Status_INVALID_CONTENT_INFO;
|
|
static constexpr Status POLICY_UNKNOWN =
|
|
ModularDrmLicenseResponse_Status_POLICY_UNKNOWN;
|
|
static constexpr Status MALFORMED_REQUEST =
|
|
ModularDrmLicenseResponse_Status_MALFORMED_REQUEST;
|
|
static constexpr Status INTERNAL_ERROR =
|
|
ModularDrmLicenseResponse_Status_INTERNAL_ERROR;
|
|
static constexpr Status PROVIDER_MISSING =
|
|
ModularDrmLicenseResponse_Status_PROVIDER_MISSING;
|
|
static constexpr Status INVALID_REQUEST =
|
|
ModularDrmLicenseResponse_Status_INVALID_REQUEST;
|
|
static constexpr Status ACCESS_DENIED =
|
|
ModularDrmLicenseResponse_Status_ACCESS_DENIED;
|
|
static constexpr Status SIGNING_KEY_EXPIRED =
|
|
ModularDrmLicenseResponse_Status_SIGNING_KEY_EXPIRED;
|
|
static constexpr Status EXTERNAL_LICENSE_ERROR =
|
|
ModularDrmLicenseResponse_Status_EXTERNAL_LICENSE_ERROR;
|
|
static inline bool Status_IsValid(int value) {
|
|
return ModularDrmLicenseResponse_Status_IsValid(value);
|
|
}
|
|
static constexpr Status Status_MIN =
|
|
ModularDrmLicenseResponse_Status_Status_MIN;
|
|
static constexpr Status Status_MAX =
|
|
ModularDrmLicenseResponse_Status_Status_MAX;
|
|
static constexpr int Status_ARRAYSIZE =
|
|
ModularDrmLicenseResponse_Status_Status_ARRAYSIZE;
|
|
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
|
Status_descriptor() {
|
|
return ModularDrmLicenseResponse_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 ModularDrmLicenseResponse_Status_Name(enum_t_value);
|
|
}
|
|
static inline bool Status_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
|
Status* value) {
|
|
return ModularDrmLicenseResponse_Status_Parse(name, value);
|
|
}
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kSupportedTracksFieldNumber = 5,
|
|
kClientInfoFieldNumber = 22,
|
|
kStatusMessageFieldNumber = 2,
|
|
kLicenseFieldNumber = 3,
|
|
kMakeFieldNumber = 6,
|
|
kModelFieldNumber = 7,
|
|
kDrmCertSerialNumberFieldNumber = 13,
|
|
kAndroidIdFieldNumber = 16,
|
|
kGroupIdFieldNumber = 17,
|
|
kPlatformFieldNumber = 18,
|
|
kContentOwnerFieldNumber = 26,
|
|
kContentProviderFieldNumber = 27,
|
|
kSocFieldNumber = 34,
|
|
kLicenseMetadataFieldNumber = 4,
|
|
kSessionUsageFieldNumber = 11,
|
|
kSessionStateFieldNumber = 12,
|
|
kPsshDataFieldNumber = 20,
|
|
kDefaultDeviceSecurityProfilesFieldNumber = 32,
|
|
kServiceVersionInfoFieldNumber = 33,
|
|
kStatusFieldNumber = 1,
|
|
kSecurityLevelFieldNumber = 9,
|
|
kInternalStatusFieldNumber = 10,
|
|
kRemoteAttestationVerifiedFieldNumber = 8,
|
|
kIsLiveFieldNumber = 24,
|
|
kSignatureExpirationSecsFieldNumber = 23,
|
|
kClientMaxHdcpVersionFieldNumber = 21,
|
|
kPlatformVerificationStatusFieldNumber = 25,
|
|
kSystemIdFieldNumber = 28,
|
|
kOemCryptoApiVersionFieldNumber = 29,
|
|
kSecurityProfileLevelFieldNumber = 30,
|
|
kResourceRatingTierFieldNumber = 31,
|
|
kMessageTypeFieldNumber = 15,
|
|
};
|
|
// repeated .video_widevine.ModularDrmLicenseResponse.Track supported_tracks = 5;
|
|
int supported_tracks_size() const;
|
|
private:
|
|
int _internal_supported_tracks_size() const;
|
|
public:
|
|
void clear_supported_tracks();
|
|
::video_widevine::ModularDrmLicenseResponse_Track* mutable_supported_tracks(int index);
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ModularDrmLicenseResponse_Track >*
|
|
mutable_supported_tracks();
|
|
private:
|
|
const ::video_widevine::ModularDrmLicenseResponse_Track& _internal_supported_tracks(int index) const;
|
|
::video_widevine::ModularDrmLicenseResponse_Track* _internal_add_supported_tracks();
|
|
public:
|
|
const ::video_widevine::ModularDrmLicenseResponse_Track& supported_tracks(int index) const;
|
|
::video_widevine::ModularDrmLicenseResponse_Track* add_supported_tracks();
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ModularDrmLicenseResponse_Track >&
|
|
supported_tracks() const;
|
|
|
|
// repeated .video_widevine.ClientIdentification.NameValue client_info = 22;
|
|
int client_info_size() const;
|
|
private:
|
|
int _internal_client_info_size() const;
|
|
public:
|
|
void clear_client_info();
|
|
::video_widevine::ClientIdentification_NameValue* mutable_client_info(int index);
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ClientIdentification_NameValue >*
|
|
mutable_client_info();
|
|
private:
|
|
const ::video_widevine::ClientIdentification_NameValue& _internal_client_info(int index) const;
|
|
::video_widevine::ClientIdentification_NameValue* _internal_add_client_info();
|
|
public:
|
|
const ::video_widevine::ClientIdentification_NameValue& client_info(int index) const;
|
|
::video_widevine::ClientIdentification_NameValue* add_client_info();
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ClientIdentification_NameValue >&
|
|
client_info() const;
|
|
|
|
// 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 make = 6;
|
|
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 = 7;
|
|
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 = 13;
|
|
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 bytes android_id = 16;
|
|
bool has_android_id() const;
|
|
private:
|
|
bool _internal_has_android_id() const;
|
|
public:
|
|
void clear_android_id();
|
|
const std::string& android_id() const;
|
|
void set_android_id(const std::string& value);
|
|
void set_android_id(std::string&& value);
|
|
void set_android_id(const char* value);
|
|
void set_android_id(const void* value, size_t size);
|
|
std::string* mutable_android_id();
|
|
std::string* release_android_id();
|
|
void set_allocated_android_id(std::string* android_id);
|
|
private:
|
|
const std::string& _internal_android_id() const;
|
|
void _internal_set_android_id(const std::string& value);
|
|
std::string* _internal_mutable_android_id();
|
|
public:
|
|
|
|
// optional bytes group_id = 17;
|
|
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:
|
|
|
|
// optional string platform = 18;
|
|
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 string content_owner = 26;
|
|
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 = 27;
|
|
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 string soc = 34;
|
|
bool has_soc() const;
|
|
private:
|
|
bool _internal_has_soc() const;
|
|
public:
|
|
void clear_soc();
|
|
const std::string& soc() const;
|
|
void set_soc(const std::string& value);
|
|
void set_soc(std::string&& value);
|
|
void set_soc(const char* value);
|
|
void set_soc(const char* value, size_t size);
|
|
std::string* mutable_soc();
|
|
std::string* release_soc();
|
|
void set_allocated_soc(std::string* soc);
|
|
private:
|
|
const std::string& _internal_soc() const;
|
|
void _internal_set_soc(const std::string& value);
|
|
std::string* _internal_mutable_soc();
|
|
public:
|
|
|
|
// optional .video_widevine.ModularDrmLicenseResponse.LicenseMetadata license_metadata = 4;
|
|
bool has_license_metadata() const;
|
|
private:
|
|
bool _internal_has_license_metadata() const;
|
|
public:
|
|
void clear_license_metadata();
|
|
const ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata& license_metadata() const;
|
|
::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* release_license_metadata();
|
|
::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* mutable_license_metadata();
|
|
void set_allocated_license_metadata(::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* license_metadata);
|
|
private:
|
|
const ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata& _internal_license_metadata() const;
|
|
::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* _internal_mutable_license_metadata();
|
|
public:
|
|
void unsafe_arena_set_allocated_license_metadata(
|
|
::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* license_metadata);
|
|
::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* unsafe_arena_release_license_metadata();
|
|
|
|
// optional .video_widevine.SessionUsage session_usage = 11;
|
|
bool has_session_usage() const;
|
|
private:
|
|
bool _internal_has_session_usage() const;
|
|
public:
|
|
void clear_session_usage();
|
|
const ::video_widevine::SessionUsage& session_usage() const;
|
|
::video_widevine::SessionUsage* release_session_usage();
|
|
::video_widevine::SessionUsage* mutable_session_usage();
|
|
void set_allocated_session_usage(::video_widevine::SessionUsage* session_usage);
|
|
private:
|
|
const ::video_widevine::SessionUsage& _internal_session_usage() const;
|
|
::video_widevine::SessionUsage* _internal_mutable_session_usage();
|
|
public:
|
|
void unsafe_arena_set_allocated_session_usage(
|
|
::video_widevine::SessionUsage* session_usage);
|
|
::video_widevine::SessionUsage* unsafe_arena_release_session_usage();
|
|
|
|
// optional .video_widevine.SessionState session_state = 12;
|
|
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.ModularDrmLicenseResponse.Pssh pssh_data = 20;
|
|
bool has_pssh_data() const;
|
|
private:
|
|
bool _internal_has_pssh_data() const;
|
|
public:
|
|
void clear_pssh_data();
|
|
const ::video_widevine::ModularDrmLicenseResponse_Pssh& pssh_data() const;
|
|
::video_widevine::ModularDrmLicenseResponse_Pssh* release_pssh_data();
|
|
::video_widevine::ModularDrmLicenseResponse_Pssh* mutable_pssh_data();
|
|
void set_allocated_pssh_data(::video_widevine::ModularDrmLicenseResponse_Pssh* pssh_data);
|
|
private:
|
|
const ::video_widevine::ModularDrmLicenseResponse_Pssh& _internal_pssh_data() const;
|
|
::video_widevine::ModularDrmLicenseResponse_Pssh* _internal_mutable_pssh_data();
|
|
public:
|
|
void unsafe_arena_set_allocated_pssh_data(
|
|
::video_widevine::ModularDrmLicenseResponse_Pssh* pssh_data);
|
|
::video_widevine::ModularDrmLicenseResponse_Pssh* unsafe_arena_release_pssh_data();
|
|
|
|
// optional .video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles default_device_security_profiles = 32;
|
|
bool has_default_device_security_profiles() const;
|
|
private:
|
|
bool _internal_has_default_device_security_profiles() const;
|
|
public:
|
|
void clear_default_device_security_profiles();
|
|
const ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles& default_device_security_profiles() const;
|
|
::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* release_default_device_security_profiles();
|
|
::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* mutable_default_device_security_profiles();
|
|
void set_allocated_default_device_security_profiles(::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* default_device_security_profiles);
|
|
private:
|
|
const ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles& _internal_default_device_security_profiles() const;
|
|
::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* _internal_mutable_default_device_security_profiles();
|
|
public:
|
|
void unsafe_arena_set_allocated_default_device_security_profiles(
|
|
::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* default_device_security_profiles);
|
|
::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* unsafe_arena_release_default_device_security_profiles();
|
|
|
|
// optional .video_widevine.VersionInfo service_version_info = 33;
|
|
bool has_service_version_info() const;
|
|
private:
|
|
bool _internal_has_service_version_info() const;
|
|
public:
|
|
void clear_service_version_info();
|
|
const ::video_widevine::VersionInfo& service_version_info() const;
|
|
::video_widevine::VersionInfo* release_service_version_info();
|
|
::video_widevine::VersionInfo* mutable_service_version_info();
|
|
void set_allocated_service_version_info(::video_widevine::VersionInfo* service_version_info);
|
|
private:
|
|
const ::video_widevine::VersionInfo& _internal_service_version_info() const;
|
|
::video_widevine::VersionInfo* _internal_mutable_service_version_info();
|
|
public:
|
|
void unsafe_arena_set_allocated_service_version_info(
|
|
::video_widevine::VersionInfo* service_version_info);
|
|
::video_widevine::VersionInfo* unsafe_arena_release_service_version_info();
|
|
|
|
// optional .video_widevine.ModularDrmLicenseResponse.Status status = 1;
|
|
bool has_status() const;
|
|
private:
|
|
bool _internal_has_status() const;
|
|
public:
|
|
void clear_status();
|
|
::video_widevine::ModularDrmLicenseResponse_Status status() const;
|
|
void set_status(::video_widevine::ModularDrmLicenseResponse_Status value);
|
|
private:
|
|
::video_widevine::ModularDrmLicenseResponse_Status _internal_status() const;
|
|
void _internal_set_status(::video_widevine::ModularDrmLicenseResponse_Status value);
|
|
public:
|
|
|
|
// optional uint32 security_level = 9;
|
|
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 internal_status = 10;
|
|
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 bool remote_attestation_verified = 8;
|
|
bool has_remote_attestation_verified() const;
|
|
private:
|
|
bool _internal_has_remote_attestation_verified() const;
|
|
public:
|
|
void clear_remote_attestation_verified();
|
|
bool remote_attestation_verified() const;
|
|
void set_remote_attestation_verified(bool value);
|
|
private:
|
|
bool _internal_remote_attestation_verified() const;
|
|
void _internal_set_remote_attestation_verified(bool value);
|
|
public:
|
|
|
|
// optional bool is_live = 24 [default = false];
|
|
bool has_is_live() const;
|
|
private:
|
|
bool _internal_has_is_live() const;
|
|
public:
|
|
void clear_is_live();
|
|
bool is_live() const;
|
|
void set_is_live(bool value);
|
|
private:
|
|
bool _internal_is_live() const;
|
|
void _internal_set_is_live(bool value);
|
|
public:
|
|
|
|
// optional int64 signature_expiration_secs = 23;
|
|
bool has_signature_expiration_secs() const;
|
|
private:
|
|
bool _internal_has_signature_expiration_secs() const;
|
|
public:
|
|
void clear_signature_expiration_secs();
|
|
::PROTOBUF_NAMESPACE_ID::int64 signature_expiration_secs() const;
|
|
void set_signature_expiration_secs(::PROTOBUF_NAMESPACE_ID::int64 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::int64 _internal_signature_expiration_secs() const;
|
|
void _internal_set_signature_expiration_secs(::PROTOBUF_NAMESPACE_ID::int64 value);
|
|
public:
|
|
|
|
// optional .video_widevine.ClientIdentification.ClientCapabilities.HdcpVersion client_max_hdcp_version = 21;
|
|
bool has_client_max_hdcp_version() const;
|
|
private:
|
|
bool _internal_has_client_max_hdcp_version() const;
|
|
public:
|
|
void clear_client_max_hdcp_version();
|
|
::video_widevine::ClientIdentification_ClientCapabilities_HdcpVersion client_max_hdcp_version() const;
|
|
void set_client_max_hdcp_version(::video_widevine::ClientIdentification_ClientCapabilities_HdcpVersion value);
|
|
private:
|
|
::video_widevine::ClientIdentification_ClientCapabilities_HdcpVersion _internal_client_max_hdcp_version() const;
|
|
void _internal_set_client_max_hdcp_version(::video_widevine::ClientIdentification_ClientCapabilities_HdcpVersion value);
|
|
public:
|
|
|
|
// optional .video_widevine.PlatformVerificationStatus platform_verification_status = 25 [default = PLATFORM_UNVERIFIED];
|
|
bool has_platform_verification_status() const;
|
|
private:
|
|
bool _internal_has_platform_verification_status() const;
|
|
public:
|
|
void clear_platform_verification_status();
|
|
::video_widevine::PlatformVerificationStatus platform_verification_status() const;
|
|
void set_platform_verification_status(::video_widevine::PlatformVerificationStatus value);
|
|
private:
|
|
::video_widevine::PlatformVerificationStatus _internal_platform_verification_status() const;
|
|
void _internal_set_platform_verification_status(::video_widevine::PlatformVerificationStatus value);
|
|
public:
|
|
|
|
// optional uint32 system_id = 28;
|
|
bool has_system_id() const;
|
|
private:
|
|
bool _internal_has_system_id() const;
|
|
public:
|
|
void clear_system_id();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 system_id() const;
|
|
void set_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_system_id() const;
|
|
void _internal_set_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// optional uint32 oem_crypto_api_version = 29;
|
|
bool has_oem_crypto_api_version() const;
|
|
private:
|
|
bool _internal_has_oem_crypto_api_version() const;
|
|
public:
|
|
void clear_oem_crypto_api_version();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 oem_crypto_api_version() const;
|
|
void set_oem_crypto_api_version(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_oem_crypto_api_version() const;
|
|
void _internal_set_oem_crypto_api_version(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// optional .video_widevine.SecurityProfileLevel security_profile_level = 30 [deprecated = true];
|
|
PROTOBUF_DEPRECATED bool has_security_profile_level() const;
|
|
private:
|
|
bool _internal_has_security_profile_level() const;
|
|
public:
|
|
PROTOBUF_DEPRECATED void clear_security_profile_level();
|
|
PROTOBUF_DEPRECATED ::video_widevine::SecurityProfileLevel security_profile_level() const;
|
|
PROTOBUF_DEPRECATED void set_security_profile_level(::video_widevine::SecurityProfileLevel value);
|
|
private:
|
|
::video_widevine::SecurityProfileLevel _internal_security_profile_level() const;
|
|
void _internal_set_security_profile_level(::video_widevine::SecurityProfileLevel value);
|
|
public:
|
|
|
|
// optional uint32 resource_rating_tier = 31;
|
|
bool has_resource_rating_tier() const;
|
|
private:
|
|
bool _internal_has_resource_rating_tier() const;
|
|
public:
|
|
void clear_resource_rating_tier();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 resource_rating_tier() const;
|
|
void set_resource_rating_tier(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_resource_rating_tier() const;
|
|
void _internal_set_resource_rating_tier(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// optional .video_widevine.SignedMessage.MessageType message_type = 15;
|
|
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.ModularDrmLicenseResponse)
|
|
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::ModularDrmLicenseResponse_Track > supported_tracks_;
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ClientIdentification_NameValue > client_info_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr status_message_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr license_;
|
|
::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 android_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr group_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr platform_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_owner_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr content_provider_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr soc_;
|
|
::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* license_metadata_;
|
|
::video_widevine::SessionUsage* session_usage_;
|
|
::video_widevine::SessionState* session_state_;
|
|
::video_widevine::ModularDrmLicenseResponse_Pssh* pssh_data_;
|
|
::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* default_device_security_profiles_;
|
|
::video_widevine::VersionInfo* service_version_info_;
|
|
int status_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 security_level_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 internal_status_;
|
|
bool remote_attestation_verified_;
|
|
bool is_live_;
|
|
::PROTOBUF_NAMESPACE_ID::int64 signature_expiration_secs_;
|
|
int client_max_hdcp_version_;
|
|
int platform_verification_status_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 system_id_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 oem_crypto_api_version_;
|
|
int security_profile_level_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 resource_rating_tier_;
|
|
int message_type_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class LicenseResponse PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.LicenseResponse) */ {
|
|
public:
|
|
inline LicenseResponse() : LicenseResponse(nullptr) {}
|
|
virtual ~LicenseResponse();
|
|
|
|
LicenseResponse(const LicenseResponse& from);
|
|
LicenseResponse(LicenseResponse&& from) noexcept
|
|
: LicenseResponse() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline LicenseResponse& operator=(const LicenseResponse& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline LicenseResponse& operator=(LicenseResponse&& 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 LicenseResponse& default_instance();
|
|
|
|
static inline const LicenseResponse* internal_default_instance() {
|
|
return reinterpret_cast<const LicenseResponse*>(
|
|
&_LicenseResponse_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
11;
|
|
|
|
friend void swap(LicenseResponse& a, LicenseResponse& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(LicenseResponse* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(LicenseResponse* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline LicenseResponse* New() const final {
|
|
return CreateMaybeMessage<LicenseResponse>(nullptr);
|
|
}
|
|
|
|
LicenseResponse* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<LicenseResponse>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const LicenseResponse& from);
|
|
void MergeFrom(const LicenseResponse& 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(LicenseResponse* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.LicenseResponse";
|
|
}
|
|
protected:
|
|
explicit LicenseResponse(::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_2flicense_5fservices_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fservices_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kLicenseMetadataFieldNumber = 3,
|
|
kLicensesFieldNumber = 2,
|
|
kMakeFieldNumber = 4,
|
|
kModelFieldNumber = 5,
|
|
kPlatformFieldNumber = 6,
|
|
};
|
|
// repeated .video_widevine.LicenseMetadata license_metadata = 3;
|
|
int license_metadata_size() const;
|
|
private:
|
|
int _internal_license_metadata_size() const;
|
|
public:
|
|
void clear_license_metadata();
|
|
::video_widevine::LicenseMetadata* mutable_license_metadata(int index);
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::LicenseMetadata >*
|
|
mutable_license_metadata();
|
|
private:
|
|
const ::video_widevine::LicenseMetadata& _internal_license_metadata(int index) const;
|
|
::video_widevine::LicenseMetadata* _internal_add_license_metadata();
|
|
public:
|
|
const ::video_widevine::LicenseMetadata& license_metadata(int index) const;
|
|
::video_widevine::LicenseMetadata* add_license_metadata();
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::LicenseMetadata >&
|
|
license_metadata() const;
|
|
|
|
// optional string licenses = 2;
|
|
bool has_licenses() const;
|
|
private:
|
|
bool _internal_has_licenses() const;
|
|
public:
|
|
void clear_licenses();
|
|
const std::string& licenses() const;
|
|
void set_licenses(const std::string& value);
|
|
void set_licenses(std::string&& value);
|
|
void set_licenses(const char* value);
|
|
void set_licenses(const char* value, size_t size);
|
|
std::string* mutable_licenses();
|
|
std::string* release_licenses();
|
|
void set_allocated_licenses(std::string* licenses);
|
|
private:
|
|
const std::string& _internal_licenses() const;
|
|
void _internal_set_licenses(const std::string& value);
|
|
std::string* _internal_mutable_licenses();
|
|
public:
|
|
|
|
// optional string make = 4;
|
|
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 = 5;
|
|
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 string platform = 6;
|
|
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:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.LicenseResponse)
|
|
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::LicenseMetadata > license_metadata_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr licenses_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr make_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr model_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr platform_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fservices_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// ModularDrmLicenseRequest_ContentKeySpec
|
|
|
|
// optional string track_type = 1;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_track_type() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_track_type() const {
|
|
return _internal_has_track_type();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::clear_track_type() {
|
|
track_type_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::track_type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.track_type)
|
|
return _internal_track_type();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_track_type(const std::string& value) {
|
|
_internal_set_track_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.track_type)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::mutable_track_type() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.track_type)
|
|
return _internal_mutable_track_type();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::_internal_track_type() const {
|
|
return track_type_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest_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 ModularDrmLicenseRequest_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.ModularDrmLicenseRequest.ContentKeySpec.track_type)
|
|
}
|
|
inline void ModularDrmLicenseRequest_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.ModularDrmLicenseRequest.ContentKeySpec.track_type)
|
|
}
|
|
inline void ModularDrmLicenseRequest_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.ModularDrmLicenseRequest.ContentKeySpec.track_type)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::_internal_mutable_track_type() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return track_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::release_track_type() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.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 ModularDrmLicenseRequest_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.ModularDrmLicenseRequest.ContentKeySpec.track_type)
|
|
}
|
|
|
|
// optional .video_widevine.License.KeyContainer.SecurityLevel security_level = 2;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_security_level() const {
|
|
bool value = (_has_bits_[0] & 0x00000400u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_security_level() const {
|
|
return _internal_has_security_level();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::clear_security_level() {
|
|
security_level_ = 1;
|
|
_has_bits_[0] &= ~0x00000400u;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_SecurityLevel ModularDrmLicenseRequest_ContentKeySpec::_internal_security_level() const {
|
|
return static_cast< ::video_widevine::License_KeyContainer_SecurityLevel >(security_level_);
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_SecurityLevel ModularDrmLicenseRequest_ContentKeySpec::security_level() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.security_level)
|
|
return _internal_security_level();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::_internal_set_security_level(::video_widevine::License_KeyContainer_SecurityLevel value) {
|
|
assert(::video_widevine::License_KeyContainer_SecurityLevel_IsValid(value));
|
|
_has_bits_[0] |= 0x00000400u;
|
|
security_level_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_security_level(::video_widevine::License_KeyContainer_SecurityLevel value) {
|
|
_internal_set_security_level(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.security_level)
|
|
}
|
|
|
|
// optional .video_widevine.License.KeyContainer.OutputProtection required_output_protection = 3;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_required_output_protection() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
PROTOBUF_ASSUME(!value || required_output_protection_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_required_output_protection() const {
|
|
return _internal_has_required_output_protection();
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_OutputProtection& ModularDrmLicenseRequest_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& ModularDrmLicenseRequest_ContentKeySpec::required_output_protection() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.required_output_protection)
|
|
return _internal_required_output_protection();
|
|
}
|
|
inline void ModularDrmLicenseRequest_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] |= 0x00000040u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.required_output_protection)
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* ModularDrmLicenseRequest_ContentKeySpec::release_required_output_protection() {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
::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* ModularDrmLicenseRequest_ContentKeySpec::unsafe_arena_release_required_output_protection() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.required_output_protection)
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
::video_widevine::License_KeyContainer_OutputProtection* temp = required_output_protection_;
|
|
required_output_protection_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* ModularDrmLicenseRequest_ContentKeySpec::_internal_mutable_required_output_protection() {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
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* ModularDrmLicenseRequest_ContentKeySpec::mutable_required_output_protection() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.required_output_protection)
|
|
return _internal_mutable_required_output_protection();
|
|
}
|
|
inline void ModularDrmLicenseRequest_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] |= 0x00000040u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
required_output_protection_ = required_output_protection;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.required_output_protection)
|
|
}
|
|
|
|
// optional .video_widevine.License.KeyContainer.OutputProtection requested_output_protection = 4;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_requested_output_protection() const {
|
|
bool value = (_has_bits_[0] & 0x00000080u) != 0;
|
|
PROTOBUF_ASSUME(!value || requested_output_protection_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_requested_output_protection() const {
|
|
return _internal_has_requested_output_protection();
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_OutputProtection& ModularDrmLicenseRequest_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& ModularDrmLicenseRequest_ContentKeySpec::requested_output_protection() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.requested_output_protection)
|
|
return _internal_requested_output_protection();
|
|
}
|
|
inline void ModularDrmLicenseRequest_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] |= 0x00000080u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.requested_output_protection)
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* ModularDrmLicenseRequest_ContentKeySpec::release_requested_output_protection() {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
::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* ModularDrmLicenseRequest_ContentKeySpec::unsafe_arena_release_requested_output_protection() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.requested_output_protection)
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
::video_widevine::License_KeyContainer_OutputProtection* temp = requested_output_protection_;
|
|
requested_output_protection_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OutputProtection* ModularDrmLicenseRequest_ContentKeySpec::_internal_mutable_requested_output_protection() {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
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* ModularDrmLicenseRequest_ContentKeySpec::mutable_requested_output_protection() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.requested_output_protection)
|
|
return _internal_mutable_requested_output_protection();
|
|
}
|
|
inline void ModularDrmLicenseRequest_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] |= 0x00000080u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
requested_output_protection_ = requested_output_protection;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.requested_output_protection)
|
|
}
|
|
|
|
// optional bytes key_id = 5;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_key_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_key_id() const {
|
|
return _internal_has_key_id();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::clear_key_id() {
|
|
key_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::key_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_id)
|
|
return _internal_key_id();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_key_id(const std::string& value) {
|
|
_internal_set_key_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::mutable_key_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_id)
|
|
return _internal_mutable_key_id();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::_internal_key_id() const {
|
|
return key_id_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::_internal_set_key_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
key_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_key_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
key_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_id)
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_key_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
key_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_id)
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_key_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
key_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.ModularDrmLicenseRequest.ContentKeySpec.key_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::_internal_mutable_key_id() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return key_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::release_key_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_id)
|
|
if (!_internal_has_key_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return key_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_allocated_key_id(std::string* key_id) {
|
|
if (key_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
key_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_id)
|
|
}
|
|
|
|
// optional bytes key = 6;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_key() const {
|
|
return _internal_has_key();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::clear_key() {
|
|
key_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key)
|
|
return _internal_key();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_key(const std::string& value) {
|
|
_internal_set_key(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::mutable_key() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key)
|
|
return _internal_mutable_key();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::_internal_key() const {
|
|
return key_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::_internal_set_key(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_key(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
key_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key)
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_key(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000004u;
|
|
key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key)
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_key(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
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.ModularDrmLicenseRequest.ContentKeySpec.key)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::_internal_mutable_key() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::release_key() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key)
|
|
if (!_internal_has_key()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_allocated_key(std::string* key) {
|
|
if (key != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key)
|
|
}
|
|
|
|
// optional bytes iv = 7;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_iv() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_iv() const {
|
|
return _internal_has_iv();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::clear_iv() {
|
|
iv_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::iv() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.iv)
|
|
return _internal_iv();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_iv(const std::string& value) {
|
|
_internal_set_iv(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.iv)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::mutable_iv() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.iv)
|
|
return _internal_mutable_iv();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::_internal_iv() const {
|
|
return iv_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::_internal_set_iv(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_iv(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
iv_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.iv)
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_iv(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000008u;
|
|
iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.iv)
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_iv(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
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.ModularDrmLicenseRequest.ContentKeySpec.iv)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::_internal_mutable_iv() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return iv_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::release_iv() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.iv)
|
|
if (!_internal_has_iv()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
return iv_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_allocated_iv(std::string* iv) {
|
|
if (iv != nullptr) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
iv_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), iv,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.iv)
|
|
}
|
|
|
|
// optional .video_widevine.License.KeyContainer.KeyType key_type = 8;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_key_type() const {
|
|
bool value = (_has_bits_[0] & 0x00000800u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_key_type() const {
|
|
return _internal_has_key_type();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::clear_key_type() {
|
|
key_type_ = 1;
|
|
_has_bits_[0] &= ~0x00000800u;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_KeyType ModularDrmLicenseRequest_ContentKeySpec::_internal_key_type() const {
|
|
return static_cast< ::video_widevine::License_KeyContainer_KeyType >(key_type_);
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_KeyType ModularDrmLicenseRequest_ContentKeySpec::key_type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_type)
|
|
return _internal_key_type();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::_internal_set_key_type(::video_widevine::License_KeyContainer_KeyType value) {
|
|
assert(::video_widevine::License_KeyContainer_KeyType_IsValid(value));
|
|
_has_bits_[0] |= 0x00000800u;
|
|
key_type_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_key_type(::video_widevine::License_KeyContainer_KeyType value) {
|
|
_internal_set_key_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_type)
|
|
}
|
|
|
|
// optional .video_widevine.License.KeyContainer.OperatorSessionKeyPermissions operator_session_key_permissions = 9;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_operator_session_key_permissions() const {
|
|
bool value = (_has_bits_[0] & 0x00000100u) != 0;
|
|
PROTOBUF_ASSUME(!value || operator_session_key_permissions_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_operator_session_key_permissions() const {
|
|
return _internal_has_operator_session_key_permissions();
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions& ModularDrmLicenseRequest_ContentKeySpec::_internal_operator_session_key_permissions() const {
|
|
const ::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* p = operator_session_key_permissions_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions&>(
|
|
::video_widevine::_License_KeyContainer_OperatorSessionKeyPermissions_default_instance_);
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions& ModularDrmLicenseRequest_ContentKeySpec::operator_session_key_permissions() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.operator_session_key_permissions)
|
|
return _internal_operator_session_key_permissions();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::unsafe_arena_set_allocated_operator_session_key_permissions(
|
|
::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* operator_session_key_permissions) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(operator_session_key_permissions_);
|
|
}
|
|
operator_session_key_permissions_ = operator_session_key_permissions;
|
|
if (operator_session_key_permissions) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.operator_session_key_permissions)
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* ModularDrmLicenseRequest_ContentKeySpec::release_operator_session_key_permissions() {
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* temp = operator_session_key_permissions_;
|
|
operator_session_key_permissions_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* ModularDrmLicenseRequest_ContentKeySpec::unsafe_arena_release_operator_session_key_permissions() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.operator_session_key_permissions)
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* temp = operator_session_key_permissions_;
|
|
operator_session_key_permissions_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* ModularDrmLicenseRequest_ContentKeySpec::_internal_mutable_operator_session_key_permissions() {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
if (operator_session_key_permissions_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions>(GetArena());
|
|
operator_session_key_permissions_ = p;
|
|
}
|
|
return operator_session_key_permissions_;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* ModularDrmLicenseRequest_ContentKeySpec::mutable_operator_session_key_permissions() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.operator_session_key_permissions)
|
|
return _internal_mutable_operator_session_key_permissions();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_allocated_operator_session_key_permissions(::video_widevine::License_KeyContainer_OperatorSessionKeyPermissions* operator_session_key_permissions) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(operator_session_key_permissions_);
|
|
}
|
|
if (operator_session_key_permissions) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(operator_session_key_permissions)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
operator_session_key_permissions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, operator_session_key_permissions, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000100u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
operator_session_key_permissions_ = operator_session_key_permissions;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.operator_session_key_permissions)
|
|
}
|
|
|
|
// repeated .video_widevine.License.KeyContainer.VideoResolutionConstraint video_resolution_constraints = 10;
|
|
inline int ModularDrmLicenseRequest_ContentKeySpec::_internal_video_resolution_constraints_size() const {
|
|
return video_resolution_constraints_.size();
|
|
}
|
|
inline int ModularDrmLicenseRequest_ContentKeySpec::video_resolution_constraints_size() const {
|
|
return _internal_video_resolution_constraints_size();
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_VideoResolutionConstraint* ModularDrmLicenseRequest_ContentKeySpec::mutable_video_resolution_constraints(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_resolution_constraints)
|
|
return video_resolution_constraints_.Mutable(index);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::License_KeyContainer_VideoResolutionConstraint >*
|
|
ModularDrmLicenseRequest_ContentKeySpec::mutable_video_resolution_constraints() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_resolution_constraints)
|
|
return &video_resolution_constraints_;
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_VideoResolutionConstraint& ModularDrmLicenseRequest_ContentKeySpec::_internal_video_resolution_constraints(int index) const {
|
|
return video_resolution_constraints_.Get(index);
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_VideoResolutionConstraint& ModularDrmLicenseRequest_ContentKeySpec::video_resolution_constraints(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_resolution_constraints)
|
|
return _internal_video_resolution_constraints(index);
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_VideoResolutionConstraint* ModularDrmLicenseRequest_ContentKeySpec::_internal_add_video_resolution_constraints() {
|
|
return video_resolution_constraints_.Add();
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_VideoResolutionConstraint* ModularDrmLicenseRequest_ContentKeySpec::add_video_resolution_constraints() {
|
|
// @@protoc_insertion_point(field_add:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_resolution_constraints)
|
|
return _internal_add_video_resolution_constraints();
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::License_KeyContainer_VideoResolutionConstraint >&
|
|
ModularDrmLicenseRequest_ContentKeySpec::video_resolution_constraints() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_resolution_constraints)
|
|
return video_resolution_constraints_;
|
|
}
|
|
|
|
// optional string video_feature = 11;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_video_feature() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_video_feature() const {
|
|
return _internal_has_video_feature();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::clear_video_feature() {
|
|
video_feature_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::video_feature() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_feature)
|
|
return _internal_video_feature();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_video_feature(const std::string& value) {
|
|
_internal_set_video_feature(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_feature)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::mutable_video_feature() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_feature)
|
|
return _internal_mutable_video_feature();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::_internal_video_feature() const {
|
|
return video_feature_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::_internal_set_video_feature(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
video_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_video_feature(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
video_feature_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_feature)
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_video_feature(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000010u;
|
|
video_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_feature)
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_video_feature(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
video_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_feature)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::_internal_mutable_video_feature() {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
return video_feature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::release_video_feature() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_feature)
|
|
if (!_internal_has_video_feature()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
return video_feature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_allocated_video_feature(std::string* video_feature) {
|
|
if (video_feature != nullptr) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
video_feature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), video_feature,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.video_feature)
|
|
}
|
|
|
|
// optional .video_widevine.License.KeyContainer.KeyCategorySpec key_category_spec = 12;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_key_category_spec() const {
|
|
bool value = (_has_bits_[0] & 0x00000200u) != 0;
|
|
PROTOBUF_ASSUME(!value || key_category_spec_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_key_category_spec() const {
|
|
return _internal_has_key_category_spec();
|
|
}
|
|
inline const ::video_widevine::License_KeyContainer_KeyCategorySpec& ModularDrmLicenseRequest_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& ModularDrmLicenseRequest_ContentKeySpec::key_category_spec() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_category_spec)
|
|
return _internal_key_category_spec();
|
|
}
|
|
inline void ModularDrmLicenseRequest_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] |= 0x00000200u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_category_spec)
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_KeyCategorySpec* ModularDrmLicenseRequest_ContentKeySpec::release_key_category_spec() {
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
::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* ModularDrmLicenseRequest_ContentKeySpec::unsafe_arena_release_key_category_spec() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_category_spec)
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
::video_widevine::License_KeyContainer_KeyCategorySpec* temp = key_category_spec_;
|
|
key_category_spec_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_KeyContainer_KeyCategorySpec* ModularDrmLicenseRequest_ContentKeySpec::_internal_mutable_key_category_spec() {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
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* ModularDrmLicenseRequest_ContentKeySpec::mutable_key_category_spec() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_category_spec)
|
|
return _internal_mutable_key_category_spec();
|
|
}
|
|
inline void ModularDrmLicenseRequest_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] |= 0x00000200u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
}
|
|
key_category_spec_ = key_category_spec;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.key_category_spec)
|
|
}
|
|
|
|
// optional string audio_feature = 13;
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::_internal_has_audio_feature() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_ContentKeySpec::has_audio_feature() const {
|
|
return _internal_has_audio_feature();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::clear_audio_feature() {
|
|
audio_feature_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::audio_feature() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.audio_feature)
|
|
return _internal_audio_feature();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_audio_feature(const std::string& value) {
|
|
_internal_set_audio_feature(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.audio_feature)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::mutable_audio_feature() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.audio_feature)
|
|
return _internal_mutable_audio_feature();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest_ContentKeySpec::_internal_audio_feature() const {
|
|
return audio_feature_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::_internal_set_audio_feature(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
audio_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_audio_feature(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
audio_feature_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.audio_feature)
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_audio_feature(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000020u;
|
|
audio_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.audio_feature)
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_audio_feature(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
audio_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.audio_feature)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::_internal_mutable_audio_feature() {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
return audio_feature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest_ContentKeySpec::release_audio_feature() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.audio_feature)
|
|
if (!_internal_has_audio_feature()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
return audio_feature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest_ContentKeySpec::set_allocated_audio_feature(std::string* audio_feature) {
|
|
if (audio_feature != nullptr) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
audio_feature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), audio_feature,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.ContentKeySpec.audio_feature)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// ModularDrmLicenseRequest_Verification
|
|
|
|
// optional bool reject_unknown_make_model = 1 [default = false];
|
|
inline bool ModularDrmLicenseRequest_Verification::_internal_has_reject_unknown_make_model() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_Verification::has_reject_unknown_make_model() const {
|
|
return _internal_has_reject_unknown_make_model();
|
|
}
|
|
inline void ModularDrmLicenseRequest_Verification::clear_reject_unknown_make_model() {
|
|
reject_unknown_make_model_ = false;
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_Verification::_internal_reject_unknown_make_model() const {
|
|
return reject_unknown_make_model_;
|
|
}
|
|
inline bool ModularDrmLicenseRequest_Verification::reject_unknown_make_model() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.Verification.reject_unknown_make_model)
|
|
return _internal_reject_unknown_make_model();
|
|
}
|
|
inline void ModularDrmLicenseRequest_Verification::_internal_set_reject_unknown_make_model(bool value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
reject_unknown_make_model_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest_Verification::set_reject_unknown_make_model(bool value) {
|
|
_internal_set_reject_unknown_make_model(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.Verification.reject_unknown_make_model)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// ModularDrmLicenseRequest
|
|
|
|
// optional bytes payload = 1;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_payload() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_payload() const {
|
|
return _internal_has_payload();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_payload() {
|
|
payload_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::payload() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.payload)
|
|
return _internal_payload();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_payload(const std::string& value) {
|
|
_internal_set_payload(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.payload)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_payload() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.payload)
|
|
return _internal_mutable_payload();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_payload() const {
|
|
return payload_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_payload(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
payload_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::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.ModularDrmLicenseRequest.payload)
|
|
}
|
|
inline void ModularDrmLicenseRequest::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.ModularDrmLicenseRequest.payload)
|
|
}
|
|
inline void ModularDrmLicenseRequest::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.ModularDrmLicenseRequest.payload)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_payload() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return payload_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_payload() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.payload)
|
|
if (!_internal_has_payload()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return payload_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::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.ModularDrmLicenseRequest.payload)
|
|
}
|
|
|
|
// repeated .video_widevine.ModularDrmLicenseRequest.ContentKeySpec content_key_specs = 2;
|
|
inline int ModularDrmLicenseRequest::_internal_content_key_specs_size() const {
|
|
return content_key_specs_.size();
|
|
}
|
|
inline int ModularDrmLicenseRequest::content_key_specs_size() const {
|
|
return _internal_content_key_specs_size();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_content_key_specs() {
|
|
content_key_specs_.Clear();
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec* ModularDrmLicenseRequest::mutable_content_key_specs(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.content_key_specs)
|
|
return content_key_specs_.Mutable(index);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec >*
|
|
ModularDrmLicenseRequest::mutable_content_key_specs() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.ModularDrmLicenseRequest.content_key_specs)
|
|
return &content_key_specs_;
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec& ModularDrmLicenseRequest::_internal_content_key_specs(int index) const {
|
|
return content_key_specs_.Get(index);
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec& ModularDrmLicenseRequest::content_key_specs(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.content_key_specs)
|
|
return _internal_content_key_specs(index);
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec* ModularDrmLicenseRequest::_internal_add_content_key_specs() {
|
|
return content_key_specs_.Add();
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec* ModularDrmLicenseRequest::add_content_key_specs() {
|
|
// @@protoc_insertion_point(field_add:video_widevine.ModularDrmLicenseRequest.content_key_specs)
|
|
return _internal_add_content_key_specs();
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ModularDrmLicenseRequest_ContentKeySpec >&
|
|
ModularDrmLicenseRequest::content_key_specs() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.ModularDrmLicenseRequest.content_key_specs)
|
|
return content_key_specs_;
|
|
}
|
|
|
|
// optional .video_widevine.ModularDrmLicenseRequest.CommonTrackTypeSet allowed_track_types = 3 [default = SD_UHD1];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_allowed_track_types() const {
|
|
bool value = (_has_bits_[0] & 0x01000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_allowed_track_types() const {
|
|
return _internal_has_allowed_track_types();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_allowed_track_types() {
|
|
allowed_track_types_ = 2;
|
|
_has_bits_[0] &= ~0x01000000u;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet ModularDrmLicenseRequest::_internal_allowed_track_types() const {
|
|
return static_cast< ::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet >(allowed_track_types_);
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet ModularDrmLicenseRequest::allowed_track_types() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.allowed_track_types)
|
|
return _internal_allowed_track_types();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_allowed_track_types(::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet value) {
|
|
assert(::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet_IsValid(value));
|
|
_has_bits_[0] |= 0x01000000u;
|
|
allowed_track_types_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allowed_track_types(::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet value) {
|
|
_internal_set_allowed_track_types(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.allowed_track_types)
|
|
}
|
|
|
|
// optional bytes content_id = 4;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_content_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_content_id() const {
|
|
return _internal_has_content_id();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_content_id() {
|
|
content_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::content_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.content_id)
|
|
return _internal_content_id();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_content_id(const std::string& value) {
|
|
_internal_set_content_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.content_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_content_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.content_id)
|
|
return _internal_mutable_content_id();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_content_id() const {
|
|
return content_id_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_content_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_content_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
content_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.content_id)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_content_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
content_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.content_id)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_content_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
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.ModularDrmLicenseRequest.content_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_content_id() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return content_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_content_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.content_id)
|
|
if (!_internal_has_content_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return content_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_content_id(std::string* content_id) {
|
|
if (content_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
content_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.content_id)
|
|
}
|
|
|
|
// optional string provider = 5;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_provider() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_provider() const {
|
|
return _internal_has_provider();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_provider() {
|
|
provider_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::provider() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.provider)
|
|
return _internal_provider();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider(const std::string& value) {
|
|
_internal_set_provider(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.provider)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_provider() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.provider)
|
|
return _internal_mutable_provider();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_provider() const {
|
|
return provider_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_provider(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
provider_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.provider)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000004u;
|
|
provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.provider)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
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.ModularDrmLicenseRequest.provider)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_provider() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return provider_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_provider() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.provider)
|
|
if (!_internal_has_provider()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return provider_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_provider(std::string* provider) {
|
|
if (provider != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
provider_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.provider)
|
|
}
|
|
|
|
// optional string replay_data = 6;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_replay_data() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_replay_data() const {
|
|
return _internal_has_replay_data();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_replay_data() {
|
|
replay_data_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::replay_data() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.replay_data)
|
|
return _internal_replay_data();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_replay_data(const std::string& value) {
|
|
_internal_set_replay_data(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.replay_data)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_replay_data() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.replay_data)
|
|
return _internal_mutable_replay_data();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_replay_data() const {
|
|
return replay_data_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_replay_data(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
replay_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_replay_data(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
replay_data_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.replay_data)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_replay_data(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000008u;
|
|
replay_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.replay_data)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_replay_data(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
replay_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseRequest.replay_data)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_replay_data() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return replay_data_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_replay_data() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.replay_data)
|
|
if (!_internal_has_replay_data()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
return replay_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_replay_data(std::string* replay_data) {
|
|
if (replay_data != nullptr) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
replay_data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), replay_data,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.replay_data)
|
|
}
|
|
|
|
// optional .video_widevine.License.Policy policy_overrides = 7;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_policy_overrides() const {
|
|
bool value = (_has_bits_[0] & 0x00004000u) != 0;
|
|
PROTOBUF_ASSUME(!value || policy_overrides_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_policy_overrides() const {
|
|
return _internal_has_policy_overrides();
|
|
}
|
|
inline const ::video_widevine::License_Policy& ModularDrmLicenseRequest::_internal_policy_overrides() const {
|
|
const ::video_widevine::License_Policy* p = policy_overrides_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::License_Policy&>(
|
|
::video_widevine::_License_Policy_default_instance_);
|
|
}
|
|
inline const ::video_widevine::License_Policy& ModularDrmLicenseRequest::policy_overrides() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.policy_overrides)
|
|
return _internal_policy_overrides();
|
|
}
|
|
inline void ModularDrmLicenseRequest::unsafe_arena_set_allocated_policy_overrides(
|
|
::video_widevine::License_Policy* policy_overrides) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(policy_overrides_);
|
|
}
|
|
policy_overrides_ = policy_overrides;
|
|
if (policy_overrides) {
|
|
_has_bits_[0] |= 0x00004000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00004000u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseRequest.policy_overrides)
|
|
}
|
|
inline ::video_widevine::License_Policy* ModularDrmLicenseRequest::release_policy_overrides() {
|
|
_has_bits_[0] &= ~0x00004000u;
|
|
::video_widevine::License_Policy* temp = policy_overrides_;
|
|
policy_overrides_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_Policy* ModularDrmLicenseRequest::unsafe_arena_release_policy_overrides() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.policy_overrides)
|
|
_has_bits_[0] &= ~0x00004000u;
|
|
::video_widevine::License_Policy* temp = policy_overrides_;
|
|
policy_overrides_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::License_Policy* ModularDrmLicenseRequest::_internal_mutable_policy_overrides() {
|
|
_has_bits_[0] |= 0x00004000u;
|
|
if (policy_overrides_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::License_Policy>(GetArena());
|
|
policy_overrides_ = p;
|
|
}
|
|
return policy_overrides_;
|
|
}
|
|
inline ::video_widevine::License_Policy* ModularDrmLicenseRequest::mutable_policy_overrides() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.policy_overrides)
|
|
return _internal_mutable_policy_overrides();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_policy_overrides(::video_widevine::License_Policy* policy_overrides) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(policy_overrides_);
|
|
}
|
|
if (policy_overrides) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(policy_overrides)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
policy_overrides = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, policy_overrides, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00004000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00004000u;
|
|
}
|
|
policy_overrides_ = policy_overrides;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.policy_overrides)
|
|
}
|
|
|
|
// optional string policy_name = 8;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_policy_name() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_policy_name() const {
|
|
return _internal_has_policy_name();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_policy_name() {
|
|
policy_name_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::policy_name() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.policy_name)
|
|
return _internal_policy_name();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_policy_name(const std::string& value) {
|
|
_internal_set_policy_name(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.policy_name)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_policy_name() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.policy_name)
|
|
return _internal_mutable_policy_name();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_policy_name() const {
|
|
return policy_name_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_policy_name(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
policy_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_policy_name(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
policy_name_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.policy_name)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_policy_name(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000010u;
|
|
policy_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.policy_name)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_policy_name(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
policy_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseRequest.policy_name)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_policy_name() {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
return policy_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_policy_name() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.policy_name)
|
|
if (!_internal_has_policy_name()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
return policy_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_policy_name(std::string* policy_name) {
|
|
if (policy_name != nullptr) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
policy_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), policy_name,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.policy_name)
|
|
}
|
|
|
|
// optional bool use_policy_overrides_exclusively = 9 [default = false];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_use_policy_overrides_exclusively() const {
|
|
bool value = (_has_bits_[0] & 0x00080000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_use_policy_overrides_exclusively() const {
|
|
return _internal_has_use_policy_overrides_exclusively();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_use_policy_overrides_exclusively() {
|
|
use_policy_overrides_exclusively_ = false;
|
|
_has_bits_[0] &= ~0x00080000u;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::_internal_use_policy_overrides_exclusively() const {
|
|
return use_policy_overrides_exclusively_;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::use_policy_overrides_exclusively() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.use_policy_overrides_exclusively)
|
|
return _internal_use_policy_overrides_exclusively();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_use_policy_overrides_exclusively(bool value) {
|
|
_has_bits_[0] |= 0x00080000u;
|
|
use_policy_overrides_exclusively_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_use_policy_overrides_exclusively(bool value) {
|
|
_internal_set_use_policy_overrides_exclusively(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.use_policy_overrides_exclusively)
|
|
}
|
|
|
|
// optional .video_widevine.ModularDrmType drm_type = 10 [default = WIDEVINE];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_drm_type() const {
|
|
bool value = (_has_bits_[0] & 0x00040000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_drm_type() const {
|
|
return _internal_has_drm_type();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_drm_type() {
|
|
drm_type_ = 0;
|
|
_has_bits_[0] &= ~0x00040000u;
|
|
}
|
|
inline ::video_widevine::ModularDrmType ModularDrmLicenseRequest::_internal_drm_type() const {
|
|
return static_cast< ::video_widevine::ModularDrmType >(drm_type_);
|
|
}
|
|
inline ::video_widevine::ModularDrmType ModularDrmLicenseRequest::drm_type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.drm_type)
|
|
return _internal_drm_type();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_drm_type(::video_widevine::ModularDrmType value) {
|
|
assert(::video_widevine::ModularDrmType_IsValid(value));
|
|
_has_bits_[0] |= 0x00040000u;
|
|
drm_type_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_drm_type(::video_widevine::ModularDrmType value) {
|
|
_internal_set_drm_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.drm_type)
|
|
}
|
|
|
|
// optional bool allow_test_device_deprecated = 11 [deprecated = true];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_allow_test_device_deprecated() const {
|
|
bool value = (_has_bits_[0] & 0x00100000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_allow_test_device_deprecated() const {
|
|
return _internal_has_allow_test_device_deprecated();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_allow_test_device_deprecated() {
|
|
allow_test_device_deprecated_ = false;
|
|
_has_bits_[0] &= ~0x00100000u;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::_internal_allow_test_device_deprecated() const {
|
|
return allow_test_device_deprecated_;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::allow_test_device_deprecated() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.allow_test_device_deprecated)
|
|
return _internal_allow_test_device_deprecated();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_allow_test_device_deprecated(bool value) {
|
|
_has_bits_[0] |= 0x00100000u;
|
|
allow_test_device_deprecated_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allow_test_device_deprecated(bool value) {
|
|
_internal_set_allow_test_device_deprecated(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.allow_test_device_deprecated)
|
|
}
|
|
|
|
// optional string client_ip_address = 13;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_client_ip_address() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_client_ip_address() const {
|
|
return _internal_has_client_ip_address();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_client_ip_address() {
|
|
client_ip_address_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::client_ip_address() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.client_ip_address)
|
|
return _internal_client_ip_address();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_client_ip_address(const std::string& value) {
|
|
_internal_set_client_ip_address(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.client_ip_address)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_client_ip_address() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.client_ip_address)
|
|
return _internal_mutable_client_ip_address();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_client_ip_address() const {
|
|
return client_ip_address_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_client_ip_address(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
client_ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_client_ip_address(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
client_ip_address_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.client_ip_address)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_client_ip_address(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000020u;
|
|
client_ip_address_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.client_ip_address)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_client_ip_address(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
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.ModularDrmLicenseRequest.client_ip_address)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_client_ip_address() {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
return client_ip_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_client_ip_address() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.client_ip_address)
|
|
if (!_internal_has_client_ip_address()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
return client_ip_address_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_client_ip_address(std::string* client_ip_address) {
|
|
if (client_ip_address != nullptr) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
client_ip_address_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), client_ip_address,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.client_ip_address)
|
|
}
|
|
|
|
// optional string user_agent = 14;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_user_agent() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_user_agent() const {
|
|
return _internal_has_user_agent();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_user_agent() {
|
|
user_agent_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::user_agent() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.user_agent)
|
|
return _internal_user_agent();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_user_agent(const std::string& value) {
|
|
_internal_set_user_agent(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.user_agent)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_user_agent() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.user_agent)
|
|
return _internal_mutable_user_agent();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_user_agent() const {
|
|
return user_agent_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_user_agent(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
user_agent_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_user_agent(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
user_agent_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.user_agent)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_user_agent(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000040u;
|
|
user_agent_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.user_agent)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_user_agent(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
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.ModularDrmLicenseRequest.user_agent)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_user_agent() {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
return user_agent_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_user_agent() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.user_agent)
|
|
if (!_internal_has_user_agent()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
return user_agent_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_user_agent(std::string* user_agent) {
|
|
if (user_agent != nullptr) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
user_agent_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), user_agent,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.user_agent)
|
|
}
|
|
|
|
// optional bytes provider_client_token = 15;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_provider_client_token() const {
|
|
bool value = (_has_bits_[0] & 0x00000080u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_provider_client_token() const {
|
|
return _internal_has_provider_client_token();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_provider_client_token() {
|
|
provider_client_token_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::provider_client_token() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.provider_client_token)
|
|
return _internal_provider_client_token();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider_client_token(const std::string& value) {
|
|
_internal_set_provider_client_token(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.provider_client_token)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_provider_client_token() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.provider_client_token)
|
|
return _internal_mutable_provider_client_token();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_provider_client_token() const {
|
|
return provider_client_token_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_provider_client_token(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
provider_client_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider_client_token(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
provider_client_token_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.provider_client_token)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider_client_token(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000080u;
|
|
provider_client_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.provider_client_token)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider_client_token(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
provider_client_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseRequest.provider_client_token)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_provider_client_token() {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
return provider_client_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_provider_client_token() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.provider_client_token)
|
|
if (!_internal_has_provider_client_token()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
return provider_client_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_provider_client_token(std::string* provider_client_token) {
|
|
if (provider_client_token != nullptr) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
provider_client_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider_client_token,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.provider_client_token)
|
|
}
|
|
|
|
// optional bytes provider_session_token = 16;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_provider_session_token() const {
|
|
bool value = (_has_bits_[0] & 0x00000100u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_provider_session_token() const {
|
|
return _internal_has_provider_session_token();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_provider_session_token() {
|
|
provider_session_token_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::provider_session_token() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.provider_session_token)
|
|
return _internal_provider_session_token();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider_session_token(const std::string& value) {
|
|
_internal_set_provider_session_token(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.provider_session_token)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_provider_session_token() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.provider_session_token)
|
|
return _internal_mutable_provider_session_token();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_provider_session_token() const {
|
|
return provider_session_token_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_provider_session_token(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
provider_session_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider_session_token(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
provider_session_token_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.provider_session_token)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider_session_token(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000100u;
|
|
provider_session_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.provider_session_token)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_provider_session_token(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
provider_session_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseRequest.provider_session_token)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_provider_session_token() {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
return provider_session_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_provider_session_token() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.provider_session_token)
|
|
if (!_internal_has_provider_session_token()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
return provider_session_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_provider_session_token(std::string* provider_session_token) {
|
|
if (provider_session_token != nullptr) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
provider_session_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider_session_token,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.provider_session_token)
|
|
}
|
|
|
|
// optional .video_widevine.SessionInit session_init = 17;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_session_init() const {
|
|
bool value = (_has_bits_[0] & 0x00008000u) != 0;
|
|
PROTOBUF_ASSUME(!value || session_init_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_session_init() const {
|
|
return _internal_has_session_init();
|
|
}
|
|
inline const ::video_widevine::SessionInit& ModularDrmLicenseRequest::_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& ModularDrmLicenseRequest::session_init() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.session_init)
|
|
return _internal_session_init();
|
|
}
|
|
inline void ModularDrmLicenseRequest::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] |= 0x00008000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00008000u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseRequest.session_init)
|
|
}
|
|
inline ::video_widevine::SessionInit* ModularDrmLicenseRequest::release_session_init() {
|
|
_has_bits_[0] &= ~0x00008000u;
|
|
::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* ModularDrmLicenseRequest::unsafe_arena_release_session_init() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.session_init)
|
|
_has_bits_[0] &= ~0x00008000u;
|
|
::video_widevine::SessionInit* temp = session_init_;
|
|
session_init_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SessionInit* ModularDrmLicenseRequest::_internal_mutable_session_init() {
|
|
_has_bits_[0] |= 0x00008000u;
|
|
if (session_init_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::SessionInit>(GetArena());
|
|
session_init_ = p;
|
|
}
|
|
return session_init_;
|
|
}
|
|
inline ::video_widevine::SessionInit* ModularDrmLicenseRequest::mutable_session_init() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.session_init)
|
|
return _internal_mutable_session_init();
|
|
}
|
|
inline void ModularDrmLicenseRequest::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] |= 0x00008000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00008000u;
|
|
}
|
|
session_init_ = session_init;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.session_init)
|
|
}
|
|
|
|
// optional bool parse_only = 18 [default = false];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_parse_only() const {
|
|
bool value = (_has_bits_[0] & 0x00200000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_parse_only() const {
|
|
return _internal_has_parse_only();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_parse_only() {
|
|
parse_only_ = false;
|
|
_has_bits_[0] &= ~0x00200000u;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::_internal_parse_only() const {
|
|
return parse_only_;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::parse_only() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.parse_only)
|
|
return _internal_parse_only();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_parse_only(bool value) {
|
|
_has_bits_[0] |= 0x00200000u;
|
|
parse_only_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_parse_only(bool value) {
|
|
_internal_set_parse_only(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.parse_only)
|
|
}
|
|
|
|
// optional string content_provider_request_id = 19 [default = "unspecified"];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_content_provider_request_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000200u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_content_provider_request_id() const {
|
|
return _internal_has_content_provider_request_id();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_content_provider_request_id() {
|
|
content_provider_request_id_.ClearToDefault(::video_widevine::ModularDrmLicenseRequest::_i_give_permission_to_break_this_code_default_content_provider_request_id_, GetArena());
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::content_provider_request_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.content_provider_request_id)
|
|
if (content_provider_request_id_.IsDefault(nullptr)) return _i_give_permission_to_break_this_code_default_content_provider_request_id_.get();
|
|
return _internal_content_provider_request_id();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_content_provider_request_id(const std::string& value) {
|
|
_internal_set_content_provider_request_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.content_provider_request_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_content_provider_request_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.content_provider_request_id)
|
|
return _internal_mutable_content_provider_request_id();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_content_provider_request_id() const {
|
|
return content_provider_request_id_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_content_provider_request_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
content_provider_request_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_content_provider_request_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
content_provider_request_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.content_provider_request_id)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_content_provider_request_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000200u;
|
|
content_provider_request_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.content_provider_request_id)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_content_provider_request_id(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
content_provider_request_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseRequest.content_provider_request_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_content_provider_request_id() {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
return content_provider_request_id_.Mutable(::video_widevine::ModularDrmLicenseRequest::_i_give_permission_to_break_this_code_default_content_provider_request_id_, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_content_provider_request_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.content_provider_request_id)
|
|
if (!_internal_has_content_provider_request_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
return content_provider_request_id_.ReleaseNonDefault(nullptr, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_content_provider_request_id(std::string* content_provider_request_id) {
|
|
if (content_provider_request_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
}
|
|
content_provider_request_id_.SetAllocated(nullptr, content_provider_request_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.content_provider_request_id)
|
|
}
|
|
|
|
// optional bytes session_key = 20;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_session_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000400u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_session_key() const {
|
|
return _internal_has_session_key();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_session_key() {
|
|
session_key_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000400u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::session_key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.session_key)
|
|
return _internal_session_key();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_session_key(const std::string& value) {
|
|
_internal_set_session_key(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.session_key)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_session_key() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.session_key)
|
|
return _internal_mutable_session_key();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_session_key() const {
|
|
return session_key_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_session_key(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
session_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_session_key(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
session_key_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.session_key)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_session_key(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000400u;
|
|
session_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.session_key)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_session_key(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
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.ModularDrmLicenseRequest.session_key)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_session_key() {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
return session_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_session_key() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.session_key)
|
|
if (!_internal_has_session_key()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000400u;
|
|
return session_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_session_key(std::string* session_key) {
|
|
if (session_key != nullptr) {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000400u;
|
|
}
|
|
session_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), session_key,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.session_key)
|
|
}
|
|
|
|
// optional bytes session_iv = 21;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_session_iv() const {
|
|
bool value = (_has_bits_[0] & 0x00000800u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_session_iv() const {
|
|
return _internal_has_session_iv();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_session_iv() {
|
|
session_iv_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000800u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::session_iv() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.session_iv)
|
|
return _internal_session_iv();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_session_iv(const std::string& value) {
|
|
_internal_set_session_iv(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.session_iv)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_session_iv() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.session_iv)
|
|
return _internal_mutable_session_iv();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_session_iv() const {
|
|
return session_iv_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_session_iv(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000800u;
|
|
session_iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_session_iv(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000800u;
|
|
session_iv_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.session_iv)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_session_iv(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000800u;
|
|
session_iv_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.session_iv)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_session_iv(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000800u;
|
|
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.ModularDrmLicenseRequest.session_iv)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_session_iv() {
|
|
_has_bits_[0] |= 0x00000800u;
|
|
return session_iv_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_session_iv() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.session_iv)
|
|
if (!_internal_has_session_iv()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000800u;
|
|
return session_iv_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_session_iv(std::string* session_iv) {
|
|
if (session_iv != nullptr) {
|
|
_has_bits_[0] |= 0x00000800u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000800u;
|
|
}
|
|
session_iv_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), session_iv,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.session_iv)
|
|
}
|
|
|
|
// optional bool test_content = 22 [default = false];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_test_content() const {
|
|
bool value = (_has_bits_[0] & 0x00400000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_test_content() const {
|
|
return _internal_has_test_content();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_test_content() {
|
|
test_content_ = false;
|
|
_has_bits_[0] &= ~0x00400000u;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::_internal_test_content() const {
|
|
return test_content_;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::test_content() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.test_content)
|
|
return _internal_test_content();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_test_content(bool value) {
|
|
_has_bits_[0] |= 0x00400000u;
|
|
test_content_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_test_content(bool value) {
|
|
_internal_set_test_content(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.test_content)
|
|
}
|
|
|
|
// optional string requesting_provider = 23;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_requesting_provider() const {
|
|
bool value = (_has_bits_[0] & 0x00001000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_requesting_provider() const {
|
|
return _internal_has_requesting_provider();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_requesting_provider() {
|
|
requesting_provider_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00001000u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::requesting_provider() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.requesting_provider)
|
|
return _internal_requesting_provider();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_requesting_provider(const std::string& value) {
|
|
_internal_set_requesting_provider(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.requesting_provider)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_requesting_provider() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.requesting_provider)
|
|
return _internal_mutable_requesting_provider();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_requesting_provider() const {
|
|
return requesting_provider_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_requesting_provider(const std::string& value) {
|
|
_has_bits_[0] |= 0x00001000u;
|
|
requesting_provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_requesting_provider(std::string&& value) {
|
|
_has_bits_[0] |= 0x00001000u;
|
|
requesting_provider_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.requesting_provider)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_requesting_provider(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00001000u;
|
|
requesting_provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.requesting_provider)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_requesting_provider(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00001000u;
|
|
requesting_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.ModularDrmLicenseRequest.requesting_provider)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_requesting_provider() {
|
|
_has_bits_[0] |= 0x00001000u;
|
|
return requesting_provider_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_requesting_provider() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.requesting_provider)
|
|
if (!_internal_has_requesting_provider()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00001000u;
|
|
return requesting_provider_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_requesting_provider(std::string* requesting_provider) {
|
|
if (requesting_provider != nullptr) {
|
|
_has_bits_[0] |= 0x00001000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00001000u;
|
|
}
|
|
requesting_provider_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), requesting_provider,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.requesting_provider)
|
|
}
|
|
|
|
// optional bytes client_id_msg = 24;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_client_id_msg() const {
|
|
bool value = (_has_bits_[0] & 0x00002000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_client_id_msg() const {
|
|
return _internal_has_client_id_msg();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_client_id_msg() {
|
|
client_id_msg_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00002000u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::client_id_msg() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.client_id_msg)
|
|
return _internal_client_id_msg();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_client_id_msg(const std::string& value) {
|
|
_internal_set_client_id_msg(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.client_id_msg)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::mutable_client_id_msg() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.client_id_msg)
|
|
return _internal_mutable_client_id_msg();
|
|
}
|
|
inline const std::string& ModularDrmLicenseRequest::_internal_client_id_msg() const {
|
|
return client_id_msg_.Get();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_client_id_msg(const std::string& value) {
|
|
_has_bits_[0] |= 0x00002000u;
|
|
client_id_msg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_client_id_msg(std::string&& value) {
|
|
_has_bits_[0] |= 0x00002000u;
|
|
client_id_msg_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseRequest.client_id_msg)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_client_id_msg(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00002000u;
|
|
client_id_msg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseRequest.client_id_msg)
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_client_id_msg(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00002000u;
|
|
client_id_msg_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseRequest.client_id_msg)
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::_internal_mutable_client_id_msg() {
|
|
_has_bits_[0] |= 0x00002000u;
|
|
return client_id_msg_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseRequest::release_client_id_msg() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.client_id_msg)
|
|
if (!_internal_has_client_id_msg()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00002000u;
|
|
return client_id_msg_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_client_id_msg(std::string* client_id_msg) {
|
|
if (client_id_msg != nullptr) {
|
|
_has_bits_[0] |= 0x00002000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00002000u;
|
|
}
|
|
client_id_msg_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), client_id_msg,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.client_id_msg)
|
|
}
|
|
|
|
// optional bool sd_only_for_l3 = 25 [default = false];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_sd_only_for_l3() const {
|
|
bool value = (_has_bits_[0] & 0x00800000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_sd_only_for_l3() const {
|
|
return _internal_has_sd_only_for_l3();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_sd_only_for_l3() {
|
|
sd_only_for_l3_ = false;
|
|
_has_bits_[0] &= ~0x00800000u;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::_internal_sd_only_for_l3() const {
|
|
return sd_only_for_l3_;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::sd_only_for_l3() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.sd_only_for_l3)
|
|
return _internal_sd_only_for_l3();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_sd_only_for_l3(bool value) {
|
|
_has_bits_[0] |= 0x00800000u;
|
|
sd_only_for_l3_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_sd_only_for_l3(bool value) {
|
|
_internal_set_sd_only_for_l3(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.sd_only_for_l3)
|
|
}
|
|
|
|
// optional .video_widevine.PlatformVerificationStatus platform_verification_status = 26 [default = PLATFORM_NO_VERIFICATION];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_platform_verification_status() const {
|
|
bool value = (_has_bits_[0] & 0x02000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_platform_verification_status() const {
|
|
return _internal_has_platform_verification_status();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_platform_verification_status() {
|
|
platform_verification_status_ = 4;
|
|
_has_bits_[0] &= ~0x02000000u;
|
|
}
|
|
inline ::video_widevine::PlatformVerificationStatus ModularDrmLicenseRequest::_internal_platform_verification_status() const {
|
|
return static_cast< ::video_widevine::PlatformVerificationStatus >(platform_verification_status_);
|
|
}
|
|
inline ::video_widevine::PlatformVerificationStatus ModularDrmLicenseRequest::platform_verification_status() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.platform_verification_status)
|
|
return _internal_platform_verification_status();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_platform_verification_status(::video_widevine::PlatformVerificationStatus value) {
|
|
assert(::video_widevine::PlatformVerificationStatus_IsValid(value));
|
|
_has_bits_[0] |= 0x02000000u;
|
|
platform_verification_status_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_platform_verification_status(::video_widevine::PlatformVerificationStatus value) {
|
|
_internal_set_platform_verification_status(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.platform_verification_status)
|
|
}
|
|
|
|
// optional bool allow_unverified_platform = 27 [default = true];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_allow_unverified_platform() const {
|
|
bool value = (_has_bits_[0] & 0x04000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_allow_unverified_platform() const {
|
|
return _internal_has_allow_unverified_platform();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_allow_unverified_platform() {
|
|
allow_unverified_platform_ = true;
|
|
_has_bits_[0] &= ~0x04000000u;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::_internal_allow_unverified_platform() const {
|
|
return allow_unverified_platform_;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::allow_unverified_platform() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.allow_unverified_platform)
|
|
return _internal_allow_unverified_platform();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_allow_unverified_platform(bool value) {
|
|
_has_bits_[0] |= 0x04000000u;
|
|
allow_unverified_platform_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allow_unverified_platform(bool value) {
|
|
_internal_set_allow_unverified_platform(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.allow_unverified_platform)
|
|
}
|
|
|
|
// optional bool allow_tampered_platform = 28 [default = true];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_allow_tampered_platform() const {
|
|
bool value = (_has_bits_[0] & 0x08000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_allow_tampered_platform() const {
|
|
return _internal_has_allow_tampered_platform();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_allow_tampered_platform() {
|
|
allow_tampered_platform_ = true;
|
|
_has_bits_[0] &= ~0x08000000u;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::_internal_allow_tampered_platform() const {
|
|
return allow_tampered_platform_;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::allow_tampered_platform() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.allow_tampered_platform)
|
|
return _internal_allow_tampered_platform();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_allow_tampered_platform(bool value) {
|
|
_has_bits_[0] |= 0x08000000u;
|
|
allow_tampered_platform_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allow_tampered_platform(bool value) {
|
|
_internal_set_allow_tampered_platform(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.allow_tampered_platform)
|
|
}
|
|
|
|
// optional .video_widevine.ModularDrmLicenseRequest.VideoFeatureKeySet video_feature_key_set = 29 [default = VF_EXCLUDED];
|
|
inline bool ModularDrmLicenseRequest::_internal_has_video_feature_key_set() const {
|
|
bool value = (_has_bits_[0] & 0x10000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_video_feature_key_set() const {
|
|
return _internal_has_video_feature_key_set();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_video_feature_key_set() {
|
|
video_feature_key_set_ = 1;
|
|
_has_bits_[0] &= ~0x10000000u;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet ModularDrmLicenseRequest::_internal_video_feature_key_set() const {
|
|
return static_cast< ::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet >(video_feature_key_set_);
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet ModularDrmLicenseRequest::video_feature_key_set() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.video_feature_key_set)
|
|
return _internal_video_feature_key_set();
|
|
}
|
|
inline void ModularDrmLicenseRequest::_internal_set_video_feature_key_set(::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet value) {
|
|
assert(::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet_IsValid(value));
|
|
_has_bits_[0] |= 0x10000000u;
|
|
video_feature_key_set_ = value;
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_video_feature_key_set(::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet value) {
|
|
_internal_set_video_feature_key_set(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseRequest.video_feature_key_set)
|
|
}
|
|
|
|
// optional .video_widevine.ModularDrmLicenseRequest.Verification verify = 30;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_verify() const {
|
|
bool value = (_has_bits_[0] & 0x00010000u) != 0;
|
|
PROTOBUF_ASSUME(!value || verify_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_verify() const {
|
|
return _internal_has_verify();
|
|
}
|
|
inline void ModularDrmLicenseRequest::clear_verify() {
|
|
if (verify_ != nullptr) verify_->Clear();
|
|
_has_bits_[0] &= ~0x00010000u;
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseRequest_Verification& ModularDrmLicenseRequest::_internal_verify() const {
|
|
const ::video_widevine::ModularDrmLicenseRequest_Verification* p = verify_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::ModularDrmLicenseRequest_Verification&>(
|
|
::video_widevine::_ModularDrmLicenseRequest_Verification_default_instance_);
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseRequest_Verification& ModularDrmLicenseRequest::verify() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.verify)
|
|
return _internal_verify();
|
|
}
|
|
inline void ModularDrmLicenseRequest::unsafe_arena_set_allocated_verify(
|
|
::video_widevine::ModularDrmLicenseRequest_Verification* verify) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(verify_);
|
|
}
|
|
verify_ = verify;
|
|
if (verify) {
|
|
_has_bits_[0] |= 0x00010000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00010000u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseRequest.verify)
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_Verification* ModularDrmLicenseRequest::release_verify() {
|
|
_has_bits_[0] &= ~0x00010000u;
|
|
::video_widevine::ModularDrmLicenseRequest_Verification* temp = verify_;
|
|
verify_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_Verification* ModularDrmLicenseRequest::unsafe_arena_release_verify() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.verify)
|
|
_has_bits_[0] &= ~0x00010000u;
|
|
::video_widevine::ModularDrmLicenseRequest_Verification* temp = verify_;
|
|
verify_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_Verification* ModularDrmLicenseRequest::_internal_mutable_verify() {
|
|
_has_bits_[0] |= 0x00010000u;
|
|
if (verify_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::ModularDrmLicenseRequest_Verification>(GetArena());
|
|
verify_ = p;
|
|
}
|
|
return verify_;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseRequest_Verification* ModularDrmLicenseRequest::mutable_verify() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.verify)
|
|
return _internal_mutable_verify();
|
|
}
|
|
inline void ModularDrmLicenseRequest::set_allocated_verify(::video_widevine::ModularDrmLicenseRequest_Verification* verify) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete verify_;
|
|
}
|
|
if (verify) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(verify);
|
|
if (message_arena != submessage_arena) {
|
|
verify = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, verify, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00010000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00010000u;
|
|
}
|
|
verify_ = verify;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.verify)
|
|
}
|
|
|
|
// optional .video_widevine.ProxyInfo proxy_info = 31;
|
|
inline bool ModularDrmLicenseRequest::_internal_has_proxy_info() const {
|
|
bool value = (_has_bits_[0] & 0x00020000u) != 0;
|
|
PROTOBUF_ASSUME(!value || proxy_info_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseRequest::has_proxy_info() const {
|
|
return _internal_has_proxy_info();
|
|
}
|
|
inline const ::video_widevine::ProxyInfo& ModularDrmLicenseRequest::_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& ModularDrmLicenseRequest::proxy_info() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseRequest.proxy_info)
|
|
return _internal_proxy_info();
|
|
}
|
|
inline void ModularDrmLicenseRequest::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] |= 0x00020000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00020000u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseRequest.proxy_info)
|
|
}
|
|
inline ::video_widevine::ProxyInfo* ModularDrmLicenseRequest::release_proxy_info() {
|
|
_has_bits_[0] &= ~0x00020000u;
|
|
::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* ModularDrmLicenseRequest::unsafe_arena_release_proxy_info() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseRequest.proxy_info)
|
|
_has_bits_[0] &= ~0x00020000u;
|
|
::video_widevine::ProxyInfo* temp = proxy_info_;
|
|
proxy_info_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ProxyInfo* ModularDrmLicenseRequest::_internal_mutable_proxy_info() {
|
|
_has_bits_[0] |= 0x00020000u;
|
|
if (proxy_info_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::ProxyInfo>(GetArena());
|
|
proxy_info_ = p;
|
|
}
|
|
return proxy_info_;
|
|
}
|
|
inline ::video_widevine::ProxyInfo* ModularDrmLicenseRequest::mutable_proxy_info() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseRequest.proxy_info)
|
|
return _internal_mutable_proxy_info();
|
|
}
|
|
inline void ModularDrmLicenseRequest::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] |= 0x00020000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00020000u;
|
|
}
|
|
proxy_info_ = proxy_info;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseRequest.proxy_info)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// SignedModularDrmRequest
|
|
|
|
// optional bytes request = 1;
|
|
inline bool SignedModularDrmRequest::_internal_has_request() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedModularDrmRequest::has_request() const {
|
|
return _internal_has_request();
|
|
}
|
|
inline void SignedModularDrmRequest::clear_request() {
|
|
request_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::request() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedModularDrmRequest.request)
|
|
return _internal_request();
|
|
}
|
|
inline void SignedModularDrmRequest::set_request(const std::string& value) {
|
|
_internal_set_request(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedModularDrmRequest.request)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::mutable_request() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedModularDrmRequest.request)
|
|
return _internal_mutable_request();
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::_internal_request() const {
|
|
return request_.Get();
|
|
}
|
|
inline void SignedModularDrmRequest::_internal_set_request(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
request_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.request)
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.request)
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.request)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::_internal_mutable_request() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return request_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedModularDrmRequest::release_request() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedModularDrmRequest.request)
|
|
if (!_internal_has_request()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return request_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.request)
|
|
}
|
|
|
|
// optional bytes signature = 2;
|
|
inline bool SignedModularDrmRequest::_internal_has_signature() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedModularDrmRequest::has_signature() const {
|
|
return _internal_has_signature();
|
|
}
|
|
inline void SignedModularDrmRequest::clear_signature() {
|
|
signature_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::signature() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedModularDrmRequest.signature)
|
|
return _internal_signature();
|
|
}
|
|
inline void SignedModularDrmRequest::set_signature(const std::string& value) {
|
|
_internal_set_signature(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedModularDrmRequest.signature)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::mutable_signature() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedModularDrmRequest.signature)
|
|
return _internal_mutable_signature();
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::_internal_signature() const {
|
|
return signature_.Get();
|
|
}
|
|
inline void SignedModularDrmRequest::_internal_set_signature(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.signature)
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.signature)
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.signature)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::_internal_mutable_signature() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedModularDrmRequest::release_signature() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedModularDrmRequest.signature)
|
|
if (!_internal_has_signature()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return signature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.signature)
|
|
}
|
|
|
|
// optional string signer = 3;
|
|
inline bool SignedModularDrmRequest::_internal_has_signer() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedModularDrmRequest::has_signer() const {
|
|
return _internal_has_signer();
|
|
}
|
|
inline void SignedModularDrmRequest::clear_signer() {
|
|
signer_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::signer() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedModularDrmRequest.signer)
|
|
return _internal_signer();
|
|
}
|
|
inline void SignedModularDrmRequest::set_signer(const std::string& value) {
|
|
_internal_set_signer(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedModularDrmRequest.signer)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::mutable_signer() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedModularDrmRequest.signer)
|
|
return _internal_mutable_signer();
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::_internal_signer() const {
|
|
return signer_.Get();
|
|
}
|
|
inline void SignedModularDrmRequest::_internal_set_signer(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
signer_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.signer)
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.signer)
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.signer)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::_internal_mutable_signer() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return signer_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedModularDrmRequest::release_signer() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedModularDrmRequest.signer)
|
|
if (!_internal_has_signer()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return signer_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.signer)
|
|
}
|
|
|
|
// optional string client_ip_address = 4;
|
|
inline bool SignedModularDrmRequest::_internal_has_client_ip_address() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedModularDrmRequest::has_client_ip_address() const {
|
|
return _internal_has_client_ip_address();
|
|
}
|
|
inline void SignedModularDrmRequest::clear_client_ip_address() {
|
|
client_ip_address_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::client_ip_address() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedModularDrmRequest.client_ip_address)
|
|
return _internal_client_ip_address();
|
|
}
|
|
inline void SignedModularDrmRequest::set_client_ip_address(const std::string& value) {
|
|
_internal_set_client_ip_address(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedModularDrmRequest.client_ip_address)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::mutable_client_ip_address() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedModularDrmRequest.client_ip_address)
|
|
return _internal_mutable_client_ip_address();
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::_internal_client_ip_address() const {
|
|
return client_ip_address_.Get();
|
|
}
|
|
inline void SignedModularDrmRequest::_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 SignedModularDrmRequest::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.SignedModularDrmRequest.client_ip_address)
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.client_ip_address)
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.client_ip_address)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::_internal_mutable_client_ip_address() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return client_ip_address_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedModularDrmRequest::release_client_ip_address() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedModularDrmRequest.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 SignedModularDrmRequest::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.SignedModularDrmRequest.client_ip_address)
|
|
}
|
|
|
|
// optional string user_agent = 5;
|
|
inline bool SignedModularDrmRequest::_internal_has_user_agent() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedModularDrmRequest::has_user_agent() const {
|
|
return _internal_has_user_agent();
|
|
}
|
|
inline void SignedModularDrmRequest::clear_user_agent() {
|
|
user_agent_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::user_agent() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedModularDrmRequest.user_agent)
|
|
return _internal_user_agent();
|
|
}
|
|
inline void SignedModularDrmRequest::set_user_agent(const std::string& value) {
|
|
_internal_set_user_agent(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedModularDrmRequest.user_agent)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::mutable_user_agent() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedModularDrmRequest.user_agent)
|
|
return _internal_mutable_user_agent();
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::_internal_user_agent() const {
|
|
return user_agent_.Get();
|
|
}
|
|
inline void SignedModularDrmRequest::_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 SignedModularDrmRequest::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.SignedModularDrmRequest.user_agent)
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.user_agent)
|
|
}
|
|
inline void SignedModularDrmRequest::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.SignedModularDrmRequest.user_agent)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::_internal_mutable_user_agent() {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
return user_agent_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedModularDrmRequest::release_user_agent() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedModularDrmRequest.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 SignedModularDrmRequest::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.SignedModularDrmRequest.user_agent)
|
|
}
|
|
|
|
// optional string content_provider_request_id = 6 [default = "unspecified"];
|
|
inline bool SignedModularDrmRequest::_internal_has_content_provider_request_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedModularDrmRequest::has_content_provider_request_id() const {
|
|
return _internal_has_content_provider_request_id();
|
|
}
|
|
inline void SignedModularDrmRequest::clear_content_provider_request_id() {
|
|
content_provider_request_id_.ClearToDefault(::video_widevine::SignedModularDrmRequest::_i_give_permission_to_break_this_code_default_content_provider_request_id_, GetArena());
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::content_provider_request_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedModularDrmRequest.content_provider_request_id)
|
|
if (content_provider_request_id_.IsDefault(nullptr)) return _i_give_permission_to_break_this_code_default_content_provider_request_id_.get();
|
|
return _internal_content_provider_request_id();
|
|
}
|
|
inline void SignedModularDrmRequest::set_content_provider_request_id(const std::string& value) {
|
|
_internal_set_content_provider_request_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedModularDrmRequest.content_provider_request_id)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::mutable_content_provider_request_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedModularDrmRequest.content_provider_request_id)
|
|
return _internal_mutable_content_provider_request_id();
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::_internal_content_provider_request_id() const {
|
|
return content_provider_request_id_.Get();
|
|
}
|
|
inline void SignedModularDrmRequest::_internal_set_content_provider_request_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
content_provider_request_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedModularDrmRequest::set_content_provider_request_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
content_provider_request_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SignedModularDrmRequest.content_provider_request_id)
|
|
}
|
|
inline void SignedModularDrmRequest::set_content_provider_request_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000020u;
|
|
content_provider_request_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SignedModularDrmRequest.content_provider_request_id)
|
|
}
|
|
inline void SignedModularDrmRequest::set_content_provider_request_id(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
content_provider_request_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.SignedModularDrmRequest.content_provider_request_id)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::_internal_mutable_content_provider_request_id() {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
return content_provider_request_id_.Mutable(::video_widevine::SignedModularDrmRequest::_i_give_permission_to_break_this_code_default_content_provider_request_id_, GetArena());
|
|
}
|
|
inline std::string* SignedModularDrmRequest::release_content_provider_request_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedModularDrmRequest.content_provider_request_id)
|
|
if (!_internal_has_content_provider_request_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
return content_provider_request_id_.ReleaseNonDefault(nullptr, GetArena());
|
|
}
|
|
inline void SignedModularDrmRequest::set_allocated_content_provider_request_id(std::string* content_provider_request_id) {
|
|
if (content_provider_request_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
content_provider_request_id_.SetAllocated(nullptr, content_provider_request_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedModularDrmRequest.content_provider_request_id)
|
|
}
|
|
|
|
// optional string provider = 7;
|
|
inline bool SignedModularDrmRequest::_internal_has_provider() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedModularDrmRequest::has_provider() const {
|
|
return _internal_has_provider();
|
|
}
|
|
inline void SignedModularDrmRequest::clear_provider() {
|
|
provider_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::provider() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedModularDrmRequest.provider)
|
|
return _internal_provider();
|
|
}
|
|
inline void SignedModularDrmRequest::set_provider(const std::string& value) {
|
|
_internal_set_provider(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedModularDrmRequest.provider)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::mutable_provider() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedModularDrmRequest.provider)
|
|
return _internal_mutable_provider();
|
|
}
|
|
inline const std::string& SignedModularDrmRequest::_internal_provider() const {
|
|
return provider_.Get();
|
|
}
|
|
inline void SignedModularDrmRequest::_internal_set_provider(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedModularDrmRequest::set_provider(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
provider_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SignedModularDrmRequest.provider)
|
|
}
|
|
inline void SignedModularDrmRequest::set_provider(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000040u;
|
|
provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SignedModularDrmRequest.provider)
|
|
}
|
|
inline void SignedModularDrmRequest::set_provider(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
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.SignedModularDrmRequest.provider)
|
|
}
|
|
inline std::string* SignedModularDrmRequest::_internal_mutable_provider() {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
return provider_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedModularDrmRequest::release_provider() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedModularDrmRequest.provider)
|
|
if (!_internal_has_provider()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
return provider_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedModularDrmRequest::set_allocated_provider(std::string* provider) {
|
|
if (provider != nullptr) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
provider_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedModularDrmRequest.provider)
|
|
}
|
|
|
|
// optional .video_widevine.HashAlgorithmProto hash_algorithm = 8;
|
|
inline bool SignedModularDrmRequest::_internal_has_hash_algorithm() const {
|
|
bool value = (_has_bits_[0] & 0x00000080u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedModularDrmRequest::has_hash_algorithm() const {
|
|
return _internal_has_hash_algorithm();
|
|
}
|
|
inline void SignedModularDrmRequest::clear_hash_algorithm() {
|
|
hash_algorithm_ = 0;
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
inline ::video_widevine::HashAlgorithmProto SignedModularDrmRequest::_internal_hash_algorithm() const {
|
|
return static_cast< ::video_widevine::HashAlgorithmProto >(hash_algorithm_);
|
|
}
|
|
inline ::video_widevine::HashAlgorithmProto SignedModularDrmRequest::hash_algorithm() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedModularDrmRequest.hash_algorithm)
|
|
return _internal_hash_algorithm();
|
|
}
|
|
inline void SignedModularDrmRequest::_internal_set_hash_algorithm(::video_widevine::HashAlgorithmProto value) {
|
|
assert(::video_widevine::HashAlgorithmProto_IsValid(value));
|
|
_has_bits_[0] |= 0x00000080u;
|
|
hash_algorithm_ = value;
|
|
}
|
|
inline void SignedModularDrmRequest::set_hash_algorithm(::video_widevine::HashAlgorithmProto value) {
|
|
_internal_set_hash_algorithm(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedModularDrmRequest.hash_algorithm)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// SignedModularDrmResponse
|
|
|
|
// optional bytes response = 1;
|
|
inline bool SignedModularDrmResponse::_internal_has_response() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedModularDrmResponse::has_response() const {
|
|
return _internal_has_response();
|
|
}
|
|
inline void SignedModularDrmResponse::clear_response() {
|
|
response_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& SignedModularDrmResponse::response() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedModularDrmResponse.response)
|
|
return _internal_response();
|
|
}
|
|
inline void SignedModularDrmResponse::set_response(const std::string& value) {
|
|
_internal_set_response(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedModularDrmResponse.response)
|
|
}
|
|
inline std::string* SignedModularDrmResponse::mutable_response() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedModularDrmResponse.response)
|
|
return _internal_mutable_response();
|
|
}
|
|
inline const std::string& SignedModularDrmResponse::_internal_response() const {
|
|
return response_.Get();
|
|
}
|
|
inline void SignedModularDrmResponse::_internal_set_response(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
response_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedModularDrmResponse::set_response(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
response_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SignedModularDrmResponse.response)
|
|
}
|
|
inline void SignedModularDrmResponse::set_response(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
response_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SignedModularDrmResponse.response)
|
|
}
|
|
inline void SignedModularDrmResponse::set_response(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
response_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.SignedModularDrmResponse.response)
|
|
}
|
|
inline std::string* SignedModularDrmResponse::_internal_mutable_response() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return response_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedModularDrmResponse::release_response() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedModularDrmResponse.response)
|
|
if (!_internal_has_response()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return response_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedModularDrmResponse::set_allocated_response(std::string* response) {
|
|
if (response != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
response_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), response,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SignedModularDrmResponse.response)
|
|
}
|
|
|
|
// optional bytes signature = 2;
|
|
inline bool SignedModularDrmResponse::_internal_has_signature() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SignedModularDrmResponse::has_signature() const {
|
|
return _internal_has_signature();
|
|
}
|
|
inline void SignedModularDrmResponse::clear_signature() {
|
|
signature_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& SignedModularDrmResponse::signature() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SignedModularDrmResponse.signature)
|
|
return _internal_signature();
|
|
}
|
|
inline void SignedModularDrmResponse::set_signature(const std::string& value) {
|
|
_internal_set_signature(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SignedModularDrmResponse.signature)
|
|
}
|
|
inline std::string* SignedModularDrmResponse::mutable_signature() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SignedModularDrmResponse.signature)
|
|
return _internal_mutable_signature();
|
|
}
|
|
inline const std::string& SignedModularDrmResponse::_internal_signature() const {
|
|
return signature_.Get();
|
|
}
|
|
inline void SignedModularDrmResponse::_internal_set_signature(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
signature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SignedModularDrmResponse::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.SignedModularDrmResponse.signature)
|
|
}
|
|
inline void SignedModularDrmResponse::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.SignedModularDrmResponse.signature)
|
|
}
|
|
inline void SignedModularDrmResponse::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.SignedModularDrmResponse.signature)
|
|
}
|
|
inline std::string* SignedModularDrmResponse::_internal_mutable_signature() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return signature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SignedModularDrmResponse::release_signature() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SignedModularDrmResponse.signature)
|
|
if (!_internal_has_signature()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return signature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SignedModularDrmResponse::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.SignedModularDrmResponse.signature)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// LicenseMetadata
|
|
|
|
// optional uint32 drm_status_code = 1;
|
|
inline bool LicenseMetadata::_internal_has_drm_status_code() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool LicenseMetadata::has_drm_status_code() const {
|
|
return _internal_has_drm_status_code();
|
|
}
|
|
inline void LicenseMetadata::clear_drm_status_code() {
|
|
drm_status_code_ = 0u;
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 LicenseMetadata::_internal_drm_status_code() const {
|
|
return drm_status_code_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 LicenseMetadata::drm_status_code() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.LicenseMetadata.drm_status_code)
|
|
return _internal_drm_status_code();
|
|
}
|
|
inline void LicenseMetadata::_internal_set_drm_status_code(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
drm_status_code_ = value;
|
|
}
|
|
inline void LicenseMetadata::set_drm_status_code(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_drm_status_code(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.LicenseMetadata.drm_status_code)
|
|
}
|
|
|
|
// optional uint64 asset_id = 2;
|
|
inline bool LicenseMetadata::_internal_has_asset_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool LicenseMetadata::has_asset_id() const {
|
|
return _internal_has_asset_id();
|
|
}
|
|
inline void LicenseMetadata::clear_asset_id() {
|
|
asset_id_ = PROTOBUF_ULONGLONG(0);
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint64 LicenseMetadata::_internal_asset_id() const {
|
|
return asset_id_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint64 LicenseMetadata::asset_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.LicenseMetadata.asset_id)
|
|
return _internal_asset_id();
|
|
}
|
|
inline void LicenseMetadata::_internal_set_asset_id(::PROTOBUF_NAMESPACE_ID::uint64 value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
asset_id_ = value;
|
|
}
|
|
inline void LicenseMetadata::set_asset_id(::PROTOBUF_NAMESPACE_ID::uint64 value) {
|
|
_internal_set_asset_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.LicenseMetadata.asset_id)
|
|
}
|
|
|
|
// optional string asset_name = 4;
|
|
inline bool LicenseMetadata::_internal_has_asset_name() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool LicenseMetadata::has_asset_name() const {
|
|
return _internal_has_asset_name();
|
|
}
|
|
inline void LicenseMetadata::clear_asset_name() {
|
|
asset_name_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& LicenseMetadata::asset_name() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.LicenseMetadata.asset_name)
|
|
return _internal_asset_name();
|
|
}
|
|
inline void LicenseMetadata::set_asset_name(const std::string& value) {
|
|
_internal_set_asset_name(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.LicenseMetadata.asset_name)
|
|
}
|
|
inline std::string* LicenseMetadata::mutable_asset_name() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.LicenseMetadata.asset_name)
|
|
return _internal_mutable_asset_name();
|
|
}
|
|
inline const std::string& LicenseMetadata::_internal_asset_name() const {
|
|
return asset_name_.Get();
|
|
}
|
|
inline void LicenseMetadata::_internal_set_asset_name(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
asset_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void LicenseMetadata::set_asset_name(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
asset_name_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.LicenseMetadata.asset_name)
|
|
}
|
|
inline void LicenseMetadata::set_asset_name(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
asset_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.LicenseMetadata.asset_name)
|
|
}
|
|
inline void LicenseMetadata::set_asset_name(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
asset_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.LicenseMetadata.asset_name)
|
|
}
|
|
inline std::string* LicenseMetadata::_internal_mutable_asset_name() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return asset_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* LicenseMetadata::release_asset_name() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.LicenseMetadata.asset_name)
|
|
if (!_internal_has_asset_name()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return asset_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void LicenseMetadata::set_allocated_asset_name(std::string* asset_name) {
|
|
if (asset_name != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
asset_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), asset_name,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.LicenseMetadata.asset_name)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// ModularDrmLicenseResponse_LicenseMetadata
|
|
|
|
// optional bytes content_id = 1;
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::_internal_has_content_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::has_content_id() const {
|
|
return _internal_has_content_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::clear_content_id() {
|
|
content_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_LicenseMetadata::content_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.content_id)
|
|
return _internal_content_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::set_content_id(const std::string& value) {
|
|
_internal_set_content_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.content_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_LicenseMetadata::mutable_content_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.content_id)
|
|
return _internal_mutable_content_id();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_LicenseMetadata::_internal_content_id() const {
|
|
return content_id_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse_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 ModularDrmLicenseResponse_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.ModularDrmLicenseResponse.LicenseMetadata.content_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse_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.ModularDrmLicenseResponse.LicenseMetadata.content_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse_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.ModularDrmLicenseResponse.LicenseMetadata.content_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_LicenseMetadata::_internal_mutable_content_id() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return content_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_LicenseMetadata::release_content_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.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 ModularDrmLicenseResponse_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.ModularDrmLicenseResponse.LicenseMetadata.content_id)
|
|
}
|
|
|
|
// optional .video_widevine.LicenseType license_type = 2;
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::_internal_has_license_type() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::has_license_type() const {
|
|
return _internal_has_license_type();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::clear_license_type() {
|
|
license_type_ = 1;
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline ::video_widevine::LicenseType ModularDrmLicenseResponse_LicenseMetadata::_internal_license_type() const {
|
|
return static_cast< ::video_widevine::LicenseType >(license_type_);
|
|
}
|
|
inline ::video_widevine::LicenseType ModularDrmLicenseResponse_LicenseMetadata::license_type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.license_type)
|
|
return _internal_license_type();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::_internal_set_license_type(::video_widevine::LicenseType value) {
|
|
assert(::video_widevine::LicenseType_IsValid(value));
|
|
_has_bits_[0] |= 0x00000020u;
|
|
license_type_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::set_license_type(::video_widevine::LicenseType value) {
|
|
_internal_set_license_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.license_type)
|
|
}
|
|
|
|
// optional .video_widevine.LicenseRequest.RequestType request_type = 3;
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::_internal_has_request_type() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::has_request_type() const {
|
|
return _internal_has_request_type();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::clear_request_type() {
|
|
request_type_ = 1;
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
inline ::video_widevine::LicenseRequest_RequestType ModularDrmLicenseResponse_LicenseMetadata::_internal_request_type() const {
|
|
return static_cast< ::video_widevine::LicenseRequest_RequestType >(request_type_);
|
|
}
|
|
inline ::video_widevine::LicenseRequest_RequestType ModularDrmLicenseResponse_LicenseMetadata::request_type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.request_type)
|
|
return _internal_request_type();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::_internal_set_request_type(::video_widevine::LicenseRequest_RequestType value) {
|
|
assert(::video_widevine::LicenseRequest_RequestType_IsValid(value));
|
|
_has_bits_[0] |= 0x00000040u;
|
|
request_type_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::set_request_type(::video_widevine::LicenseRequest_RequestType value) {
|
|
_internal_set_request_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.request_type)
|
|
}
|
|
|
|
// optional uint32 srm_version = 4;
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::_internal_has_srm_version() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::has_srm_version() const {
|
|
return _internal_has_srm_version();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::clear_srm_version() {
|
|
srm_version_ = 0u;
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse_LicenseMetadata::_internal_srm_version() const {
|
|
return srm_version_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse_LicenseMetadata::srm_version() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.srm_version)
|
|
return _internal_srm_version();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::_internal_set_srm_version(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
srm_version_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::set_srm_version(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_srm_version(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.srm_version)
|
|
}
|
|
|
|
// optional bool srm_included = 5 [default = false];
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::_internal_has_srm_included() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::has_srm_included() const {
|
|
return _internal_has_srm_included();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::clear_srm_included() {
|
|
srm_included_ = false;
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::_internal_srm_included() const {
|
|
return srm_included_;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::srm_included() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.srm_included)
|
|
return _internal_srm_included();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::_internal_set_srm_included(bool value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
srm_included_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::set_srm_included(bool value) {
|
|
_internal_set_srm_included(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.srm_included)
|
|
}
|
|
|
|
// optional bool can_update_srm = 6 [default = false];
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::_internal_has_can_update_srm() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::has_can_update_srm() const {
|
|
return _internal_has_can_update_srm();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::clear_can_update_srm() {
|
|
can_update_srm_ = false;
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::_internal_can_update_srm() const {
|
|
return can_update_srm_;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::can_update_srm() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.can_update_srm)
|
|
return _internal_can_update_srm();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::_internal_set_can_update_srm(bool value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
can_update_srm_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::set_can_update_srm(bool value) {
|
|
_internal_set_can_update_srm(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.can_update_srm)
|
|
}
|
|
|
|
// optional .video_widevine.SessionInit session_init = 7;
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::_internal_has_session_init() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
PROTOBUF_ASSUME(!value || session_init_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_LicenseMetadata::has_session_init() const {
|
|
return _internal_has_session_init();
|
|
}
|
|
inline const ::video_widevine::SessionInit& ModularDrmLicenseResponse_LicenseMetadata::_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& ModularDrmLicenseResponse_LicenseMetadata::session_init() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.session_init)
|
|
return _internal_session_init();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::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] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.session_init)
|
|
}
|
|
inline ::video_widevine::SessionInit* ModularDrmLicenseResponse_LicenseMetadata::release_session_init() {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
::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* ModularDrmLicenseResponse_LicenseMetadata::unsafe_arena_release_session_init() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.session_init)
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
::video_widevine::SessionInit* temp = session_init_;
|
|
session_init_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SessionInit* ModularDrmLicenseResponse_LicenseMetadata::_internal_mutable_session_init() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
if (session_init_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::SessionInit>(GetArena());
|
|
session_init_ = p;
|
|
}
|
|
return session_init_;
|
|
}
|
|
inline ::video_widevine::SessionInit* ModularDrmLicenseResponse_LicenseMetadata::mutable_session_init() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.session_init)
|
|
return _internal_mutable_session_init();
|
|
}
|
|
inline void ModularDrmLicenseResponse_LicenseMetadata::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] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
session_init_ = session_init;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.LicenseMetadata.session_init)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// ModularDrmLicenseResponse_Track
|
|
|
|
// optional string type = 1;
|
|
inline bool ModularDrmLicenseResponse_Track::_internal_has_type() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_Track::has_type() const {
|
|
return _internal_has_type();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::clear_type() {
|
|
type_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Track::type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.Track.type)
|
|
return _internal_type();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_type(const std::string& value) {
|
|
_internal_set_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.Track.type)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::mutable_type() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.Track.type)
|
|
return _internal_mutable_type();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Track::_internal_type() const {
|
|
return type_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::_internal_set_type(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_type(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
type_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.Track.type)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_type(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.Track.type)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_type(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
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.ModularDrmLicenseResponse.Track.type)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::_internal_mutable_type() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::release_type() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.Track.type)
|
|
if (!_internal_has_type()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_allocated_type(std::string* type) {
|
|
if (type != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.Track.type)
|
|
}
|
|
|
|
// optional bytes key_id = 2;
|
|
inline bool ModularDrmLicenseResponse_Track::_internal_has_key_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_Track::has_key_id() const {
|
|
return _internal_has_key_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::clear_key_id() {
|
|
key_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Track::key_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.Track.key_id)
|
|
return _internal_key_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_key_id(const std::string& value) {
|
|
_internal_set_key_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.Track.key_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::mutable_key_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.Track.key_id)
|
|
return _internal_mutable_key_id();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Track::_internal_key_id() const {
|
|
return key_id_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::_internal_set_key_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
key_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_key_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
key_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.Track.key_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_key_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
key_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.Track.key_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_key_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
key_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.ModularDrmLicenseResponse.Track.key_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::_internal_mutable_key_id() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return key_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::release_key_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.Track.key_id)
|
|
if (!_internal_has_key_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return key_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_allocated_key_id(std::string* key_id) {
|
|
if (key_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
key_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), key_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.Track.key_id)
|
|
}
|
|
|
|
// optional string video_feature = 3;
|
|
inline bool ModularDrmLicenseResponse_Track::_internal_has_video_feature() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_Track::has_video_feature() const {
|
|
return _internal_has_video_feature();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::clear_video_feature() {
|
|
video_feature_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Track::video_feature() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.Track.video_feature)
|
|
return _internal_video_feature();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_video_feature(const std::string& value) {
|
|
_internal_set_video_feature(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.Track.video_feature)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::mutable_video_feature() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.Track.video_feature)
|
|
return _internal_mutable_video_feature();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Track::_internal_video_feature() const {
|
|
return video_feature_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::_internal_set_video_feature(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
video_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_video_feature(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
video_feature_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.Track.video_feature)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_video_feature(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000004u;
|
|
video_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.Track.video_feature)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_video_feature(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
video_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseResponse.Track.video_feature)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::_internal_mutable_video_feature() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return video_feature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::release_video_feature() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.Track.video_feature)
|
|
if (!_internal_has_video_feature()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return video_feature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_allocated_video_feature(std::string* video_feature) {
|
|
if (video_feature != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
video_feature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), video_feature,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.Track.video_feature)
|
|
}
|
|
|
|
// optional string audio_feature = 4;
|
|
inline bool ModularDrmLicenseResponse_Track::_internal_has_audio_feature() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_Track::has_audio_feature() const {
|
|
return _internal_has_audio_feature();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::clear_audio_feature() {
|
|
audio_feature_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Track::audio_feature() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.Track.audio_feature)
|
|
return _internal_audio_feature();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_audio_feature(const std::string& value) {
|
|
_internal_set_audio_feature(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.Track.audio_feature)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::mutable_audio_feature() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.Track.audio_feature)
|
|
return _internal_mutable_audio_feature();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Track::_internal_audio_feature() const {
|
|
return audio_feature_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::_internal_set_audio_feature(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
audio_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_audio_feature(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
audio_feature_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.Track.audio_feature)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_audio_feature(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000008u;
|
|
audio_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.Track.audio_feature)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_audio_feature(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
audio_feature_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseResponse.Track.audio_feature)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::_internal_mutable_audio_feature() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return audio_feature_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Track::release_audio_feature() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.Track.audio_feature)
|
|
if (!_internal_has_audio_feature()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
return audio_feature_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse_Track::set_allocated_audio_feature(std::string* audio_feature) {
|
|
if (audio_feature != nullptr) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
audio_feature_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), audio_feature,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.Track.audio_feature)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// ModularDrmLicenseResponse_Pssh
|
|
|
|
// repeated bytes key_id = 1;
|
|
inline int ModularDrmLicenseResponse_Pssh::_internal_key_id_size() const {
|
|
return key_id_.size();
|
|
}
|
|
inline int ModularDrmLicenseResponse_Pssh::key_id_size() const {
|
|
return _internal_key_id_size();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::clear_key_id() {
|
|
key_id_.Clear();
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Pssh::add_key_id() {
|
|
// @@protoc_insertion_point(field_add_mutable:video_widevine.ModularDrmLicenseResponse.Pssh.key_id)
|
|
return _internal_add_key_id();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Pssh::_internal_key_id(int index) const {
|
|
return key_id_.Get(index);
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Pssh::key_id(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.Pssh.key_id)
|
|
return _internal_key_id(index);
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Pssh::mutable_key_id(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.Pssh.key_id)
|
|
return key_id_.Mutable(index);
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::set_key_id(int index, const std::string& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.Pssh.key_id)
|
|
key_id_.Mutable(index)->assign(value);
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::set_key_id(int index, std::string&& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.Pssh.key_id)
|
|
key_id_.Mutable(index)->assign(std::move(value));
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::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.ModularDrmLicenseResponse.Pssh.key_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::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.ModularDrmLicenseResponse.Pssh.key_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Pssh::_internal_add_key_id() {
|
|
return key_id_.Add();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::add_key_id(const std::string& value) {
|
|
key_id_.Add()->assign(value);
|
|
// @@protoc_insertion_point(field_add:video_widevine.ModularDrmLicenseResponse.Pssh.key_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::add_key_id(std::string&& value) {
|
|
key_id_.Add(std::move(value));
|
|
// @@protoc_insertion_point(field_add:video_widevine.ModularDrmLicenseResponse.Pssh.key_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::add_key_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
key_id_.Add()->assign(value);
|
|
// @@protoc_insertion_point(field_add_char:video_widevine.ModularDrmLicenseResponse.Pssh.key_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::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.ModularDrmLicenseResponse.Pssh.key_id)
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
|
|
ModularDrmLicenseResponse_Pssh::key_id() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.ModularDrmLicenseResponse.Pssh.key_id)
|
|
return key_id_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
|
|
ModularDrmLicenseResponse_Pssh::mutable_key_id() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.ModularDrmLicenseResponse.Pssh.key_id)
|
|
return &key_id_;
|
|
}
|
|
|
|
// optional bytes content_id = 2;
|
|
inline bool ModularDrmLicenseResponse_Pssh::_internal_has_content_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse_Pssh::has_content_id() const {
|
|
return _internal_has_content_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::clear_content_id() {
|
|
content_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Pssh::content_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.Pssh.content_id)
|
|
return _internal_content_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::set_content_id(const std::string& value) {
|
|
_internal_set_content_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.Pssh.content_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Pssh::mutable_content_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.Pssh.content_id)
|
|
return _internal_mutable_content_id();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_Pssh::_internal_content_id() const {
|
|
return content_id_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::_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 ModularDrmLicenseResponse_Pssh::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.ModularDrmLicenseResponse.Pssh.content_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::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.ModularDrmLicenseResponse.Pssh.content_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse_Pssh::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.ModularDrmLicenseResponse.Pssh.content_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Pssh::_internal_mutable_content_id() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return content_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_Pssh::release_content_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.Pssh.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 ModularDrmLicenseResponse_Pssh::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.ModularDrmLicenseResponse.Pssh.content_id)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// ModularDrmLicenseResponse_DeviceSecurityProfiles
|
|
|
|
// repeated string profile_name = 1;
|
|
inline int ModularDrmLicenseResponse_DeviceSecurityProfiles::_internal_profile_name_size() const {
|
|
return profile_name_.size();
|
|
}
|
|
inline int ModularDrmLicenseResponse_DeviceSecurityProfiles::profile_name_size() const {
|
|
return _internal_profile_name_size();
|
|
}
|
|
inline void ModularDrmLicenseResponse_DeviceSecurityProfiles::clear_profile_name() {
|
|
profile_name_.Clear();
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_DeviceSecurityProfiles::add_profile_name() {
|
|
// @@protoc_insertion_point(field_add_mutable:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
return _internal_add_profile_name();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_DeviceSecurityProfiles::_internal_profile_name(int index) const {
|
|
return profile_name_.Get(index);
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse_DeviceSecurityProfiles::profile_name(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
return _internal_profile_name(index);
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_DeviceSecurityProfiles::mutable_profile_name(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
return profile_name_.Mutable(index);
|
|
}
|
|
inline void ModularDrmLicenseResponse_DeviceSecurityProfiles::set_profile_name(int index, const std::string& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
profile_name_.Mutable(index)->assign(value);
|
|
}
|
|
inline void ModularDrmLicenseResponse_DeviceSecurityProfiles::set_profile_name(int index, std::string&& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
profile_name_.Mutable(index)->assign(std::move(value));
|
|
}
|
|
inline void ModularDrmLicenseResponse_DeviceSecurityProfiles::set_profile_name(int index, const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
profile_name_.Mutable(index)->assign(value);
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
}
|
|
inline void ModularDrmLicenseResponse_DeviceSecurityProfiles::set_profile_name(int index, const char* value, size_t size) {
|
|
profile_name_.Mutable(index)->assign(
|
|
reinterpret_cast<const char*>(value), size);
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse_DeviceSecurityProfiles::_internal_add_profile_name() {
|
|
return profile_name_.Add();
|
|
}
|
|
inline void ModularDrmLicenseResponse_DeviceSecurityProfiles::add_profile_name(const std::string& value) {
|
|
profile_name_.Add()->assign(value);
|
|
// @@protoc_insertion_point(field_add:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
}
|
|
inline void ModularDrmLicenseResponse_DeviceSecurityProfiles::add_profile_name(std::string&& value) {
|
|
profile_name_.Add(std::move(value));
|
|
// @@protoc_insertion_point(field_add:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
}
|
|
inline void ModularDrmLicenseResponse_DeviceSecurityProfiles::add_profile_name(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
profile_name_.Add()->assign(value);
|
|
// @@protoc_insertion_point(field_add_char:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
}
|
|
inline void ModularDrmLicenseResponse_DeviceSecurityProfiles::add_profile_name(const char* value, size_t size) {
|
|
profile_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
|
// @@protoc_insertion_point(field_add_pointer:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
|
|
ModularDrmLicenseResponse_DeviceSecurityProfiles::profile_name() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
return profile_name_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
|
|
ModularDrmLicenseResponse_DeviceSecurityProfiles::mutable_profile_name() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles.profile_name)
|
|
return &profile_name_;
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// ModularDrmLicenseResponse
|
|
|
|
// optional .video_widevine.ModularDrmLicenseResponse.Status status = 1;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_status() const {
|
|
bool value = (_has_bits_[0] & 0x00020000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_status() const {
|
|
return _internal_has_status();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_status() {
|
|
status_ = 0;
|
|
_has_bits_[0] &= ~0x00020000u;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_Status ModularDrmLicenseResponse::_internal_status() const {
|
|
return static_cast< ::video_widevine::ModularDrmLicenseResponse_Status >(status_);
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_Status ModularDrmLicenseResponse::status() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.status)
|
|
return _internal_status();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_status(::video_widevine::ModularDrmLicenseResponse_Status value) {
|
|
assert(::video_widevine::ModularDrmLicenseResponse_Status_IsValid(value));
|
|
_has_bits_[0] |= 0x00020000u;
|
|
status_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_status(::video_widevine::ModularDrmLicenseResponse_Status value) {
|
|
_internal_set_status(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.status)
|
|
}
|
|
|
|
// optional string status_message = 2;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_status_message() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_status_message() const {
|
|
return _internal_has_status_message();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_status_message() {
|
|
status_message_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::status_message() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.status_message)
|
|
return _internal_status_message();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_status_message(const std::string& value) {
|
|
_internal_set_status_message(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.status_message)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_status_message() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.status_message)
|
|
return _internal_mutable_status_message();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_status_message() const {
|
|
return status_message_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_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 ModularDrmLicenseResponse::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.ModularDrmLicenseResponse.status_message)
|
|
}
|
|
inline void ModularDrmLicenseResponse::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.ModularDrmLicenseResponse.status_message)
|
|
}
|
|
inline void ModularDrmLicenseResponse::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.ModularDrmLicenseResponse.status_message)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_status_message() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return status_message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_status_message() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.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 ModularDrmLicenseResponse::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.ModularDrmLicenseResponse.status_message)
|
|
}
|
|
|
|
// optional bytes license = 3;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_license() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_license() const {
|
|
return _internal_has_license();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_license() {
|
|
license_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::license() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.license)
|
|
return _internal_license();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_license(const std::string& value) {
|
|
_internal_set_license(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.license)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_license() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.license)
|
|
return _internal_mutable_license();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_license() const {
|
|
return license_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_license(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
license_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::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.ModularDrmLicenseResponse.license)
|
|
}
|
|
inline void ModularDrmLicenseResponse::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.ModularDrmLicenseResponse.license)
|
|
}
|
|
inline void ModularDrmLicenseResponse::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.ModularDrmLicenseResponse.license)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_license() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return license_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_license() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.license)
|
|
if (!_internal_has_license()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return license_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::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.ModularDrmLicenseResponse.license)
|
|
}
|
|
|
|
// optional .video_widevine.ModularDrmLicenseResponse.LicenseMetadata license_metadata = 4;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_license_metadata() const {
|
|
bool value = (_has_bits_[0] & 0x00000800u) != 0;
|
|
PROTOBUF_ASSUME(!value || license_metadata_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_license_metadata() const {
|
|
return _internal_has_license_metadata();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_license_metadata() {
|
|
if (license_metadata_ != nullptr) license_metadata_->Clear();
|
|
_has_bits_[0] &= ~0x00000800u;
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata& ModularDrmLicenseResponse::_internal_license_metadata() const {
|
|
const ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* p = license_metadata_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata&>(
|
|
::video_widevine::_ModularDrmLicenseResponse_LicenseMetadata_default_instance_);
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata& ModularDrmLicenseResponse::license_metadata() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.license_metadata)
|
|
return _internal_license_metadata();
|
|
}
|
|
inline void ModularDrmLicenseResponse::unsafe_arena_set_allocated_license_metadata(
|
|
::video_widevine::ModularDrmLicenseResponse_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] |= 0x00000800u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000800u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseResponse.license_metadata)
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* ModularDrmLicenseResponse::release_license_metadata() {
|
|
_has_bits_[0] &= ~0x00000800u;
|
|
::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* temp = license_metadata_;
|
|
license_metadata_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* ModularDrmLicenseResponse::unsafe_arena_release_license_metadata() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.license_metadata)
|
|
_has_bits_[0] &= ~0x00000800u;
|
|
::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* temp = license_metadata_;
|
|
license_metadata_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* ModularDrmLicenseResponse::_internal_mutable_license_metadata() {
|
|
_has_bits_[0] |= 0x00000800u;
|
|
if (license_metadata_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::ModularDrmLicenseResponse_LicenseMetadata>(GetArena());
|
|
license_metadata_ = p;
|
|
}
|
|
return license_metadata_;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_LicenseMetadata* ModularDrmLicenseResponse::mutable_license_metadata() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.license_metadata)
|
|
return _internal_mutable_license_metadata();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_license_metadata(::video_widevine::ModularDrmLicenseResponse_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] |= 0x00000800u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000800u;
|
|
}
|
|
license_metadata_ = license_metadata;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.license_metadata)
|
|
}
|
|
|
|
// repeated .video_widevine.ModularDrmLicenseResponse.Track supported_tracks = 5;
|
|
inline int ModularDrmLicenseResponse::_internal_supported_tracks_size() const {
|
|
return supported_tracks_.size();
|
|
}
|
|
inline int ModularDrmLicenseResponse::supported_tracks_size() const {
|
|
return _internal_supported_tracks_size();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_supported_tracks() {
|
|
supported_tracks_.Clear();
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_Track* ModularDrmLicenseResponse::mutable_supported_tracks(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.supported_tracks)
|
|
return supported_tracks_.Mutable(index);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ModularDrmLicenseResponse_Track >*
|
|
ModularDrmLicenseResponse::mutable_supported_tracks() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.ModularDrmLicenseResponse.supported_tracks)
|
|
return &supported_tracks_;
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseResponse_Track& ModularDrmLicenseResponse::_internal_supported_tracks(int index) const {
|
|
return supported_tracks_.Get(index);
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseResponse_Track& ModularDrmLicenseResponse::supported_tracks(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.supported_tracks)
|
|
return _internal_supported_tracks(index);
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_Track* ModularDrmLicenseResponse::_internal_add_supported_tracks() {
|
|
return supported_tracks_.Add();
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_Track* ModularDrmLicenseResponse::add_supported_tracks() {
|
|
// @@protoc_insertion_point(field_add:video_widevine.ModularDrmLicenseResponse.supported_tracks)
|
|
return _internal_add_supported_tracks();
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ModularDrmLicenseResponse_Track >&
|
|
ModularDrmLicenseResponse::supported_tracks() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.ModularDrmLicenseResponse.supported_tracks)
|
|
return supported_tracks_;
|
|
}
|
|
|
|
// optional string make = 6;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_make() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_make() const {
|
|
return _internal_has_make();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_make() {
|
|
make_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::make() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.make)
|
|
return _internal_make();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_make(const std::string& value) {
|
|
_internal_set_make(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.make)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_make() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.make)
|
|
return _internal_mutable_make();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_make() const {
|
|
return make_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_make(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
make_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_make(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
make_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.make)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_make(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000004u;
|
|
make_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.make)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_make(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
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.ModularDrmLicenseResponse.make)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_make() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return make_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_make() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.make)
|
|
if (!_internal_has_make()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return make_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_make(std::string* make) {
|
|
if (make != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
make_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), make,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.make)
|
|
}
|
|
|
|
// optional string model = 7;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_model() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_model() const {
|
|
return _internal_has_model();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_model() {
|
|
model_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::model() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.model)
|
|
return _internal_model();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_model(const std::string& value) {
|
|
_internal_set_model(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.model)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_model() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.model)
|
|
return _internal_mutable_model();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_model() const {
|
|
return model_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_model(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_model(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
model_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.model)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_model(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000008u;
|
|
model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.model)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_model(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
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.ModularDrmLicenseResponse.model)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_model() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return model_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_model() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.model)
|
|
if (!_internal_has_model()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
return model_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_model(std::string* model) {
|
|
if (model != nullptr) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
model_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), model,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.model)
|
|
}
|
|
|
|
// optional bool remote_attestation_verified = 8;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_remote_attestation_verified() const {
|
|
bool value = (_has_bits_[0] & 0x00100000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_remote_attestation_verified() const {
|
|
return _internal_has_remote_attestation_verified();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_remote_attestation_verified() {
|
|
remote_attestation_verified_ = false;
|
|
_has_bits_[0] &= ~0x00100000u;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::_internal_remote_attestation_verified() const {
|
|
return remote_attestation_verified_;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::remote_attestation_verified() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.remote_attestation_verified)
|
|
return _internal_remote_attestation_verified();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_remote_attestation_verified(bool value) {
|
|
_has_bits_[0] |= 0x00100000u;
|
|
remote_attestation_verified_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_remote_attestation_verified(bool value) {
|
|
_internal_set_remote_attestation_verified(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.remote_attestation_verified)
|
|
}
|
|
|
|
// optional uint32 security_level = 9;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_security_level() const {
|
|
bool value = (_has_bits_[0] & 0x00040000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_security_level() const {
|
|
return _internal_has_security_level();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_security_level() {
|
|
security_level_ = 0u;
|
|
_has_bits_[0] &= ~0x00040000u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse::_internal_security_level() const {
|
|
return security_level_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse::security_level() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.security_level)
|
|
return _internal_security_level();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_security_level(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00040000u;
|
|
security_level_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_security_level(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_security_level(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.security_level)
|
|
}
|
|
|
|
// optional uint32 internal_status = 10;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_internal_status() const {
|
|
bool value = (_has_bits_[0] & 0x00080000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_internal_status() const {
|
|
return _internal_has_internal_status();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_internal_status() {
|
|
internal_status_ = 0u;
|
|
_has_bits_[0] &= ~0x00080000u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse::_internal_internal_status() const {
|
|
return internal_status_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse::internal_status() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.internal_status)
|
|
return _internal_internal_status();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_internal_status(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00080000u;
|
|
internal_status_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_internal_status(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_internal_status(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.internal_status)
|
|
}
|
|
|
|
// optional .video_widevine.SessionUsage session_usage = 11;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_session_usage() const {
|
|
bool value = (_has_bits_[0] & 0x00001000u) != 0;
|
|
PROTOBUF_ASSUME(!value || session_usage_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_session_usage() const {
|
|
return _internal_has_session_usage();
|
|
}
|
|
inline const ::video_widevine::SessionUsage& ModularDrmLicenseResponse::_internal_session_usage() const {
|
|
const ::video_widevine::SessionUsage* p = session_usage_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::SessionUsage&>(
|
|
::video_widevine::_SessionUsage_default_instance_);
|
|
}
|
|
inline const ::video_widevine::SessionUsage& ModularDrmLicenseResponse::session_usage() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.session_usage)
|
|
return _internal_session_usage();
|
|
}
|
|
inline void ModularDrmLicenseResponse::unsafe_arena_set_allocated_session_usage(
|
|
::video_widevine::SessionUsage* session_usage) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_usage_);
|
|
}
|
|
session_usage_ = session_usage;
|
|
if (session_usage) {
|
|
_has_bits_[0] |= 0x00001000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00001000u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseResponse.session_usage)
|
|
}
|
|
inline ::video_widevine::SessionUsage* ModularDrmLicenseResponse::release_session_usage() {
|
|
_has_bits_[0] &= ~0x00001000u;
|
|
::video_widevine::SessionUsage* temp = session_usage_;
|
|
session_usage_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SessionUsage* ModularDrmLicenseResponse::unsafe_arena_release_session_usage() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.session_usage)
|
|
_has_bits_[0] &= ~0x00001000u;
|
|
::video_widevine::SessionUsage* temp = session_usage_;
|
|
session_usage_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SessionUsage* ModularDrmLicenseResponse::_internal_mutable_session_usage() {
|
|
_has_bits_[0] |= 0x00001000u;
|
|
if (session_usage_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::SessionUsage>(GetArena());
|
|
session_usage_ = p;
|
|
}
|
|
return session_usage_;
|
|
}
|
|
inline ::video_widevine::SessionUsage* ModularDrmLicenseResponse::mutable_session_usage() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.session_usage)
|
|
return _internal_mutable_session_usage();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_session_usage(::video_widevine::SessionUsage* session_usage) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_usage_);
|
|
}
|
|
if (session_usage) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(session_usage)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
session_usage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, session_usage, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00001000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00001000u;
|
|
}
|
|
session_usage_ = session_usage;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.session_usage)
|
|
}
|
|
|
|
// optional .video_widevine.SessionState session_state = 12;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_session_state() const {
|
|
bool value = (_has_bits_[0] & 0x00002000u) != 0;
|
|
PROTOBUF_ASSUME(!value || session_state_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_session_state() const {
|
|
return _internal_has_session_state();
|
|
}
|
|
inline const ::video_widevine::SessionState& ModularDrmLicenseResponse::_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& ModularDrmLicenseResponse::session_state() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.session_state)
|
|
return _internal_session_state();
|
|
}
|
|
inline void ModularDrmLicenseResponse::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] |= 0x00002000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00002000u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseResponse.session_state)
|
|
}
|
|
inline ::video_widevine::SessionState* ModularDrmLicenseResponse::release_session_state() {
|
|
_has_bits_[0] &= ~0x00002000u;
|
|
::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* ModularDrmLicenseResponse::unsafe_arena_release_session_state() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.session_state)
|
|
_has_bits_[0] &= ~0x00002000u;
|
|
::video_widevine::SessionState* temp = session_state_;
|
|
session_state_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::SessionState* ModularDrmLicenseResponse::_internal_mutable_session_state() {
|
|
_has_bits_[0] |= 0x00002000u;
|
|
if (session_state_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::SessionState>(GetArena());
|
|
session_state_ = p;
|
|
}
|
|
return session_state_;
|
|
}
|
|
inline ::video_widevine::SessionState* ModularDrmLicenseResponse::mutable_session_state() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.session_state)
|
|
return _internal_mutable_session_state();
|
|
}
|
|
inline void ModularDrmLicenseResponse::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] |= 0x00002000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00002000u;
|
|
}
|
|
session_state_ = session_state;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.session_state)
|
|
}
|
|
|
|
// optional bytes drm_cert_serial_number = 13;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_drm_cert_serial_number() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_drm_cert_serial_number() const {
|
|
return _internal_has_drm_cert_serial_number();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_drm_cert_serial_number() {
|
|
drm_cert_serial_number_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::drm_cert_serial_number() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.drm_cert_serial_number)
|
|
return _internal_drm_cert_serial_number();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_drm_cert_serial_number(const std::string& value) {
|
|
_internal_set_drm_cert_serial_number(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.drm_cert_serial_number)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_drm_cert_serial_number() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.drm_cert_serial_number)
|
|
return _internal_mutable_drm_cert_serial_number();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_drm_cert_serial_number() const {
|
|
return drm_cert_serial_number_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_drm_cert_serial_number(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
drm_cert_serial_number_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_drm_cert_serial_number(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
drm_cert_serial_number_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.drm_cert_serial_number)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_drm_cert_serial_number(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000010u;
|
|
drm_cert_serial_number_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.drm_cert_serial_number)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_drm_cert_serial_number(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
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.ModularDrmLicenseResponse.drm_cert_serial_number)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_drm_cert_serial_number() {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
return drm_cert_serial_number_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_drm_cert_serial_number() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.drm_cert_serial_number)
|
|
if (!_internal_has_drm_cert_serial_number()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
return drm_cert_serial_number_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_drm_cert_serial_number(std::string* drm_cert_serial_number) {
|
|
if (drm_cert_serial_number != nullptr) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
drm_cert_serial_number_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), drm_cert_serial_number,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.drm_cert_serial_number)
|
|
}
|
|
|
|
// optional .video_widevine.SignedMessage.MessageType message_type = 15;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_message_type() const {
|
|
bool value = (_has_bits_[0] & 0x20000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_message_type() const {
|
|
return _internal_has_message_type();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_message_type() {
|
|
message_type_ = 1;
|
|
_has_bits_[0] &= ~0x20000000u;
|
|
}
|
|
inline ::video_widevine::SignedMessage_MessageType ModularDrmLicenseResponse::_internal_message_type() const {
|
|
return static_cast< ::video_widevine::SignedMessage_MessageType >(message_type_);
|
|
}
|
|
inline ::video_widevine::SignedMessage_MessageType ModularDrmLicenseResponse::message_type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.message_type)
|
|
return _internal_message_type();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_message_type(::video_widevine::SignedMessage_MessageType value) {
|
|
assert(::video_widevine::SignedMessage_MessageType_IsValid(value));
|
|
_has_bits_[0] |= 0x20000000u;
|
|
message_type_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_message_type(::video_widevine::SignedMessage_MessageType value) {
|
|
_internal_set_message_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.message_type)
|
|
}
|
|
|
|
// optional bytes android_id = 16;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_android_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_android_id() const {
|
|
return _internal_has_android_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_android_id() {
|
|
android_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::android_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.android_id)
|
|
return _internal_android_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_android_id(const std::string& value) {
|
|
_internal_set_android_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.android_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_android_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.android_id)
|
|
return _internal_mutable_android_id();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_android_id() const {
|
|
return android_id_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_android_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
android_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_android_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
android_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.android_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_android_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000020u;
|
|
android_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.android_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_android_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
android_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.ModularDrmLicenseResponse.android_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_android_id() {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
return android_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_android_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.android_id)
|
|
if (!_internal_has_android_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
return android_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_android_id(std::string* android_id) {
|
|
if (android_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
android_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), android_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.android_id)
|
|
}
|
|
|
|
// optional bytes group_id = 17;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_group_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_group_id() const {
|
|
return _internal_has_group_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_group_id() {
|
|
group_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::group_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.group_id)
|
|
return _internal_group_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_group_id(const std::string& value) {
|
|
_internal_set_group_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.group_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_group_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.group_id)
|
|
return _internal_mutable_group_id();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_group_id() const {
|
|
return group_id_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_group_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_group_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
group_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.group_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_group_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000040u;
|
|
group_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.group_id)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_group_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
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.ModularDrmLicenseResponse.group_id)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_group_id() {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
return group_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_group_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.group_id)
|
|
if (!_internal_has_group_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
return group_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_group_id(std::string* group_id) {
|
|
if (group_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
group_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), group_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.group_id)
|
|
}
|
|
|
|
// optional string platform = 18;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_platform() const {
|
|
bool value = (_has_bits_[0] & 0x00000080u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_platform() const {
|
|
return _internal_has_platform();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_platform() {
|
|
platform_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::platform() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.platform)
|
|
return _internal_platform();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_platform(const std::string& value) {
|
|
_internal_set_platform(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.platform)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_platform() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.platform)
|
|
return _internal_mutable_platform();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_platform() const {
|
|
return platform_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_platform(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
platform_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_platform(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
platform_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.platform)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_platform(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000080u;
|
|
platform_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.platform)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_platform(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
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.ModularDrmLicenseResponse.platform)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_platform() {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
return platform_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_platform() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.platform)
|
|
if (!_internal_has_platform()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
return platform_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_platform(std::string* platform) {
|
|
if (platform != nullptr) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
platform_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), platform,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.platform)
|
|
}
|
|
|
|
// optional .video_widevine.ModularDrmLicenseResponse.Pssh pssh_data = 20;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_pssh_data() const {
|
|
bool value = (_has_bits_[0] & 0x00004000u) != 0;
|
|
PROTOBUF_ASSUME(!value || pssh_data_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_pssh_data() const {
|
|
return _internal_has_pssh_data();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_pssh_data() {
|
|
if (pssh_data_ != nullptr) pssh_data_->Clear();
|
|
_has_bits_[0] &= ~0x00004000u;
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseResponse_Pssh& ModularDrmLicenseResponse::_internal_pssh_data() const {
|
|
const ::video_widevine::ModularDrmLicenseResponse_Pssh* p = pssh_data_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::ModularDrmLicenseResponse_Pssh&>(
|
|
::video_widevine::_ModularDrmLicenseResponse_Pssh_default_instance_);
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseResponse_Pssh& ModularDrmLicenseResponse::pssh_data() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.pssh_data)
|
|
return _internal_pssh_data();
|
|
}
|
|
inline void ModularDrmLicenseResponse::unsafe_arena_set_allocated_pssh_data(
|
|
::video_widevine::ModularDrmLicenseResponse_Pssh* pssh_data) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pssh_data_);
|
|
}
|
|
pssh_data_ = pssh_data;
|
|
if (pssh_data) {
|
|
_has_bits_[0] |= 0x00004000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00004000u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseResponse.pssh_data)
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_Pssh* ModularDrmLicenseResponse::release_pssh_data() {
|
|
_has_bits_[0] &= ~0x00004000u;
|
|
::video_widevine::ModularDrmLicenseResponse_Pssh* temp = pssh_data_;
|
|
pssh_data_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_Pssh* ModularDrmLicenseResponse::unsafe_arena_release_pssh_data() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.pssh_data)
|
|
_has_bits_[0] &= ~0x00004000u;
|
|
::video_widevine::ModularDrmLicenseResponse_Pssh* temp = pssh_data_;
|
|
pssh_data_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_Pssh* ModularDrmLicenseResponse::_internal_mutable_pssh_data() {
|
|
_has_bits_[0] |= 0x00004000u;
|
|
if (pssh_data_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::ModularDrmLicenseResponse_Pssh>(GetArena());
|
|
pssh_data_ = p;
|
|
}
|
|
return pssh_data_;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_Pssh* ModularDrmLicenseResponse::mutable_pssh_data() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.pssh_data)
|
|
return _internal_mutable_pssh_data();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_pssh_data(::video_widevine::ModularDrmLicenseResponse_Pssh* 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] |= 0x00004000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00004000u;
|
|
}
|
|
pssh_data_ = pssh_data;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.pssh_data)
|
|
}
|
|
|
|
// optional .video_widevine.ClientIdentification.ClientCapabilities.HdcpVersion client_max_hdcp_version = 21;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_client_max_hdcp_version() const {
|
|
bool value = (_has_bits_[0] & 0x00800000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_client_max_hdcp_version() const {
|
|
return _internal_has_client_max_hdcp_version();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_client_max_hdcp_version() {
|
|
client_max_hdcp_version_ = 0;
|
|
_has_bits_[0] &= ~0x00800000u;
|
|
}
|
|
inline ::video_widevine::ClientIdentification_ClientCapabilities_HdcpVersion ModularDrmLicenseResponse::_internal_client_max_hdcp_version() const {
|
|
return static_cast< ::video_widevine::ClientIdentification_ClientCapabilities_HdcpVersion >(client_max_hdcp_version_);
|
|
}
|
|
inline ::video_widevine::ClientIdentification_ClientCapabilities_HdcpVersion ModularDrmLicenseResponse::client_max_hdcp_version() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.client_max_hdcp_version)
|
|
return _internal_client_max_hdcp_version();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_client_max_hdcp_version(::video_widevine::ClientIdentification_ClientCapabilities_HdcpVersion value) {
|
|
assert(::video_widevine::ClientIdentification_ClientCapabilities_HdcpVersion_IsValid(value));
|
|
_has_bits_[0] |= 0x00800000u;
|
|
client_max_hdcp_version_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_client_max_hdcp_version(::video_widevine::ClientIdentification_ClientCapabilities_HdcpVersion value) {
|
|
_internal_set_client_max_hdcp_version(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.client_max_hdcp_version)
|
|
}
|
|
|
|
// repeated .video_widevine.ClientIdentification.NameValue client_info = 22;
|
|
inline int ModularDrmLicenseResponse::_internal_client_info_size() const {
|
|
return client_info_.size();
|
|
}
|
|
inline int ModularDrmLicenseResponse::client_info_size() const {
|
|
return _internal_client_info_size();
|
|
}
|
|
inline ::video_widevine::ClientIdentification_NameValue* ModularDrmLicenseResponse::mutable_client_info(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.client_info)
|
|
return client_info_.Mutable(index);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ClientIdentification_NameValue >*
|
|
ModularDrmLicenseResponse::mutable_client_info() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.ModularDrmLicenseResponse.client_info)
|
|
return &client_info_;
|
|
}
|
|
inline const ::video_widevine::ClientIdentification_NameValue& ModularDrmLicenseResponse::_internal_client_info(int index) const {
|
|
return client_info_.Get(index);
|
|
}
|
|
inline const ::video_widevine::ClientIdentification_NameValue& ModularDrmLicenseResponse::client_info(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.client_info)
|
|
return _internal_client_info(index);
|
|
}
|
|
inline ::video_widevine::ClientIdentification_NameValue* ModularDrmLicenseResponse::_internal_add_client_info() {
|
|
return client_info_.Add();
|
|
}
|
|
inline ::video_widevine::ClientIdentification_NameValue* ModularDrmLicenseResponse::add_client_info() {
|
|
// @@protoc_insertion_point(field_add:video_widevine.ModularDrmLicenseResponse.client_info)
|
|
return _internal_add_client_info();
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ClientIdentification_NameValue >&
|
|
ModularDrmLicenseResponse::client_info() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.ModularDrmLicenseResponse.client_info)
|
|
return client_info_;
|
|
}
|
|
|
|
// optional int64 signature_expiration_secs = 23;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_signature_expiration_secs() const {
|
|
bool value = (_has_bits_[0] & 0x00400000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_signature_expiration_secs() const {
|
|
return _internal_has_signature_expiration_secs();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_signature_expiration_secs() {
|
|
signature_expiration_secs_ = PROTOBUF_LONGLONG(0);
|
|
_has_bits_[0] &= ~0x00400000u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int64 ModularDrmLicenseResponse::_internal_signature_expiration_secs() const {
|
|
return signature_expiration_secs_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int64 ModularDrmLicenseResponse::signature_expiration_secs() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.signature_expiration_secs)
|
|
return _internal_signature_expiration_secs();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_signature_expiration_secs(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
|
_has_bits_[0] |= 0x00400000u;
|
|
signature_expiration_secs_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_signature_expiration_secs(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
|
_internal_set_signature_expiration_secs(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.signature_expiration_secs)
|
|
}
|
|
|
|
// optional bool is_live = 24 [default = false];
|
|
inline bool ModularDrmLicenseResponse::_internal_has_is_live() const {
|
|
bool value = (_has_bits_[0] & 0x00200000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_is_live() const {
|
|
return _internal_has_is_live();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_is_live() {
|
|
is_live_ = false;
|
|
_has_bits_[0] &= ~0x00200000u;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::_internal_is_live() const {
|
|
return is_live_;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::is_live() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.is_live)
|
|
return _internal_is_live();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_is_live(bool value) {
|
|
_has_bits_[0] |= 0x00200000u;
|
|
is_live_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_is_live(bool value) {
|
|
_internal_set_is_live(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.is_live)
|
|
}
|
|
|
|
// optional .video_widevine.PlatformVerificationStatus platform_verification_status = 25 [default = PLATFORM_UNVERIFIED];
|
|
inline bool ModularDrmLicenseResponse::_internal_has_platform_verification_status() const {
|
|
bool value = (_has_bits_[0] & 0x01000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_platform_verification_status() const {
|
|
return _internal_has_platform_verification_status();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_platform_verification_status() {
|
|
platform_verification_status_ = 0;
|
|
_has_bits_[0] &= ~0x01000000u;
|
|
}
|
|
inline ::video_widevine::PlatformVerificationStatus ModularDrmLicenseResponse::_internal_platform_verification_status() const {
|
|
return static_cast< ::video_widevine::PlatformVerificationStatus >(platform_verification_status_);
|
|
}
|
|
inline ::video_widevine::PlatformVerificationStatus ModularDrmLicenseResponse::platform_verification_status() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.platform_verification_status)
|
|
return _internal_platform_verification_status();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_platform_verification_status(::video_widevine::PlatformVerificationStatus value) {
|
|
assert(::video_widevine::PlatformVerificationStatus_IsValid(value));
|
|
_has_bits_[0] |= 0x01000000u;
|
|
platform_verification_status_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_platform_verification_status(::video_widevine::PlatformVerificationStatus value) {
|
|
_internal_set_platform_verification_status(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.platform_verification_status)
|
|
}
|
|
|
|
// optional string content_owner = 26;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_content_owner() const {
|
|
bool value = (_has_bits_[0] & 0x00000100u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_content_owner() const {
|
|
return _internal_has_content_owner();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_content_owner() {
|
|
content_owner_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::content_owner() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.content_owner)
|
|
return _internal_content_owner();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_content_owner(const std::string& value) {
|
|
_internal_set_content_owner(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.content_owner)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_content_owner() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.content_owner)
|
|
return _internal_mutable_content_owner();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_content_owner() const {
|
|
return content_owner_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_content_owner(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
content_owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_content_owner(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
content_owner_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.content_owner)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_content_owner(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000100u;
|
|
content_owner_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.content_owner)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_content_owner(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
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.ModularDrmLicenseResponse.content_owner)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_content_owner() {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
return content_owner_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_content_owner() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.content_owner)
|
|
if (!_internal_has_content_owner()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
return content_owner_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_content_owner(std::string* content_owner) {
|
|
if (content_owner != nullptr) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
content_owner_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content_owner,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.content_owner)
|
|
}
|
|
|
|
// optional string content_provider = 27;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_content_provider() const {
|
|
bool value = (_has_bits_[0] & 0x00000200u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_content_provider() const {
|
|
return _internal_has_content_provider();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_content_provider() {
|
|
content_provider_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::content_provider() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.content_provider)
|
|
return _internal_content_provider();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_content_provider(const std::string& value) {
|
|
_internal_set_content_provider(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.content_provider)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_content_provider() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.content_provider)
|
|
return _internal_mutable_content_provider();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_content_provider() const {
|
|
return content_provider_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_content_provider(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
content_provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_content_provider(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
content_provider_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.content_provider)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_content_provider(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000200u;
|
|
content_provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.content_provider)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_content_provider(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
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.ModularDrmLicenseResponse.content_provider)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_content_provider() {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
return content_provider_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_content_provider() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.content_provider)
|
|
if (!_internal_has_content_provider()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
return content_provider_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_content_provider(std::string* content_provider) {
|
|
if (content_provider != nullptr) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
}
|
|
content_provider_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), content_provider,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.content_provider)
|
|
}
|
|
|
|
// optional uint32 system_id = 28;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_system_id() const {
|
|
bool value = (_has_bits_[0] & 0x02000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_system_id() const {
|
|
return _internal_has_system_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_system_id() {
|
|
system_id_ = 0u;
|
|
_has_bits_[0] &= ~0x02000000u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse::_internal_system_id() const {
|
|
return system_id_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse::system_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.system_id)
|
|
return _internal_system_id();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x02000000u;
|
|
system_id_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_system_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.system_id)
|
|
}
|
|
|
|
// optional uint32 oem_crypto_api_version = 29;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_oem_crypto_api_version() const {
|
|
bool value = (_has_bits_[0] & 0x04000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_oem_crypto_api_version() const {
|
|
return _internal_has_oem_crypto_api_version();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_oem_crypto_api_version() {
|
|
oem_crypto_api_version_ = 0u;
|
|
_has_bits_[0] &= ~0x04000000u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse::_internal_oem_crypto_api_version() const {
|
|
return oem_crypto_api_version_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse::oem_crypto_api_version() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.oem_crypto_api_version)
|
|
return _internal_oem_crypto_api_version();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_oem_crypto_api_version(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x04000000u;
|
|
oem_crypto_api_version_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_oem_crypto_api_version(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_oem_crypto_api_version(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.oem_crypto_api_version)
|
|
}
|
|
|
|
// optional .video_widevine.SecurityProfileLevel security_profile_level = 30 [deprecated = true];
|
|
inline bool ModularDrmLicenseResponse::_internal_has_security_profile_level() const {
|
|
bool value = (_has_bits_[0] & 0x08000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_security_profile_level() const {
|
|
return _internal_has_security_profile_level();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_security_profile_level() {
|
|
security_profile_level_ = 0;
|
|
_has_bits_[0] &= ~0x08000000u;
|
|
}
|
|
inline ::video_widevine::SecurityProfileLevel ModularDrmLicenseResponse::_internal_security_profile_level() const {
|
|
return static_cast< ::video_widevine::SecurityProfileLevel >(security_profile_level_);
|
|
}
|
|
inline ::video_widevine::SecurityProfileLevel ModularDrmLicenseResponse::security_profile_level() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.security_profile_level)
|
|
return _internal_security_profile_level();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_security_profile_level(::video_widevine::SecurityProfileLevel value) {
|
|
assert(::video_widevine::SecurityProfileLevel_IsValid(value));
|
|
_has_bits_[0] |= 0x08000000u;
|
|
security_profile_level_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_security_profile_level(::video_widevine::SecurityProfileLevel value) {
|
|
_internal_set_security_profile_level(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.security_profile_level)
|
|
}
|
|
|
|
// optional uint32 resource_rating_tier = 31;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_resource_rating_tier() const {
|
|
bool value = (_has_bits_[0] & 0x10000000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_resource_rating_tier() const {
|
|
return _internal_has_resource_rating_tier();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_resource_rating_tier() {
|
|
resource_rating_tier_ = 0u;
|
|
_has_bits_[0] &= ~0x10000000u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse::_internal_resource_rating_tier() const {
|
|
return resource_rating_tier_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 ModularDrmLicenseResponse::resource_rating_tier() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.resource_rating_tier)
|
|
return _internal_resource_rating_tier();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_resource_rating_tier(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x10000000u;
|
|
resource_rating_tier_ = value;
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_resource_rating_tier(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_resource_rating_tier(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.resource_rating_tier)
|
|
}
|
|
|
|
// optional .video_widevine.ModularDrmLicenseResponse.DeviceSecurityProfiles default_device_security_profiles = 32;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_default_device_security_profiles() const {
|
|
bool value = (_has_bits_[0] & 0x00008000u) != 0;
|
|
PROTOBUF_ASSUME(!value || default_device_security_profiles_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_default_device_security_profiles() const {
|
|
return _internal_has_default_device_security_profiles();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_default_device_security_profiles() {
|
|
if (default_device_security_profiles_ != nullptr) default_device_security_profiles_->Clear();
|
|
_has_bits_[0] &= ~0x00008000u;
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles& ModularDrmLicenseResponse::_internal_default_device_security_profiles() const {
|
|
const ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* p = default_device_security_profiles_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles&>(
|
|
::video_widevine::_ModularDrmLicenseResponse_DeviceSecurityProfiles_default_instance_);
|
|
}
|
|
inline const ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles& ModularDrmLicenseResponse::default_device_security_profiles() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.default_device_security_profiles)
|
|
return _internal_default_device_security_profiles();
|
|
}
|
|
inline void ModularDrmLicenseResponse::unsafe_arena_set_allocated_default_device_security_profiles(
|
|
::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* default_device_security_profiles) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(default_device_security_profiles_);
|
|
}
|
|
default_device_security_profiles_ = default_device_security_profiles;
|
|
if (default_device_security_profiles) {
|
|
_has_bits_[0] |= 0x00008000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00008000u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseResponse.default_device_security_profiles)
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* ModularDrmLicenseResponse::release_default_device_security_profiles() {
|
|
_has_bits_[0] &= ~0x00008000u;
|
|
::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* temp = default_device_security_profiles_;
|
|
default_device_security_profiles_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* ModularDrmLicenseResponse::unsafe_arena_release_default_device_security_profiles() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.default_device_security_profiles)
|
|
_has_bits_[0] &= ~0x00008000u;
|
|
::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* temp = default_device_security_profiles_;
|
|
default_device_security_profiles_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* ModularDrmLicenseResponse::_internal_mutable_default_device_security_profiles() {
|
|
_has_bits_[0] |= 0x00008000u;
|
|
if (default_device_security_profiles_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles>(GetArena());
|
|
default_device_security_profiles_ = p;
|
|
}
|
|
return default_device_security_profiles_;
|
|
}
|
|
inline ::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* ModularDrmLicenseResponse::mutable_default_device_security_profiles() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.default_device_security_profiles)
|
|
return _internal_mutable_default_device_security_profiles();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_default_device_security_profiles(::video_widevine::ModularDrmLicenseResponse_DeviceSecurityProfiles* default_device_security_profiles) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete default_device_security_profiles_;
|
|
}
|
|
if (default_device_security_profiles) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(default_device_security_profiles);
|
|
if (message_arena != submessage_arena) {
|
|
default_device_security_profiles = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, default_device_security_profiles, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00008000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00008000u;
|
|
}
|
|
default_device_security_profiles_ = default_device_security_profiles;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.default_device_security_profiles)
|
|
}
|
|
|
|
// optional .video_widevine.VersionInfo service_version_info = 33;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_service_version_info() const {
|
|
bool value = (_has_bits_[0] & 0x00010000u) != 0;
|
|
PROTOBUF_ASSUME(!value || service_version_info_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_service_version_info() const {
|
|
return _internal_has_service_version_info();
|
|
}
|
|
inline const ::video_widevine::VersionInfo& ModularDrmLicenseResponse::_internal_service_version_info() const {
|
|
const ::video_widevine::VersionInfo* p = service_version_info_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::VersionInfo&>(
|
|
::video_widevine::_VersionInfo_default_instance_);
|
|
}
|
|
inline const ::video_widevine::VersionInfo& ModularDrmLicenseResponse::service_version_info() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.service_version_info)
|
|
return _internal_service_version_info();
|
|
}
|
|
inline void ModularDrmLicenseResponse::unsafe_arena_set_allocated_service_version_info(
|
|
::video_widevine::VersionInfo* service_version_info) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(service_version_info_);
|
|
}
|
|
service_version_info_ = service_version_info;
|
|
if (service_version_info) {
|
|
_has_bits_[0] |= 0x00010000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00010000u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ModularDrmLicenseResponse.service_version_info)
|
|
}
|
|
inline ::video_widevine::VersionInfo* ModularDrmLicenseResponse::release_service_version_info() {
|
|
_has_bits_[0] &= ~0x00010000u;
|
|
::video_widevine::VersionInfo* temp = service_version_info_;
|
|
service_version_info_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::VersionInfo* ModularDrmLicenseResponse::unsafe_arena_release_service_version_info() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.service_version_info)
|
|
_has_bits_[0] &= ~0x00010000u;
|
|
::video_widevine::VersionInfo* temp = service_version_info_;
|
|
service_version_info_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::VersionInfo* ModularDrmLicenseResponse::_internal_mutable_service_version_info() {
|
|
_has_bits_[0] |= 0x00010000u;
|
|
if (service_version_info_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::VersionInfo>(GetArena());
|
|
service_version_info_ = p;
|
|
}
|
|
return service_version_info_;
|
|
}
|
|
inline ::video_widevine::VersionInfo* ModularDrmLicenseResponse::mutable_service_version_info() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.service_version_info)
|
|
return _internal_mutable_service_version_info();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_service_version_info(::video_widevine::VersionInfo* service_version_info) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(service_version_info_);
|
|
}
|
|
if (service_version_info) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(service_version_info)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
service_version_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, service_version_info, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00010000u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00010000u;
|
|
}
|
|
service_version_info_ = service_version_info;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.service_version_info)
|
|
}
|
|
|
|
// optional string soc = 34;
|
|
inline bool ModularDrmLicenseResponse::_internal_has_soc() const {
|
|
bool value = (_has_bits_[0] & 0x00000400u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ModularDrmLicenseResponse::has_soc() const {
|
|
return _internal_has_soc();
|
|
}
|
|
inline void ModularDrmLicenseResponse::clear_soc() {
|
|
soc_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000400u;
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::soc() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ModularDrmLicenseResponse.soc)
|
|
return _internal_soc();
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_soc(const std::string& value) {
|
|
_internal_set_soc(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ModularDrmLicenseResponse.soc)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::mutable_soc() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ModularDrmLicenseResponse.soc)
|
|
return _internal_mutable_soc();
|
|
}
|
|
inline const std::string& ModularDrmLicenseResponse::_internal_soc() const {
|
|
return soc_.Get();
|
|
}
|
|
inline void ModularDrmLicenseResponse::_internal_set_soc(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
soc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_soc(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
soc_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ModularDrmLicenseResponse.soc)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_soc(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000400u;
|
|
soc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ModularDrmLicenseResponse.soc)
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_soc(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
soc_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ModularDrmLicenseResponse.soc)
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::_internal_mutable_soc() {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
return soc_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ModularDrmLicenseResponse::release_soc() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ModularDrmLicenseResponse.soc)
|
|
if (!_internal_has_soc()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000400u;
|
|
return soc_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ModularDrmLicenseResponse::set_allocated_soc(std::string* soc) {
|
|
if (soc != nullptr) {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000400u;
|
|
}
|
|
soc_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), soc,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ModularDrmLicenseResponse.soc)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// LicenseResponse
|
|
|
|
// optional string licenses = 2;
|
|
inline bool LicenseResponse::_internal_has_licenses() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool LicenseResponse::has_licenses() const {
|
|
return _internal_has_licenses();
|
|
}
|
|
inline void LicenseResponse::clear_licenses() {
|
|
licenses_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& LicenseResponse::licenses() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.LicenseResponse.licenses)
|
|
return _internal_licenses();
|
|
}
|
|
inline void LicenseResponse::set_licenses(const std::string& value) {
|
|
_internal_set_licenses(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.LicenseResponse.licenses)
|
|
}
|
|
inline std::string* LicenseResponse::mutable_licenses() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.LicenseResponse.licenses)
|
|
return _internal_mutable_licenses();
|
|
}
|
|
inline const std::string& LicenseResponse::_internal_licenses() const {
|
|
return licenses_.Get();
|
|
}
|
|
inline void LicenseResponse::_internal_set_licenses(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
licenses_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void LicenseResponse::set_licenses(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
licenses_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.LicenseResponse.licenses)
|
|
}
|
|
inline void LicenseResponse::set_licenses(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
licenses_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.LicenseResponse.licenses)
|
|
}
|
|
inline void LicenseResponse::set_licenses(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
licenses_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.LicenseResponse.licenses)
|
|
}
|
|
inline std::string* LicenseResponse::_internal_mutable_licenses() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return licenses_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* LicenseResponse::release_licenses() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.LicenseResponse.licenses)
|
|
if (!_internal_has_licenses()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return licenses_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void LicenseResponse::set_allocated_licenses(std::string* licenses) {
|
|
if (licenses != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
licenses_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), licenses,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.LicenseResponse.licenses)
|
|
}
|
|
|
|
// repeated .video_widevine.LicenseMetadata license_metadata = 3;
|
|
inline int LicenseResponse::_internal_license_metadata_size() const {
|
|
return license_metadata_.size();
|
|
}
|
|
inline int LicenseResponse::license_metadata_size() const {
|
|
return _internal_license_metadata_size();
|
|
}
|
|
inline void LicenseResponse::clear_license_metadata() {
|
|
license_metadata_.Clear();
|
|
}
|
|
inline ::video_widevine::LicenseMetadata* LicenseResponse::mutable_license_metadata(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.LicenseResponse.license_metadata)
|
|
return license_metadata_.Mutable(index);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::LicenseMetadata >*
|
|
LicenseResponse::mutable_license_metadata() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.LicenseResponse.license_metadata)
|
|
return &license_metadata_;
|
|
}
|
|
inline const ::video_widevine::LicenseMetadata& LicenseResponse::_internal_license_metadata(int index) const {
|
|
return license_metadata_.Get(index);
|
|
}
|
|
inline const ::video_widevine::LicenseMetadata& LicenseResponse::license_metadata(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.LicenseResponse.license_metadata)
|
|
return _internal_license_metadata(index);
|
|
}
|
|
inline ::video_widevine::LicenseMetadata* LicenseResponse::_internal_add_license_metadata() {
|
|
return license_metadata_.Add();
|
|
}
|
|
inline ::video_widevine::LicenseMetadata* LicenseResponse::add_license_metadata() {
|
|
// @@protoc_insertion_point(field_add:video_widevine.LicenseResponse.license_metadata)
|
|
return _internal_add_license_metadata();
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::LicenseMetadata >&
|
|
LicenseResponse::license_metadata() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.LicenseResponse.license_metadata)
|
|
return license_metadata_;
|
|
}
|
|
|
|
// optional string make = 4;
|
|
inline bool LicenseResponse::_internal_has_make() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool LicenseResponse::has_make() const {
|
|
return _internal_has_make();
|
|
}
|
|
inline void LicenseResponse::clear_make() {
|
|
make_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& LicenseResponse::make() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.LicenseResponse.make)
|
|
return _internal_make();
|
|
}
|
|
inline void LicenseResponse::set_make(const std::string& value) {
|
|
_internal_set_make(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.LicenseResponse.make)
|
|
}
|
|
inline std::string* LicenseResponse::mutable_make() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.LicenseResponse.make)
|
|
return _internal_mutable_make();
|
|
}
|
|
inline const std::string& LicenseResponse::_internal_make() const {
|
|
return make_.Get();
|
|
}
|
|
inline void LicenseResponse::_internal_set_make(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
make_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void LicenseResponse::set_make(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
make_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.LicenseResponse.make)
|
|
}
|
|
inline void LicenseResponse::set_make(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
make_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.LicenseResponse.make)
|
|
}
|
|
inline void LicenseResponse::set_make(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
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.LicenseResponse.make)
|
|
}
|
|
inline std::string* LicenseResponse::_internal_mutable_make() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return make_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* LicenseResponse::release_make() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.LicenseResponse.make)
|
|
if (!_internal_has_make()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return make_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void LicenseResponse::set_allocated_make(std::string* make) {
|
|
if (make != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
make_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), make,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.LicenseResponse.make)
|
|
}
|
|
|
|
// optional string model = 5;
|
|
inline bool LicenseResponse::_internal_has_model() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool LicenseResponse::has_model() const {
|
|
return _internal_has_model();
|
|
}
|
|
inline void LicenseResponse::clear_model() {
|
|
model_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& LicenseResponse::model() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.LicenseResponse.model)
|
|
return _internal_model();
|
|
}
|
|
inline void LicenseResponse::set_model(const std::string& value) {
|
|
_internal_set_model(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.LicenseResponse.model)
|
|
}
|
|
inline std::string* LicenseResponse::mutable_model() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.LicenseResponse.model)
|
|
return _internal_mutable_model();
|
|
}
|
|
inline const std::string& LicenseResponse::_internal_model() const {
|
|
return model_.Get();
|
|
}
|
|
inline void LicenseResponse::_internal_set_model(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void LicenseResponse::set_model(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
model_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.LicenseResponse.model)
|
|
}
|
|
inline void LicenseResponse::set_model(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000004u;
|
|
model_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.LicenseResponse.model)
|
|
}
|
|
inline void LicenseResponse::set_model(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
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.LicenseResponse.model)
|
|
}
|
|
inline std::string* LicenseResponse::_internal_mutable_model() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return model_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* LicenseResponse::release_model() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.LicenseResponse.model)
|
|
if (!_internal_has_model()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return model_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void LicenseResponse::set_allocated_model(std::string* model) {
|
|
if (model != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
model_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), model,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.LicenseResponse.model)
|
|
}
|
|
|
|
// optional string platform = 6;
|
|
inline bool LicenseResponse::_internal_has_platform() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool LicenseResponse::has_platform() const {
|
|
return _internal_has_platform();
|
|
}
|
|
inline void LicenseResponse::clear_platform() {
|
|
platform_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& LicenseResponse::platform() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.LicenseResponse.platform)
|
|
return _internal_platform();
|
|
}
|
|
inline void LicenseResponse::set_platform(const std::string& value) {
|
|
_internal_set_platform(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.LicenseResponse.platform)
|
|
}
|
|
inline std::string* LicenseResponse::mutable_platform() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.LicenseResponse.platform)
|
|
return _internal_mutable_platform();
|
|
}
|
|
inline const std::string& LicenseResponse::_internal_platform() const {
|
|
return platform_.Get();
|
|
}
|
|
inline void LicenseResponse::_internal_set_platform(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
platform_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void LicenseResponse::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.LicenseResponse.platform)
|
|
}
|
|
inline void LicenseResponse::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.LicenseResponse.platform)
|
|
}
|
|
inline void LicenseResponse::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.LicenseResponse.platform)
|
|
}
|
|
inline std::string* LicenseResponse::_internal_mutable_platform() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return platform_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* LicenseResponse::release_platform() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.LicenseResponse.platform)
|
|
if (!_internal_has_platform()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
return platform_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void LicenseResponse::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.LicenseResponse.platform)
|
|
}
|
|
|
|
#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::ModularDrmLicenseRequest_CommonTrackTypeSet> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet>() {
|
|
return ::video_widevine::ModularDrmLicenseRequest_CommonTrackTypeSet_descriptor();
|
|
}
|
|
template <> struct is_proto_enum< ::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet>() {
|
|
return ::video_widevine::ModularDrmLicenseRequest_VideoFeatureKeySet_descriptor();
|
|
}
|
|
template <> struct is_proto_enum< ::video_widevine::ModularDrmLicenseResponse_Status> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::ModularDrmLicenseResponse_Status>() {
|
|
return ::video_widevine::ModularDrmLicenseResponse_Status_descriptor();
|
|
}
|
|
template <> struct is_proto_enum< ::video_widevine::ModularDrmType> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::ModularDrmType>() {
|
|
return ::video_widevine::ModularDrmType_descriptor();
|
|
}
|
|
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include <google/protobuf/port_undef.inc>
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2flicense_5fservices_2eproto
|