public final class EventData 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 |
---|
EventData() |
Modifier and Type | Method and Description |
---|---|
EventData |
clone() |
String |
getEventAction()
Type of interaction with the object.
|
String |
getEventCategory()
The object on the page that was interacted with.
|
Long |
getEventCount()
Number of such events in this activity.
|
String |
getEventLabel()
Label attached with the event.
|
Long |
getEventValue()
Numeric value associated with the event.
|
EventData |
set(String fieldName,
Object value) |
EventData |
setEventAction(String eventAction)
Type of interaction with the object.
|
EventData |
setEventCategory(String eventCategory)
The object on the page that was interacted with.
|
EventData |
setEventCount(Long eventCount)
Number of such events in this activity.
|
EventData |
setEventLabel(String eventLabel)
Label attached with the event.
|
EventData |
setEventValue(Long eventValue)
Numeric value associated with the event.
|
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 getEventAction()
null
for nonepublic EventData setEventAction(String eventAction)
eventAction
- eventAction or null
for nonepublic String getEventCategory()
null
for nonepublic EventData setEventCategory(String eventCategory)
eventCategory
- eventCategory or null
for nonepublic Long getEventCount()
null
for nonepublic EventData setEventCount(Long eventCount)
eventCount
- eventCount or null
for nonepublic String getEventLabel()
null
for nonepublic EventData setEventLabel(String eventLabel)
eventLabel
- eventLabel or null
for nonepublic Long getEventValue()
null
for nonepublic EventData setEventValue(Long eventValue)
eventValue
- eventValue or null
for nonepublic EventData set(String fieldName, Object value)
set
in class GenericJson
public EventData clone()
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.