public final class DynamicSegment 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 Analytics Reporting 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 |
---|
DynamicSegment() |
Modifier and Type | Method and Description |
---|---|
DynamicSegment |
clone() |
String |
getName()
The name of the dynamic segment.
|
SegmentDefinition |
getSessionSegment()
Session Segment to select sessions to include in the segment.
|
SegmentDefinition |
getUserSegment()
User Segment to select users to include in the segment.
|
DynamicSegment |
set(String fieldName,
Object value) |
DynamicSegment |
setName(String name)
The name of the dynamic segment.
|
DynamicSegment |
setSessionSegment(SegmentDefinition sessionSegment)
Session Segment to select sessions to include in the segment.
|
DynamicSegment |
setUserSegment(SegmentDefinition userSegment)
User Segment to select users to include in the segment.
|
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 String getName()
null
for nonepublic DynamicSegment setName(String name)
name
- name or null
for nonepublic SegmentDefinition getSessionSegment()
null
for nonepublic DynamicSegment setSessionSegment(SegmentDefinition sessionSegment)
sessionSegment
- sessionSegment or null
for nonepublic SegmentDefinition getUserSegment()
null
for nonepublic DynamicSegment setUserSegment(SegmentDefinition userSegment)
userSegment
- userSegment or null
for nonepublic DynamicSegment set(String fieldName, Object value)
set
in class GenericJson
public DynamicSegment clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.