public final class Action
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Action() |
Modifier and Type | Method and Description |
---|---|
Action |
clone() |
Actor |
getActor()
The actor responsible for this action (or empty if all actors are responsible).
|
ActionDetail |
getDetail()
The type and detailed information about the action.
|
Target |
getTarget()
The target this action affects (or empty if affecting all targets).
|
TimeRange |
getTimeRange()
The action occurred over this time range.
|
java.lang.String |
getTimestamp()
The action occurred at this specific time.
|
Action |
set(java.lang.String fieldName,
java.lang.Object value) |
Action |
setActor(Actor actor)
The actor responsible for this action (or empty if all actors are responsible).
|
Action |
setDetail(ActionDetail detail)
The type and detailed information about the action.
|
Action |
setTarget(Target target)
The target this action affects (or empty if affecting all targets).
|
Action |
setTimeRange(TimeRange timeRange)
The action occurred over this time range.
|
Action |
setTimestamp(java.lang.String timestamp)
The action occurred at this specific time.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Actor getActor()
null
for nonepublic Action setActor(Actor actor)
actor
- actor or null
for nonepublic ActionDetail getDetail()
null
for nonepublic Action setDetail(ActionDetail detail)
detail
- detail or null
for nonepublic Target getTarget()
null
for nonepublic Action setTarget(Target target)
target
- target or null
for nonepublic TimeRange getTimeRange()
null
for nonepublic Action setTimeRange(TimeRange timeRange)
timeRange
- timeRange or null
for nonepublic java.lang.String getTimestamp()
null
for nonepublic Action setTimestamp(java.lang.String timestamp)
timestamp
- timestamp or null
for nonepublic Action set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Action clone()
clone
in class com.google.api.client.json.GenericJson