public final class Activity 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 Google+ API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
Modifier and Type | Class and Description |
---|---|
static class |
Activity.Actor
The person who performed this activity.
|
static class |
Activity.PlusObject
The object of this activity.
|
static class |
Activity.Provider
The service provider that initially published this activity.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Activity() |
Modifier and Type | Method and Description |
---|---|
Activity |
clone() |
Acl |
getAccess()
Identifies who has access to see this activity.
|
Activity.Actor |
getActor()
The person who performed this activity.
|
String |
getAddress()
Street address where this activity occurred.
|
String |
getAnnotation()
Additional content added by the person who shared this activity, applicable only when resharing
an activity.
|
String |
getCrosspostSource()
If this activity is a crosspost from another system, this property specifies the ID of the
original activity.
|
String |
getEtag()
ETag of this response for caching purposes.
|
String |
getGeocode()
Latitude and longitude where this activity occurred.
|
String |
getId()
The ID of this activity.
|
String |
getKind()
Identifies this resource as an activity.
|
Place |
getLocation()
The location where this activity occurred.
|
Activity.PlusObject |
getObject()
The object of this activity.
|
String |
getPlaceId()
ID of the place where this activity occurred.
|
String |
getPlaceName()
Name of the place where this activity occurred.
|
Activity.Provider |
getProvider()
The service provider that initially published this activity.
|
DateTime |
getPublished()
The time at which this activity was initially published.
|
String |
getRadius()
Radius, in meters, of the region where this activity occurred, centered at the latitude and
longitude identified in geocode.
|
String |
getTitle()
Title of this activity.
|
DateTime |
getUpdated()
The time at which this activity was last updated.
|
String |
getUrl()
The link to this activity.
|
String |
getVerb()
This activity's verb, which indicates the action that was performed.
|
Activity |
set(String fieldName,
Object value) |
Activity |
setAccess(Acl access)
Identifies who has access to see this activity.
|
Activity |
setActor(Activity.Actor actor)
The person who performed this activity.
|
Activity |
setAddress(String address)
Street address where this activity occurred.
|
Activity |
setAnnotation(String annotation)
Additional content added by the person who shared this activity, applicable only when resharing
an activity.
|
Activity |
setCrosspostSource(String crosspostSource)
If this activity is a crosspost from another system, this property specifies the ID of the
original activity.
|
Activity |
setEtag(String etag)
ETag of this response for caching purposes.
|
Activity |
setGeocode(String geocode)
Latitude and longitude where this activity occurred.
|
Activity |
setId(String id)
The ID of this activity.
|
Activity |
setKind(String kind)
Identifies this resource as an activity.
|
Activity |
setLocation(Place location)
The location where this activity occurred.
|
Activity |
setObject(Activity.PlusObject object__)
The object of this activity.
|
Activity |
setPlaceId(String placeId)
ID of the place where this activity occurred.
|
Activity |
setPlaceName(String placeName)
Name of the place where this activity occurred.
|
Activity |
setProvider(Activity.Provider provider)
The service provider that initially published this activity.
|
Activity |
setPublished(DateTime published)
The time at which this activity was initially published.
|
Activity |
setRadius(String radius)
Radius, in meters, of the region where this activity occurred, centered at the latitude and
longitude identified in geocode.
|
Activity |
setTitle(String title)
Title of this activity.
|
Activity |
setUpdated(DateTime updated)
The time at which this activity was last updated.
|
Activity |
setUrl(String url)
The link to this activity.
|
Activity |
setVerb(String verb)
This activity's verb, which indicates the action that was performed.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Acl getAccess()
null
for nonepublic Activity setAccess(Acl access)
access
- access or null
for nonepublic Activity.Actor getActor()
null
for nonepublic Activity setActor(Activity.Actor actor)
actor
- actor or null
for nonepublic String getAddress()
null
for nonepublic Activity setAddress(String address)
address
- address or null
for nonepublic String getAnnotation()
null
for nonepublic Activity setAnnotation(String annotation)
annotation
- annotation or null
for nonepublic String getCrosspostSource()
null
for nonepublic Activity setCrosspostSource(String crosspostSource)
crosspostSource
- crosspostSource or null
for nonepublic String getEtag()
null
for nonepublic Activity setEtag(String etag)
etag
- etag or null
for nonepublic String getGeocode()
null
for nonepublic Activity setGeocode(String geocode)
geocode
- geocode or null
for nonepublic String getId()
null
for nonepublic String getKind()
null
for nonepublic Activity setKind(String kind)
kind
- kind or null
for nonepublic Place getLocation()
null
for nonepublic Activity setLocation(Place location)
location
- location or null
for nonepublic Activity.PlusObject getObject()
null
for nonepublic Activity setObject(Activity.PlusObject object__)
object__
- object__ or null
for nonepublic String getPlaceId()
null
for nonepublic Activity setPlaceId(String placeId)
placeId
- placeId or null
for nonepublic String getPlaceName()
null
for nonepublic Activity setPlaceName(String placeName)
placeName
- placeName or null
for nonepublic Activity.Provider getProvider()
null
for nonepublic Activity setProvider(Activity.Provider provider)
provider
- provider or null
for nonepublic DateTime getPublished()
null
for nonepublic Activity setPublished(DateTime published)
published
- published or null
for nonepublic String getRadius()
null
for nonepublic Activity setRadius(String radius)
radius
- radius or null
for nonepublic String getTitle()
null
for nonepublic Activity setTitle(String title)
title
- title or null
for nonepublic DateTime getUpdated()
null
for nonepublic Activity setUpdated(DateTime updated)
updated
- updated or null
for nonepublic String getUrl()
null
for nonepublic Activity setUrl(String url)
url
- url or null
for nonepublic String getVerb()
null
for nonepublic Activity setVerb(String verb)
verb
- verb or null
for nonepublic Activity set(String fieldName, Object value)
set
in class GenericJson
public Activity clone()
clone
in class GenericJson