3647 lines
154 KiB
C++
3647 lines
154 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: protos/public/license_server_sdk.proto
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto
|
|
#define GOOGLE_PROTOBUF_INCLUDED_protos_2fpublic_2flicense_5fserver_5fsdk_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/license_protocol.pb.h"
|
|
#include "protos/public/widevine_pssh.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
#include <google/protobuf/port_def.inc>
|
|
#define PROTOBUF_INTERNAL_EXPORT_protos_2fpublic_2flicense_5fserver_5fsdk_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_5fserver_5fsdk_2eproto {
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[7]
|
|
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
|
|
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
|
|
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
|
|
};
|
|
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto;
|
|
namespace video_widevine {
|
|
class ContentInfo;
|
|
class ContentInfoDefaultTypeInternal;
|
|
extern ContentInfoDefaultTypeInternal _ContentInfo_default_instance_;
|
|
class ContentInfo_ContentInfoEntry;
|
|
class ContentInfo_ContentInfoEntryDefaultTypeInternal;
|
|
extern ContentInfo_ContentInfoEntryDefaultTypeInternal _ContentInfo_ContentInfoEntry_default_instance_;
|
|
class ContentInfo_ContentInfoEntry_Pssh;
|
|
class ContentInfo_ContentInfoEntry_PsshDefaultTypeInternal;
|
|
extern ContentInfo_ContentInfoEntry_PsshDefaultTypeInternal _ContentInfo_ContentInfoEntry_Pssh_default_instance_;
|
|
class SessionCreateOptions;
|
|
class SessionCreateOptionsDefaultTypeInternal;
|
|
extern SessionCreateOptionsDefaultTypeInternal _SessionCreateOptions_default_instance_;
|
|
class SessionInit;
|
|
class SessionInitDefaultTypeInternal;
|
|
extern SessionInitDefaultTypeInternal _SessionInit_default_instance_;
|
|
class SessionState;
|
|
class SessionStateDefaultTypeInternal;
|
|
extern SessionStateDefaultTypeInternal _SessionState_default_instance_;
|
|
class SessionUsage;
|
|
class SessionUsageDefaultTypeInternal;
|
|
extern SessionUsageDefaultTypeInternal _SessionUsage_default_instance_;
|
|
} // namespace video_widevine
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> ::video_widevine::ContentInfo* Arena::CreateMaybeMessage<::video_widevine::ContentInfo>(Arena*);
|
|
template<> ::video_widevine::ContentInfo_ContentInfoEntry* Arena::CreateMaybeMessage<::video_widevine::ContentInfo_ContentInfoEntry>(Arena*);
|
|
template<> ::video_widevine::ContentInfo_ContentInfoEntry_Pssh* Arena::CreateMaybeMessage<::video_widevine::ContentInfo_ContentInfoEntry_Pssh>(Arena*);
|
|
template<> ::video_widevine::SessionCreateOptions* Arena::CreateMaybeMessage<::video_widevine::SessionCreateOptions>(Arena*);
|
|
template<> ::video_widevine::SessionInit* Arena::CreateMaybeMessage<::video_widevine::SessionInit>(Arena*);
|
|
template<> ::video_widevine::SessionState* Arena::CreateMaybeMessage<::video_widevine::SessionState>(Arena*);
|
|
template<> ::video_widevine::SessionUsage* Arena::CreateMaybeMessage<::video_widevine::SessionUsage>(Arena*);
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
namespace video_widevine {
|
|
|
|
enum SessionUsage_ClockSecurityLevel : int {
|
|
SessionUsage_ClockSecurityLevel_INSECURE_CLOCK = 0,
|
|
SessionUsage_ClockSecurityLevel_SECURE_TIMER = 1,
|
|
SessionUsage_ClockSecurityLevel_SECURE_CLOCK = 2,
|
|
SessionUsage_ClockSecurityLevel_HW_SECURE_CLOCK = 3
|
|
};
|
|
bool SessionUsage_ClockSecurityLevel_IsValid(int value);
|
|
constexpr SessionUsage_ClockSecurityLevel SessionUsage_ClockSecurityLevel_ClockSecurityLevel_MIN = SessionUsage_ClockSecurityLevel_INSECURE_CLOCK;
|
|
constexpr SessionUsage_ClockSecurityLevel SessionUsage_ClockSecurityLevel_ClockSecurityLevel_MAX = SessionUsage_ClockSecurityLevel_HW_SECURE_CLOCK;
|
|
constexpr int SessionUsage_ClockSecurityLevel_ClockSecurityLevel_ARRAYSIZE = SessionUsage_ClockSecurityLevel_ClockSecurityLevel_MAX + 1;
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SessionUsage_ClockSecurityLevel_descriptor();
|
|
template<typename T>
|
|
inline const std::string& SessionUsage_ClockSecurityLevel_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, SessionUsage_ClockSecurityLevel>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function SessionUsage_ClockSecurityLevel_Name.");
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
|
SessionUsage_ClockSecurityLevel_descriptor(), enum_t_value);
|
|
}
|
|
inline bool SessionUsage_ClockSecurityLevel_Parse(
|
|
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SessionUsage_ClockSecurityLevel* value) {
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SessionUsage_ClockSecurityLevel>(
|
|
SessionUsage_ClockSecurityLevel_descriptor(), name, value);
|
|
}
|
|
// ===================================================================
|
|
|
|
class SessionInit PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.SessionInit) */ {
|
|
public:
|
|
inline SessionInit() : SessionInit(nullptr) {}
|
|
virtual ~SessionInit();
|
|
|
|
SessionInit(const SessionInit& from);
|
|
SessionInit(SessionInit&& from) noexcept
|
|
: SessionInit() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline SessionInit& operator=(const SessionInit& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline SessionInit& operator=(SessionInit&& 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 SessionInit& default_instance();
|
|
|
|
static inline const SessionInit* internal_default_instance() {
|
|
return reinterpret_cast<const SessionInit*>(
|
|
&_SessionInit_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(SessionInit& a, SessionInit& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(SessionInit* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(SessionInit* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline SessionInit* New() const final {
|
|
return CreateMaybeMessage<SessionInit>(nullptr);
|
|
}
|
|
|
|
SessionInit* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<SessionInit>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const SessionInit& from);
|
|
void MergeFrom(const SessionInit& 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(SessionInit* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.SessionInit";
|
|
}
|
|
protected:
|
|
explicit SessionInit(::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_5fserver_5fsdk_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kSessionIdFieldNumber = 1,
|
|
kPurchaseIdFieldNumber = 2,
|
|
kMasterSigningKeyFieldNumber = 3,
|
|
kSigningKeyFieldNumber = 4,
|
|
kProviderClientTokenFieldNumber = 6,
|
|
kProviderSessionTokenFieldNumber = 7,
|
|
kOverrideOemCryptoApiVersionFieldNumber = 11,
|
|
kLicenseCategorySpecFieldNumber = 13,
|
|
kLicenseStartTimeFieldNumber = 5,
|
|
kOverrideProviderClientTokenFieldNumber = 8,
|
|
kExcludeGroupKeyFieldNumber = 9,
|
|
kDisableOemCryptoApiVersionReflectionFieldNumber = 10,
|
|
kOverrideDeviceRevocationFieldNumber = 12,
|
|
};
|
|
// optional bytes session_id = 1;
|
|
bool has_session_id() const;
|
|
private:
|
|
bool _internal_has_session_id() const;
|
|
public:
|
|
void clear_session_id();
|
|
const std::string& session_id() const;
|
|
void set_session_id(const std::string& value);
|
|
void set_session_id(std::string&& value);
|
|
void set_session_id(const char* value);
|
|
void set_session_id(const void* value, size_t size);
|
|
std::string* mutable_session_id();
|
|
std::string* release_session_id();
|
|
void set_allocated_session_id(std::string* session_id);
|
|
private:
|
|
const std::string& _internal_session_id() const;
|
|
void _internal_set_session_id(const std::string& value);
|
|
std::string* _internal_mutable_session_id();
|
|
public:
|
|
|
|
// optional bytes purchase_id = 2;
|
|
bool has_purchase_id() const;
|
|
private:
|
|
bool _internal_has_purchase_id() const;
|
|
public:
|
|
void clear_purchase_id();
|
|
const std::string& purchase_id() const;
|
|
void set_purchase_id(const std::string& value);
|
|
void set_purchase_id(std::string&& value);
|
|
void set_purchase_id(const char* value);
|
|
void set_purchase_id(const void* value, size_t size);
|
|
std::string* mutable_purchase_id();
|
|
std::string* release_purchase_id();
|
|
void set_allocated_purchase_id(std::string* purchase_id);
|
|
private:
|
|
const std::string& _internal_purchase_id() const;
|
|
void _internal_set_purchase_id(const std::string& value);
|
|
std::string* _internal_mutable_purchase_id();
|
|
public:
|
|
|
|
// optional bytes master_signing_key = 3;
|
|
bool has_master_signing_key() const;
|
|
private:
|
|
bool _internal_has_master_signing_key() const;
|
|
public:
|
|
void clear_master_signing_key();
|
|
const std::string& master_signing_key() const;
|
|
void set_master_signing_key(const std::string& value);
|
|
void set_master_signing_key(std::string&& value);
|
|
void set_master_signing_key(const char* value);
|
|
void set_master_signing_key(const void* value, size_t size);
|
|
std::string* mutable_master_signing_key();
|
|
std::string* release_master_signing_key();
|
|
void set_allocated_master_signing_key(std::string* master_signing_key);
|
|
private:
|
|
const std::string& _internal_master_signing_key() const;
|
|
void _internal_set_master_signing_key(const std::string& value);
|
|
std::string* _internal_mutable_master_signing_key();
|
|
public:
|
|
|
|
// optional bytes signing_key = 4;
|
|
bool has_signing_key() const;
|
|
private:
|
|
bool _internal_has_signing_key() const;
|
|
public:
|
|
void clear_signing_key();
|
|
const std::string& signing_key() const;
|
|
void set_signing_key(const std::string& value);
|
|
void set_signing_key(std::string&& value);
|
|
void set_signing_key(const char* value);
|
|
void set_signing_key(const void* value, size_t size);
|
|
std::string* mutable_signing_key();
|
|
std::string* release_signing_key();
|
|
void set_allocated_signing_key(std::string* signing_key);
|
|
private:
|
|
const std::string& _internal_signing_key() const;
|
|
void _internal_set_signing_key(const std::string& value);
|
|
std::string* _internal_mutable_signing_key();
|
|
public:
|
|
|
|
// optional bytes provider_client_token = 6;
|
|
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 = 7;
|
|
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 bytes override_oem_crypto_api_version = 11;
|
|
bool has_override_oem_crypto_api_version() const;
|
|
private:
|
|
bool _internal_has_override_oem_crypto_api_version() const;
|
|
public:
|
|
void clear_override_oem_crypto_api_version();
|
|
const std::string& override_oem_crypto_api_version() const;
|
|
void set_override_oem_crypto_api_version(const std::string& value);
|
|
void set_override_oem_crypto_api_version(std::string&& value);
|
|
void set_override_oem_crypto_api_version(const char* value);
|
|
void set_override_oem_crypto_api_version(const void* value, size_t size);
|
|
std::string* mutable_override_oem_crypto_api_version();
|
|
std::string* release_override_oem_crypto_api_version();
|
|
void set_allocated_override_oem_crypto_api_version(std::string* override_oem_crypto_api_version);
|
|
private:
|
|
const std::string& _internal_override_oem_crypto_api_version() const;
|
|
void _internal_set_override_oem_crypto_api_version(const std::string& value);
|
|
std::string* _internal_mutable_override_oem_crypto_api_version();
|
|
public:
|
|
|
|
// optional .video_widevine.LicenseCategorySpec license_category_spec = 13;
|
|
bool has_license_category_spec() const;
|
|
private:
|
|
bool _internal_has_license_category_spec() const;
|
|
public:
|
|
void clear_license_category_spec();
|
|
const ::video_widevine::LicenseCategorySpec& license_category_spec() const;
|
|
::video_widevine::LicenseCategorySpec* release_license_category_spec();
|
|
::video_widevine::LicenseCategorySpec* mutable_license_category_spec();
|
|
void set_allocated_license_category_spec(::video_widevine::LicenseCategorySpec* license_category_spec);
|
|
private:
|
|
const ::video_widevine::LicenseCategorySpec& _internal_license_category_spec() const;
|
|
::video_widevine::LicenseCategorySpec* _internal_mutable_license_category_spec();
|
|
public:
|
|
void unsafe_arena_set_allocated_license_category_spec(
|
|
::video_widevine::LicenseCategorySpec* license_category_spec);
|
|
::video_widevine::LicenseCategorySpec* unsafe_arena_release_license_category_spec();
|
|
|
|
// optional int64 license_start_time = 5;
|
|
bool has_license_start_time() const;
|
|
private:
|
|
bool _internal_has_license_start_time() const;
|
|
public:
|
|
void clear_license_start_time();
|
|
::PROTOBUF_NAMESPACE_ID::int64 license_start_time() const;
|
|
void set_license_start_time(::PROTOBUF_NAMESPACE_ID::int64 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::int64 _internal_license_start_time() const;
|
|
void _internal_set_license_start_time(::PROTOBUF_NAMESPACE_ID::int64 value);
|
|
public:
|
|
|
|
// optional bool override_provider_client_token = 8 [default = false];
|
|
bool has_override_provider_client_token() const;
|
|
private:
|
|
bool _internal_has_override_provider_client_token() const;
|
|
public:
|
|
void clear_override_provider_client_token();
|
|
bool override_provider_client_token() const;
|
|
void set_override_provider_client_token(bool value);
|
|
private:
|
|
bool _internal_override_provider_client_token() const;
|
|
void _internal_set_override_provider_client_token(bool value);
|
|
public:
|
|
|
|
// optional bool exclude_group_key = 9 [default = false];
|
|
bool has_exclude_group_key() const;
|
|
private:
|
|
bool _internal_has_exclude_group_key() const;
|
|
public:
|
|
void clear_exclude_group_key();
|
|
bool exclude_group_key() const;
|
|
void set_exclude_group_key(bool value);
|
|
private:
|
|
bool _internal_exclude_group_key() const;
|
|
void _internal_set_exclude_group_key(bool value);
|
|
public:
|
|
|
|
// optional bool disable_oem_crypto_api_version_reflection = 10 [default = false];
|
|
bool has_disable_oem_crypto_api_version_reflection() const;
|
|
private:
|
|
bool _internal_has_disable_oem_crypto_api_version_reflection() const;
|
|
public:
|
|
void clear_disable_oem_crypto_api_version_reflection();
|
|
bool disable_oem_crypto_api_version_reflection() const;
|
|
void set_disable_oem_crypto_api_version_reflection(bool value);
|
|
private:
|
|
bool _internal_disable_oem_crypto_api_version_reflection() const;
|
|
void _internal_set_disable_oem_crypto_api_version_reflection(bool value);
|
|
public:
|
|
|
|
// optional bool override_device_revocation = 12 [default = false];
|
|
bool has_override_device_revocation() const;
|
|
private:
|
|
bool _internal_has_override_device_revocation() const;
|
|
public:
|
|
void clear_override_device_revocation();
|
|
bool override_device_revocation() const;
|
|
void set_override_device_revocation(bool value);
|
|
private:
|
|
bool _internal_override_device_revocation() const;
|
|
void _internal_set_override_device_revocation(bool value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.SessionInit)
|
|
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 session_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr purchase_id_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr master_signing_key_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr signing_key_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_client_token_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_session_token_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr override_oem_crypto_api_version_;
|
|
::video_widevine::LicenseCategorySpec* license_category_spec_;
|
|
::PROTOBUF_NAMESPACE_ID::int64 license_start_time_;
|
|
bool override_provider_client_token_;
|
|
bool exclude_group_key_;
|
|
bool disable_oem_crypto_api_version_reflection_;
|
|
bool override_device_revocation_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class SessionState PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.SessionState) */ {
|
|
public:
|
|
inline SessionState() : SessionState(nullptr) {}
|
|
virtual ~SessionState();
|
|
|
|
SessionState(const SessionState& from);
|
|
SessionState(SessionState&& from) noexcept
|
|
: SessionState() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline SessionState& operator=(const SessionState& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline SessionState& operator=(SessionState&& 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 SessionState& default_instance();
|
|
|
|
static inline const SessionState* internal_default_instance() {
|
|
return reinterpret_cast<const SessionState*>(
|
|
&_SessionState_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
1;
|
|
|
|
friend void swap(SessionState& a, SessionState& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(SessionState* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(SessionState* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline SessionState* New() const final {
|
|
return CreateMaybeMessage<SessionState>(nullptr);
|
|
}
|
|
|
|
SessionState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<SessionState>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const SessionState& from);
|
|
void MergeFrom(const SessionState& 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(SessionState* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.SessionState";
|
|
}
|
|
protected:
|
|
explicit SessionState(::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_5fserver_5fsdk_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kSigningKeyFieldNumber = 2,
|
|
kProviderClientTokenFieldNumber = 4,
|
|
kLicenseIdFieldNumber = 1,
|
|
kKeyboxSystemIdFieldNumber = 3,
|
|
kLicenseCounterFieldNumber = 5,
|
|
};
|
|
// optional bytes signing_key = 2;
|
|
bool has_signing_key() const;
|
|
private:
|
|
bool _internal_has_signing_key() const;
|
|
public:
|
|
void clear_signing_key();
|
|
const std::string& signing_key() const;
|
|
void set_signing_key(const std::string& value);
|
|
void set_signing_key(std::string&& value);
|
|
void set_signing_key(const char* value);
|
|
void set_signing_key(const void* value, size_t size);
|
|
std::string* mutable_signing_key();
|
|
std::string* release_signing_key();
|
|
void set_allocated_signing_key(std::string* signing_key);
|
|
private:
|
|
const std::string& _internal_signing_key() const;
|
|
void _internal_set_signing_key(const std::string& value);
|
|
std::string* _internal_mutable_signing_key();
|
|
public:
|
|
|
|
// optional bytes provider_client_token = 4;
|
|
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 .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;
|
|
::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 uint32 keybox_system_id = 3;
|
|
bool has_keybox_system_id() const;
|
|
private:
|
|
bool _internal_has_keybox_system_id() const;
|
|
public:
|
|
void clear_keybox_system_id();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 keybox_system_id() const;
|
|
void set_keybox_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_keybox_system_id() const;
|
|
void _internal_set_keybox_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// optional uint32 license_counter = 5;
|
|
bool has_license_counter() const;
|
|
private:
|
|
bool _internal_has_license_counter() const;
|
|
public:
|
|
void clear_license_counter();
|
|
::PROTOBUF_NAMESPACE_ID::uint32 license_counter() const;
|
|
void set_license_counter(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _internal_license_counter() const;
|
|
void _internal_set_license_counter(::PROTOBUF_NAMESPACE_ID::uint32 value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.SessionState)
|
|
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 signing_key_;
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr provider_client_token_;
|
|
::video_widevine::LicenseIdentification* license_id_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 keybox_system_id_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 license_counter_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class SessionCreateOptions PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.SessionCreateOptions) */ {
|
|
public:
|
|
inline SessionCreateOptions() : SessionCreateOptions(nullptr) {}
|
|
virtual ~SessionCreateOptions();
|
|
|
|
SessionCreateOptions(const SessionCreateOptions& from);
|
|
SessionCreateOptions(SessionCreateOptions&& from) noexcept
|
|
: SessionCreateOptions() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline SessionCreateOptions& operator=(const SessionCreateOptions& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline SessionCreateOptions& operator=(SessionCreateOptions&& 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 SessionCreateOptions& default_instance();
|
|
|
|
static inline const SessionCreateOptions* internal_default_instance() {
|
|
return reinterpret_cast<const SessionCreateOptions*>(
|
|
&_SessionCreateOptions_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
2;
|
|
|
|
friend void swap(SessionCreateOptions& a, SessionCreateOptions& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(SessionCreateOptions* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(SessionCreateOptions* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline SessionCreateOptions* New() const final {
|
|
return CreateMaybeMessage<SessionCreateOptions>(nullptr);
|
|
}
|
|
|
|
SessionCreateOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<SessionCreateOptions>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const SessionCreateOptions& from);
|
|
void MergeFrom(const SessionCreateOptions& 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(SessionCreateOptions* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.SessionCreateOptions";
|
|
}
|
|
protected:
|
|
explicit SessionCreateOptions(::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_5fserver_5fsdk_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kProviderFieldNumber = 2,
|
|
kAllowRevokedDeviceFieldNumber = 1,
|
|
};
|
|
// optional string provider = 2;
|
|
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 bool allow_revoked_device = 1 [default = false];
|
|
bool has_allow_revoked_device() const;
|
|
private:
|
|
bool _internal_has_allow_revoked_device() const;
|
|
public:
|
|
void clear_allow_revoked_device();
|
|
bool allow_revoked_device() const;
|
|
void set_allow_revoked_device(bool value);
|
|
private:
|
|
bool _internal_allow_revoked_device() const;
|
|
void _internal_set_allow_revoked_device(bool value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.SessionCreateOptions)
|
|
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 provider_;
|
|
bool allow_revoked_device_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class ContentInfo_ContentInfoEntry_Pssh PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ContentInfo.ContentInfoEntry.Pssh) */ {
|
|
public:
|
|
inline ContentInfo_ContentInfoEntry_Pssh() : ContentInfo_ContentInfoEntry_Pssh(nullptr) {}
|
|
virtual ~ContentInfo_ContentInfoEntry_Pssh();
|
|
|
|
ContentInfo_ContentInfoEntry_Pssh(const ContentInfo_ContentInfoEntry_Pssh& from);
|
|
ContentInfo_ContentInfoEntry_Pssh(ContentInfo_ContentInfoEntry_Pssh&& from) noexcept
|
|
: ContentInfo_ContentInfoEntry_Pssh() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ContentInfo_ContentInfoEntry_Pssh& operator=(const ContentInfo_ContentInfoEntry_Pssh& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ContentInfo_ContentInfoEntry_Pssh& operator=(ContentInfo_ContentInfoEntry_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 ContentInfo_ContentInfoEntry_Pssh& default_instance();
|
|
|
|
enum PsshDataCase {
|
|
kRawData = 2,
|
|
kWidevineData = 3,
|
|
PSSH_DATA_NOT_SET = 0,
|
|
};
|
|
|
|
static inline const ContentInfo_ContentInfoEntry_Pssh* internal_default_instance() {
|
|
return reinterpret_cast<const ContentInfo_ContentInfoEntry_Pssh*>(
|
|
&_ContentInfo_ContentInfoEntry_Pssh_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
3;
|
|
|
|
friend void swap(ContentInfo_ContentInfoEntry_Pssh& a, ContentInfo_ContentInfoEntry_Pssh& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ContentInfo_ContentInfoEntry_Pssh* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ContentInfo_ContentInfoEntry_Pssh* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ContentInfo_ContentInfoEntry_Pssh* New() const final {
|
|
return CreateMaybeMessage<ContentInfo_ContentInfoEntry_Pssh>(nullptr);
|
|
}
|
|
|
|
ContentInfo_ContentInfoEntry_Pssh* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ContentInfo_ContentInfoEntry_Pssh>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ContentInfo_ContentInfoEntry_Pssh& from);
|
|
void MergeFrom(const ContentInfo_ContentInfoEntry_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(ContentInfo_ContentInfoEntry_Pssh* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ContentInfo.ContentInfoEntry.Pssh";
|
|
}
|
|
protected:
|
|
explicit ContentInfo_ContentInfoEntry_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_5fserver_5fsdk_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kSystemIdFieldNumber = 1,
|
|
kRawDataFieldNumber = 2,
|
|
kWidevineDataFieldNumber = 3,
|
|
};
|
|
// optional bytes system_id = 1;
|
|
bool has_system_id() const;
|
|
private:
|
|
bool _internal_has_system_id() const;
|
|
public:
|
|
void clear_system_id();
|
|
const std::string& system_id() const;
|
|
void set_system_id(const std::string& value);
|
|
void set_system_id(std::string&& value);
|
|
void set_system_id(const char* value);
|
|
void set_system_id(const void* value, size_t size);
|
|
std::string* mutable_system_id();
|
|
std::string* release_system_id();
|
|
void set_allocated_system_id(std::string* system_id);
|
|
private:
|
|
const std::string& _internal_system_id() const;
|
|
void _internal_set_system_id(const std::string& value);
|
|
std::string* _internal_mutable_system_id();
|
|
public:
|
|
|
|
// bytes raw_data = 2;
|
|
bool has_raw_data() const;
|
|
private:
|
|
bool _internal_has_raw_data() const;
|
|
public:
|
|
void clear_raw_data();
|
|
const std::string& raw_data() const;
|
|
void set_raw_data(const std::string& value);
|
|
void set_raw_data(std::string&& value);
|
|
void set_raw_data(const char* value);
|
|
void set_raw_data(const void* value, size_t size);
|
|
std::string* mutable_raw_data();
|
|
std::string* release_raw_data();
|
|
void set_allocated_raw_data(std::string* raw_data);
|
|
private:
|
|
const std::string& _internal_raw_data() const;
|
|
void _internal_set_raw_data(const std::string& value);
|
|
std::string* _internal_mutable_raw_data();
|
|
public:
|
|
|
|
// .video_widevine.WidevinePsshData widevine_data = 3;
|
|
bool has_widevine_data() const;
|
|
private:
|
|
bool _internal_has_widevine_data() const;
|
|
public:
|
|
void clear_widevine_data();
|
|
const ::video_widevine::WidevinePsshData& widevine_data() const;
|
|
::video_widevine::WidevinePsshData* release_widevine_data();
|
|
::video_widevine::WidevinePsshData* mutable_widevine_data();
|
|
void set_allocated_widevine_data(::video_widevine::WidevinePsshData* widevine_data);
|
|
private:
|
|
const ::video_widevine::WidevinePsshData& _internal_widevine_data() const;
|
|
::video_widevine::WidevinePsshData* _internal_mutable_widevine_data();
|
|
public:
|
|
void unsafe_arena_set_allocated_widevine_data(
|
|
::video_widevine::WidevinePsshData* widevine_data);
|
|
::video_widevine::WidevinePsshData* unsafe_arena_release_widevine_data();
|
|
|
|
void clear_pssh_data();
|
|
PsshDataCase pssh_data_case() const;
|
|
// @@protoc_insertion_point(class_scope:video_widevine.ContentInfo.ContentInfoEntry.Pssh)
|
|
private:
|
|
class _Internal;
|
|
void set_has_raw_data();
|
|
void set_has_widevine_data();
|
|
|
|
inline bool has_pssh_data() const;
|
|
inline void clear_has_pssh_data();
|
|
|
|
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 system_id_;
|
|
union PsshDataUnion {
|
|
PsshDataUnion() {}
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr raw_data_;
|
|
::video_widevine::WidevinePsshData* widevine_data_;
|
|
} pssh_data_;
|
|
::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
|
|
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class ContentInfo_ContentInfoEntry PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ContentInfo.ContentInfoEntry) */ {
|
|
public:
|
|
inline ContentInfo_ContentInfoEntry() : ContentInfo_ContentInfoEntry(nullptr) {}
|
|
virtual ~ContentInfo_ContentInfoEntry();
|
|
|
|
ContentInfo_ContentInfoEntry(const ContentInfo_ContentInfoEntry& from);
|
|
ContentInfo_ContentInfoEntry(ContentInfo_ContentInfoEntry&& from) noexcept
|
|
: ContentInfo_ContentInfoEntry() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ContentInfo_ContentInfoEntry& operator=(const ContentInfo_ContentInfoEntry& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ContentInfo_ContentInfoEntry& operator=(ContentInfo_ContentInfoEntry&& 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 ContentInfo_ContentInfoEntry& default_instance();
|
|
|
|
static inline const ContentInfo_ContentInfoEntry* internal_default_instance() {
|
|
return reinterpret_cast<const ContentInfo_ContentInfoEntry*>(
|
|
&_ContentInfo_ContentInfoEntry_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
4;
|
|
|
|
friend void swap(ContentInfo_ContentInfoEntry& a, ContentInfo_ContentInfoEntry& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ContentInfo_ContentInfoEntry* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ContentInfo_ContentInfoEntry* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ContentInfo_ContentInfoEntry* New() const final {
|
|
return CreateMaybeMessage<ContentInfo_ContentInfoEntry>(nullptr);
|
|
}
|
|
|
|
ContentInfo_ContentInfoEntry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ContentInfo_ContentInfoEntry>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ContentInfo_ContentInfoEntry& from);
|
|
void MergeFrom(const ContentInfo_ContentInfoEntry& 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(ContentInfo_ContentInfoEntry* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ContentInfo.ContentInfoEntry";
|
|
}
|
|
protected:
|
|
explicit ContentInfo_ContentInfoEntry(::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_5fserver_5fsdk_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
typedef ContentInfo_ContentInfoEntry_Pssh Pssh;
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kKeyIdsFieldNumber = 1,
|
|
kPsshFieldNumber = 2,
|
|
};
|
|
// repeated bytes key_ids = 1;
|
|
int key_ids_size() const;
|
|
private:
|
|
int _internal_key_ids_size() const;
|
|
public:
|
|
void clear_key_ids();
|
|
const std::string& key_ids(int index) const;
|
|
std::string* mutable_key_ids(int index);
|
|
void set_key_ids(int index, const std::string& value);
|
|
void set_key_ids(int index, std::string&& value);
|
|
void set_key_ids(int index, const char* value);
|
|
void set_key_ids(int index, const void* value, size_t size);
|
|
std::string* add_key_ids();
|
|
void add_key_ids(const std::string& value);
|
|
void add_key_ids(std::string&& value);
|
|
void add_key_ids(const char* value);
|
|
void add_key_ids(const void* value, size_t size);
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& key_ids() const;
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_key_ids();
|
|
private:
|
|
const std::string& _internal_key_ids(int index) const;
|
|
std::string* _internal_add_key_ids();
|
|
public:
|
|
|
|
// optional .video_widevine.ContentInfo.ContentInfoEntry.Pssh pssh = 2;
|
|
bool has_pssh() const;
|
|
private:
|
|
bool _internal_has_pssh() const;
|
|
public:
|
|
void clear_pssh();
|
|
const ::video_widevine::ContentInfo_ContentInfoEntry_Pssh& pssh() const;
|
|
::video_widevine::ContentInfo_ContentInfoEntry_Pssh* release_pssh();
|
|
::video_widevine::ContentInfo_ContentInfoEntry_Pssh* mutable_pssh();
|
|
void set_allocated_pssh(::video_widevine::ContentInfo_ContentInfoEntry_Pssh* pssh);
|
|
private:
|
|
const ::video_widevine::ContentInfo_ContentInfoEntry_Pssh& _internal_pssh() const;
|
|
::video_widevine::ContentInfo_ContentInfoEntry_Pssh* _internal_mutable_pssh();
|
|
public:
|
|
void unsafe_arena_set_allocated_pssh(
|
|
::video_widevine::ContentInfo_ContentInfoEntry_Pssh* pssh);
|
|
::video_widevine::ContentInfo_ContentInfoEntry_Pssh* unsafe_arena_release_pssh();
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.ContentInfo.ContentInfoEntry)
|
|
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_ids_;
|
|
::video_widevine::ContentInfo_ContentInfoEntry_Pssh* pssh_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class ContentInfo PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.ContentInfo) */ {
|
|
public:
|
|
inline ContentInfo() : ContentInfo(nullptr) {}
|
|
virtual ~ContentInfo();
|
|
|
|
ContentInfo(const ContentInfo& from);
|
|
ContentInfo(ContentInfo&& from) noexcept
|
|
: ContentInfo() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline ContentInfo& operator=(const ContentInfo& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline ContentInfo& operator=(ContentInfo&& 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 ContentInfo& default_instance();
|
|
|
|
static inline const ContentInfo* internal_default_instance() {
|
|
return reinterpret_cast<const ContentInfo*>(
|
|
&_ContentInfo_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
5;
|
|
|
|
friend void swap(ContentInfo& a, ContentInfo& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(ContentInfo* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(ContentInfo* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline ContentInfo* New() const final {
|
|
return CreateMaybeMessage<ContentInfo>(nullptr);
|
|
}
|
|
|
|
ContentInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<ContentInfo>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const ContentInfo& from);
|
|
void MergeFrom(const ContentInfo& 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(ContentInfo* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.ContentInfo";
|
|
}
|
|
protected:
|
|
explicit ContentInfo(::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_5fserver_5fsdk_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
typedef ContentInfo_ContentInfoEntry ContentInfoEntry;
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kContentInfoEntryFieldNumber = 2,
|
|
kInitDataTypeFieldNumber = 1,
|
|
};
|
|
// repeated .video_widevine.ContentInfo.ContentInfoEntry content_info_entry = 2;
|
|
int content_info_entry_size() const;
|
|
private:
|
|
int _internal_content_info_entry_size() const;
|
|
public:
|
|
void clear_content_info_entry();
|
|
::video_widevine::ContentInfo_ContentInfoEntry* mutable_content_info_entry(int index);
|
|
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ContentInfo_ContentInfoEntry >*
|
|
mutable_content_info_entry();
|
|
private:
|
|
const ::video_widevine::ContentInfo_ContentInfoEntry& _internal_content_info_entry(int index) const;
|
|
::video_widevine::ContentInfo_ContentInfoEntry* _internal_add_content_info_entry();
|
|
public:
|
|
const ::video_widevine::ContentInfo_ContentInfoEntry& content_info_entry(int index) const;
|
|
::video_widevine::ContentInfo_ContentInfoEntry* add_content_info_entry();
|
|
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ContentInfo_ContentInfoEntry >&
|
|
content_info_entry() const;
|
|
|
|
// optional .video_widevine.LicenseRequest.ContentIdentification.InitData.InitDataType init_data_type = 1;
|
|
bool has_init_data_type() const;
|
|
private:
|
|
bool _internal_has_init_data_type() const;
|
|
public:
|
|
void clear_init_data_type();
|
|
::video_widevine::LicenseRequest_ContentIdentification_InitData_InitDataType init_data_type() const;
|
|
void set_init_data_type(::video_widevine::LicenseRequest_ContentIdentification_InitData_InitDataType value);
|
|
private:
|
|
::video_widevine::LicenseRequest_ContentIdentification_InitData_InitDataType _internal_init_data_type() const;
|
|
void _internal_set_init_data_type(::video_widevine::LicenseRequest_ContentIdentification_InitData_InitDataType value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.ContentInfo)
|
|
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::ContentInfo_ContentInfoEntry > content_info_entry_;
|
|
int init_data_type_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class SessionUsage PROTOBUF_FINAL :
|
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:video_widevine.SessionUsage) */ {
|
|
public:
|
|
inline SessionUsage() : SessionUsage(nullptr) {}
|
|
virtual ~SessionUsage();
|
|
|
|
SessionUsage(const SessionUsage& from);
|
|
SessionUsage(SessionUsage&& from) noexcept
|
|
: SessionUsage() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline SessionUsage& operator=(const SessionUsage& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline SessionUsage& operator=(SessionUsage&& 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 SessionUsage& default_instance();
|
|
|
|
static inline const SessionUsage* internal_default_instance() {
|
|
return reinterpret_cast<const SessionUsage*>(
|
|
&_SessionUsage_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
6;
|
|
|
|
friend void swap(SessionUsage& a, SessionUsage& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(SessionUsage* other) {
|
|
if (other == this) return;
|
|
if (GetArena() == other->GetArena()) {
|
|
InternalSwap(other);
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
|
|
}
|
|
}
|
|
void UnsafeArenaSwap(SessionUsage* other) {
|
|
if (other == this) return;
|
|
GOOGLE_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
inline SessionUsage* New() const final {
|
|
return CreateMaybeMessage<SessionUsage>(nullptr);
|
|
}
|
|
|
|
SessionUsage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
|
|
return CreateMaybeMessage<SessionUsage>(arena);
|
|
}
|
|
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
|
|
void CopyFrom(const SessionUsage& from);
|
|
void MergeFrom(const SessionUsage& 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(SessionUsage* other);
|
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
|
return "video_widevine.SessionUsage";
|
|
}
|
|
protected:
|
|
explicit SessionUsage(::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_5fserver_5fsdk_2eproto);
|
|
return ::descriptor_table_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto.file_level_metadata[kIndexInFileMessages];
|
|
}
|
|
|
|
public:
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
typedef SessionUsage_ClockSecurityLevel ClockSecurityLevel;
|
|
static constexpr ClockSecurityLevel INSECURE_CLOCK =
|
|
SessionUsage_ClockSecurityLevel_INSECURE_CLOCK;
|
|
static constexpr ClockSecurityLevel SECURE_TIMER =
|
|
SessionUsage_ClockSecurityLevel_SECURE_TIMER;
|
|
static constexpr ClockSecurityLevel SECURE_CLOCK =
|
|
SessionUsage_ClockSecurityLevel_SECURE_CLOCK;
|
|
static constexpr ClockSecurityLevel HW_SECURE_CLOCK =
|
|
SessionUsage_ClockSecurityLevel_HW_SECURE_CLOCK;
|
|
static inline bool ClockSecurityLevel_IsValid(int value) {
|
|
return SessionUsage_ClockSecurityLevel_IsValid(value);
|
|
}
|
|
static constexpr ClockSecurityLevel ClockSecurityLevel_MIN =
|
|
SessionUsage_ClockSecurityLevel_ClockSecurityLevel_MIN;
|
|
static constexpr ClockSecurityLevel ClockSecurityLevel_MAX =
|
|
SessionUsage_ClockSecurityLevel_ClockSecurityLevel_MAX;
|
|
static constexpr int ClockSecurityLevel_ARRAYSIZE =
|
|
SessionUsage_ClockSecurityLevel_ClockSecurityLevel_ARRAYSIZE;
|
|
static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
|
|
ClockSecurityLevel_descriptor() {
|
|
return SessionUsage_ClockSecurityLevel_descriptor();
|
|
}
|
|
template<typename T>
|
|
static inline const std::string& ClockSecurityLevel_Name(T enum_t_value) {
|
|
static_assert(::std::is_same<T, ClockSecurityLevel>::value ||
|
|
::std::is_integral<T>::value,
|
|
"Incorrect type passed to function ClockSecurityLevel_Name.");
|
|
return SessionUsage_ClockSecurityLevel_Name(enum_t_value);
|
|
}
|
|
static inline bool ClockSecurityLevel_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
|
|
ClockSecurityLevel* value) {
|
|
return SessionUsage_ClockSecurityLevel_Parse(name, value);
|
|
}
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
enum : int {
|
|
kProviderSessionTokenFieldNumber = 7,
|
|
kLicenseUsedFieldNumber = 1,
|
|
kLicenseReleasedFieldNumber = 2,
|
|
kClockSecurityLevelFieldNumber = 3,
|
|
kSecondsSinceLicenseReceivedFieldNumber = 4,
|
|
kSecondsSinceFirstDecryptFieldNumber = 5,
|
|
kSecondsSinceLastDecryptFieldNumber = 6,
|
|
};
|
|
// optional bytes provider_session_token = 7;
|
|
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 bool license_used = 1 [default = false];
|
|
bool has_license_used() const;
|
|
private:
|
|
bool _internal_has_license_used() const;
|
|
public:
|
|
void clear_license_used();
|
|
bool license_used() const;
|
|
void set_license_used(bool value);
|
|
private:
|
|
bool _internal_license_used() const;
|
|
void _internal_set_license_used(bool value);
|
|
public:
|
|
|
|
// optional bool license_released = 2 [default = false];
|
|
bool has_license_released() const;
|
|
private:
|
|
bool _internal_has_license_released() const;
|
|
public:
|
|
void clear_license_released();
|
|
bool license_released() const;
|
|
void set_license_released(bool value);
|
|
private:
|
|
bool _internal_license_released() const;
|
|
void _internal_set_license_released(bool value);
|
|
public:
|
|
|
|
// optional .video_widevine.SessionUsage.ClockSecurityLevel clock_security_level = 3;
|
|
bool has_clock_security_level() const;
|
|
private:
|
|
bool _internal_has_clock_security_level() const;
|
|
public:
|
|
void clear_clock_security_level();
|
|
::video_widevine::SessionUsage_ClockSecurityLevel clock_security_level() const;
|
|
void set_clock_security_level(::video_widevine::SessionUsage_ClockSecurityLevel value);
|
|
private:
|
|
::video_widevine::SessionUsage_ClockSecurityLevel _internal_clock_security_level() const;
|
|
void _internal_set_clock_security_level(::video_widevine::SessionUsage_ClockSecurityLevel value);
|
|
public:
|
|
|
|
// optional uint64 seconds_since_license_received = 4;
|
|
bool has_seconds_since_license_received() const;
|
|
private:
|
|
bool _internal_has_seconds_since_license_received() const;
|
|
public:
|
|
void clear_seconds_since_license_received();
|
|
::PROTOBUF_NAMESPACE_ID::uint64 seconds_since_license_received() const;
|
|
void set_seconds_since_license_received(::PROTOBUF_NAMESPACE_ID::uint64 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint64 _internal_seconds_since_license_received() const;
|
|
void _internal_set_seconds_since_license_received(::PROTOBUF_NAMESPACE_ID::uint64 value);
|
|
public:
|
|
|
|
// optional uint64 seconds_since_first_decrypt = 5;
|
|
bool has_seconds_since_first_decrypt() const;
|
|
private:
|
|
bool _internal_has_seconds_since_first_decrypt() const;
|
|
public:
|
|
void clear_seconds_since_first_decrypt();
|
|
::PROTOBUF_NAMESPACE_ID::uint64 seconds_since_first_decrypt() const;
|
|
void set_seconds_since_first_decrypt(::PROTOBUF_NAMESPACE_ID::uint64 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint64 _internal_seconds_since_first_decrypt() const;
|
|
void _internal_set_seconds_since_first_decrypt(::PROTOBUF_NAMESPACE_ID::uint64 value);
|
|
public:
|
|
|
|
// optional uint64 seconds_since_last_decrypt = 6;
|
|
bool has_seconds_since_last_decrypt() const;
|
|
private:
|
|
bool _internal_has_seconds_since_last_decrypt() const;
|
|
public:
|
|
void clear_seconds_since_last_decrypt();
|
|
::PROTOBUF_NAMESPACE_ID::uint64 seconds_since_last_decrypt() const;
|
|
void set_seconds_since_last_decrypt(::PROTOBUF_NAMESPACE_ID::uint64 value);
|
|
private:
|
|
::PROTOBUF_NAMESPACE_ID::uint64 _internal_seconds_since_last_decrypt() const;
|
|
void _internal_set_seconds_since_last_decrypt(::PROTOBUF_NAMESPACE_ID::uint64 value);
|
|
public:
|
|
|
|
// @@protoc_insertion_point(class_scope:video_widevine.SessionUsage)
|
|
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 provider_session_token_;
|
|
bool license_used_;
|
|
bool license_released_;
|
|
int clock_security_level_;
|
|
::PROTOBUF_NAMESPACE_ID::uint64 seconds_since_license_received_;
|
|
::PROTOBUF_NAMESPACE_ID::uint64 seconds_since_first_decrypt_;
|
|
::PROTOBUF_NAMESPACE_ID::uint64 seconds_since_last_decrypt_;
|
|
friend struct ::TableStruct_protos_2fpublic_2flicense_5fserver_5fsdk_2eproto;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// SessionInit
|
|
|
|
// optional bytes session_id = 1;
|
|
inline bool SessionInit::_internal_has_session_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_session_id() const {
|
|
return _internal_has_session_id();
|
|
}
|
|
inline void SessionInit::clear_session_id() {
|
|
session_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& SessionInit::session_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.session_id)
|
|
return _internal_session_id();
|
|
}
|
|
inline void SessionInit::set_session_id(const std::string& value) {
|
|
_internal_set_session_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.session_id)
|
|
}
|
|
inline std::string* SessionInit::mutable_session_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionInit.session_id)
|
|
return _internal_mutable_session_id();
|
|
}
|
|
inline const std::string& SessionInit::_internal_session_id() const {
|
|
return session_id_.Get();
|
|
}
|
|
inline void SessionInit::_internal_set_session_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionInit::set_session_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
session_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionInit.session_id)
|
|
}
|
|
inline void SessionInit::set_session_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
session_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionInit.session_id)
|
|
}
|
|
inline void SessionInit::set_session_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
session_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.SessionInit.session_id)
|
|
}
|
|
inline std::string* SessionInit::_internal_mutable_session_id() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return session_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionInit::release_session_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionInit.session_id)
|
|
if (!_internal_has_session_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return session_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionInit::set_allocated_session_id(std::string* session_id) {
|
|
if (session_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
session_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), session_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionInit.session_id)
|
|
}
|
|
|
|
// optional bytes purchase_id = 2;
|
|
inline bool SessionInit::_internal_has_purchase_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_purchase_id() const {
|
|
return _internal_has_purchase_id();
|
|
}
|
|
inline void SessionInit::clear_purchase_id() {
|
|
purchase_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& SessionInit::purchase_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.purchase_id)
|
|
return _internal_purchase_id();
|
|
}
|
|
inline void SessionInit::set_purchase_id(const std::string& value) {
|
|
_internal_set_purchase_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.purchase_id)
|
|
}
|
|
inline std::string* SessionInit::mutable_purchase_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionInit.purchase_id)
|
|
return _internal_mutable_purchase_id();
|
|
}
|
|
inline const std::string& SessionInit::_internal_purchase_id() const {
|
|
return purchase_id_.Get();
|
|
}
|
|
inline void SessionInit::_internal_set_purchase_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
purchase_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionInit::set_purchase_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
purchase_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionInit.purchase_id)
|
|
}
|
|
inline void SessionInit::set_purchase_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
purchase_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionInit.purchase_id)
|
|
}
|
|
inline void SessionInit::set_purchase_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
purchase_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.SessionInit.purchase_id)
|
|
}
|
|
inline std::string* SessionInit::_internal_mutable_purchase_id() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return purchase_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionInit::release_purchase_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionInit.purchase_id)
|
|
if (!_internal_has_purchase_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return purchase_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionInit::set_allocated_purchase_id(std::string* purchase_id) {
|
|
if (purchase_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
purchase_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), purchase_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionInit.purchase_id)
|
|
}
|
|
|
|
// optional bytes master_signing_key = 3;
|
|
inline bool SessionInit::_internal_has_master_signing_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_master_signing_key() const {
|
|
return _internal_has_master_signing_key();
|
|
}
|
|
inline void SessionInit::clear_master_signing_key() {
|
|
master_signing_key_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline const std::string& SessionInit::master_signing_key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.master_signing_key)
|
|
return _internal_master_signing_key();
|
|
}
|
|
inline void SessionInit::set_master_signing_key(const std::string& value) {
|
|
_internal_set_master_signing_key(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.master_signing_key)
|
|
}
|
|
inline std::string* SessionInit::mutable_master_signing_key() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionInit.master_signing_key)
|
|
return _internal_mutable_master_signing_key();
|
|
}
|
|
inline const std::string& SessionInit::_internal_master_signing_key() const {
|
|
return master_signing_key_.Get();
|
|
}
|
|
inline void SessionInit::_internal_set_master_signing_key(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
master_signing_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionInit::set_master_signing_key(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
master_signing_key_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionInit.master_signing_key)
|
|
}
|
|
inline void SessionInit::set_master_signing_key(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000004u;
|
|
master_signing_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionInit.master_signing_key)
|
|
}
|
|
inline void SessionInit::set_master_signing_key(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
master_signing_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.SessionInit.master_signing_key)
|
|
}
|
|
inline std::string* SessionInit::_internal_mutable_master_signing_key() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
return master_signing_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionInit::release_master_signing_key() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionInit.master_signing_key)
|
|
if (!_internal_has_master_signing_key()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
return master_signing_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionInit::set_allocated_master_signing_key(std::string* master_signing_key) {
|
|
if (master_signing_key != nullptr) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
master_signing_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), master_signing_key,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionInit.master_signing_key)
|
|
}
|
|
|
|
// optional bytes signing_key = 4;
|
|
inline bool SessionInit::_internal_has_signing_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_signing_key() const {
|
|
return _internal_has_signing_key();
|
|
}
|
|
inline void SessionInit::clear_signing_key() {
|
|
signing_key_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline const std::string& SessionInit::signing_key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.signing_key)
|
|
return _internal_signing_key();
|
|
}
|
|
inline void SessionInit::set_signing_key(const std::string& value) {
|
|
_internal_set_signing_key(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.signing_key)
|
|
}
|
|
inline std::string* SessionInit::mutable_signing_key() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionInit.signing_key)
|
|
return _internal_mutable_signing_key();
|
|
}
|
|
inline const std::string& SessionInit::_internal_signing_key() const {
|
|
return signing_key_.Get();
|
|
}
|
|
inline void SessionInit::_internal_set_signing_key(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
signing_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionInit::set_signing_key(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
signing_key_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionInit.signing_key)
|
|
}
|
|
inline void SessionInit::set_signing_key(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000008u;
|
|
signing_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionInit.signing_key)
|
|
}
|
|
inline void SessionInit::set_signing_key(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
signing_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.SessionInit.signing_key)
|
|
}
|
|
inline std::string* SessionInit::_internal_mutable_signing_key() {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
return signing_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionInit::release_signing_key() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionInit.signing_key)
|
|
if (!_internal_has_signing_key()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
return signing_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionInit::set_allocated_signing_key(std::string* signing_key) {
|
|
if (signing_key != nullptr) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
signing_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signing_key,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionInit.signing_key)
|
|
}
|
|
|
|
// optional int64 license_start_time = 5;
|
|
inline bool SessionInit::_internal_has_license_start_time() const {
|
|
bool value = (_has_bits_[0] & 0x00000100u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_license_start_time() const {
|
|
return _internal_has_license_start_time();
|
|
}
|
|
inline void SessionInit::clear_license_start_time() {
|
|
license_start_time_ = PROTOBUF_LONGLONG(0);
|
|
_has_bits_[0] &= ~0x00000100u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int64 SessionInit::_internal_license_start_time() const {
|
|
return license_start_time_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::int64 SessionInit::license_start_time() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.license_start_time)
|
|
return _internal_license_start_time();
|
|
}
|
|
inline void SessionInit::_internal_set_license_start_time(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
|
_has_bits_[0] |= 0x00000100u;
|
|
license_start_time_ = value;
|
|
}
|
|
inline void SessionInit::set_license_start_time(::PROTOBUF_NAMESPACE_ID::int64 value) {
|
|
_internal_set_license_start_time(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.license_start_time)
|
|
}
|
|
|
|
// optional bytes provider_client_token = 6;
|
|
inline bool SessionInit::_internal_has_provider_client_token() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_provider_client_token() const {
|
|
return _internal_has_provider_client_token();
|
|
}
|
|
inline void SessionInit::clear_provider_client_token() {
|
|
provider_client_token_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline const std::string& SessionInit::provider_client_token() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.provider_client_token)
|
|
return _internal_provider_client_token();
|
|
}
|
|
inline void SessionInit::set_provider_client_token(const std::string& value) {
|
|
_internal_set_provider_client_token(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.provider_client_token)
|
|
}
|
|
inline std::string* SessionInit::mutable_provider_client_token() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionInit.provider_client_token)
|
|
return _internal_mutable_provider_client_token();
|
|
}
|
|
inline const std::string& SessionInit::_internal_provider_client_token() const {
|
|
return provider_client_token_.Get();
|
|
}
|
|
inline void SessionInit::_internal_set_provider_client_token(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
provider_client_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionInit::set_provider_client_token(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
provider_client_token_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionInit.provider_client_token)
|
|
}
|
|
inline void SessionInit::set_provider_client_token(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000010u;
|
|
provider_client_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionInit.provider_client_token)
|
|
}
|
|
inline void SessionInit::set_provider_client_token(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
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.SessionInit.provider_client_token)
|
|
}
|
|
inline std::string* SessionInit::_internal_mutable_provider_client_token() {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
return provider_client_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionInit::release_provider_client_token() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionInit.provider_client_token)
|
|
if (!_internal_has_provider_client_token()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
return provider_client_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionInit::set_allocated_provider_client_token(std::string* provider_client_token) {
|
|
if (provider_client_token != nullptr) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
provider_client_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider_client_token,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionInit.provider_client_token)
|
|
}
|
|
|
|
// optional bytes provider_session_token = 7;
|
|
inline bool SessionInit::_internal_has_provider_session_token() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_provider_session_token() const {
|
|
return _internal_has_provider_session_token();
|
|
}
|
|
inline void SessionInit::clear_provider_session_token() {
|
|
provider_session_token_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline const std::string& SessionInit::provider_session_token() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.provider_session_token)
|
|
return _internal_provider_session_token();
|
|
}
|
|
inline void SessionInit::set_provider_session_token(const std::string& value) {
|
|
_internal_set_provider_session_token(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.provider_session_token)
|
|
}
|
|
inline std::string* SessionInit::mutable_provider_session_token() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionInit.provider_session_token)
|
|
return _internal_mutable_provider_session_token();
|
|
}
|
|
inline const std::string& SessionInit::_internal_provider_session_token() const {
|
|
return provider_session_token_.Get();
|
|
}
|
|
inline void SessionInit::_internal_set_provider_session_token(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_session_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionInit::set_provider_session_token(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_session_token_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionInit.provider_session_token)
|
|
}
|
|
inline void SessionInit::set_provider_session_token(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000020u;
|
|
provider_session_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionInit.provider_session_token)
|
|
}
|
|
inline void SessionInit::set_provider_session_token(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
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.SessionInit.provider_session_token)
|
|
}
|
|
inline std::string* SessionInit::_internal_mutable_provider_session_token() {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
return provider_session_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionInit::release_provider_session_token() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionInit.provider_session_token)
|
|
if (!_internal_has_provider_session_token()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
return provider_session_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionInit::set_allocated_provider_session_token(std::string* provider_session_token) {
|
|
if (provider_session_token != nullptr) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
provider_session_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider_session_token,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionInit.provider_session_token)
|
|
}
|
|
|
|
// optional bool override_provider_client_token = 8 [default = false];
|
|
inline bool SessionInit::_internal_has_override_provider_client_token() const {
|
|
bool value = (_has_bits_[0] & 0x00000200u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_override_provider_client_token() const {
|
|
return _internal_has_override_provider_client_token();
|
|
}
|
|
inline void SessionInit::clear_override_provider_client_token() {
|
|
override_provider_client_token_ = false;
|
|
_has_bits_[0] &= ~0x00000200u;
|
|
}
|
|
inline bool SessionInit::_internal_override_provider_client_token() const {
|
|
return override_provider_client_token_;
|
|
}
|
|
inline bool SessionInit::override_provider_client_token() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.override_provider_client_token)
|
|
return _internal_override_provider_client_token();
|
|
}
|
|
inline void SessionInit::_internal_set_override_provider_client_token(bool value) {
|
|
_has_bits_[0] |= 0x00000200u;
|
|
override_provider_client_token_ = value;
|
|
}
|
|
inline void SessionInit::set_override_provider_client_token(bool value) {
|
|
_internal_set_override_provider_client_token(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.override_provider_client_token)
|
|
}
|
|
|
|
// optional bool exclude_group_key = 9 [default = false];
|
|
inline bool SessionInit::_internal_has_exclude_group_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000400u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_exclude_group_key() const {
|
|
return _internal_has_exclude_group_key();
|
|
}
|
|
inline void SessionInit::clear_exclude_group_key() {
|
|
exclude_group_key_ = false;
|
|
_has_bits_[0] &= ~0x00000400u;
|
|
}
|
|
inline bool SessionInit::_internal_exclude_group_key() const {
|
|
return exclude_group_key_;
|
|
}
|
|
inline bool SessionInit::exclude_group_key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.exclude_group_key)
|
|
return _internal_exclude_group_key();
|
|
}
|
|
inline void SessionInit::_internal_set_exclude_group_key(bool value) {
|
|
_has_bits_[0] |= 0x00000400u;
|
|
exclude_group_key_ = value;
|
|
}
|
|
inline void SessionInit::set_exclude_group_key(bool value) {
|
|
_internal_set_exclude_group_key(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.exclude_group_key)
|
|
}
|
|
|
|
// optional bool disable_oem_crypto_api_version_reflection = 10 [default = false];
|
|
inline bool SessionInit::_internal_has_disable_oem_crypto_api_version_reflection() const {
|
|
bool value = (_has_bits_[0] & 0x00000800u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_disable_oem_crypto_api_version_reflection() const {
|
|
return _internal_has_disable_oem_crypto_api_version_reflection();
|
|
}
|
|
inline void SessionInit::clear_disable_oem_crypto_api_version_reflection() {
|
|
disable_oem_crypto_api_version_reflection_ = false;
|
|
_has_bits_[0] &= ~0x00000800u;
|
|
}
|
|
inline bool SessionInit::_internal_disable_oem_crypto_api_version_reflection() const {
|
|
return disable_oem_crypto_api_version_reflection_;
|
|
}
|
|
inline bool SessionInit::disable_oem_crypto_api_version_reflection() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.disable_oem_crypto_api_version_reflection)
|
|
return _internal_disable_oem_crypto_api_version_reflection();
|
|
}
|
|
inline void SessionInit::_internal_set_disable_oem_crypto_api_version_reflection(bool value) {
|
|
_has_bits_[0] |= 0x00000800u;
|
|
disable_oem_crypto_api_version_reflection_ = value;
|
|
}
|
|
inline void SessionInit::set_disable_oem_crypto_api_version_reflection(bool value) {
|
|
_internal_set_disable_oem_crypto_api_version_reflection(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.disable_oem_crypto_api_version_reflection)
|
|
}
|
|
|
|
// optional bytes override_oem_crypto_api_version = 11;
|
|
inline bool SessionInit::_internal_has_override_oem_crypto_api_version() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_override_oem_crypto_api_version() const {
|
|
return _internal_has_override_oem_crypto_api_version();
|
|
}
|
|
inline void SessionInit::clear_override_oem_crypto_api_version() {
|
|
override_oem_crypto_api_version_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
inline const std::string& SessionInit::override_oem_crypto_api_version() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.override_oem_crypto_api_version)
|
|
return _internal_override_oem_crypto_api_version();
|
|
}
|
|
inline void SessionInit::set_override_oem_crypto_api_version(const std::string& value) {
|
|
_internal_set_override_oem_crypto_api_version(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.override_oem_crypto_api_version)
|
|
}
|
|
inline std::string* SessionInit::mutable_override_oem_crypto_api_version() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionInit.override_oem_crypto_api_version)
|
|
return _internal_mutable_override_oem_crypto_api_version();
|
|
}
|
|
inline const std::string& SessionInit::_internal_override_oem_crypto_api_version() const {
|
|
return override_oem_crypto_api_version_.Get();
|
|
}
|
|
inline void SessionInit::_internal_set_override_oem_crypto_api_version(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
override_oem_crypto_api_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionInit::set_override_oem_crypto_api_version(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
override_oem_crypto_api_version_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionInit.override_oem_crypto_api_version)
|
|
}
|
|
inline void SessionInit::set_override_oem_crypto_api_version(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000040u;
|
|
override_oem_crypto_api_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionInit.override_oem_crypto_api_version)
|
|
}
|
|
inline void SessionInit::set_override_oem_crypto_api_version(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
override_oem_crypto_api_version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(
|
|
reinterpret_cast<const char*>(value), size), GetArena());
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.SessionInit.override_oem_crypto_api_version)
|
|
}
|
|
inline std::string* SessionInit::_internal_mutable_override_oem_crypto_api_version() {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
return override_oem_crypto_api_version_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionInit::release_override_oem_crypto_api_version() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionInit.override_oem_crypto_api_version)
|
|
if (!_internal_has_override_oem_crypto_api_version()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
return override_oem_crypto_api_version_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionInit::set_allocated_override_oem_crypto_api_version(std::string* override_oem_crypto_api_version) {
|
|
if (override_oem_crypto_api_version != nullptr) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
override_oem_crypto_api_version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), override_oem_crypto_api_version,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionInit.override_oem_crypto_api_version)
|
|
}
|
|
|
|
// optional bool override_device_revocation = 12 [default = false];
|
|
inline bool SessionInit::_internal_has_override_device_revocation() const {
|
|
bool value = (_has_bits_[0] & 0x00001000u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_override_device_revocation() const {
|
|
return _internal_has_override_device_revocation();
|
|
}
|
|
inline void SessionInit::clear_override_device_revocation() {
|
|
override_device_revocation_ = false;
|
|
_has_bits_[0] &= ~0x00001000u;
|
|
}
|
|
inline bool SessionInit::_internal_override_device_revocation() const {
|
|
return override_device_revocation_;
|
|
}
|
|
inline bool SessionInit::override_device_revocation() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.override_device_revocation)
|
|
return _internal_override_device_revocation();
|
|
}
|
|
inline void SessionInit::_internal_set_override_device_revocation(bool value) {
|
|
_has_bits_[0] |= 0x00001000u;
|
|
override_device_revocation_ = value;
|
|
}
|
|
inline void SessionInit::set_override_device_revocation(bool value) {
|
|
_internal_set_override_device_revocation(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionInit.override_device_revocation)
|
|
}
|
|
|
|
// optional .video_widevine.LicenseCategorySpec license_category_spec = 13;
|
|
inline bool SessionInit::_internal_has_license_category_spec() const {
|
|
bool value = (_has_bits_[0] & 0x00000080u) != 0;
|
|
PROTOBUF_ASSUME(!value || license_category_spec_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool SessionInit::has_license_category_spec() const {
|
|
return _internal_has_license_category_spec();
|
|
}
|
|
inline const ::video_widevine::LicenseCategorySpec& SessionInit::_internal_license_category_spec() const {
|
|
const ::video_widevine::LicenseCategorySpec* p = license_category_spec_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::LicenseCategorySpec&>(
|
|
::video_widevine::_LicenseCategorySpec_default_instance_);
|
|
}
|
|
inline const ::video_widevine::LicenseCategorySpec& SessionInit::license_category_spec() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionInit.license_category_spec)
|
|
return _internal_license_category_spec();
|
|
}
|
|
inline void SessionInit::unsafe_arena_set_allocated_license_category_spec(
|
|
::video_widevine::LicenseCategorySpec* license_category_spec) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(license_category_spec_);
|
|
}
|
|
license_category_spec_ = license_category_spec;
|
|
if (license_category_spec) {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.SessionInit.license_category_spec)
|
|
}
|
|
inline ::video_widevine::LicenseCategorySpec* SessionInit::release_license_category_spec() {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
::video_widevine::LicenseCategorySpec* temp = license_category_spec_;
|
|
license_category_spec_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::LicenseCategorySpec* SessionInit::unsafe_arena_release_license_category_spec() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionInit.license_category_spec)
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
::video_widevine::LicenseCategorySpec* temp = license_category_spec_;
|
|
license_category_spec_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::LicenseCategorySpec* SessionInit::_internal_mutable_license_category_spec() {
|
|
_has_bits_[0] |= 0x00000080u;
|
|
if (license_category_spec_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::LicenseCategorySpec>(GetArena());
|
|
license_category_spec_ = p;
|
|
}
|
|
return license_category_spec_;
|
|
}
|
|
inline ::video_widevine::LicenseCategorySpec* SessionInit::mutable_license_category_spec() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionInit.license_category_spec)
|
|
return _internal_mutable_license_category_spec();
|
|
}
|
|
inline void SessionInit::set_allocated_license_category_spec(::video_widevine::LicenseCategorySpec* license_category_spec) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(license_category_spec_);
|
|
}
|
|
if (license_category_spec) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(license_category_spec)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
license_category_spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, license_category_spec, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000080u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000080u;
|
|
}
|
|
license_category_spec_ = license_category_spec;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionInit.license_category_spec)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// SessionState
|
|
|
|
// optional .video_widevine.LicenseIdentification license_id = 1;
|
|
inline bool SessionState::_internal_has_license_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
PROTOBUF_ASSUME(!value || license_id_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool SessionState::has_license_id() const {
|
|
return _internal_has_license_id();
|
|
}
|
|
inline const ::video_widevine::LicenseIdentification& SessionState::_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& SessionState::license_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionState.license_id)
|
|
return _internal_license_id();
|
|
}
|
|
inline void SessionState::unsafe_arena_set_allocated_license_id(
|
|
::video_widevine::LicenseIdentification* license_id) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(license_id_);
|
|
}
|
|
license_id_ = license_id;
|
|
if (license_id) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.SessionState.license_id)
|
|
}
|
|
inline ::video_widevine::LicenseIdentification* SessionState::release_license_id() {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
::video_widevine::LicenseIdentification* temp = license_id_;
|
|
license_id_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::LicenseIdentification* SessionState::unsafe_arena_release_license_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionState.license_id)
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
::video_widevine::LicenseIdentification* temp = license_id_;
|
|
license_id_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::LicenseIdentification* SessionState::_internal_mutable_license_id() {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
if (license_id_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::LicenseIdentification>(GetArena());
|
|
license_id_ = p;
|
|
}
|
|
return license_id_;
|
|
}
|
|
inline ::video_widevine::LicenseIdentification* SessionState::mutable_license_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionState.license_id)
|
|
return _internal_mutable_license_id();
|
|
}
|
|
inline void SessionState::set_allocated_license_id(::video_widevine::LicenseIdentification* license_id) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(license_id_);
|
|
}
|
|
if (license_id) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(license_id)->GetArena();
|
|
if (message_arena != submessage_arena) {
|
|
license_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, license_id, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000004u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
license_id_ = license_id;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionState.license_id)
|
|
}
|
|
|
|
// optional bytes signing_key = 2;
|
|
inline bool SessionState::_internal_has_signing_key() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionState::has_signing_key() const {
|
|
return _internal_has_signing_key();
|
|
}
|
|
inline void SessionState::clear_signing_key() {
|
|
signing_key_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& SessionState::signing_key() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionState.signing_key)
|
|
return _internal_signing_key();
|
|
}
|
|
inline void SessionState::set_signing_key(const std::string& value) {
|
|
_internal_set_signing_key(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionState.signing_key)
|
|
}
|
|
inline std::string* SessionState::mutable_signing_key() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionState.signing_key)
|
|
return _internal_mutable_signing_key();
|
|
}
|
|
inline const std::string& SessionState::_internal_signing_key() const {
|
|
return signing_key_.Get();
|
|
}
|
|
inline void SessionState::_internal_set_signing_key(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
signing_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionState::set_signing_key(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
signing_key_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionState.signing_key)
|
|
}
|
|
inline void SessionState::set_signing_key(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
signing_key_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionState.signing_key)
|
|
}
|
|
inline void SessionState::set_signing_key(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
signing_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.SessionState.signing_key)
|
|
}
|
|
inline std::string* SessionState::_internal_mutable_signing_key() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return signing_key_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionState::release_signing_key() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionState.signing_key)
|
|
if (!_internal_has_signing_key()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return signing_key_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionState::set_allocated_signing_key(std::string* signing_key) {
|
|
if (signing_key != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
signing_key_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), signing_key,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionState.signing_key)
|
|
}
|
|
|
|
// optional uint32 keybox_system_id = 3;
|
|
inline bool SessionState::_internal_has_keybox_system_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionState::has_keybox_system_id() const {
|
|
return _internal_has_keybox_system_id();
|
|
}
|
|
inline void SessionState::clear_keybox_system_id() {
|
|
keybox_system_id_ = 0u;
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 SessionState::_internal_keybox_system_id() const {
|
|
return keybox_system_id_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 SessionState::keybox_system_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionState.keybox_system_id)
|
|
return _internal_keybox_system_id();
|
|
}
|
|
inline void SessionState::_internal_set_keybox_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00000008u;
|
|
keybox_system_id_ = value;
|
|
}
|
|
inline void SessionState::set_keybox_system_id(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_keybox_system_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionState.keybox_system_id)
|
|
}
|
|
|
|
// optional bytes provider_client_token = 4;
|
|
inline bool SessionState::_internal_has_provider_client_token() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionState::has_provider_client_token() const {
|
|
return _internal_has_provider_client_token();
|
|
}
|
|
inline void SessionState::clear_provider_client_token() {
|
|
provider_client_token_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline const std::string& SessionState::provider_client_token() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionState.provider_client_token)
|
|
return _internal_provider_client_token();
|
|
}
|
|
inline void SessionState::set_provider_client_token(const std::string& value) {
|
|
_internal_set_provider_client_token(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionState.provider_client_token)
|
|
}
|
|
inline std::string* SessionState::mutable_provider_client_token() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionState.provider_client_token)
|
|
return _internal_mutable_provider_client_token();
|
|
}
|
|
inline const std::string& SessionState::_internal_provider_client_token() const {
|
|
return provider_client_token_.Get();
|
|
}
|
|
inline void SessionState::_internal_set_provider_client_token(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
provider_client_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionState::set_provider_client_token(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
provider_client_token_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionState.provider_client_token)
|
|
}
|
|
inline void SessionState::set_provider_client_token(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000002u;
|
|
provider_client_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionState.provider_client_token)
|
|
}
|
|
inline void SessionState::set_provider_client_token(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
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.SessionState.provider_client_token)
|
|
}
|
|
inline std::string* SessionState::_internal_mutable_provider_client_token() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
return provider_client_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionState::release_provider_client_token() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionState.provider_client_token)
|
|
if (!_internal_has_provider_client_token()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
return provider_client_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionState::set_allocated_provider_client_token(std::string* provider_client_token) {
|
|
if (provider_client_token != nullptr) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
provider_client_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider_client_token,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionState.provider_client_token)
|
|
}
|
|
|
|
// optional uint32 license_counter = 5;
|
|
inline bool SessionState::_internal_has_license_counter() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionState::has_license_counter() const {
|
|
return _internal_has_license_counter();
|
|
}
|
|
inline void SessionState::clear_license_counter() {
|
|
license_counter_ = 0u;
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 SessionState::_internal_license_counter() const {
|
|
return license_counter_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint32 SessionState::license_counter() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionState.license_counter)
|
|
return _internal_license_counter();
|
|
}
|
|
inline void SessionState::_internal_set_license_counter(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
license_counter_ = value;
|
|
}
|
|
inline void SessionState::set_license_counter(::PROTOBUF_NAMESPACE_ID::uint32 value) {
|
|
_internal_set_license_counter(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionState.license_counter)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// SessionCreateOptions
|
|
|
|
// optional bool allow_revoked_device = 1 [default = false];
|
|
inline bool SessionCreateOptions::_internal_has_allow_revoked_device() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionCreateOptions::has_allow_revoked_device() const {
|
|
return _internal_has_allow_revoked_device();
|
|
}
|
|
inline void SessionCreateOptions::clear_allow_revoked_device() {
|
|
allow_revoked_device_ = false;
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline bool SessionCreateOptions::_internal_allow_revoked_device() const {
|
|
return allow_revoked_device_;
|
|
}
|
|
inline bool SessionCreateOptions::allow_revoked_device() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionCreateOptions.allow_revoked_device)
|
|
return _internal_allow_revoked_device();
|
|
}
|
|
inline void SessionCreateOptions::_internal_set_allow_revoked_device(bool value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
allow_revoked_device_ = value;
|
|
}
|
|
inline void SessionCreateOptions::set_allow_revoked_device(bool value) {
|
|
_internal_set_allow_revoked_device(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionCreateOptions.allow_revoked_device)
|
|
}
|
|
|
|
// optional string provider = 2;
|
|
inline bool SessionCreateOptions::_internal_has_provider() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionCreateOptions::has_provider() const {
|
|
return _internal_has_provider();
|
|
}
|
|
inline void SessionCreateOptions::clear_provider() {
|
|
provider_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& SessionCreateOptions::provider() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionCreateOptions.provider)
|
|
return _internal_provider();
|
|
}
|
|
inline void SessionCreateOptions::set_provider(const std::string& value) {
|
|
_internal_set_provider(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionCreateOptions.provider)
|
|
}
|
|
inline std::string* SessionCreateOptions::mutable_provider() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionCreateOptions.provider)
|
|
return _internal_mutable_provider();
|
|
}
|
|
inline const std::string& SessionCreateOptions::_internal_provider() const {
|
|
return provider_.Get();
|
|
}
|
|
inline void SessionCreateOptions::_internal_set_provider(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionCreateOptions::set_provider(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
provider_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionCreateOptions.provider)
|
|
}
|
|
inline void SessionCreateOptions::set_provider(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
provider_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionCreateOptions.provider)
|
|
}
|
|
inline void SessionCreateOptions::set_provider(const char* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
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.SessionCreateOptions.provider)
|
|
}
|
|
inline std::string* SessionCreateOptions::_internal_mutable_provider() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return provider_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionCreateOptions::release_provider() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionCreateOptions.provider)
|
|
if (!_internal_has_provider()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return provider_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionCreateOptions::set_allocated_provider(std::string* provider) {
|
|
if (provider != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
provider_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionCreateOptions.provider)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// ContentInfo_ContentInfoEntry_Pssh
|
|
|
|
// optional bytes system_id = 1;
|
|
inline bool ContentInfo_ContentInfoEntry_Pssh::_internal_has_system_id() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ContentInfo_ContentInfoEntry_Pssh::has_system_id() const {
|
|
return _internal_has_system_id();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::clear_system_id() {
|
|
system_id_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& ContentInfo_ContentInfoEntry_Pssh::system_id() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ContentInfo.ContentInfoEntry.Pssh.system_id)
|
|
return _internal_system_id();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_system_id(const std::string& value) {
|
|
_internal_set_system_id(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ContentInfo.ContentInfoEntry.Pssh.system_id)
|
|
}
|
|
inline std::string* ContentInfo_ContentInfoEntry_Pssh::mutable_system_id() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ContentInfo.ContentInfoEntry.Pssh.system_id)
|
|
return _internal_mutable_system_id();
|
|
}
|
|
inline const std::string& ContentInfo_ContentInfoEntry_Pssh::_internal_system_id() const {
|
|
return system_id_.Get();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::_internal_set_system_id(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
system_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_system_id(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
system_id_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ContentInfo.ContentInfoEntry.Pssh.system_id)
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_system_id(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
system_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ContentInfo.ContentInfoEntry.Pssh.system_id)
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_system_id(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
system_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.ContentInfo.ContentInfoEntry.Pssh.system_id)
|
|
}
|
|
inline std::string* ContentInfo_ContentInfoEntry_Pssh::_internal_mutable_system_id() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return system_id_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ContentInfo_ContentInfoEntry_Pssh::release_system_id() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ContentInfo.ContentInfoEntry.Pssh.system_id)
|
|
if (!_internal_has_system_id()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return system_id_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_allocated_system_id(std::string* system_id) {
|
|
if (system_id != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
system_id_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), system_id,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ContentInfo.ContentInfoEntry.Pssh.system_id)
|
|
}
|
|
|
|
// bytes raw_data = 2;
|
|
inline bool ContentInfo_ContentInfoEntry_Pssh::_internal_has_raw_data() const {
|
|
return pssh_data_case() == kRawData;
|
|
}
|
|
inline bool ContentInfo_ContentInfoEntry_Pssh::has_raw_data() const {
|
|
return _internal_has_raw_data();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_has_raw_data() {
|
|
_oneof_case_[0] = kRawData;
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::clear_raw_data() {
|
|
if (_internal_has_raw_data()) {
|
|
pssh_data_.raw_data_.Destroy(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
clear_has_pssh_data();
|
|
}
|
|
}
|
|
inline const std::string& ContentInfo_ContentInfoEntry_Pssh::raw_data() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ContentInfo.ContentInfoEntry.Pssh.raw_data)
|
|
return _internal_raw_data();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_raw_data(const std::string& value) {
|
|
_internal_set_raw_data(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ContentInfo.ContentInfoEntry.Pssh.raw_data)
|
|
}
|
|
inline std::string* ContentInfo_ContentInfoEntry_Pssh::mutable_raw_data() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ContentInfo.ContentInfoEntry.Pssh.raw_data)
|
|
return _internal_mutable_raw_data();
|
|
}
|
|
inline const std::string& ContentInfo_ContentInfoEntry_Pssh::_internal_raw_data() const {
|
|
if (_internal_has_raw_data()) {
|
|
return pssh_data_.raw_data_.Get();
|
|
}
|
|
return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::_internal_set_raw_data(const std::string& value) {
|
|
if (!_internal_has_raw_data()) {
|
|
clear_pssh_data();
|
|
set_has_raw_data();
|
|
pssh_data_.raw_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
pssh_data_.raw_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_raw_data(std::string&& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.ContentInfo.ContentInfoEntry.Pssh.raw_data)
|
|
if (!_internal_has_raw_data()) {
|
|
clear_pssh_data();
|
|
set_has_raw_data();
|
|
pssh_data_.raw_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
pssh_data_.raw_data_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.ContentInfo.ContentInfoEntry.Pssh.raw_data)
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_raw_data(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
if (!_internal_has_raw_data()) {
|
|
clear_pssh_data();
|
|
set_has_raw_data();
|
|
pssh_data_.raw_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
pssh_data_.raw_data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{},
|
|
::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ContentInfo.ContentInfoEntry.Pssh.raw_data)
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_raw_data(const void* value,
|
|
size_t size) {
|
|
if (!_internal_has_raw_data()) {
|
|
clear_pssh_data();
|
|
set_has_raw_data();
|
|
pssh_data_.raw_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
pssh_data_.raw_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.ContentInfo.ContentInfoEntry.Pssh.raw_data)
|
|
}
|
|
inline std::string* ContentInfo_ContentInfoEntry_Pssh::_internal_mutable_raw_data() {
|
|
if (!_internal_has_raw_data()) {
|
|
clear_pssh_data();
|
|
set_has_raw_data();
|
|
pssh_data_.raw_data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
return pssh_data_.raw_data_.Mutable(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* ContentInfo_ContentInfoEntry_Pssh::release_raw_data() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ContentInfo.ContentInfoEntry.Pssh.raw_data)
|
|
if (_internal_has_raw_data()) {
|
|
clear_has_pssh_data();
|
|
return pssh_data_.raw_data_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
} else {
|
|
return nullptr;
|
|
}
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_allocated_raw_data(std::string* raw_data) {
|
|
if (has_pssh_data()) {
|
|
clear_pssh_data();
|
|
}
|
|
if (raw_data != nullptr) {
|
|
set_has_raw_data();
|
|
pssh_data_.raw_data_.UnsafeSetDefault(raw_data);
|
|
::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena();
|
|
if (arena != nullptr) {
|
|
arena->Own(raw_data);
|
|
}
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ContentInfo.ContentInfoEntry.Pssh.raw_data)
|
|
}
|
|
|
|
// .video_widevine.WidevinePsshData widevine_data = 3;
|
|
inline bool ContentInfo_ContentInfoEntry_Pssh::_internal_has_widevine_data() const {
|
|
return pssh_data_case() == kWidevineData;
|
|
}
|
|
inline bool ContentInfo_ContentInfoEntry_Pssh::has_widevine_data() const {
|
|
return _internal_has_widevine_data();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::set_has_widevine_data() {
|
|
_oneof_case_[0] = kWidevineData;
|
|
}
|
|
inline ::video_widevine::WidevinePsshData* ContentInfo_ContentInfoEntry_Pssh::release_widevine_data() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ContentInfo.ContentInfoEntry.Pssh.widevine_data)
|
|
if (_internal_has_widevine_data()) {
|
|
clear_has_pssh_data();
|
|
::video_widevine::WidevinePsshData* temp = pssh_data_.widevine_data_;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
pssh_data_.widevine_data_ = nullptr;
|
|
return temp;
|
|
} else {
|
|
return nullptr;
|
|
}
|
|
}
|
|
inline const ::video_widevine::WidevinePsshData& ContentInfo_ContentInfoEntry_Pssh::_internal_widevine_data() const {
|
|
return _internal_has_widevine_data()
|
|
? *pssh_data_.widevine_data_
|
|
: reinterpret_cast< ::video_widevine::WidevinePsshData&>(::video_widevine::_WidevinePsshData_default_instance_);
|
|
}
|
|
inline const ::video_widevine::WidevinePsshData& ContentInfo_ContentInfoEntry_Pssh::widevine_data() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ContentInfo.ContentInfoEntry.Pssh.widevine_data)
|
|
return _internal_widevine_data();
|
|
}
|
|
inline ::video_widevine::WidevinePsshData* ContentInfo_ContentInfoEntry_Pssh::unsafe_arena_release_widevine_data() {
|
|
// @@protoc_insertion_point(field_unsafe_arena_release:video_widevine.ContentInfo.ContentInfoEntry.Pssh.widevine_data)
|
|
if (_internal_has_widevine_data()) {
|
|
clear_has_pssh_data();
|
|
::video_widevine::WidevinePsshData* temp = pssh_data_.widevine_data_;
|
|
pssh_data_.widevine_data_ = nullptr;
|
|
return temp;
|
|
} else {
|
|
return nullptr;
|
|
}
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::unsafe_arena_set_allocated_widevine_data(::video_widevine::WidevinePsshData* widevine_data) {
|
|
clear_pssh_data();
|
|
if (widevine_data) {
|
|
set_has_widevine_data();
|
|
pssh_data_.widevine_data_ = widevine_data;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ContentInfo.ContentInfoEntry.Pssh.widevine_data)
|
|
}
|
|
inline ::video_widevine::WidevinePsshData* ContentInfo_ContentInfoEntry_Pssh::_internal_mutable_widevine_data() {
|
|
if (!_internal_has_widevine_data()) {
|
|
clear_pssh_data();
|
|
set_has_widevine_data();
|
|
pssh_data_.widevine_data_ = CreateMaybeMessage< ::video_widevine::WidevinePsshData >(GetArena());
|
|
}
|
|
return pssh_data_.widevine_data_;
|
|
}
|
|
inline ::video_widevine::WidevinePsshData* ContentInfo_ContentInfoEntry_Pssh::mutable_widevine_data() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ContentInfo.ContentInfoEntry.Pssh.widevine_data)
|
|
return _internal_mutable_widevine_data();
|
|
}
|
|
|
|
inline bool ContentInfo_ContentInfoEntry_Pssh::has_pssh_data() const {
|
|
return pssh_data_case() != PSSH_DATA_NOT_SET;
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry_Pssh::clear_has_pssh_data() {
|
|
_oneof_case_[0] = PSSH_DATA_NOT_SET;
|
|
}
|
|
inline ContentInfo_ContentInfoEntry_Pssh::PsshDataCase ContentInfo_ContentInfoEntry_Pssh::pssh_data_case() const {
|
|
return ContentInfo_ContentInfoEntry_Pssh::PsshDataCase(_oneof_case_[0]);
|
|
}
|
|
// -------------------------------------------------------------------
|
|
|
|
// ContentInfo_ContentInfoEntry
|
|
|
|
// repeated bytes key_ids = 1;
|
|
inline int ContentInfo_ContentInfoEntry::_internal_key_ids_size() const {
|
|
return key_ids_.size();
|
|
}
|
|
inline int ContentInfo_ContentInfoEntry::key_ids_size() const {
|
|
return _internal_key_ids_size();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::clear_key_ids() {
|
|
key_ids_.Clear();
|
|
}
|
|
inline std::string* ContentInfo_ContentInfoEntry::add_key_ids() {
|
|
// @@protoc_insertion_point(field_add_mutable:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
return _internal_add_key_ids();
|
|
}
|
|
inline const std::string& ContentInfo_ContentInfoEntry::_internal_key_ids(int index) const {
|
|
return key_ids_.Get(index);
|
|
}
|
|
inline const std::string& ContentInfo_ContentInfoEntry::key_ids(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
return _internal_key_ids(index);
|
|
}
|
|
inline std::string* ContentInfo_ContentInfoEntry::mutable_key_ids(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
return key_ids_.Mutable(index);
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::set_key_ids(int index, const std::string& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
key_ids_.Mutable(index)->assign(value);
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::set_key_ids(int index, std::string&& value) {
|
|
// @@protoc_insertion_point(field_set:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
key_ids_.Mutable(index)->assign(std::move(value));
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::set_key_ids(int index, const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
key_ids_.Mutable(index)->assign(value);
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::set_key_ids(int index, const void* value, size_t size) {
|
|
key_ids_.Mutable(index)->assign(
|
|
reinterpret_cast<const char*>(value), size);
|
|
// @@protoc_insertion_point(field_set_pointer:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
}
|
|
inline std::string* ContentInfo_ContentInfoEntry::_internal_add_key_ids() {
|
|
return key_ids_.Add();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::add_key_ids(const std::string& value) {
|
|
key_ids_.Add()->assign(value);
|
|
// @@protoc_insertion_point(field_add:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::add_key_ids(std::string&& value) {
|
|
key_ids_.Add(std::move(value));
|
|
// @@protoc_insertion_point(field_add:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::add_key_ids(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
key_ids_.Add()->assign(value);
|
|
// @@protoc_insertion_point(field_add_char:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::add_key_ids(const void* value, size_t size) {
|
|
key_ids_.Add()->assign(reinterpret_cast<const char*>(value), size);
|
|
// @@protoc_insertion_point(field_add_pointer:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
|
|
ContentInfo_ContentInfoEntry::key_ids() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
return key_ids_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
|
|
ContentInfo_ContentInfoEntry::mutable_key_ids() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.ContentInfo.ContentInfoEntry.key_ids)
|
|
return &key_ids_;
|
|
}
|
|
|
|
// optional .video_widevine.ContentInfo.ContentInfoEntry.Pssh pssh = 2;
|
|
inline bool ContentInfo_ContentInfoEntry::_internal_has_pssh() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
PROTOBUF_ASSUME(!value || pssh_ != nullptr);
|
|
return value;
|
|
}
|
|
inline bool ContentInfo_ContentInfoEntry::has_pssh() const {
|
|
return _internal_has_pssh();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::clear_pssh() {
|
|
if (pssh_ != nullptr) pssh_->Clear();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const ::video_widevine::ContentInfo_ContentInfoEntry_Pssh& ContentInfo_ContentInfoEntry::_internal_pssh() const {
|
|
const ::video_widevine::ContentInfo_ContentInfoEntry_Pssh* p = pssh_;
|
|
return p != nullptr ? *p : reinterpret_cast<const ::video_widevine::ContentInfo_ContentInfoEntry_Pssh&>(
|
|
::video_widevine::_ContentInfo_ContentInfoEntry_Pssh_default_instance_);
|
|
}
|
|
inline const ::video_widevine::ContentInfo_ContentInfoEntry_Pssh& ContentInfo_ContentInfoEntry::pssh() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ContentInfo.ContentInfoEntry.pssh)
|
|
return _internal_pssh();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::unsafe_arena_set_allocated_pssh(
|
|
::video_widevine::ContentInfo_ContentInfoEntry_Pssh* pssh) {
|
|
if (GetArena() == nullptr) {
|
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(pssh_);
|
|
}
|
|
pssh_ = pssh;
|
|
if (pssh) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:video_widevine.ContentInfo.ContentInfoEntry.pssh)
|
|
}
|
|
inline ::video_widevine::ContentInfo_ContentInfoEntry_Pssh* ContentInfo_ContentInfoEntry::release_pssh() {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
::video_widevine::ContentInfo_ContentInfoEntry_Pssh* temp = pssh_;
|
|
pssh_ = nullptr;
|
|
if (GetArena() != nullptr) {
|
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
|
}
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ContentInfo_ContentInfoEntry_Pssh* ContentInfo_ContentInfoEntry::unsafe_arena_release_pssh() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.ContentInfo.ContentInfoEntry.pssh)
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
::video_widevine::ContentInfo_ContentInfoEntry_Pssh* temp = pssh_;
|
|
pssh_ = nullptr;
|
|
return temp;
|
|
}
|
|
inline ::video_widevine::ContentInfo_ContentInfoEntry_Pssh* ContentInfo_ContentInfoEntry::_internal_mutable_pssh() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
if (pssh_ == nullptr) {
|
|
auto* p = CreateMaybeMessage<::video_widevine::ContentInfo_ContentInfoEntry_Pssh>(GetArena());
|
|
pssh_ = p;
|
|
}
|
|
return pssh_;
|
|
}
|
|
inline ::video_widevine::ContentInfo_ContentInfoEntry_Pssh* ContentInfo_ContentInfoEntry::mutable_pssh() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ContentInfo.ContentInfoEntry.pssh)
|
|
return _internal_mutable_pssh();
|
|
}
|
|
inline void ContentInfo_ContentInfoEntry::set_allocated_pssh(::video_widevine::ContentInfo_ContentInfoEntry_Pssh* pssh) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
|
|
if (message_arena == nullptr) {
|
|
delete pssh_;
|
|
}
|
|
if (pssh) {
|
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
|
::PROTOBUF_NAMESPACE_ID::Arena::GetArena(pssh);
|
|
if (message_arena != submessage_arena) {
|
|
pssh = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
|
message_arena, pssh, submessage_arena);
|
|
}
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
pssh_ = pssh;
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.ContentInfo.ContentInfoEntry.pssh)
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// ContentInfo
|
|
|
|
// optional .video_widevine.LicenseRequest.ContentIdentification.InitData.InitDataType init_data_type = 1;
|
|
inline bool ContentInfo::_internal_has_init_data_type() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool ContentInfo::has_init_data_type() const {
|
|
return _internal_has_init_data_type();
|
|
}
|
|
inline void ContentInfo::clear_init_data_type() {
|
|
init_data_type_ = 1;
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline ::video_widevine::LicenseRequest_ContentIdentification_InitData_InitDataType ContentInfo::_internal_init_data_type() const {
|
|
return static_cast< ::video_widevine::LicenseRequest_ContentIdentification_InitData_InitDataType >(init_data_type_);
|
|
}
|
|
inline ::video_widevine::LicenseRequest_ContentIdentification_InitData_InitDataType ContentInfo::init_data_type() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ContentInfo.init_data_type)
|
|
return _internal_init_data_type();
|
|
}
|
|
inline void ContentInfo::_internal_set_init_data_type(::video_widevine::LicenseRequest_ContentIdentification_InitData_InitDataType value) {
|
|
assert(::video_widevine::LicenseRequest_ContentIdentification_InitData_InitDataType_IsValid(value));
|
|
_has_bits_[0] |= 0x00000001u;
|
|
init_data_type_ = value;
|
|
}
|
|
inline void ContentInfo::set_init_data_type(::video_widevine::LicenseRequest_ContentIdentification_InitData_InitDataType value) {
|
|
_internal_set_init_data_type(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.ContentInfo.init_data_type)
|
|
}
|
|
|
|
// repeated .video_widevine.ContentInfo.ContentInfoEntry content_info_entry = 2;
|
|
inline int ContentInfo::_internal_content_info_entry_size() const {
|
|
return content_info_entry_.size();
|
|
}
|
|
inline int ContentInfo::content_info_entry_size() const {
|
|
return _internal_content_info_entry_size();
|
|
}
|
|
inline void ContentInfo::clear_content_info_entry() {
|
|
content_info_entry_.Clear();
|
|
}
|
|
inline ::video_widevine::ContentInfo_ContentInfoEntry* ContentInfo::mutable_content_info_entry(int index) {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.ContentInfo.content_info_entry)
|
|
return content_info_entry_.Mutable(index);
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ContentInfo_ContentInfoEntry >*
|
|
ContentInfo::mutable_content_info_entry() {
|
|
// @@protoc_insertion_point(field_mutable_list:video_widevine.ContentInfo.content_info_entry)
|
|
return &content_info_entry_;
|
|
}
|
|
inline const ::video_widevine::ContentInfo_ContentInfoEntry& ContentInfo::_internal_content_info_entry(int index) const {
|
|
return content_info_entry_.Get(index);
|
|
}
|
|
inline const ::video_widevine::ContentInfo_ContentInfoEntry& ContentInfo::content_info_entry(int index) const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.ContentInfo.content_info_entry)
|
|
return _internal_content_info_entry(index);
|
|
}
|
|
inline ::video_widevine::ContentInfo_ContentInfoEntry* ContentInfo::_internal_add_content_info_entry() {
|
|
return content_info_entry_.Add();
|
|
}
|
|
inline ::video_widevine::ContentInfo_ContentInfoEntry* ContentInfo::add_content_info_entry() {
|
|
// @@protoc_insertion_point(field_add:video_widevine.ContentInfo.content_info_entry)
|
|
return _internal_add_content_info_entry();
|
|
}
|
|
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::video_widevine::ContentInfo_ContentInfoEntry >&
|
|
ContentInfo::content_info_entry() const {
|
|
// @@protoc_insertion_point(field_list:video_widevine.ContentInfo.content_info_entry)
|
|
return content_info_entry_;
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// SessionUsage
|
|
|
|
// optional bool license_used = 1 [default = false];
|
|
inline bool SessionUsage::_internal_has_license_used() const {
|
|
bool value = (_has_bits_[0] & 0x00000002u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionUsage::has_license_used() const {
|
|
return _internal_has_license_used();
|
|
}
|
|
inline void SessionUsage::clear_license_used() {
|
|
license_used_ = false;
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline bool SessionUsage::_internal_license_used() const {
|
|
return license_used_;
|
|
}
|
|
inline bool SessionUsage::license_used() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionUsage.license_used)
|
|
return _internal_license_used();
|
|
}
|
|
inline void SessionUsage::_internal_set_license_used(bool value) {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
license_used_ = value;
|
|
}
|
|
inline void SessionUsage::set_license_used(bool value) {
|
|
_internal_set_license_used(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionUsage.license_used)
|
|
}
|
|
|
|
// optional bool license_released = 2 [default = false];
|
|
inline bool SessionUsage::_internal_has_license_released() const {
|
|
bool value = (_has_bits_[0] & 0x00000004u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionUsage::has_license_released() const {
|
|
return _internal_has_license_released();
|
|
}
|
|
inline void SessionUsage::clear_license_released() {
|
|
license_released_ = false;
|
|
_has_bits_[0] &= ~0x00000004u;
|
|
}
|
|
inline bool SessionUsage::_internal_license_released() const {
|
|
return license_released_;
|
|
}
|
|
inline bool SessionUsage::license_released() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionUsage.license_released)
|
|
return _internal_license_released();
|
|
}
|
|
inline void SessionUsage::_internal_set_license_released(bool value) {
|
|
_has_bits_[0] |= 0x00000004u;
|
|
license_released_ = value;
|
|
}
|
|
inline void SessionUsage::set_license_released(bool value) {
|
|
_internal_set_license_released(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionUsage.license_released)
|
|
}
|
|
|
|
// optional .video_widevine.SessionUsage.ClockSecurityLevel clock_security_level = 3;
|
|
inline bool SessionUsage::_internal_has_clock_security_level() const {
|
|
bool value = (_has_bits_[0] & 0x00000008u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionUsage::has_clock_security_level() const {
|
|
return _internal_has_clock_security_level();
|
|
}
|
|
inline void SessionUsage::clear_clock_security_level() {
|
|
clock_security_level_ = 0;
|
|
_has_bits_[0] &= ~0x00000008u;
|
|
}
|
|
inline ::video_widevine::SessionUsage_ClockSecurityLevel SessionUsage::_internal_clock_security_level() const {
|
|
return static_cast< ::video_widevine::SessionUsage_ClockSecurityLevel >(clock_security_level_);
|
|
}
|
|
inline ::video_widevine::SessionUsage_ClockSecurityLevel SessionUsage::clock_security_level() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionUsage.clock_security_level)
|
|
return _internal_clock_security_level();
|
|
}
|
|
inline void SessionUsage::_internal_set_clock_security_level(::video_widevine::SessionUsage_ClockSecurityLevel value) {
|
|
assert(::video_widevine::SessionUsage_ClockSecurityLevel_IsValid(value));
|
|
_has_bits_[0] |= 0x00000008u;
|
|
clock_security_level_ = value;
|
|
}
|
|
inline void SessionUsage::set_clock_security_level(::video_widevine::SessionUsage_ClockSecurityLevel value) {
|
|
_internal_set_clock_security_level(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionUsage.clock_security_level)
|
|
}
|
|
|
|
// optional uint64 seconds_since_license_received = 4;
|
|
inline bool SessionUsage::_internal_has_seconds_since_license_received() const {
|
|
bool value = (_has_bits_[0] & 0x00000010u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionUsage::has_seconds_since_license_received() const {
|
|
return _internal_has_seconds_since_license_received();
|
|
}
|
|
inline void SessionUsage::clear_seconds_since_license_received() {
|
|
seconds_since_license_received_ = PROTOBUF_ULONGLONG(0);
|
|
_has_bits_[0] &= ~0x00000010u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint64 SessionUsage::_internal_seconds_since_license_received() const {
|
|
return seconds_since_license_received_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint64 SessionUsage::seconds_since_license_received() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionUsage.seconds_since_license_received)
|
|
return _internal_seconds_since_license_received();
|
|
}
|
|
inline void SessionUsage::_internal_set_seconds_since_license_received(::PROTOBUF_NAMESPACE_ID::uint64 value) {
|
|
_has_bits_[0] |= 0x00000010u;
|
|
seconds_since_license_received_ = value;
|
|
}
|
|
inline void SessionUsage::set_seconds_since_license_received(::PROTOBUF_NAMESPACE_ID::uint64 value) {
|
|
_internal_set_seconds_since_license_received(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionUsage.seconds_since_license_received)
|
|
}
|
|
|
|
// optional uint64 seconds_since_first_decrypt = 5;
|
|
inline bool SessionUsage::_internal_has_seconds_since_first_decrypt() const {
|
|
bool value = (_has_bits_[0] & 0x00000020u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionUsage::has_seconds_since_first_decrypt() const {
|
|
return _internal_has_seconds_since_first_decrypt();
|
|
}
|
|
inline void SessionUsage::clear_seconds_since_first_decrypt() {
|
|
seconds_since_first_decrypt_ = PROTOBUF_ULONGLONG(0);
|
|
_has_bits_[0] &= ~0x00000020u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint64 SessionUsage::_internal_seconds_since_first_decrypt() const {
|
|
return seconds_since_first_decrypt_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint64 SessionUsage::seconds_since_first_decrypt() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionUsage.seconds_since_first_decrypt)
|
|
return _internal_seconds_since_first_decrypt();
|
|
}
|
|
inline void SessionUsage::_internal_set_seconds_since_first_decrypt(::PROTOBUF_NAMESPACE_ID::uint64 value) {
|
|
_has_bits_[0] |= 0x00000020u;
|
|
seconds_since_first_decrypt_ = value;
|
|
}
|
|
inline void SessionUsage::set_seconds_since_first_decrypt(::PROTOBUF_NAMESPACE_ID::uint64 value) {
|
|
_internal_set_seconds_since_first_decrypt(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionUsage.seconds_since_first_decrypt)
|
|
}
|
|
|
|
// optional uint64 seconds_since_last_decrypt = 6;
|
|
inline bool SessionUsage::_internal_has_seconds_since_last_decrypt() const {
|
|
bool value = (_has_bits_[0] & 0x00000040u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionUsage::has_seconds_since_last_decrypt() const {
|
|
return _internal_has_seconds_since_last_decrypt();
|
|
}
|
|
inline void SessionUsage::clear_seconds_since_last_decrypt() {
|
|
seconds_since_last_decrypt_ = PROTOBUF_ULONGLONG(0);
|
|
_has_bits_[0] &= ~0x00000040u;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint64 SessionUsage::_internal_seconds_since_last_decrypt() const {
|
|
return seconds_since_last_decrypt_;
|
|
}
|
|
inline ::PROTOBUF_NAMESPACE_ID::uint64 SessionUsage::seconds_since_last_decrypt() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionUsage.seconds_since_last_decrypt)
|
|
return _internal_seconds_since_last_decrypt();
|
|
}
|
|
inline void SessionUsage::_internal_set_seconds_since_last_decrypt(::PROTOBUF_NAMESPACE_ID::uint64 value) {
|
|
_has_bits_[0] |= 0x00000040u;
|
|
seconds_since_last_decrypt_ = value;
|
|
}
|
|
inline void SessionUsage::set_seconds_since_last_decrypt(::PROTOBUF_NAMESPACE_ID::uint64 value) {
|
|
_internal_set_seconds_since_last_decrypt(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionUsage.seconds_since_last_decrypt)
|
|
}
|
|
|
|
// optional bytes provider_session_token = 7;
|
|
inline bool SessionUsage::_internal_has_provider_session_token() const {
|
|
bool value = (_has_bits_[0] & 0x00000001u) != 0;
|
|
return value;
|
|
}
|
|
inline bool SessionUsage::has_provider_session_token() const {
|
|
return _internal_has_provider_session_token();
|
|
}
|
|
inline void SessionUsage::clear_provider_session_token() {
|
|
provider_session_token_.ClearToEmpty();
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline const std::string& SessionUsage::provider_session_token() const {
|
|
// @@protoc_insertion_point(field_get:video_widevine.SessionUsage.provider_session_token)
|
|
return _internal_provider_session_token();
|
|
}
|
|
inline void SessionUsage::set_provider_session_token(const std::string& value) {
|
|
_internal_set_provider_session_token(value);
|
|
// @@protoc_insertion_point(field_set:video_widevine.SessionUsage.provider_session_token)
|
|
}
|
|
inline std::string* SessionUsage::mutable_provider_session_token() {
|
|
// @@protoc_insertion_point(field_mutable:video_widevine.SessionUsage.provider_session_token)
|
|
return _internal_mutable_provider_session_token();
|
|
}
|
|
inline const std::string& SessionUsage::_internal_provider_session_token() const {
|
|
return provider_session_token_.Get();
|
|
}
|
|
inline void SessionUsage::_internal_set_provider_session_token(const std::string& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
provider_session_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArena());
|
|
}
|
|
inline void SessionUsage::set_provider_session_token(std::string&& value) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
provider_session_token_.Set(
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::move(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_rvalue:video_widevine.SessionUsage.provider_session_token)
|
|
}
|
|
inline void SessionUsage::set_provider_session_token(const char* value) {
|
|
GOOGLE_DCHECK(value != nullptr);
|
|
_has_bits_[0] |= 0x00000001u;
|
|
provider_session_token_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, ::std::string(value), GetArena());
|
|
// @@protoc_insertion_point(field_set_char:video_widevine.SessionUsage.provider_session_token)
|
|
}
|
|
inline void SessionUsage::set_provider_session_token(const void* value,
|
|
size_t size) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
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.SessionUsage.provider_session_token)
|
|
}
|
|
inline std::string* SessionUsage::_internal_mutable_provider_session_token() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
return provider_session_token_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArena());
|
|
}
|
|
inline std::string* SessionUsage::release_provider_session_token() {
|
|
// @@protoc_insertion_point(field_release:video_widevine.SessionUsage.provider_session_token)
|
|
if (!_internal_has_provider_session_token()) {
|
|
return nullptr;
|
|
}
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
return provider_session_token_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
|
|
}
|
|
inline void SessionUsage::set_allocated_provider_session_token(std::string* provider_session_token) {
|
|
if (provider_session_token != nullptr) {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
} else {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
provider_session_token_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), provider_session_token,
|
|
GetArena());
|
|
// @@protoc_insertion_point(field_set_allocated:video_widevine.SessionUsage.provider_session_token)
|
|
}
|
|
|
|
#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::SessionUsage_ClockSecurityLevel> : ::std::true_type {};
|
|
template <>
|
|
inline const EnumDescriptor* GetEnumDescriptor< ::video_widevine::SessionUsage_ClockSecurityLevel>() {
|
|
return ::video_widevine::SessionUsage_ClockSecurityLevel_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_5fserver_5fsdk_2eproto
|