public final class LabelModification
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 |
---|
LabelModification() |
Modifier and Type | Method and Description |
---|---|
LabelModification |
clone() |
List<LabelFieldModification> |
getFieldModifications()
The list of modifications to this label's fields.
|
String |
getKind()
This is always drive#labelModification.
|
String |
getLabelId()
The ID of the label to modify.
|
Boolean |
getRemoveLabel()
If true, the label will be removed from the file.
|
LabelModification |
set(String fieldName,
Object value) |
LabelModification |
setFieldModifications(List<LabelFieldModification> fieldModifications)
The list of modifications to this label's fields.
|
LabelModification |
setKind(String kind)
This is always drive#labelModification.
|
LabelModification |
setLabelId(String labelId)
The ID of the label to modify.
|
LabelModification |
setRemoveLabel(Boolean removeLabel)
If true, the label will be removed from the file.
|
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 List<LabelFieldModification> getFieldModifications()
null
for nonepublic LabelModification setFieldModifications(List<LabelFieldModification> fieldModifications)
fieldModifications
- fieldModifications or null
for nonepublic String getKind()
null
for nonepublic LabelModification setKind(String kind)
kind
- kind or null
for nonepublic String getLabelId()
null
for nonepublic LabelModification setLabelId(String labelId)
labelId
- labelId or null
for nonepublic Boolean getRemoveLabel()
null
for nonepublic LabelModification setRemoveLabel(Boolean removeLabel)
removeLabel
- removeLabel or null
for nonepublic LabelModification set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public LabelModification clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.