target.apidocs.com.google.api.services.analytics.model.CustomMetric.html Maven / Gradle / Ivy
CustomMetric (Google Analytics API v3-rev20190604-1.30.1)
com.google.api.services.analytics.model
Class CustomMetric
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.analytics.model.CustomMetric
-
public final class CustomMetric
extends GenericJson
JSON template for Analytics Custom Metric.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
static class
CustomMetric.ParentLink
Parent link for the custom metric.
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
CustomMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAccountId
public String getAccountId()
Account ID.
- Returns:
- value or
null
for none
-
setAccountId
public CustomMetric setAccountId(String accountId)
Account ID.
- Parameters:
accountId
- accountId or null
for none
-
getActive
public Boolean getActive()
Boolean indicating whether the custom metric is active.
- Returns:
- value or
null
for none
-
setActive
public CustomMetric setActive(Boolean active)
Boolean indicating whether the custom metric is active.
- Parameters:
active
- active or null
for none
-
getCreated
public DateTime getCreated()
Time the custom metric was created.
- Returns:
- value or
null
for none
-
setCreated
public CustomMetric setCreated(DateTime created)
Time the custom metric was created.
- Parameters:
created
- created or null
for none
-
getId
public String getId()
Custom metric ID.
- Returns:
- value or
null
for none
-
setId
public CustomMetric setId(String id)
Custom metric ID.
- Parameters:
id
- id or null
for none
-
getIndex
public Integer getIndex()
Index of the custom metric.
- Returns:
- value or
null
for none
-
setIndex
public CustomMetric setIndex(Integer index)
Index of the custom metric.
- Parameters:
index
- index or null
for none
-
getKind
public String getKind()
Kind value for a custom metric. Set to "analytics#customMetric". It is a read-only field.
- Returns:
- value or
null
for none
-
setKind
public CustomMetric setKind(String kind)
Kind value for a custom metric. Set to "analytics#customMetric". It is a read-only field.
- Parameters:
kind
- kind or null
for none
-
getMaxValue
public String getMaxValue()
Max value of custom metric.
- Returns:
- value or
null
for none
-
setMaxValue
public CustomMetric setMaxValue(String maxValue)
Max value of custom metric.
- Parameters:
maxValue
- maxValue or null
for none
-
getMinValue
public String getMinValue()
Min value of custom metric.
- Returns:
- value or
null
for none
-
setMinValue
public CustomMetric setMinValue(String minValue)
Min value of custom metric.
- Parameters:
minValue
- minValue or null
for none
-
getName
public String getName()
Name of the custom metric.
- Returns:
- value or
null
for none
-
setName
public CustomMetric setName(String name)
Name of the custom metric.
- Parameters:
name
- name or null
for none
-
getParentLink
public CustomMetric.ParentLink getParentLink()
Parent link for the custom metric. Points to the property to which the custom metric belongs.
- Returns:
- value or
null
for none
-
setParentLink
public CustomMetric setParentLink(CustomMetric.ParentLink parentLink)
Parent link for the custom metric. Points to the property to which the custom metric belongs.
- Parameters:
parentLink
- parentLink or null
for none
-
getScope
public String getScope()
Scope of the custom metric: HIT or PRODUCT.
- Returns:
- value or
null
for none
-
setScope
public CustomMetric setScope(String scope)
Scope of the custom metric: HIT or PRODUCT.
- Parameters:
scope
- scope or null
for none
-
getSelfLink
public String getSelfLink()
Link for the custom metric
- Returns:
- value or
null
for none
-
setSelfLink
public CustomMetric setSelfLink(String selfLink)
Link for the custom metric
- Parameters:
selfLink
- selfLink or null
for none
-
getType
public String getType()
Data type of custom metric.
- Returns:
- value or
null
for none
-
setType
public CustomMetric setType(String type)
Data type of custom metric.
- Parameters:
type
- type or null
for none
-
getUpdated
public DateTime getUpdated()
Time the custom metric was last modified.
- Returns:
- value or
null
for none
-
setUpdated
public CustomMetric setUpdated(DateTime updated)
Time the custom metric was last modified.
- Parameters:
updated
- updated or null
for none
-
getWebPropertyId
public String getWebPropertyId()
Property ID.
- Returns:
- value or
null
for none
-
setWebPropertyId
public CustomMetric setWebPropertyId(String webPropertyId)
Property ID.
- Parameters:
webPropertyId
- webPropertyId or null
for none
-
set
public CustomMetric set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public CustomMetric clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2019 Google. All rights reserved.