target.apidocs.com.google.api.services.plus.model.Comment.html Maven / Gradle / Ivy
The newest version!
Comment (Google+ API v1-rev20190328-1.30.10)
com.google.api.services.plus.model
Class Comment
- 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.Comment
-
public final class Comment
extends GenericJson
Model definition for Comment.
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
Comment.Actor
The person who posted this comment.
static class
Comment.InReplyTo
Model definition for CommentInReplyTo.
static class
Comment.PlusObject
The object of this comment.
static class
Comment.Plusoners
People who +1'd this comment.
-
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
Comment()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Comment
clone()
Comment.Actor
getActor()
The person who posted this comment.
String
getEtag()
ETag of this response for caching purposes.
String
getId()
The ID of this comment.
List<Comment.InReplyTo>
getInReplyTo()
The activity this comment replied to.
String
getKind()
Identifies this resource as a comment.
Comment.PlusObject
getObject()
The object of this comment.
Comment.Plusoners
getPlusoners()
People who +1'd this comment.
DateTime
getPublished()
The time at which this comment was initially published.
String
getSelfLink()
Link to this comment resource.
DateTime
getUpdated()
The time at which this comment was last updated.
String
getVerb()
This comment's verb, indicating what action was performed.
Comment
set(String fieldName,
Object value)
Comment
setActor(Comment.Actor actor)
The person who posted this comment.
Comment
setEtag(String etag)
ETag of this response for caching purposes.
Comment
setId(String id)
The ID of this comment.
Comment
setInReplyTo(List<Comment.InReplyTo> inReplyTo)
The activity this comment replied to.
Comment
setKind(String kind)
Identifies this resource as a comment.
Comment
setObject(Comment.PlusObject object__)
The object of this comment.
Comment
setPlusoners(Comment.Plusoners plusoners)
People who +1'd this comment.
Comment
setPublished(DateTime published)
The time at which this comment was initially published.
Comment
setSelfLink(String selfLink)
Link to this comment resource.
Comment
setUpdated(DateTime updated)
The time at which this comment was last updated.
Comment
setVerb(String verb)
This comment's verb, indicating what action 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
-
getActor
public Comment.Actor getActor()
The person who posted this comment.
- Returns:
- value or
null
for none
-
setActor
public Comment setActor(Comment.Actor actor)
The person who posted this comment.
- Parameters:
actor
- actor or null
for none
-
getEtag
public String getEtag()
ETag of this response for caching purposes.
- Returns:
- value or
null
for none
-
setEtag
public Comment setEtag(String etag)
ETag of this response for caching purposes.
- Parameters:
etag
- etag or null
for none
-
getId
public String getId()
The ID of this comment.
- Returns:
- value or
null
for none
-
getInReplyTo
public List<Comment.InReplyTo> getInReplyTo()
The activity this comment replied to.
- Returns:
- value or
null
for none
-
setInReplyTo
public Comment setInReplyTo(List<Comment.InReplyTo> inReplyTo)
The activity this comment replied to.
- Parameters:
inReplyTo
- inReplyTo or null
for none
-
getKind
public String getKind()
Identifies this resource as a comment. Value: "plus#comment".
- Returns:
- value or
null
for none
-
setKind
public Comment setKind(String kind)
Identifies this resource as a comment. Value: "plus#comment".
- Parameters:
kind
- kind or null
for none
-
getObject
public Comment.PlusObject getObject()
The object of this comment.
- Returns:
- value or
null
for none
-
setObject
public Comment setObject(Comment.PlusObject object__)
The object of this comment.
- Parameters:
object__
- object__ or null
for none
-
getPlusoners
public Comment.Plusoners getPlusoners()
People who +1'd this comment.
- Returns:
- value or
null
for none
-
setPlusoners
public Comment setPlusoners(Comment.Plusoners plusoners)
People who +1'd this comment.
- Parameters:
plusoners
- plusoners or null
for none
-
getPublished
public DateTime getPublished()
The time at which this comment was initially published. Formatted as an RFC 3339 timestamp.
- Returns:
- value or
null
for none
-
setPublished
public Comment setPublished(DateTime published)
The time at which this comment was initially published. Formatted as an RFC 3339 timestamp.
- Parameters:
published
- published or null
for none
-
getSelfLink
public String getSelfLink()
Link to this comment resource.
- Returns:
- value or
null
for none
-
setSelfLink
public Comment setSelfLink(String selfLink)
Link to this comment resource.
- Parameters:
selfLink
- selfLink or null
for none
-
getUpdated
public DateTime getUpdated()
The time at which this comment was last updated. Formatted as an RFC 3339 timestamp.
- Returns:
- value or
null
for none
-
setUpdated
public Comment setUpdated(DateTime updated)
The time at which this comment was last updated. Formatted as an RFC 3339 timestamp.
- Parameters:
updated
- updated or null
for none
-
getVerb
public String getVerb()
This comment's verb, indicating what action was performed. Possible values are: - "post" -
Publish content to the stream.
- Returns:
- value or
null
for none
-
setVerb
public Comment setVerb(String verb)
This comment's verb, indicating what action was performed. Possible values are: - "post" -
Publish content to the stream.
- Parameters:
verb
- verb or null
for none
-
set
public Comment set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Comment clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy