#include <download_access_restriction.h>
◆ DownloadAccessRestriction() [1/2]
google_books_api::DownloadAccessRestriction::DownloadAccessRestriction |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ DownloadAccessRestriction() [2/2]
google_books_api::DownloadAccessRestriction::DownloadAccessRestriction |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~DownloadAccessRestriction()
google_books_api::DownloadAccessRestriction::~DownloadAccessRestriction |
( |
| ) |
|
|
virtual |
◆ clear_device_allowed()
void google_books_api::DownloadAccessRestriction::clear_device_allowed |
( |
| ) |
|
|
inline |
Clears the 'deviceAllowed
' attribute.
◆ clear_downloads_acquired()
void google_books_api::DownloadAccessRestriction::clear_downloads_acquired |
( |
| ) |
|
|
inline |
Clears the 'downloadsAcquired
' attribute.
◆ clear_just_acquired()
void google_books_api::DownloadAccessRestriction::clear_just_acquired |
( |
| ) |
|
|
inline |
Clears the 'justAcquired
' attribute.
◆ clear_kind()
void google_books_api::DownloadAccessRestriction::clear_kind |
( |
| ) |
|
|
inline |
Clears the 'kind
' attribute.
◆ clear_max_download_devices()
void google_books_api::DownloadAccessRestriction::clear_max_download_devices |
( |
| ) |
|
|
inline |
Clears the 'maxDownloadDevices
' attribute.
◆ clear_message()
void google_books_api::DownloadAccessRestriction::clear_message |
( |
| ) |
|
|
inline |
Clears the 'message
' attribute.
◆ clear_nonce()
void google_books_api::DownloadAccessRestriction::clear_nonce |
( |
| ) |
|
|
inline |
Clears the 'nonce
' attribute.
◆ clear_reason_code()
void google_books_api::DownloadAccessRestriction::clear_reason_code |
( |
| ) |
|
|
inline |
Clears the 'reasonCode
' attribute.
◆ clear_restricted()
void google_books_api::DownloadAccessRestriction::clear_restricted |
( |
| ) |
|
|
inline |
Clears the 'restricted
' attribute.
◆ clear_signature()
void google_books_api::DownloadAccessRestriction::clear_signature |
( |
| ) |
|
|
inline |
Clears the 'signature
' attribute.
◆ clear_source()
void google_books_api::DownloadAccessRestriction::clear_source |
( |
| ) |
|
|
inline |
Clears the 'source
' attribute.
◆ clear_volume_id()
void google_books_api::DownloadAccessRestriction::clear_volume_id |
( |
| ) |
|
|
inline |
Clears the 'volumeId
' attribute.
◆ get_device_allowed()
bool google_books_api::DownloadAccessRestriction::get_device_allowed |
( |
| ) |
const |
|
inline |
Get the value of the 'deviceAllowed
' attribute.
◆ get_downloads_acquired()
int32 google_books_api::DownloadAccessRestriction::get_downloads_acquired |
( |
| ) |
const |
|
inline |
Get the value of the 'downloadsAcquired
' attribute.
◆ get_just_acquired()
bool google_books_api::DownloadAccessRestriction::get_just_acquired |
( |
| ) |
const |
|
inline |
Get the value of the 'justAcquired
' attribute.
◆ get_kind()
const StringPiece google_books_api::DownloadAccessRestriction::get_kind |
( |
| ) |
const |
|
inline |
Get the value of the 'kind
' attribute.
◆ get_max_download_devices()
int32 google_books_api::DownloadAccessRestriction::get_max_download_devices |
( |
| ) |
const |
|
inline |
Get the value of the 'maxDownloadDevices
' attribute.
◆ get_message()
const StringPiece google_books_api::DownloadAccessRestriction::get_message |
( |
| ) |
const |
|
inline |
Get the value of the 'message
' attribute.
◆ get_nonce()
const StringPiece google_books_api::DownloadAccessRestriction::get_nonce |
( |
| ) |
const |
|
inline |
Get the value of the 'nonce
' attribute.
◆ get_reason_code()
const StringPiece google_books_api::DownloadAccessRestriction::get_reason_code |
( |
| ) |
const |
|
inline |
Get the value of the 'reasonCode
' attribute.
◆ get_restricted()
bool google_books_api::DownloadAccessRestriction::get_restricted |
( |
| ) |
const |
|
inline |
Get the value of the 'restricted
' attribute.
◆ get_signature()
const StringPiece google_books_api::DownloadAccessRestriction::get_signature |
( |
| ) |
const |
|
inline |
Get the value of the 'signature
' attribute.
◆ get_source()
const StringPiece google_books_api::DownloadAccessRestriction::get_source |
( |
| ) |
const |
|
inline |
Get the value of the 'source
' attribute.
◆ get_volume_id()
const StringPiece google_books_api::DownloadAccessRestriction::get_volume_id |
( |
| ) |
const |
|
inline |
Get the value of the 'volumeId
' attribute.
◆ GetTypeName()
const StringPiece google_books_api::DownloadAccessRestriction::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_device_allowed()
bool google_books_api::DownloadAccessRestriction::has_device_allowed |
( |
| ) |
const |
|
inline |
Determine if the 'deviceAllowed
' attribute was set.
- Returns
- true if the '
deviceAllowed
' attribute was set.
◆ has_downloads_acquired()
bool google_books_api::DownloadAccessRestriction::has_downloads_acquired |
( |
| ) |
const |
|
inline |
Determine if the 'downloadsAcquired
' attribute was set.
- Returns
- true if the '
downloadsAcquired
' attribute was set.
◆ has_just_acquired()
bool google_books_api::DownloadAccessRestriction::has_just_acquired |
( |
| ) |
const |
|
inline |
Determine if the 'justAcquired
' attribute was set.
- Returns
- true if the '
justAcquired
' attribute was set.
◆ has_kind()
bool google_books_api::DownloadAccessRestriction::has_kind |
( |
| ) |
const |
|
inline |
Determine if the 'kind
' attribute was set.
- Returns
- true if the '
kind
' attribute was set.
◆ has_max_download_devices()
bool google_books_api::DownloadAccessRestriction::has_max_download_devices |
( |
| ) |
const |
|
inline |
Determine if the 'maxDownloadDevices
' attribute was set.
- Returns
- true if the '
maxDownloadDevices
' attribute was set.
◆ has_message()
bool google_books_api::DownloadAccessRestriction::has_message |
( |
| ) |
const |
|
inline |
Determine if the 'message
' attribute was set.
- Returns
- true if the '
message
' attribute was set.
◆ has_nonce()
bool google_books_api::DownloadAccessRestriction::has_nonce |
( |
| ) |
const |
|
inline |
Determine if the 'nonce
' attribute was set.
- Returns
- true if the '
nonce
' attribute was set.
◆ has_reason_code()
bool google_books_api::DownloadAccessRestriction::has_reason_code |
( |
| ) |
const |
|
inline |
Determine if the 'reasonCode
' attribute was set.
- Returns
- true if the '
reasonCode
' attribute was set.
◆ has_restricted()
bool google_books_api::DownloadAccessRestriction::has_restricted |
( |
| ) |
const |
|
inline |
Determine if the 'restricted
' attribute was set.
- Returns
- true if the '
restricted
' attribute was set.
◆ has_signature()
bool google_books_api::DownloadAccessRestriction::has_signature |
( |
| ) |
const |
|
inline |
Determine if the 'signature
' attribute was set.
- Returns
- true if the '
signature
' attribute was set.
◆ has_source()
bool google_books_api::DownloadAccessRestriction::has_source |
( |
| ) |
const |
|
inline |
Determine if the 'source
' attribute was set.
- Returns
- true if the '
source
' attribute was set.
◆ has_volume_id()
bool google_books_api::DownloadAccessRestriction::has_volume_id |
( |
| ) |
const |
|
inline |
Determine if the 'volumeId
' attribute was set.
- Returns
- true if the '
volumeId
' attribute was set.
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_device_allowed()
void google_books_api::DownloadAccessRestriction::set_device_allowed |
( |
bool |
value | ) |
|
|
inline |
Change the 'deviceAllowed
' attribute.
If restricted, whether access is granted for this (user, device, volume).
- Parameters
-
◆ set_downloads_acquired()
void google_books_api::DownloadAccessRestriction::set_downloads_acquired |
( |
int32 |
value | ) |
|
|
inline |
Change the 'downloadsAcquired
' attribute.
If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- Parameters
-
◆ set_just_acquired()
void google_books_api::DownloadAccessRestriction::set_just_acquired |
( |
bool |
value | ) |
|
|
inline |
Change the 'justAcquired
' attribute.
If deviceAllowed, whether access was just acquired with this request.
- Parameters
-
◆ set_kind()
void google_books_api::DownloadAccessRestriction::set_kind |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'kind
' attribute.
Resource type.
- Parameters
-
◆ set_max_download_devices()
void google_books_api::DownloadAccessRestriction::set_max_download_devices |
( |
int32 |
value | ) |
|
|
inline |
Change the 'maxDownloadDevices
' attribute.
If restricted, the maximum number of content download licenses for this volume.
- Parameters
-
◆ set_message()
void google_books_api::DownloadAccessRestriction::set_message |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'message
' attribute.
Error/warning message.
- Parameters
-
◆ set_nonce()
void google_books_api::DownloadAccessRestriction::set_nonce |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'nonce
' attribute.
Client nonce for verification. Download access and client-validation only.
- Parameters
-
◆ set_reason_code()
void google_books_api::DownloadAccessRestriction::set_reason_code |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'reasonCode
' attribute.
Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS.
- Parameters
-
◆ set_restricted()
void google_books_api::DownloadAccessRestriction::set_restricted |
( |
bool |
value | ) |
|
|
inline |
Change the 'restricted
' attribute.
Whether this volume has any download access restrictions.
- Parameters
-
◆ set_signature()
void google_books_api::DownloadAccessRestriction::set_signature |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'signature
' attribute.
Response signature.
- Parameters
-
◆ set_source()
void google_books_api::DownloadAccessRestriction::set_source |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'source
' attribute.
Client app identifier for verification. Download access and client- validation only.
- Parameters
-
◆ set_volume_id()
void google_books_api::DownloadAccessRestriction::set_volume_id |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'volumeId
' attribute.
Identifies the volume for which this entry applies.
- Parameters
-
The documentation for this class was generated from the following files: