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 Google Cloud Pub/Sub API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Label() |
Modifier and Type | Method and Description |
---|---|
Label |
clone() |
String |
getKey()
The key of a label is a syntactically valid URL (as per RFC 1738) with the "scheme" and initial
slashes omitted and with the additional restrictions noted below.
|
Long |
getNumValue()
An integer value.
|
String |
getStrValue()
A string value.
|
Label |
set(String fieldName,
Object value) |
Label |
setKey(String key)
The key of a label is a syntactically valid URL (as per RFC 1738) with the "scheme" and initial
slashes omitted and with the additional restrictions noted below.
|
Label |
setNumValue(Long numValue)
An integer value.
|
Label |
setStrValue(String strValue)
A string value.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getKey()
null
for nonepublic Label setKey(String key)
key
- key or null
for nonepublic Long getNumValue()
null
for nonepublic Label setNumValue(Long numValue)
numValue
- numValue or null
for nonepublic String getStrValue()
null
for nonepublic Label setStrValue(String strValue)
strValue
- strValue or null
for nonepublic Label set(String fieldName, Object value)
set
in class GenericJson
public Label clone()
clone
in class GenericJson