public final class Segment 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Segment() |
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.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public DateTime getCreated()
null
for nonepublic Segment setCreated(DateTime created)
created
- created or null
for nonepublic String getDefinition()
null
for nonepublic Segment setDefinition(String definition)
definition
- definition or null
for nonepublic String getId()
null
for nonepublic String getKind()
null
for nonepublic Segment setKind(String kind)
kind
- kind or null
for nonepublic String getName()
null
for nonepublic String getSegmentId()
null
for nonepublic Segment setSegmentId(String segmentId)
segmentId
- segmentId or null
for nonepublic String getSelfLink()
null
for nonepublic Segment setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic String getType()
null
for nonepublic Segment setType(String type)
type
- type or null
for nonepublic DateTime getUpdated()
null
for nonepublic Segment setUpdated(DateTime updated)
updated
- updated or null
for nonepublic Segment set(String fieldName, Object value)
set
in class GenericJson
public Segment clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.