target.apidocs.com.google.api.services.plus.model.Activity.html Maven / Gradle / Ivy
The newest version!
Activity (Google+ API v1-rev20190328-1.30.10)
com.google.api.services.plus.model
Class Activity
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.plus.model.Activity
-
public final class Activity
extends GenericJson
Model definition for Activity.
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:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
Nested Classes
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.
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Activity()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAccess
public Acl getAccess()
Identifies who has access to see this activity.
- Returns:
- value or
null
for none
-
setAccess
public Activity setAccess(Acl access)
Identifies who has access to see this activity.
- Parameters:
access
- access or null
for none
-
getActor
public Activity.Actor getActor()
The person who performed this activity.
- Returns:
- value or
null
for none
-
setActor
public Activity setActor(Activity.Actor actor)
The person who performed this activity.
- Parameters:
actor
- actor or null
for none
-
getAddress
public String getAddress()
Street address where this activity occurred.
- Returns:
- value or
null
for none
-
setAddress
public Activity setAddress(String address)
Street address where this activity occurred.
- Parameters:
address
- address or null
for none
-
getAnnotation
public String getAnnotation()
Additional content added by the person who shared this activity, applicable only when resharing
an activity.
- Returns:
- value or
null
for none
-
setAnnotation
public Activity setAnnotation(String annotation)
Additional content added by the person who shared this activity, applicable only when resharing
an activity.
- Parameters:
annotation
- annotation or null
for none
-
getCrosspostSource
public String getCrosspostSource()
If this activity is a crosspost from another system, this property specifies the ID of the
original activity.
- Returns:
- value or
null
for none
-
setCrosspostSource
public Activity setCrosspostSource(String crosspostSource)
If this activity is a crosspost from another system, this property specifies the ID of the
original activity.
- Parameters:
crosspostSource
- crosspostSource or null
for none
-
getEtag
public String getEtag()
ETag of this response for caching purposes.
- Returns:
- value or
null
for none
-
setEtag
public Activity setEtag(String etag)
ETag of this response for caching purposes.
- Parameters:
etag
- etag or null
for none
-
getGeocode
public String getGeocode()
Latitude and longitude where this activity occurred. Format is latitude followed by longitude,
space separated.
- Returns:
- value or
null
for none
-
setGeocode
public Activity setGeocode(String geocode)
Latitude and longitude where this activity occurred. Format is latitude followed by longitude,
space separated.
- Parameters:
geocode
- geocode or null
for none
-
getId
public String getId()
The ID of this activity.
- Returns:
- value or
null
for none
-
setId
public Activity setId(String id)
The ID of this activity.
- Parameters:
id
- id or null
for none
-
getKind
public String getKind()
Identifies this resource as an activity. Value: "plus#activity".
- Returns:
- value or
null
for none
-
setKind
public Activity setKind(String kind)
Identifies this resource as an activity. Value: "plus#activity".
- Parameters:
kind
- kind or null
for none
-
getLocation
public Place getLocation()
The location where this activity occurred.
- Returns:
- value or
null
for none
-
setLocation
public Activity setLocation(Place location)
The location where this activity occurred.
- Parameters:
location
- location or null
for none
-
getObject
public Activity.PlusObject getObject()
The object of this activity.
- Returns:
- value or
null
for none
-
setObject
public Activity setObject(Activity.PlusObject object__)
The object of this activity.
- Parameters:
object__
- object__ or null
for none
-
getPlaceId
public String getPlaceId()
ID of the place where this activity occurred.
- Returns:
- value or
null
for none
-
setPlaceId
public Activity setPlaceId(String placeId)
ID of the place where this activity occurred.
- Parameters:
placeId
- placeId or null
for none
-
getPlaceName
public String getPlaceName()
Name of the place where this activity occurred.
- Returns:
- value or
null
for none
-
setPlaceName
public Activity setPlaceName(String placeName)
Name of the place where this activity occurred.
- Parameters:
placeName
- placeName or null
for none
-
getProvider
public Activity.Provider getProvider()
The service provider that initially published this activity.
- Returns:
- value or
null
for none
-
setProvider
public Activity setProvider(Activity.Provider provider)
The service provider that initially published this activity.
- Parameters:
provider
- provider or null
for none
-
getPublished
public DateTime getPublished()
The time at which this activity was initially published. Formatted as an RFC 3339 timestamp.
- Returns:
- value or
null
for none
-
setPublished
public Activity setPublished(DateTime published)
The time at which this activity was initially published. Formatted as an RFC 3339 timestamp.
- Parameters:
published
- published or null
for none
-
getRadius
public String getRadius()
Radius, in meters, of the region where this activity occurred, centered at the latitude and
longitude identified in geocode.
- Returns:
- value or
null
for none
-
setRadius
public Activity setRadius(String radius)
Radius, in meters, of the region where this activity occurred, centered at the latitude and
longitude identified in geocode.
- Parameters:
radius
- radius or null
for none
-
getTitle
public String getTitle()
Title of this activity.
- Returns:
- value or
null
for none
-
setTitle
public Activity setTitle(String title)
Title of this activity.
- Parameters:
title
- title or null
for none
-
getUpdated
public DateTime getUpdated()
The time at which this activity was last updated. Formatted as an RFC 3339 timestamp.
- Returns:
- value or
null
for none
-
setUpdated
public Activity setUpdated(DateTime updated)
The time at which this activity was last updated. Formatted as an RFC 3339 timestamp.
- Parameters:
updated
- updated or null
for none
-
getUrl
public String getUrl()
The link to this activity.
- Returns:
- value or
null
for none
-
setUrl
public Activity setUrl(String url)
The link to this activity.
- Parameters:
url
- url or null
for none
-
getVerb
public String getVerb()
This activity's verb, which indicates the action that was performed. Possible values include,
but are not limited to, the following values: - "post" - Publish content to the stream. -
"share" - Reshare an activity.
- Returns:
- value or
null
for none
-
setVerb
public Activity setVerb(String verb)
This activity's verb, which indicates the action that was performed. Possible values include,
but are not limited to, the following values: - "post" - Publish content to the stream. -
"share" - Reshare an activity.
- Parameters:
verb
- verb or null
for none
-
set
public Activity set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Activity clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy