target.apidocs.com.google.api.services.drive.model.File.Labels.html Maven / Gradle / Ivy
File.Labels (Google Drive API v2-rev20240809-2.0.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()
Output only.
Boolean
getModified()
Output only.
Boolean
getRestricted()
Output only.
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)
Output only.
File.Labels
setModified(Boolean modified)
Output only.
File.Labels
setRestricted(Boolean restricted)
Output only.
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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, 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()
Output only. Deprecated.
- Returns:
- value or
null
for none
-
setHidden
public File.Labels setHidden(Boolean hidden)
Output only. Deprecated.
- Parameters:
hidden
- hidden or null
for none
-
getModified
public Boolean getModified()
Output only. Whether the file has been modified by this user.
- Returns:
- value or
null
for none
-
setModified
public File.Labels setModified(Boolean modified)
Output only. Whether the file has been modified by this user.
- Parameters:
modified
- modified or null
for none
-
getRestricted
public Boolean getRestricted()
Output only. Deprecated: Use `copyRequiresWriterPermission` instead.
- Returns:
- value or
null
for none
-
setRestricted
public File.Labels setRestricted(Boolean restricted)
Output only. 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–2024 Google. All rights reserved.