public final class Label
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 Cloud Pub/Sub API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Label() |
Modifier and Type | Method and Description |
---|---|
Label |
clone() |
java.lang.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.
|
java.lang.Long |
getNumValue()
An integer value.
|
java.lang.String |
getStrValue()
A string value.
|
Label |
set(java.lang.String fieldName,
java.lang.Object value) |
Label |
setKey(java.lang.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(java.lang.Long numValue)
An integer value.
|
Label |
setStrValue(java.lang.String strValue)
A string value.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.String getKey()
null
for nonepublic Label setKey(java.lang.String key)
key
- key or null
for nonepublic java.lang.Long getNumValue()
null
for nonepublic Label setNumValue(java.lang.Long numValue)
numValue
- numValue or null
for nonepublic java.lang.String getStrValue()
null
for nonepublic Label setStrValue(java.lang.String strValue)
strValue
- strValue or null
for nonepublic Label set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Label clone()
clone
in class com.google.api.client.json.GenericJson