public final class CustomMetric
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 API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomMetric.ParentLink
Parent link for the custom metric.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
CustomMetric() |
| Modifier and Type | Method and Description |
|---|---|
CustomMetric |
clone() |
java.lang.String |
getAccountId()
Account ID.
|
java.lang.Boolean |
getActive()
Boolean indicating whether the custom metric is active.
|
com.google.api.client.util.DateTime |
getCreated()
Time the custom metric was created.
|
java.lang.String |
getId()
Custom metric ID.
|
java.lang.Integer |
getIndex()
Index of the custom metric.
|
java.lang.String |
getKind()
Kind value for a custom metric.
|
java.lang.String |
getMaxValue()
Max value of custom metric.
|
java.lang.String |
getMinValue()
Min value of custom metric.
|
java.lang.String |
getName()
Name of the custom metric.
|
CustomMetric.ParentLink |
getParentLink()
Parent link for the custom metric.
|
java.lang.String |
getScope()
Scope of the custom metric: HIT or PRODUCT.
|
java.lang.String |
getSelfLink()
Link for the custom metric
|
java.lang.String |
getType()
Data type of custom metric.
|
com.google.api.client.util.DateTime |
getUpdated()
Time the custom metric was last modified.
|
java.lang.String |
getWebPropertyId()
Property ID.
|
CustomMetric |
set(java.lang.String fieldName,
java.lang.Object value) |
CustomMetric |
setAccountId(java.lang.String accountId)
Account ID.
|
CustomMetric |
setActive(java.lang.Boolean active)
Boolean indicating whether the custom metric is active.
|
CustomMetric |
setCreated(com.google.api.client.util.DateTime created)
Time the custom metric was created.
|
CustomMetric |
setId(java.lang.String id)
Custom metric ID.
|
CustomMetric |
setIndex(java.lang.Integer index)
Index of the custom metric.
|
CustomMetric |
setKind(java.lang.String kind)
Kind value for a custom metric.
|
CustomMetric |
setMaxValue(java.lang.String maxValue)
Max value of custom metric.
|
CustomMetric |
setMinValue(java.lang.String minValue)
Min value of custom metric.
|
CustomMetric |
setName(java.lang.String name)
Name of the custom metric.
|
CustomMetric |
setParentLink(CustomMetric.ParentLink parentLink)
Parent link for the custom metric.
|
CustomMetric |
setScope(java.lang.String scope)
Scope of the custom metric: HIT or PRODUCT.
|
CustomMetric |
setSelfLink(java.lang.String selfLink)
Link for the custom metric
|
CustomMetric |
setType(java.lang.String type)
Data type of custom metric.
|
CustomMetric |
setUpdated(com.google.api.client.util.DateTime updated)
Time the custom metric was last modified.
|
CustomMetric |
setWebPropertyId(java.lang.String webPropertyId)
Property ID.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getAccountId()
null for nonepublic CustomMetric setAccountId(java.lang.String accountId)
accountId - accountId or null for nonepublic java.lang.Boolean getActive()
null for nonepublic CustomMetric setActive(java.lang.Boolean active)
active - active or null for nonepublic com.google.api.client.util.DateTime getCreated()
null for nonepublic CustomMetric setCreated(com.google.api.client.util.DateTime created)
created - created or null for nonepublic java.lang.String getId()
null for nonepublic CustomMetric setId(java.lang.String id)
id - id or null for nonepublic java.lang.Integer getIndex()
null for nonepublic CustomMetric setIndex(java.lang.Integer index)
index - index or null for nonepublic java.lang.String getKind()
null for nonepublic CustomMetric setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getMaxValue()
null for nonepublic CustomMetric setMaxValue(java.lang.String maxValue)
maxValue - maxValue or null for nonepublic java.lang.String getMinValue()
null for nonepublic CustomMetric setMinValue(java.lang.String minValue)
minValue - minValue or null for nonepublic java.lang.String getName()
null for nonepublic CustomMetric setName(java.lang.String name)
name - name or null for nonepublic CustomMetric.ParentLink getParentLink()
null for nonepublic CustomMetric setParentLink(CustomMetric.ParentLink parentLink)
parentLink - parentLink or null for nonepublic java.lang.String getScope()
null for nonepublic CustomMetric setScope(java.lang.String scope)
scope - scope or null for nonepublic java.lang.String getSelfLink()
null for nonepublic CustomMetric setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getType()
null for nonepublic CustomMetric setType(java.lang.String type)
type - type or null for nonepublic com.google.api.client.util.DateTime getUpdated()
null for nonepublic CustomMetric setUpdated(com.google.api.client.util.DateTime updated)
updated - updated or null for nonepublic java.lang.String getWebPropertyId()
null for nonepublic CustomMetric setWebPropertyId(java.lang.String webPropertyId)
webPropertyId - webPropertyId or null for nonepublic CustomMetric set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic CustomMetric clone()
clone in class com.google.api.client.json.GenericJson