public final class ContentRestriction
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 Drive 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 |
|---|
ContentRestriction() |
| Modifier and Type | Method and Description |
|---|---|
ContentRestriction |
clone() |
Boolean |
getReadOnly()
Whether the content of the file is read-only.
|
String |
getReason()
Reason for why the content of the file is restricted.
|
User |
getRestrictingUser()
The user who set the content restriction.
|
com.google.api.client.util.DateTime |
getRestrictionDate()
The time at which the content restriction was set (formatted RFC 3339 timestamp).
|
String |
getType()
The type of the content restriction.
|
ContentRestriction |
set(String fieldName,
Object value) |
ContentRestriction |
setReadOnly(Boolean readOnly)
Whether the content of the file is read-only.
|
ContentRestriction |
setReason(String reason)
Reason for why the content of the file is restricted.
|
ContentRestriction |
setRestrictingUser(User restrictingUser)
The user who set the content restriction.
|
ContentRestriction |
setRestrictionDate(com.google.api.client.util.DateTime restrictionDate)
The time at which the content restriction was set (formatted RFC 3339 timestamp).
|
ContentRestriction |
setType(String type)
The type of the content restriction.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getReadOnly()
null for nonepublic ContentRestriction setReadOnly(Boolean readOnly)
readOnly - readOnly or null for nonepublic String getReason()
null for nonepublic ContentRestriction setReason(String reason)
reason - reason or null for nonepublic User getRestrictingUser()
null for nonepublic ContentRestriction setRestrictingUser(User restrictingUser)
restrictingUser - restrictingUser or null for nonepublic com.google.api.client.util.DateTime getRestrictionDate()
null for nonepublic ContentRestriction setRestrictionDate(com.google.api.client.util.DateTime restrictionDate)
restrictionDate - restrictionDate or null for nonepublic String getType()
null for nonepublic ContentRestriction setType(String type)
type - type or null for nonepublic ContentRestriction set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic ContentRestriction clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.