public final class CustomDimension
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: 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.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
CustomDimension() |
Modifier and Type | Method and Description |
---|---|
CustomDimension |
clone() |
java.lang.String |
getAccountId()
Account ID.
|
java.lang.Boolean |
getActive()
Boolean indicating whether the custom dimension is active.
|
com.google.api.client.util.DateTime |
getCreated()
Time the custom dimension was created.
|
java.lang.String |
getId()
Custom dimension ID.
|
java.lang.Integer |
getIndex()
Index of the custom dimension.
|
java.lang.String |
getKind()
Kind value for a custom dimension.
|
java.lang.String |
getName()
Name of the custom dimension.
|
CustomDimension.ParentLink |
getParentLink()
Parent link for the custom dimension.
|
java.lang.String |
getScope()
Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
|
java.lang.String |
getSelfLink()
Link for the custom dimension
|
com.google.api.client.util.DateTime |
getUpdated()
Time the custom dimension was last modified.
|
java.lang.String |
getWebPropertyId()
Property ID.
|
CustomDimension |
set(java.lang.String fieldName,
java.lang.Object value) |
CustomDimension |
setAccountId(java.lang.String accountId)
Account ID.
|
CustomDimension |
setActive(java.lang.Boolean active)
Boolean indicating whether the custom dimension is active.
|
CustomDimension |
setCreated(com.google.api.client.util.DateTime created)
Time the custom dimension was created.
|
CustomDimension |
setId(java.lang.String id)
Custom dimension ID.
|
CustomDimension |
setIndex(java.lang.Integer index)
Index of the custom dimension.
|
CustomDimension |
setKind(java.lang.String kind)
Kind value for a custom dimension.
|
CustomDimension |
setName(java.lang.String name)
Name of the custom dimension.
|
CustomDimension |
setParentLink(CustomDimension.ParentLink parentLink)
Parent link for the custom dimension.
|
CustomDimension |
setScope(java.lang.String scope)
Scope of the custom dimension: HIT, SESSION, USER or PRODUCT.
|
CustomDimension |
setSelfLink(java.lang.String selfLink)
Link for the custom dimension
|
CustomDimension |
setUpdated(com.google.api.client.util.DateTime updated)
Time the custom dimension was last modified.
|
CustomDimension |
setWebPropertyId(java.lang.String webPropertyId)
Property ID.
|
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 getAccountId()
null
for nonepublic CustomDimension setAccountId(java.lang.String accountId)
accountId
- accountId or null
for nonepublic java.lang.Boolean getActive()
null
for nonepublic CustomDimension setActive(java.lang.Boolean active)
active
- active or null
for nonepublic com.google.api.client.util.DateTime getCreated()
null
for nonepublic CustomDimension setCreated(com.google.api.client.util.DateTime created)
created
- created or null
for nonepublic java.lang.String getId()
null
for nonepublic CustomDimension setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.Integer getIndex()
null
for nonepublic CustomDimension setIndex(java.lang.Integer index)
index
- index or null
for nonepublic java.lang.String getKind()
null
for nonepublic CustomDimension setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getName()
null
for nonepublic CustomDimension setName(java.lang.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 java.lang.String getScope()
null
for nonepublic CustomDimension setScope(java.lang.String scope)
scope
- scope or null
for nonepublic java.lang.String getSelfLink()
null
for nonepublic CustomDimension setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic com.google.api.client.util.DateTime getUpdated()
null
for nonepublic CustomDimension setUpdated(com.google.api.client.util.DateTime updated)
updated
- updated or null
for nonepublic java.lang.String getWebPropertyId()
null
for nonepublic CustomDimension setWebPropertyId(java.lang.String webPropertyId)
webPropertyId
- webPropertyId or null
for nonepublic CustomDimension set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public CustomDimension clone()
clone
in class com.google.api.client.json.GenericJson