public final class CustomDimension 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 |
CustomDimension.ParentLink
Parent link for the custom dimension.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
CustomDimension() |
| Modifier and Type | Method and Description |
|---|---|
CustomDimension |
clone() |
String |
getAccountId()
Account ID.
|
Boolean |
getActive()
Boolean indicating whether the custom dimension is active.
|
DateTime |
getCreated()
Time the custom dimension was created.
|
String |
getId()
Custom dimension ID.
|
Integer |
getIndex()
Index of the custom dimension.
|
String |
getKind()
Kind value for a custom dimension.
|
String |
getName()
Name of the custom dimension.
|
CustomDimension.ParentLink |
getParentLink()
Parent link for the custom dimension.
|
String |
getScope()
Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
|
String |
getSelfLink()
Link for the custom dimension
|
DateTime |
getUpdated()
Time the custom dimension was last modified.
|
String |
getWebPropertyId()
Property ID.
|
CustomDimension |
set(String fieldName,
Object value) |
CustomDimension |
setAccountId(String accountId)
Account ID.
|
CustomDimension |
setActive(Boolean active)
Boolean indicating whether the custom dimension is active.
|
CustomDimension |
setCreated(DateTime created)
Time the custom dimension was created.
|
CustomDimension |
setId(String id)
Custom dimension ID.
|
CustomDimension |
setIndex(Integer index)
Index of the custom dimension.
|
CustomDimension |
setKind(String kind)
Kind value for a custom dimension.
|
CustomDimension |
setName(String name)
Name of the custom dimension.
|
CustomDimension |
setParentLink(CustomDimension.ParentLink parentLink)
Parent link for the custom dimension.
|
CustomDimension |
setScope(String scope)
Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
|
CustomDimension |
setSelfLink(String selfLink)
Link for the custom dimension
|
CustomDimension |
setUpdated(DateTime updated)
Time the custom dimension was last modified.
|
CustomDimension |
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 CustomDimension setAccountId(String accountId)
accountId - accountId or null for nonepublic Boolean getActive()
null for nonepublic CustomDimension setActive(Boolean active)
active - active or null for nonepublic DateTime getCreated()
null for nonepublic CustomDimension setCreated(DateTime created)
created - created or null for nonepublic String getId()
null for nonepublic CustomDimension setId(String id)
id - id or null for nonepublic Integer getIndex()
null for nonepublic CustomDimension setIndex(Integer index)
index - index or null for nonepublic String getKind()
null for nonepublic CustomDimension setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic CustomDimension setName(String name)
name - name or null for nonepublic CustomDimension.ParentLink getParentLink()
null for nonepublic CustomDimension setParentLink(CustomDimension.ParentLink parentLink)
parentLink - parentLink or null for nonepublic String getScope()
null for nonepublic CustomDimension setScope(String scope)
scope - scope or null for nonepublic String getSelfLink()
null for nonepublic CustomDimension setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic DateTime getUpdated()
null for nonepublic CustomDimension setUpdated(DateTime updated)
updated - updated or null for nonepublic String getWebPropertyId()
null for nonepublic CustomDimension setWebPropertyId(String webPropertyId)
webPropertyId - webPropertyId or null for nonepublic CustomDimension set(String fieldName, Object value)
set in class GenericJsonpublic CustomDimension clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.