public class Gmail.Users.GetProfile extends GmailRequest<Profile>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
GetProfile(java.lang.String userId)
Gets the current user's Gmail profile.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getUserId()
The user's email address.
|
Gmail.Users.GetProfile |
set(java.lang.String parameterName,
java.lang.Object value) |
Gmail.Users.GetProfile |
setAlt(java.lang.String alt)
Data format for the response.
|
Gmail.Users.GetProfile |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.GetProfile |
setKey(java.lang.String key)
API key.
|
Gmail.Users.GetProfile |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.GetProfile |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.GetProfile |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
Gmail.Users.GetProfile |
setUserId(java.lang.String userId)
The user's email address.
|
Gmail.Users.GetProfile |
setUserIp(java.lang.String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected GetProfile(java.lang.String userId)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
Gmail.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
userId
- The user's email address. The special value me can be used to indicate the authenticated user.
[default: me]public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Profile>
java.io.IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Profile>
java.io.IOException
public Gmail.Users.GetProfile setAlt(java.lang.String alt)
GmailRequest
setAlt
in class GmailRequest<Profile>
public Gmail.Users.GetProfile setFields(java.lang.String fields)
GmailRequest
setFields
in class GmailRequest<Profile>
public Gmail.Users.GetProfile setKey(java.lang.String key)
GmailRequest
setKey
in class GmailRequest<Profile>
public Gmail.Users.GetProfile setOauthToken(java.lang.String oauthToken)
GmailRequest
setOauthToken
in class GmailRequest<Profile>
public Gmail.Users.GetProfile setPrettyPrint(java.lang.Boolean prettyPrint)
GmailRequest
setPrettyPrint
in class GmailRequest<Profile>
public Gmail.Users.GetProfile setQuotaUser(java.lang.String quotaUser)
GmailRequest
setQuotaUser
in class GmailRequest<Profile>
public Gmail.Users.GetProfile setUserIp(java.lang.String userIp)
GmailRequest
setUserIp
in class GmailRequest<Profile>
public java.lang.String getUserId()
public Gmail.Users.GetProfile setUserId(java.lang.String userId)
public Gmail.Users.GetProfile set(java.lang.String parameterName, java.lang.Object value)
set
in class GmailRequest<Profile>