public final class MetricValue
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 Google My Business 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 |
---|
MetricValue() |
Modifier and Type | Method and Description |
---|---|
MetricValue |
clone() |
java.util.List<DimensionalMetricValue> |
getDimensionalValues()
Dimensional values for this metric.
|
java.lang.String |
getMetric()
The metric for which the value applies.
|
DimensionalMetricValue |
getTotalValue()
The total aggregated value for this metric.
|
MetricValue |
set(java.lang.String fieldName,
java.lang.Object value) |
MetricValue |
setDimensionalValues(java.util.List<DimensionalMetricValue> dimensionalValues)
Dimensional values for this metric.
|
MetricValue |
setMetric(java.lang.String metric)
The metric for which the value applies.
|
MetricValue |
setTotalValue(DimensionalMetricValue totalValue)
The total aggregated value for this metric.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<DimensionalMetricValue> getDimensionalValues()
null
for nonepublic MetricValue setDimensionalValues(java.util.List<DimensionalMetricValue> dimensionalValues)
dimensionalValues
- dimensionalValues or null
for nonepublic java.lang.String getMetric()
null
for nonepublic MetricValue setMetric(java.lang.String metric)
metric
- metric or null
for nonepublic DimensionalMetricValue getTotalValue()
null
for nonepublic MetricValue setTotalValue(DimensionalMetricValue totalValue)
totalValue
- totalValue or null
for nonepublic MetricValue set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public MetricValue clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011-2018 Google. All Rights Reserved.