public final class Event 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 Drive Activity API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
Event |
clone() |
List<String> |
getAdditionalEventTypes()
Additional event types.
|
BigInteger |
getEventTimeMillis()
The time at which the event occurred formatted as Unix time in milliseconds.
|
Boolean |
getFromUserDeletion()
Whether this event is caused by a user being deleted.
|
Move |
getMove()
Extra information for move type events, such as changes in an object's parents.
|
List<PermissionChange> |
getPermissionChanges()
Extra information for permissionChange type events, such as the user or group the new
permission applies to.
|
String |
getPrimaryEventType()
The main type of event that occurred.
|
Rename |
getRename()
Extra information for rename type events, such as the old and new names.
|
Target |
getTarget()
Information specific to the Target object modified by the event.
|
User |
getUser()
Represents the user responsible for the event.
|
Event |
set(String fieldName,
Object value) |
Event |
setAdditionalEventTypes(List<String> additionalEventTypes)
Additional event types.
|
Event |
setEventTimeMillis(BigInteger eventTimeMillis)
The time at which the event occurred formatted as Unix time in milliseconds.
|
Event |
setFromUserDeletion(Boolean fromUserDeletion)
Whether this event is caused by a user being deleted.
|
Event |
setMove(Move move)
Extra information for move type events, such as changes in an object's parents.
|
Event |
setPermissionChanges(List<PermissionChange> permissionChanges)
Extra information for permissionChange type events, such as the user or group the new
permission applies to.
|
Event |
setPrimaryEventType(String primaryEventType)
The main type of event that occurred.
|
Event |
setRename(Rename rename)
Extra information for rename type events, such as the old and new names.
|
Event |
setTarget(Target target)
Information specific to the Target object modified by the event.
|
Event |
setUser(User user)
Represents the user responsible for the event.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<String> getAdditionalEventTypes()
null for nonepublic Event setAdditionalEventTypes(List<String> additionalEventTypes)
additionalEventTypes - additionalEventTypes or null for nonepublic BigInteger getEventTimeMillis()
null for nonepublic Event setEventTimeMillis(BigInteger eventTimeMillis)
eventTimeMillis - eventTimeMillis or null for nonepublic Boolean getFromUserDeletion()
null for nonepublic Event setFromUserDeletion(Boolean fromUserDeletion)
fromUserDeletion - fromUserDeletion or null for nonepublic Move getMove()
null for nonepublic Event setMove(Move move)
move - move or null for nonepublic List<PermissionChange> getPermissionChanges()
null for nonepublic Event setPermissionChanges(List<PermissionChange> permissionChanges)
permissionChanges - permissionChanges or null for nonepublic String getPrimaryEventType()
null for nonepublic Event setPrimaryEventType(String primaryEventType)
primaryEventType - primaryEventType or null for nonepublic Rename getRename()
null for nonepublic Event setRename(Rename rename)
rename - rename or null for nonepublic Target getTarget()
null for nonepublic Event setTarget(Target target)
target - target or null for nonepublic User getUser()
null for nonepublic Event setUser(User user)
user - user or null for nonepublic Event set(String fieldName, Object value)
set in class GenericJsonpublic Event clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.