public final class LabelField
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 |
---|
LabelField() |
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.
|
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<com.google.api.client.util.DateTime> getDateString()
null
for nonepublic LabelField setDateString(List<com.google.api.client.util.DateTime> dateString)
dateString
- dateString or null
for nonepublic String getId()
null
for nonepublic LabelField setId(String id)
id
- id or null
for nonepublic List<Long> getInteger()
null
for nonepublic LabelField setInteger(List<Long> integer__)
integer__
- integer__ or null
for nonepublic String getKind()
null
for nonepublic LabelField setKind(String kind)
kind
- kind or null
for nonepublic List<String> getSelection()
null
for nonepublic LabelField setSelection(List<String> selection)
selection
- selection or null
for nonepublic List<String> getText()
null
for nonepublic LabelField setText(List<String> text)
text
- text or null
for nonepublic List<User> getUser()
null
for nonepublic LabelField setUser(List<User> user)
user
- user or null
for nonepublic String getValueType()
null
for nonepublic LabelField setValueType(String valueType)
valueType
- valueType or null
for nonepublic LabelField set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public LabelField clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.