public final class MetricStructuredName 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 Dataflow 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 |
---|
MetricStructuredName() |
Modifier and Type | Method and Description |
---|---|
MetricStructuredName |
clone() |
Map<String,String> |
getContext() |
String |
getName() |
String |
getOrigin() |
MetricStructuredName |
set(String fieldName,
Object value) |
MetricStructuredName |
setContext(Map<String,String> context) |
MetricStructuredName |
setName(String name) |
MetricStructuredName |
setOrigin(String origin) |
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public MetricStructuredName setContext(Map<String,String> context)
context
- context or null
for nonepublic String getName()
null
for nonepublic MetricStructuredName setName(String name)
name
- name or null
for nonepublic String getOrigin()
null
for nonepublic MetricStructuredName setOrigin(String origin)
origin
- origin or null
for nonepublic MetricStructuredName set(String fieldName, Object value)
set
in class GenericJson
public MetricStructuredName clone()
clone
in class GenericJson