target.apidocs.com.google.api.services.drive.model.File.LabelInfo.html Maven / Gradle / Ivy
File.LabelInfo (Google Drive API v3-rev20240730-2.0.0)
com.google.api.services.drive.model
Class File.LabelInfo
- 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.LabelInfo
-
-
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
LabelInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
File.LabelInfo
clone()
List<Label>
getLabels()
Output only.
File.LabelInfo
set(String fieldName,
Object value)
File.LabelInfo
setLabels(List<Label> labels)
Output only.
-
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
-
getLabels
public List<Label> getLabels()
Output only. The set of labels on the file as requested by the label IDs in the `includeLabels`
parameter. By default, no labels are returned.
- Returns:
- value or
null
for none
-
setLabels
public File.LabelInfo setLabels(List<Label> labels)
Output only. The set of labels on the file as requested by the label IDs in the `includeLabels`
parameter. By default, no labels are returned.
- Parameters:
labels
- labels or null
for none
-
set
public File.LabelInfo set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public File.LabelInfo clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.