public final class CustomMetric 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 Google Analytics API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomMetric.ParentLink
Parent link for the custom metric.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CustomMetric() |
| Modifier and Type | Method and Description |
|---|---|
CustomMetric |
clone() |
String |
getAccountId()
Account ID.
|
Boolean |
getActive()
Boolean indicating whether the custom metric is active.
|
DateTime |
getCreated()
Time the custom metric was created.
|
String |
getId()
Custom metric ID.
|
Integer |
getIndex()
Index of the custom metric.
|
String |
getKind()
Kind value for a custom metric.
|
String |
getMaxValue()
Max value of custom metric.
|
String |
getMinValue()
Min value of custom metric.
|
String |
getName()
Name of the custom metric.
|
CustomMetric.ParentLink |
getParentLink()
Parent link for the custom metric.
|
String |
getScope()
Scope of the custom metric: HIT or PRODUCT.
|
String |
getSelfLink()
Link for the custom metric
|
String |
getType()
Data type of custom metric.
|
DateTime |
getUpdated()
Time the custom metric was last modified.
|
String |
getWebPropertyId()
Property ID.
|
CustomMetric |
set(String fieldName,
Object value) |
CustomMetric |
setAccountId(String accountId)
Account ID.
|
CustomMetric |
setActive(Boolean active)
Boolean indicating whether the custom metric is active.
|
CustomMetric |
setCreated(DateTime created)
Time the custom metric was created.
|
CustomMetric |
setId(String id)
Custom metric ID.
|
CustomMetric |
setIndex(Integer index)
Index of the custom metric.
|
CustomMetric |
setKind(String kind)
Kind value for a custom metric.
|
CustomMetric |
setMaxValue(String maxValue)
Max value of custom metric.
|
CustomMetric |
setMinValue(String minValue)
Min value of custom metric.
|
CustomMetric |
setName(String name)
Name of the custom metric.
|
CustomMetric |
setParentLink(CustomMetric.ParentLink parentLink)
Parent link for the custom metric.
|
CustomMetric |
setScope(String scope)
Scope of the custom metric: HIT or PRODUCT.
|
CustomMetric |
setSelfLink(String selfLink)
Link for the custom metric
|
CustomMetric |
setType(String type)
Data type of custom metric.
|
CustomMetric |
setUpdated(DateTime updated)
Time the custom metric was last modified.
|
CustomMetric |
setWebPropertyId(String webPropertyId)
Property ID.
|
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 String getAccountId()
null for nonepublic CustomMetric setAccountId(String accountId)
accountId - accountId or null for nonepublic Boolean getActive()
null for nonepublic CustomMetric setActive(Boolean active)
active - active or null for nonepublic DateTime getCreated()
null for nonepublic CustomMetric setCreated(DateTime created)
created - created or null for nonepublic String getId()
null for nonepublic CustomMetric setId(String id)
id - id or null for nonepublic Integer getIndex()
null for nonepublic CustomMetric setIndex(Integer index)
index - index or null for nonepublic String getKind()
null for nonepublic CustomMetric setKind(String kind)
kind - kind or null for nonepublic String getMaxValue()
null for nonepublic CustomMetric setMaxValue(String maxValue)
maxValue - maxValue or null for nonepublic String getMinValue()
null for nonepublic CustomMetric setMinValue(String minValue)
minValue - minValue or null for nonepublic String getName()
null for nonepublic CustomMetric setName(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 String getScope()
null for nonepublic CustomMetric setScope(String scope)
scope - scope or null for nonepublic String getSelfLink()
null for nonepublic CustomMetric setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getType()
null for nonepublic CustomMetric setType(String type)
type - type or null for nonepublic DateTime getUpdated()
null for nonepublic CustomMetric setUpdated(DateTime updated)
updated - updated or null for nonepublic String getWebPropertyId()
null for nonepublic CustomMetric setWebPropertyId(String webPropertyId)
webPropertyId - webPropertyId or null for nonepublic CustomMetric set(String fieldName, Object value)
set in class GenericJsonpublic CustomMetric clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.