target.apidocs.com.google.api.services.drive.model.LabelFieldModification.html Maven / Gradle / Ivy
LabelFieldModification (Google Drive API v3-rev20240809-2.0.0)
com.google.api.services.drive.model
Class LabelFieldModification
- 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.LabelFieldModification
-
public final class LabelFieldModification
extends com.google.api.client.json.GenericJson
A modification to a label's field.
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
LabelFieldModification()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
LabelFieldModification
clone()
String
getFieldId()
The ID of the field to be modified.
String
getKind()
This is always drive#labelFieldModification.
List<com.google.api.client.util.DateTime>
getSetDateValues()
Replaces the value of a dateString Field with these new values.
List<Long>
getSetIntegerValues()
Replaces the value of an `integer` field with these new values.
List<String>
getSetSelectionValues()
Replaces a `selection` field with these new values.
List<String>
getSetTextValues()
Sets the value of a `text` field.
List<String>
getSetUserValues()
Replaces a `user` field with these new values.
Boolean
getUnsetValues()
Unsets the values for this field.
LabelFieldModification
set(String fieldName,
Object value)
LabelFieldModification
setFieldId(String fieldId)
The ID of the field to be modified.
LabelFieldModification
setKind(String kind)
This is always drive#labelFieldModification.
LabelFieldModification
setSetDateValues(List<com.google.api.client.util.DateTime> setDateValues)
Replaces the value of a dateString Field with these new values.
LabelFieldModification
setSetIntegerValues(List<Long> setIntegerValues)
Replaces the value of an `integer` field with these new values.
LabelFieldModification
setSetSelectionValues(List<String> setSelectionValues)
Replaces a `selection` field with these new values.
LabelFieldModification
setSetTextValues(List<String> setTextValues)
Sets the value of a `text` field.
LabelFieldModification
setSetUserValues(List<String> setUserValues)
Replaces a `user` field with these new values.
LabelFieldModification
setUnsetValues(Boolean unsetValues)
Unsets the values for this field.
-
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
-
getFieldId
public String getFieldId()
The ID of the field to be modified.
- Returns:
- value or
null
for none
-
setFieldId
public LabelFieldModification setFieldId(String fieldId)
The ID of the field to be modified.
- Parameters:
fieldId
- fieldId or null
for none
-
getKind
public String getKind()
This is always drive#labelFieldModification.
- Returns:
- value or
null
for none
-
setKind
public LabelFieldModification setKind(String kind)
This is always drive#labelFieldModification.
- Parameters:
kind
- kind or null
for none
-
getSetDateValues
public List<com.google.api.client.util.DateTime> getSetDateValues()
Replaces the value of a dateString Field with these new values. The string must be in the RFC
3339 full-date format: YYYY-MM-DD.
- Returns:
- value or
null
for none
-
setSetDateValues
public LabelFieldModification setSetDateValues(List<com.google.api.client.util.DateTime> setDateValues)
Replaces the value of a dateString Field with these new values. The string must be in the RFC
3339 full-date format: YYYY-MM-DD.
- Parameters:
setDateValues
- setDateValues or null
for none
-
getSetIntegerValues
public List<Long> getSetIntegerValues()
Replaces the value of an `integer` field with these new values.
- Returns:
- value or
null
for none
-
setSetIntegerValues
public LabelFieldModification setSetIntegerValues(List<Long> setIntegerValues)
Replaces the value of an `integer` field with these new values.
- Parameters:
setIntegerValues
- setIntegerValues or null
for none
-
getSetSelectionValues
public List<String> getSetSelectionValues()
Replaces a `selection` field with these new values.
- Returns:
- value or
null
for none
-
setSetSelectionValues
public LabelFieldModification setSetSelectionValues(List<String> setSelectionValues)
Replaces a `selection` field with these new values.
- Parameters:
setSelectionValues
- setSelectionValues or null
for none
-
getSetTextValues
public List<String> getSetTextValues()
Sets the value of a `text` field.
- Returns:
- value or
null
for none
-
setSetTextValues
public LabelFieldModification setSetTextValues(List<String> setTextValues)
Sets the value of a `text` field.
- Parameters:
setTextValues
- setTextValues or null
for none
-
getSetUserValues
public List<String> getSetUserValues()
Replaces a `user` field with these new values. The values must be valid email addresses.
- Returns:
- value or
null
for none
-
setSetUserValues
public LabelFieldModification setSetUserValues(List<String> setUserValues)
Replaces a `user` field with these new values. The values must be valid email addresses.
- Parameters:
setUserValues
- setUserValues or null
for none
-
getUnsetValues
public Boolean getUnsetValues()
Unsets the values for this field.
- Returns:
- value or
null
for none
-
setUnsetValues
public LabelFieldModification setUnsetValues(Boolean unsetValues)
Unsets the values for this field.
- Parameters:
unsetValues
- unsetValues or null
for none
-
set
public LabelFieldModification set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public LabelFieldModification clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.