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 Google 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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ContentRestriction() |
Modifier and Type | Method and Description |
---|---|
ContentRestriction |
clone() |
Boolean |
getOwnerRestricted()
Whether the content restriction can only be modified or removed by a user who owns the file.
|
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()
Output only.
|
com.google.api.client.util.DateTime |
getRestrictionTime()
The time at which the content restriction was set (formatted RFC 3339 timestamp).
|
Boolean |
getSystemRestricted()
Output only.
|
String |
getType()
Output only.
|
ContentRestriction |
set(String fieldName,
Object value) |
ContentRestriction |
setOwnerRestricted(Boolean ownerRestricted)
Whether the content restriction can only be modified or removed by a user who owns the file.
|
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)
Output only.
|
ContentRestriction |
setRestrictionTime(com.google.api.client.util.DateTime restrictionTime)
The time at which the content restriction was set (formatted RFC 3339 timestamp).
|
ContentRestriction |
setSystemRestricted(Boolean systemRestricted)
Output only.
|
ContentRestriction |
setType(String type)
Output only.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getOwnerRestricted()
null
for nonepublic ContentRestriction setOwnerRestricted(Boolean ownerRestricted)
ownerRestricted
- ownerRestricted or null
for nonepublic 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 getRestrictionTime()
null
for nonepublic ContentRestriction setRestrictionTime(com.google.api.client.util.DateTime restrictionTime)
restrictionTime
- restrictionTime or null
for nonepublic Boolean getSystemRestricted()
null
for nonepublic ContentRestriction setSystemRestricted(Boolean systemRestricted)
systemRestricted
- systemRestricted 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.GenericJson
public ContentRestriction clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.