public final class MetricRequest
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 |
---|
MetricRequest() |
Modifier and Type | Method and Description |
---|---|
MetricRequest |
clone() |
java.lang.String |
getMetric()
The requested metric.
|
java.util.List<java.lang.String> |
getOptions()
How the values should appear when returned.
|
MetricRequest |
set(java.lang.String fieldName,
java.lang.Object value) |
MetricRequest |
setMetric(java.lang.String metric)
The requested metric.
|
MetricRequest |
setOptions(java.util.List<java.lang.String> options)
How the values should appear when returned.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getMetric()
null
for nonepublic MetricRequest setMetric(java.lang.String metric)
metric
- metric or null
for nonepublic java.util.List<java.lang.String> getOptions()
null
for nonepublic MetricRequest setOptions(java.util.List<java.lang.String> options)
options
- options or null
for nonepublic MetricRequest set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public MetricRequest clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011-2018 Google. All Rights Reserved.