public final class MetricStructuredName
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 Dataflow 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
Constructor and Description |
---|
MetricStructuredName() |
Modifier and Type | Method and Description |
---|---|
MetricStructuredName |
clone() |
java.util.Map<java.lang.String,java.lang.String> |
getContext()
Zero or more labeled fields which identify the part of the job this metric is associated with,
such as the name of a step or collection.
|
java.lang.String |
getName()
Worker-defined metric name.
|
java.lang.String |
getOrigin()
Origin (namespace) of metric name.
|
MetricStructuredName |
set(java.lang.String fieldName,
java.lang.Object value) |
MetricStructuredName |
setContext(java.util.Map<java.lang.String,java.lang.String> context)
Zero or more labeled fields which identify the part of the job this metric is associated with,
such as the name of a step or collection.
|
MetricStructuredName |
setName(java.lang.String name)
Worker-defined metric name.
|
MetricStructuredName |
setOrigin(java.lang.String origin)
Origin (namespace) of metric name.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.util.Map<java.lang.String,java.lang.String> getContext()
null
for nonepublic MetricStructuredName setContext(java.util.Map<java.lang.String,java.lang.String> context)
context
- context or null
for nonepublic java.lang.String getName()
null
for nonepublic MetricStructuredName setName(java.lang.String name)
name
- name or null
for nonepublic java.lang.String getOrigin()
null
for nonepublic MetricStructuredName setOrigin(java.lang.String origin)
origin
- origin or null
for nonepublic MetricStructuredName set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public MetricStructuredName clone()
clone
in class com.google.api.client.json.GenericJson