public abstract class StorageRequest<T>
extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
StorageRequest(Storage client,
java.lang.String method,
java.lang.String uriTemplate,
java.lang.Object content,
java.lang.Class<T> responseClass) |
Modifier and Type | Method and Description |
---|---|
Storage |
getAbstractGoogleClient() |
java.lang.String |
getAlt()
Data format for the response.
|
java.lang.String |
getFields()
Selector specifying which fields to include in a partial response.
|
java.lang.String |
getKey()
API key.
|
java.lang.String |
getOauthToken()
OAuth 2.0 token for the current user.
|
java.lang.Boolean |
getPrettyPrint()
Returns response with indentations and line breaks.
|
java.lang.String |
getQuotaUser()
Available to use for quota purposes for server-side applications.
|
java.lang.String |
getUserIp()
IP address of the site where the request originates.
|
StorageRequest<T> |
set(java.lang.String parameterName,
java.lang.Object value) |
StorageRequest<T> |
setAlt(java.lang.String alt)
Data format for the response.
|
StorageRequest<T> |
setDisableGZipContent(boolean disableGZipContent) |
StorageRequest<T> |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
StorageRequest<T> |
setKey(java.lang.String key)
API key.
|
StorageRequest<T> |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
StorageRequest<T> |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
StorageRequest<T> |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
StorageRequest<T> |
setRequestHeaders(com.google.api.client.http.HttpHeaders headers) |
StorageRequest<T> |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public StorageRequest(Storage client, java.lang.String method, java.lang.String uriTemplate, java.lang.Object content, java.lang.Class<T> responseClass)
client
- Google clientmethod
- HTTP MethoduriTemplate
- URI template for the path relative to the base URL. If it starts with a "/"
the base path from the base URL will be stripped out. The URI template can also be a
full URL. URI template expansion is done using
UriTemplate.expand(String, String, Object, boolean)
content
- A POJO that can be serialized into JSON or null
for noneresponseClass
- response class to parse intopublic java.lang.String getAlt()
public StorageRequest<T> setAlt(java.lang.String alt)
public java.lang.String getFields()
public StorageRequest<T> setFields(java.lang.String fields)
public java.lang.String getKey()
public StorageRequest<T> setKey(java.lang.String key)
public java.lang.String getOauthToken()
public StorageRequest<T> setOauthToken(java.lang.String oauthToken)
public java.lang.Boolean getPrettyPrint()
public StorageRequest<T> setPrettyPrint(java.lang.Boolean prettyPrint)
public java.lang.String getQuotaUser()
public StorageRequest<T> setQuotaUser(java.lang.String quotaUser)
public java.lang.String getUserIp()
public StorageRequest<T> setUserIp(java.lang.String userIp)
public final Storage getAbstractGoogleClient()
getAbstractGoogleClient
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
public StorageRequest<T> setDisableGZipContent(boolean disableGZipContent)
setDisableGZipContent
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
public StorageRequest<T> setRequestHeaders(com.google.api.client.http.HttpHeaders headers)
setRequestHeaders
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
public StorageRequest<T> set(java.lang.String parameterName, java.lang.Object value)
set
in class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>