public final class Label extends 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 Drive API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Label() |
Modifier and Type | Method and Description |
---|---|
Label |
clone() |
Map<String,LabelField> |
getFields()
A map of the label's fields keyed by the field ID.
|
String |
getId()
The ID of the label.
|
String |
getKind()
This is always drive#label
|
String |
getRevisionId()
The revision ID of the label.
|
Label |
set(String fieldName,
Object value) |
Label |
setFields(Map<String,LabelField> fields)
A map of the label's fields keyed by the field ID.
|
Label |
setId(String id)
The ID of the label.
|
Label |
setKind(String kind)
This is always drive#label
|
Label |
setRevisionId(String revisionId)
The revision ID of the label.
|
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 Map<String,LabelField> getFields()
null
for nonepublic Label setFields(Map<String,LabelField> fields)
fields
- fields or null
for nonepublic String getId()
null
for nonepublic String getKind()
null
for nonepublic Label setKind(String kind)
kind
- kind or null
for nonepublic String getRevisionId()
null
for nonepublic Label setRevisionId(String revisionId)
revisionId
- revisionId or null
for nonepublic Label set(String fieldName, Object value)
set
in class GenericJson
public Label clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.