target.apidocs.com.google.api.services.drive.model.File.Labels.html Maven / Gradle / Ivy
File.Labels (Drive API v2-rev20180830-1.26.0)
com.google.api.services.drive.model
Class File.Labels
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.File.Labels
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Labels()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
File.Labels
clone()
Boolean
getHidden()
Deprecated.
Boolean
getModified()
Whether the file has been modified by this user.
Boolean
getRestricted()
Deprecated - use copyRequiresWriterPermission instead.
Boolean
getStarred()
Whether this file is starred by the user.
Boolean
getTrashed()
Whether this file has been trashed.
Boolean
getViewed()
Whether this file has been viewed by this user.
File.Labels
set(String fieldName,
Object value)
File.Labels
setHidden(Boolean hidden)
Deprecated.
File.Labels
setModified(Boolean modified)
Whether the file has been modified by this user.
File.Labels
setRestricted(Boolean restricted)
Deprecated - use copyRequiresWriterPermission instead.
File.Labels
setStarred(Boolean starred)
Whether this file is starred by the user.
File.Labels
setTrashed(Boolean trashed)
Whether this file has been trashed.
File.Labels
setViewed(Boolean viewed)
Whether this file has been viewed by this user.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getHidden
public Boolean getHidden()
Deprecated.
- Returns:
- value or
null
for none
-
setHidden
public File.Labels setHidden(Boolean hidden)
Deprecated.
- Parameters:
hidden
- hidden or null
for none
-
getModified
public Boolean getModified()
Whether the file has been modified by this user.
- Returns:
- value or
null
for none
-
setModified
public File.Labels setModified(Boolean modified)
Whether the file has been modified by this user.
- Parameters:
modified
- modified or null
for none
-
getRestricted
public Boolean getRestricted()
Deprecated - use copyRequiresWriterPermission instead.
- Returns:
- value or
null
for none
-
setRestricted
public File.Labels setRestricted(Boolean restricted)
Deprecated - use copyRequiresWriterPermission instead.
- Parameters:
restricted
- restricted or null
for none
-
getStarred
public Boolean getStarred()
Whether this file is starred by the user.
- Returns:
- value or
null
for none
-
setStarred
public File.Labels setStarred(Boolean starred)
Whether this file is starred by the user.
- Parameters:
starred
- starred or null
for none
-
getTrashed
public Boolean getTrashed()
Whether this file has been trashed. This label applies to all users accessing the file;
however, only owners are allowed to see and untrash files.
- Returns:
- value or
null
for none
-
setTrashed
public File.Labels setTrashed(Boolean trashed)
Whether this file has been trashed. This label applies to all users accessing the file;
however, only owners are allowed to see and untrash files.
- Parameters:
trashed
- trashed or null
for none
-
getViewed
public Boolean getViewed()
Whether this file has been viewed by this user.
- Returns:
- value or
null
for none
-
setViewed
public File.Labels setViewed(Boolean viewed)
Whether this file has been viewed by this user.
- Parameters:
viewed
- viewed or null
for none
-
set
public File.Labels set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public File.Labels clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2018 Google. All rights reserved.