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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
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.
|
String |
getTimestamp()
The action occurred at this specific time.
|
Action |
set(String fieldName,
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(String timestamp)
The action occurred at this specific time.
|
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 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 String getTimestamp()
null
for nonepublic Action setTimestamp(String timestamp)
timestamp
- timestamp or null
for nonepublic Action set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Action clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.