target.apidocs.com.google.api.services.drive.model.LabelField.html Maven / Gradle / Ivy
LabelField (Google Drive API v3-rev20240914-2.0.0)
com.google.api.services.drive.model
Class LabelField
- 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.LabelField
-
public final class LabelField
extends com.google.api.client.json.GenericJson
Representation of field, which is a typed key-value pair.
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
LabelField()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
LabelField
clone()
List<com.google.api.client.util.DateTime>
getDateString()
Only present if valueType is dateString.
String
getId()
The identifier of this label field.
List<Long>
getInteger()
Only present if `valueType` is `integer`.
String
getKind()
This is always drive#labelField.
List<String>
getSelection()
Only present if `valueType` is `selection`
List<String>
getText()
Only present if `valueType` is `text`.
List<User>
getUser()
Only present if `valueType` is `user`.
String
getValueType()
The field type.
LabelField
set(String fieldName,
Object value)
LabelField
setDateString(List<com.google.api.client.util.DateTime> dateString)
Only present if valueType is dateString.
LabelField
setId(String id)
The identifier of this label field.
LabelField
setInteger(List<Long> integer__)
Only present if `valueType` is `integer`.
LabelField
setKind(String kind)
This is always drive#labelField.
LabelField
setSelection(List<String> selection)
Only present if `valueType` is `selection`
LabelField
setText(List<String> text)
Only present if `valueType` is `text`.
LabelField
setUser(List<User> user)
Only present if `valueType` is `user`.
LabelField
setValueType(String valueType)
The field type.
-
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
-
getDateString
public List<com.google.api.client.util.DateTime> getDateString()
Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
- Returns:
- value or
null
for none
-
setDateString
public LabelField setDateString(List<com.google.api.client.util.DateTime> dateString)
Only present if valueType is dateString. RFC 3339 formatted date: YYYY-MM-DD.
- Parameters:
dateString
- dateString or null
for none
-
getId
public String getId()
The identifier of this label field.
- Returns:
- value or
null
for none
-
setId
public LabelField setId(String id)
The identifier of this label field.
- Parameters:
id
- id or null
for none
-
getInteger
public List<Long> getInteger()
Only present if `valueType` is `integer`.
- Returns:
- value or
null
for none
-
setInteger
public LabelField setInteger(List<Long> integer__)
Only present if `valueType` is `integer`.
- Parameters:
integer__
- integer__ or null
for none
-
getKind
public String getKind()
This is always drive#labelField.
- Returns:
- value or
null
for none
-
setKind
public LabelField setKind(String kind)
This is always drive#labelField.
- Parameters:
kind
- kind or null
for none
-
getSelection
public List<String> getSelection()
Only present if `valueType` is `selection`
- Returns:
- value or
null
for none
-
setSelection
public LabelField setSelection(List<String> selection)
Only present if `valueType` is `selection`
- Parameters:
selection
- selection or null
for none
-
getText
public List<String> getText()
Only present if `valueType` is `text`.
- Returns:
- value or
null
for none
-
setText
public LabelField setText(List<String> text)
Only present if `valueType` is `text`.
- Parameters:
text
- text or null
for none
-
getUser
public List<User> getUser()
Only present if `valueType` is `user`.
- Returns:
- value or
null
for none
-
setUser
public LabelField setUser(List<User> user)
Only present if `valueType` is `user`.
- Parameters:
user
- user or null
for none
-
getValueType
public String getValueType()
The field type. While new values may be supported in the future, the following are currently
allowed: * `dateString` * `integer` * `selection` * `text` * `user`
- Returns:
- value or
null
for none
-
setValueType
public LabelField setValueType(String valueType)
The field type. While new values may be supported in the future, the following are currently
allowed: * `dateString` * `integer` * `selection` * `text` * `user`
- Parameters:
valueType
- valueType or null
for none
-
set
public LabelField set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public LabelField clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.