public class Plus.Moments.Insert extends PlusRequest<Moment>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Plus.Moments.Insert(java.lang.String userId,
java.lang.String collection,
Moment content)
Record a moment representing a user's action such as making a purchase or commenting on a blog.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCollection()
The collection to which to write moments.
|
java.lang.Boolean |
getDebug()
Return the moment as written.
|
java.lang.String |
getUserId()
The ID of the user to record actions for.
|
Plus.Moments.Insert |
set(java.lang.String parameterName,
java.lang.Object value) |
Plus.Moments.Insert |
setAlt(java.lang.String alt)
Data format for the response.
|
Plus.Moments.Insert |
setCollection(java.lang.String collection)
The collection to which to write moments.
|
Plus.Moments.Insert |
setDebug(java.lang.Boolean debug)
Return the moment as written.
|
Plus.Moments.Insert |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Plus.Moments.Insert |
setKey(java.lang.String key)
API key.
|
Plus.Moments.Insert |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Plus.Moments.Insert |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Plus.Moments.Insert |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Plus.Moments.Insert |
setUserId(java.lang.String userId)
The ID of the user to record actions for.
|
Plus.Moments.Insert |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysprotected Plus.Moments.Insert(java.lang.String userId,
java.lang.String collection,
Moment content)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Plus.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must
be called to initialize this instance immediately after invoking the constructor.
userId - The ID of the user to record actions for. The only valid values are "me" and the ID of the
authenticated user.collection - The collection to which to write moments.content - the Momentpublic Plus.Moments.Insert setAlt(java.lang.String alt)
PlusRequestsetAlt in class PlusRequest<Moment>public Plus.Moments.Insert setFields(java.lang.String fields)
PlusRequestsetFields in class PlusRequest<Moment>public Plus.Moments.Insert setKey(java.lang.String key)
PlusRequestsetKey in class PlusRequest<Moment>public Plus.Moments.Insert setOauthToken(java.lang.String oauthToken)
PlusRequestsetOauthToken in class PlusRequest<Moment>public Plus.Moments.Insert setPrettyPrint(java.lang.Boolean prettyPrint)
PlusRequestsetPrettyPrint in class PlusRequest<Moment>public Plus.Moments.Insert setQuotaUser(java.lang.String quotaUser)
PlusRequestsetQuotaUser in class PlusRequest<Moment>public Plus.Moments.Insert setUserIp(java.lang.String userIp)
PlusRequestsetUserIp in class PlusRequest<Moment>public java.lang.String getUserId()
public Plus.Moments.Insert setUserId(java.lang.String userId)
public java.lang.String getCollection()
public Plus.Moments.Insert setCollection(java.lang.String collection)
public java.lang.Boolean getDebug()
public Plus.Moments.Insert setDebug(java.lang.Boolean debug)
public Plus.Moments.Insert set(java.lang.String parameterName, java.lang.Object value)
set in class PlusRequest<Moment>