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 Dataflow API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
MetricStructuredName() |
| Modifier and Type | Method and Description |
|---|---|
MetricStructuredName |
clone() |
Map<String,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.
|
String |
getName()
Worker-defined metric name.
|
String |
getOrigin()
Origin (namespace) of metric name.
|
MetricStructuredName |
set(String fieldName,
Object value) |
MetricStructuredName |
setContext(Map<String,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(String name)
Worker-defined metric name.
|
MetricStructuredName |
setOrigin(String origin)
Origin (namespace) of metric name.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Map<String,String> getContext()
null for nonepublic 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 GenericJsonpublic MetricStructuredName clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.