public final class DownloadAccessRestriction
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Books API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DownloadAccessRestriction() |
| Modifier and Type | Method and Description |
|---|---|
DownloadAccessRestriction |
clone() |
Boolean |
getDeviceAllowed()
If restricted, whether access is granted for this (user, device, volume).
|
Integer |
getDownloadsAcquired()
If restricted, the number of content download licenses already acquired (including the
requesting client, if licensed).
|
Boolean |
getJustAcquired()
If deviceAllowed, whether access was just acquired with this request.
|
String |
getKind()
Resource type.
|
Integer |
getMaxDownloadDevices()
If restricted, the maximum number of content download licenses for this volume.
|
String |
getMessage()
Error/warning message.
|
String |
getNonce()
Client nonce for verification.
|
String |
getReasonCode()
Error/warning reason code.
|
Boolean |
getRestricted()
Whether this volume has any download access restrictions.
|
String |
getSignature()
Response signature.
|
String |
getSource()
Client app identifier for verification.
|
String |
getVolumeId()
Identifies the volume for which this entry applies.
|
DownloadAccessRestriction |
set(String fieldName,
Object value) |
DownloadAccessRestriction |
setDeviceAllowed(Boolean deviceAllowed)
If restricted, whether access is granted for this (user, device, volume).
|
DownloadAccessRestriction |
setDownloadsAcquired(Integer downloadsAcquired)
If restricted, the number of content download licenses already acquired (including the
requesting client, if licensed).
|
DownloadAccessRestriction |
setJustAcquired(Boolean justAcquired)
If deviceAllowed, whether access was just acquired with this request.
|
DownloadAccessRestriction |
setKind(String kind)
Resource type.
|
DownloadAccessRestriction |
setMaxDownloadDevices(Integer maxDownloadDevices)
If restricted, the maximum number of content download licenses for this volume.
|
DownloadAccessRestriction |
setMessage(String message)
Error/warning message.
|
DownloadAccessRestriction |
setNonce(String nonce)
Client nonce for verification.
|
DownloadAccessRestriction |
setReasonCode(String reasonCode)
Error/warning reason code.
|
DownloadAccessRestriction |
setRestricted(Boolean restricted)
Whether this volume has any download access restrictions.
|
DownloadAccessRestriction |
setSignature(String signature)
Response signature.
|
DownloadAccessRestriction |
setSource(String source)
Client app identifier for verification.
|
DownloadAccessRestriction |
setVolumeId(String volumeId)
Identifies the volume for which this entry applies.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getDeviceAllowed()
null for nonepublic DownloadAccessRestriction setDeviceAllowed(Boolean deviceAllowed)
deviceAllowed - deviceAllowed or null for nonepublic Integer getDownloadsAcquired()
null for nonepublic DownloadAccessRestriction setDownloadsAcquired(Integer downloadsAcquired)
downloadsAcquired - downloadsAcquired or null for nonepublic Boolean getJustAcquired()
null for nonepublic DownloadAccessRestriction setJustAcquired(Boolean justAcquired)
justAcquired - justAcquired or null for nonepublic String getKind()
null for nonepublic DownloadAccessRestriction setKind(String kind)
kind - kind or null for nonepublic Integer getMaxDownloadDevices()
null for nonepublic DownloadAccessRestriction setMaxDownloadDevices(Integer maxDownloadDevices)
maxDownloadDevices - maxDownloadDevices or null for nonepublic String getMessage()
null for nonepublic DownloadAccessRestriction setMessage(String message)
message - message or null for nonepublic String getNonce()
null for nonepublic DownloadAccessRestriction setNonce(String nonce)
nonce - nonce or null for nonepublic String getReasonCode()
null for nonepublic DownloadAccessRestriction setReasonCode(String reasonCode)
reasonCode - reasonCode or null for nonepublic Boolean getRestricted()
null for nonepublic DownloadAccessRestriction setRestricted(Boolean restricted)
restricted - restricted or null for nonepublic String getSignature()
null for nonepublic DownloadAccessRestriction setSignature(String signature)
signature - signature or null for nonepublic String getSource()
null for nonepublic DownloadAccessRestriction setSource(String source)
source - source or null for nonepublic String getVolumeId()
null for nonepublic DownloadAccessRestriction setVolumeId(String volumeId)
volumeId - volumeId or null for nonepublic DownloadAccessRestriction set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic DownloadAccessRestriction clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2019 Google. All rights reserved.