target.apidocs.com.google.api.services.drive.model.LabelModification.html Maven / Gradle / Ivy
LabelModification (Google Drive API v2-rev20240809-2.0.0)
com.google.api.services.drive.model
Class LabelModification
- 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.LabelModification
-
public final class LabelModification
extends com.google.api.client.json.GenericJson
A modification to a label on a file. A LabelModification can be used to apply a label to a file,
update an existing label on a file, or remove a label from a file.
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
- Author:
- Google, Inc.
-
-
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
LabelModification()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
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
-
getFieldModifications
public List<LabelFieldModification> getFieldModifications()
The list of modifications to this label's fields.
- Returns:
- value or
null
for none
-
setFieldModifications
public LabelModification setFieldModifications(List<LabelFieldModification> fieldModifications)
The list of modifications to this label's fields.
- Parameters:
fieldModifications
- fieldModifications or null
for none
-
getKind
public String getKind()
This is always `drive#labelModification`.
- Returns:
- value or
null
for none
-
setKind
public LabelModification setKind(String kind)
This is always `drive#labelModification`.
- Parameters:
kind
- kind or null
for none
-
getLabelId
public String getLabelId()
The ID of the label to modify.
- Returns:
- value or
null
for none
-
setLabelId
public LabelModification setLabelId(String labelId)
The ID of the label to modify.
- Parameters:
labelId
- labelId or null
for none
-
getRemoveLabel
public Boolean getRemoveLabel()
If true, the label will be removed from the file.
- Returns:
- value or
null
for none
-
setRemoveLabel
public LabelModification setRemoveLabel(Boolean removeLabel)
If true, the label will be removed from the file.
- Parameters:
removeLabel
- removeLabel or null
for none
-
set
public LabelModification set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public LabelModification clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.