target.apidocs.com.google.api.services.analytics.model.Segment.html Maven / Gradle / Ivy
Segment (Google Analytics API v3-rev20190807-1.31.0)
com.google.api.services.analytics.model
Class Segment
- 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.Segment
-
public final class Segment
extends GenericJson
JSON template for an Analytics segment.
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/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
Segment()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Segment
clone()
DateTime
getCreated()
Time the segment was created.
String
getDefinition()
Segment definition.
String
getId()
Segment ID.
String
getKind()
Resource type for Analytics segment.
String
getName()
Segment name.
String
getSegmentId()
Segment ID.
String
getSelfLink()
Link for this segment.
String
getType()
Type for a segment.
DateTime
getUpdated()
Time the segment was last modified.
Segment
set(String fieldName,
Object value)
Segment
setCreated(DateTime created)
Time the segment was created.
Segment
setDefinition(String definition)
Segment definition.
Segment
setId(String id)
Segment ID.
Segment
setKind(String kind)
Resource type for Analytics segment.
Segment
setName(String name)
Segment name.
Segment
setSegmentId(String segmentId)
Segment ID.
Segment
setSelfLink(String selfLink)
Link for this segment.
Segment
setType(String type)
Type for a segment.
Segment
setUpdated(DateTime updated)
Time the segment was last modified.
-
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
-
getCreated
public DateTime getCreated()
Time the segment was created.
- Returns:
- value or
null
for none
-
setCreated
public Segment setCreated(DateTime created)
Time the segment was created.
- Parameters:
created
- created or null
for none
-
getDefinition
public String getDefinition()
Segment definition.
- Returns:
- value or
null
for none
-
setDefinition
public Segment setDefinition(String definition)
Segment definition.
- Parameters:
definition
- definition or null
for none
-
getId
public String getId()
Segment ID.
- Returns:
- value or
null
for none
-
getKind
public String getKind()
Resource type for Analytics segment.
- Returns:
- value or
null
for none
-
setKind
public Segment setKind(String kind)
Resource type for Analytics segment.
- Parameters:
kind
- kind or null
for none
-
getName
public String getName()
Segment name.
- Returns:
- value or
null
for none
-
getSegmentId
public String getSegmentId()
Segment ID. Can be used with the 'segment' parameter in Core Reporting API.
- Returns:
- value or
null
for none
-
setSegmentId
public Segment setSegmentId(String segmentId)
Segment ID. Can be used with the 'segment' parameter in Core Reporting API.
- Parameters:
segmentId
- segmentId or null
for none
-
getSelfLink
public String getSelfLink()
Link for this segment.
- Returns:
- value or
null
for none
-
setSelfLink
public Segment setSelfLink(String selfLink)
Link for this segment.
- Parameters:
selfLink
- selfLink or null
for none
-
getType
public String getType()
Type for a segment. Possible values are "BUILT_IN" or "CUSTOM".
- Returns:
- value or
null
for none
-
setType
public Segment setType(String type)
Type for a segment. Possible values are "BUILT_IN" or "CUSTOM".
- Parameters:
type
- type or null
for none
-
getUpdated
public DateTime getUpdated()
Time the segment was last modified.
- Returns:
- value or
null
for none
-
setUpdated
public Segment setUpdated(DateTime updated)
Time the segment was last modified.
- Parameters:
updated
- updated or null
for none
-
set
public Segment set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Segment clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.