WvPL License SDK release: 17.0.1
This commit is contained in:
@@ -49,7 +49,7 @@ struct TableStruct_protos_2fpublic_2fexternal_5flicense_2eproto {
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4]
|
||||
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
|
||||
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
|
||||
@@ -63,6 +63,9 @@ extern EncryptedLicenseRequestDefaultTypeInternal _EncryptedLicenseRequest_defau
|
||||
class ExternalLicense;
|
||||
struct ExternalLicenseDefaultTypeInternal;
|
||||
extern ExternalLicenseDefaultTypeInternal _ExternalLicense_default_instance_;
|
||||
class ExternalLicenseCustomData;
|
||||
struct ExternalLicenseCustomDataDefaultTypeInternal;
|
||||
extern ExternalLicenseCustomDataDefaultTypeInternal _ExternalLicenseCustomData_default_instance_;
|
||||
class ExternalLicenseRequest;
|
||||
struct ExternalLicenseRequestDefaultTypeInternal;
|
||||
extern ExternalLicenseRequestDefaultTypeInternal _ExternalLicenseRequest_default_instance_;
|
||||
@@ -70,6 +73,7 @@ extern ExternalLicenseRequestDefaultTypeInternal _ExternalLicenseRequest_default
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::video_widevine::EncryptedLicenseRequest* Arena::CreateMaybeMessage<::video_widevine::EncryptedLicenseRequest>(Arena*);
|
||||
template<> ::video_widevine::ExternalLicense* Arena::CreateMaybeMessage<::video_widevine::ExternalLicense>(Arena*);
|
||||
template<> ::video_widevine::ExternalLicenseCustomData* Arena::CreateMaybeMessage<::video_widevine::ExternalLicenseCustomData>(Arena*);
|
||||
template<> ::video_widevine::ExternalLicenseRequest* Arena::CreateMaybeMessage<::video_widevine::ExternalLicenseRequest>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace video_widevine {
|
||||
@@ -471,6 +475,7 @@ class ExternalLicenseRequest final :
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kOriginalLicenseFieldNumber = 8,
|
||||
kContentIdFieldNumber = 5,
|
||||
kRequestTypeFieldNumber = 1,
|
||||
kRequestTimeFieldNumber = 6,
|
||||
@@ -479,6 +484,24 @@ class ExternalLicenseRequest final :
|
||||
kClientIdFieldNumber = 3,
|
||||
kEncryptedClientIdFieldNumber = 4,
|
||||
};
|
||||
// optional bytes original_license = 8;
|
||||
bool has_original_license() const;
|
||||
private:
|
||||
bool _internal_has_original_license() const;
|
||||
public:
|
||||
void clear_original_license();
|
||||
const std::string& original_license() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_original_license(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_original_license();
|
||||
PROTOBUF_MUST_USE_RESULT std::string* release_original_license();
|
||||
void set_allocated_original_license(std::string* original_license);
|
||||
private:
|
||||
const std::string& _internal_original_license() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_original_license(const std::string& value);
|
||||
std::string* _internal_mutable_original_license();
|
||||
public:
|
||||
|
||||
// optional .video_widevine.LicenseRequest.ContentIdentification content_id = 5;
|
||||
bool has_content_id() const;
|
||||
private:
|
||||
@@ -618,6 +641,7 @@ class ExternalLicenseRequest final :
|
||||
typedef void DestructorSkippable_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr original_license_;
|
||||
::video_widevine::LicenseRequest_ContentIdentification* content_id_;
|
||||
int request_type_;
|
||||
::PROTOBUF_NAMESPACE_ID::int64 request_time_;
|
||||
@@ -889,6 +913,177 @@ class ExternalLicense final :
|
||||
int license_type_;
|
||||
friend struct ::TableStruct_protos_2fpublic_2fexternal_5flicense_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class ExternalLicenseCustomData final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ExternalLicenseCustomData) */ {
|
||||
public:
|
||||
inline ExternalLicenseCustomData() : ExternalLicenseCustomData(nullptr) {}
|
||||
~ExternalLicenseCustomData() override;
|
||||
explicit constexpr ExternalLicenseCustomData(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
ExternalLicenseCustomData(const ExternalLicenseCustomData& from);
|
||||
ExternalLicenseCustomData(ExternalLicenseCustomData&& from) noexcept
|
||||
: ExternalLicenseCustomData() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline ExternalLicenseCustomData& operator=(const ExternalLicenseCustomData& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline ExternalLicenseCustomData& operator=(ExternalLicenseCustomData&& from) noexcept {
|
||||
if (this == &from) return *this;
|
||||
if (GetOwningArena() == from.GetOwningArena()) {
|
||||
InternalSwap(&from);
|
||||
} else {
|
||||
CopyFrom(from);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
|
||||
return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
|
||||
return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
|
||||
return GetDescriptor();
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
|
||||
return default_instance().GetMetadata().descriptor;
|
||||
}
|
||||
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
|
||||
return default_instance().GetMetadata().reflection;
|
||||
}
|
||||
static const ExternalLicenseCustomData& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const ExternalLicenseCustomData* internal_default_instance() {
|
||||
return reinterpret_cast<const ExternalLicenseCustomData*>(
|
||||
&_ExternalLicenseCustomData_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
3;
|
||||
|
||||
friend void swap(ExternalLicenseCustomData& a, ExternalLicenseCustomData& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(ExternalLicenseCustomData* other) {
|
||||
if (other == this) return;
|
||||
if (GetOwningArena() == other->GetOwningArena()) {
|
||||
InternalSwap(other);
|
||||
} else {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
||||
}
|
||||
}
|
||||
void UnsafeArenaSwap(ExternalLicenseCustomData* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
inline ExternalLicenseCustomData* New() const final {
|
||||
return new ExternalLicenseCustomData();
|
||||
}
|
||||
|
||||
ExternalLicenseCustomData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
||||
return CreateMaybeMessage<ExternalLicenseCustomData>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const ExternalLicenseCustomData& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom(const ExternalLicenseCustomData& from);
|
||||
private:
|
||||
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message*to, const ::PROTOBUF_NAMESPACE_ID::Message&from);
|
||||
public:
|
||||
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
|
||||
bool IsInitialized() const final;
|
||||
|
||||
size_t ByteSizeLong() const final;
|
||||
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
|
||||
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
|
||||
int GetCachedSize() const final { return _cached_size_.Get(); }
|
||||
|
||||
private:
|
||||
void SharedCtor();
|
||||
void SharedDtor();
|
||||
void SetCachedSize(int size) const final;
|
||||
void InternalSwap(ExternalLicenseCustomData* other);
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "video_widevine.ExternalLicenseCustomData";
|
||||
}
|
||||
protected:
|
||||
explicit ExternalLicenseCustomData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
private:
|
||||
static void ArenaDtor(void* object);
|
||||
inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
||||
public:
|
||||
|
||||
static const ClassData _class_data_;
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||
|
||||
// nested types ----------------------------------------------------
|
||||
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kLicenseIdFieldNumber = 1,
|
||||
kOriginalPlaybackStartTimeSecondsFieldNumber = 2,
|
||||
};
|
||||
// optional .video_widevine.LicenseIdentification license_id = 1;
|
||||
bool has_license_id() const;
|
||||
private:
|
||||
bool _internal_has_license_id() const;
|
||||
public:
|
||||
void clear_license_id();
|
||||
const ::video_widevine::LicenseIdentification& license_id() const;
|
||||
PROTOBUF_MUST_USE_RESULT ::video_widevine::LicenseIdentification* release_license_id();
|
||||
::video_widevine::LicenseIdentification* mutable_license_id();
|
||||
void set_allocated_license_id(::video_widevine::LicenseIdentification* license_id);
|
||||
private:
|
||||
const ::video_widevine::LicenseIdentification& _internal_license_id() const;
|
||||
::video_widevine::LicenseIdentification* _internal_mutable_license_id();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_license_id(
|
||||
::video_widevine::LicenseIdentification* license_id);
|
||||
::video_widevine::LicenseIdentification* unsafe_arena_release_license_id();
|
||||
|
||||
// optional int64 original_playback_start_time_seconds = 2;
|
||||
bool has_original_playback_start_time_seconds() const;
|
||||
private:
|
||||
bool _internal_has_original_playback_start_time_seconds() const;
|
||||
public:
|
||||
void clear_original_playback_start_time_seconds();
|
||||
::PROTOBUF_NAMESPACE_ID::int64 original_playback_start_time_seconds() const;
|
||||
void set_original_playback_start_time_seconds(::PROTOBUF_NAMESPACE_ID::int64 value);
|
||||
private:
|
||||
::PROTOBUF_NAMESPACE_ID::int64 _internal_original_playback_start_time_seconds() const;
|
||||
void _internal_set_original_playback_start_time_seconds(::PROTOBUF_NAMESPACE_ID::int64 value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:video_widevine.ExternalLicenseCustomData)
|
||||
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_;
|
||||
::video_widevine::LicenseIdentification* license_id_;
|
||||
::PROTOBUF_NAMESPACE_ID::int64 original_playback_start_time_seconds_;
|
||||
friend struct ::TableStruct_protos_2fpublic_2fexternal_5flicense_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
@@ -1196,7 +1391,7 @@ inline void EncryptedLicenseRequest::set_allocated_encrypted_privacy_key(std::st
|
||||
|
||||
// optional .video_widevine.ExternalLicenseType request_type = 1;
|
||||
inline bool ExternalLicenseRequest::_internal_has_request_type() const {
|
||||
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
||||
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool ExternalLicenseRequest::has_request_type() const {
|
||||
@@ -1204,7 +1399,7 @@ inline bool ExternalLicenseRequest::has_request_type() const {
|
||||
}
|
||||
inline void ExternalLicenseRequest::clear_request_type() {
|
||||
request_type_ = 0;
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
}
|
||||
inline ::video_widevine::ExternalLicenseType ExternalLicenseRequest::_internal_request_type() const {
|
||||
return static_cast< ::video_widevine::ExternalLicenseType >(request_type_);
|
||||
@@ -1215,7 +1410,7 @@ inline ::video_widevine::ExternalLicenseType ExternalLicenseRequest::request_typ
|
||||
}
|
||||
inline void ExternalLicenseRequest::_internal_set_request_type(::video_widevine::ExternalLicenseType value) {
|
||||
assert(::video_widevine::ExternalLicenseType_IsValid(value));
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
request_type_ = value;
|
||||
}
|
||||
inline void ExternalLicenseRequest::set_request_type(::video_widevine::ExternalLicenseType value) {
|
||||
@@ -1513,7 +1708,7 @@ inline ::video_widevine::EncryptedClientIdentification* ExternalLicenseRequest::
|
||||
|
||||
// optional .video_widevine.LicenseRequest.ContentIdentification content_id = 5;
|
||||
inline bool ExternalLicenseRequest::_internal_has_content_id() const {
|
||||
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
||||
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
||||
PROTOBUF_ASSUME(!value || content_id_ != nullptr);
|
||||
return value;
|
||||
}
|
||||
@@ -1536,14 +1731,14 @@ inline void ExternalLicenseRequest::unsafe_arena_set_allocated_content_id(
|
||||
}
|
||||
content_id_ = content_id;
|
||||
if (content_id) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ExternalLicenseRequest.content_id)
|
||||
}
|
||||
inline ::video_widevine::LicenseRequest_ContentIdentification* ExternalLicenseRequest::release_content_id() {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
::video_widevine::LicenseRequest_ContentIdentification* temp = content_id_;
|
||||
content_id_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
@@ -1559,13 +1754,13 @@ inline ::video_widevine::LicenseRequest_ContentIdentification* ExternalLicenseRe
|
||||
}
|
||||
inline ::video_widevine::LicenseRequest_ContentIdentification* ExternalLicenseRequest::unsafe_arena_release_content_id() {
|
||||
// @@protoc_insertion_point(field_release:video_widevine.ExternalLicenseRequest.content_id)
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
::video_widevine::LicenseRequest_ContentIdentification* temp = content_id_;
|
||||
content_id_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::video_widevine::LicenseRequest_ContentIdentification* ExternalLicenseRequest::_internal_mutable_content_id() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
if (content_id_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::video_widevine::LicenseRequest_ContentIdentification>(GetArenaForAllocation());
|
||||
content_id_ = p;
|
||||
@@ -1591,9 +1786,9 @@ inline void ExternalLicenseRequest::set_allocated_content_id(::video_widevine::L
|
||||
content_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, content_id, submessage_arena);
|
||||
}
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
content_id_ = content_id;
|
||||
// @@protoc_insertion_point(field_set_allocated:video_widevine.ExternalLicenseRequest.content_id)
|
||||
@@ -1601,7 +1796,7 @@ inline void ExternalLicenseRequest::set_allocated_content_id(::video_widevine::L
|
||||
|
||||
// optional int64 request_time = 6;
|
||||
inline bool ExternalLicenseRequest::_internal_has_request_time() const {
|
||||
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
||||
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool ExternalLicenseRequest::has_request_time() const {
|
||||
@@ -1609,7 +1804,7 @@ inline bool ExternalLicenseRequest::has_request_time() const {
|
||||
}
|
||||
inline void ExternalLicenseRequest::clear_request_time() {
|
||||
request_time_ = int64_t{0};
|
||||
_has_bits_[0] &= ~0x00000004u;
|
||||
_has_bits_[0] &= ~0x00000008u;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::int64 ExternalLicenseRequest::_internal_request_time() const {
|
||||
return request_time_;
|
||||
@@ -1619,7 +1814,7 @@ inline ::PROTOBUF_NAMESPACE_ID::int64 ExternalLicenseRequest::request_time() con
|
||||
return _internal_request_time();
|
||||
}
|
||||
inline void ExternalLicenseRequest::_internal_set_request_time(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
||||
_has_bits_[0] |= 0x00000004u;
|
||||
_has_bits_[0] |= 0x00000008u;
|
||||
request_time_ = value;
|
||||
}
|
||||
inline void ExternalLicenseRequest::set_request_time(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
||||
@@ -1627,6 +1822,64 @@ inline void ExternalLicenseRequest::set_request_time(::PROTOBUF_NAMESPACE_ID::in
|
||||
// @@protoc_insertion_point(field_set:video_widevine.ExternalLicenseRequest.request_time)
|
||||
}
|
||||
|
||||
// optional bytes original_license = 8;
|
||||
inline bool ExternalLicenseRequest::_internal_has_original_license() const {
|
||||
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool ExternalLicenseRequest::has_original_license() const {
|
||||
return _internal_has_original_license();
|
||||
}
|
||||
inline void ExternalLicenseRequest::clear_original_license() {
|
||||
original_license_.ClearToEmpty();
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
inline const std::string& ExternalLicenseRequest::original_license() const {
|
||||
// @@protoc_insertion_point(field_get:video_widevine.ExternalLicenseRequest.original_license)
|
||||
return _internal_original_license();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void ExternalLicenseRequest::set_original_license(ArgT0&& arg0, ArgT... args) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
original_license_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:video_widevine.ExternalLicenseRequest.original_license)
|
||||
}
|
||||
inline std::string* ExternalLicenseRequest::mutable_original_license() {
|
||||
std::string* _s = _internal_mutable_original_license();
|
||||
// @@protoc_insertion_point(field_mutable:video_widevine.ExternalLicenseRequest.original_license)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& ExternalLicenseRequest::_internal_original_license() const {
|
||||
return original_license_.Get();
|
||||
}
|
||||
inline void ExternalLicenseRequest::_internal_set_original_license(const std::string& value) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
original_license_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* ExternalLicenseRequest::_internal_mutable_original_license() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
return original_license_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* ExternalLicenseRequest::release_original_license() {
|
||||
// @@protoc_insertion_point(field_release:video_widevine.ExternalLicenseRequest.original_license)
|
||||
if (!_internal_has_original_license()) {
|
||||
return nullptr;
|
||||
}
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
return original_license_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
|
||||
}
|
||||
inline void ExternalLicenseRequest::set_allocated_original_license(std::string* original_license) {
|
||||
if (original_license != nullptr) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
original_license_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), original_license,
|
||||
GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set_allocated:video_widevine.ExternalLicenseRequest.original_license)
|
||||
}
|
||||
|
||||
inline bool ExternalLicenseRequest::has_clear_or_encrypted_request() const {
|
||||
return clear_or_encrypted_request_case() != CLEAR_OR_ENCRYPTED_REQUEST_NOT_SET;
|
||||
}
|
||||
@@ -1985,6 +2238,126 @@ inline void ExternalLicense::set_allocated_provider_client_token(std::string* pr
|
||||
// @@protoc_insertion_point(field_set_allocated:video_widevine.ExternalLicense.provider_client_token)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// ExternalLicenseCustomData
|
||||
|
||||
// optional .video_widevine.LicenseIdentification license_id = 1;
|
||||
inline bool ExternalLicenseCustomData::_internal_has_license_id() const {
|
||||
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
||||
PROTOBUF_ASSUME(!value || license_id_ != nullptr);
|
||||
return value;
|
||||
}
|
||||
inline bool ExternalLicenseCustomData::has_license_id() const {
|
||||
return _internal_has_license_id();
|
||||
}
|
||||
inline const ::video_widevine::LicenseIdentification& ExternalLicenseCustomData::_internal_license_id() const {
|
||||
const ::video_widevine::LicenseIdentification* p = license_id_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::LicenseIdentification&>(
|
||||
::video_widevine::_LicenseIdentification_default_instance_);
|
||||
}
|
||||
inline const ::video_widevine::LicenseIdentification& ExternalLicenseCustomData::license_id() const {
|
||||
// @@protoc_insertion_point(field_get:video_widevine.ExternalLicenseCustomData.license_id)
|
||||
return _internal_license_id();
|
||||
}
|
||||
inline void ExternalLicenseCustomData::unsafe_arena_set_allocated_license_id(
|
||||
::video_widevine::LicenseIdentification* license_id) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(license_id_);
|
||||
}
|
||||
license_id_ = license_id;
|
||||
if (license_id) {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ExternalLicenseCustomData.license_id)
|
||||
}
|
||||
inline ::video_widevine::LicenseIdentification* ExternalLicenseCustomData::release_license_id() {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
::video_widevine::LicenseIdentification* temp = license_id_;
|
||||
license_id_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::video_widevine::LicenseIdentification* ExternalLicenseCustomData::unsafe_arena_release_license_id() {
|
||||
// @@protoc_insertion_point(field_release:video_widevine.ExternalLicenseCustomData.license_id)
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
::video_widevine::LicenseIdentification* temp = license_id_;
|
||||
license_id_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::video_widevine::LicenseIdentification* ExternalLicenseCustomData::_internal_mutable_license_id() {
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
if (license_id_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::video_widevine::LicenseIdentification>(GetArenaForAllocation());
|
||||
license_id_ = p;
|
||||
}
|
||||
return license_id_;
|
||||
}
|
||||
inline ::video_widevine::LicenseIdentification* ExternalLicenseCustomData::mutable_license_id() {
|
||||
::video_widevine::LicenseIdentification* _msg = _internal_mutable_license_id();
|
||||
// @@protoc_insertion_point(field_mutable:video_widevine.ExternalLicenseCustomData.license_id)
|
||||
return _msg;
|
||||
}
|
||||
inline void ExternalLicenseCustomData::set_allocated_license_id(::video_widevine::LicenseIdentification* license_id) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(license_id_);
|
||||
}
|
||||
if (license_id) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<
|
||||
::PROTOBUF_NAMESPACE_ID::MessageLite>::GetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(license_id));
|
||||
if (message_arena != submessage_arena) {
|
||||
license_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, license_id, submessage_arena);
|
||||
}
|
||||
_has_bits_[0] |= 0x00000001u;
|
||||
} else {
|
||||
_has_bits_[0] &= ~0x00000001u;
|
||||
}
|
||||
license_id_ = license_id;
|
||||
// @@protoc_insertion_point(field_set_allocated:video_widevine.ExternalLicenseCustomData.license_id)
|
||||
}
|
||||
|
||||
// optional int64 original_playback_start_time_seconds = 2;
|
||||
inline bool ExternalLicenseCustomData::_internal_has_original_playback_start_time_seconds() const {
|
||||
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
||||
return value;
|
||||
}
|
||||
inline bool ExternalLicenseCustomData::has_original_playback_start_time_seconds() const {
|
||||
return _internal_has_original_playback_start_time_seconds();
|
||||
}
|
||||
inline void ExternalLicenseCustomData::clear_original_playback_start_time_seconds() {
|
||||
original_playback_start_time_seconds_ = int64_t{0};
|
||||
_has_bits_[0] &= ~0x00000002u;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::int64 ExternalLicenseCustomData::_internal_original_playback_start_time_seconds() const {
|
||||
return original_playback_start_time_seconds_;
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::int64 ExternalLicenseCustomData::original_playback_start_time_seconds() const {
|
||||
// @@protoc_insertion_point(field_get:video_widevine.ExternalLicenseCustomData.original_playback_start_time_seconds)
|
||||
return _internal_original_playback_start_time_seconds();
|
||||
}
|
||||
inline void ExternalLicenseCustomData::_internal_set_original_playback_start_time_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
||||
_has_bits_[0] |= 0x00000002u;
|
||||
original_playback_start_time_seconds_ = value;
|
||||
}
|
||||
inline void ExternalLicenseCustomData::set_original_playback_start_time_seconds(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
||||
_internal_set_original_playback_start_time_seconds(value);
|
||||
// @@protoc_insertion_point(field_set:video_widevine.ExternalLicenseCustomData.original_playback_start_time_seconds)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
@@ -1992,6 +2365,8 @@ inline void ExternalLicense::set_allocated_provider_client_token(std::string* pr
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user