public final class MetricFilter
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 Analytics Reporting 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 |
|---|
MetricFilter() |
| Modifier and Type | Method and Description |
|---|---|
MetricFilter |
clone() |
java.lang.String |
getComparisonValue()
The value to compare against.
|
java.lang.String |
getMetricName()
The metric that will be filtered on.
|
java.lang.Boolean |
getNot()
Logical `NOT` operator.
|
java.lang.String |
getOperator()
Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the comparisonValue, the default is
`EQUAL`.
|
MetricFilter |
set(java.lang.String fieldName,
java.lang.Object value) |
MetricFilter |
setComparisonValue(java.lang.String comparisonValue)
The value to compare against.
|
MetricFilter |
setMetricName(java.lang.String metricName)
The metric that will be filtered on.
|
MetricFilter |
setNot(java.lang.Boolean not)
Logical `NOT` operator.
|
MetricFilter |
setOperator(java.lang.String operator)
Is the metric `EQUAL`, `LESS_THAN` or `GREATER_THAN` the comparisonValue, the default is
`EQUAL`.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getComparisonValue()
null for nonepublic MetricFilter setComparisonValue(java.lang.String comparisonValue)
comparisonValue - comparisonValue or null for nonepublic java.lang.String getMetricName()
null for nonepublic MetricFilter setMetricName(java.lang.String metricName)
metricName - metricName or null for nonepublic java.lang.Boolean getNot()
null for nonepublic MetricFilter setNot(java.lang.Boolean not)
not - not or null for nonepublic java.lang.String getOperator()
null for nonepublic MetricFilter setOperator(java.lang.String operator)
operator - operator or null for nonepublic MetricFilter set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic MetricFilter clone()
clone in class com.google.api.client.json.GenericJson