public class Storage.Objects.Get extends StorageRequest<StorageObject>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Storage.Objects.Get(java.lang.String bucket,
java.lang.String object__)
Retrieves objects or their associated metadata.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeMedia() |
void |
executeMediaAndDownloadTo(java.io.OutputStream outputStream) |
java.io.InputStream |
executeMediaAsInputStream() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getBucket()
Name of the bucket in which the object resides.
|
java.math.BigInteger |
getGeneration()
If present, selects a specific revision of this object (as opposed to the latest version, the
default).
|
java.math.BigInteger |
getIfGenerationMatch()
Makes the operation conditional on whether the object's generation matches the given value.
|
java.math.BigInteger |
getIfGenerationNotMatch()
Makes the operation conditional on whether the object's generation does not match the given value.
|
java.math.BigInteger |
getIfMetagenerationMatch()
Makes the operation conditional on whether the object's current metageneration matches the given
value.
|
java.math.BigInteger |
getIfMetagenerationNotMatch()
Makes the operation conditional on whether the object's current metageneration does not match the
given value.
|
java.lang.String |
getObject()
Name of the object.
|
java.lang.String |
getProjection()
Set of properties to return.
|
Storage.Objects.Get |
set(java.lang.String parameterName,
java.lang.Object value) |
Storage.Objects.Get |
setAlt(java.lang.String alt)
Data format for the response.
|
Storage.Objects.Get |
setBucket(java.lang.String bucket)
Name of the bucket in which the object resides.
|
Storage.Objects.Get |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Storage.Objects.Get |
setGeneration(java.math.BigInteger generation)
If present, selects a specific revision of this object (as opposed to the latest version,
the default).
|
Storage.Objects.Get |
setIfGenerationMatch(java.math.BigInteger ifGenerationMatch)
Makes the operation conditional on whether the object's generation matches the given value.
|
Storage.Objects.Get |
setIfGenerationNotMatch(java.math.BigInteger ifGenerationNotMatch)
Makes the operation conditional on whether the object's generation does not match the given
value.
|
Storage.Objects.Get |
setIfMetagenerationMatch(java.math.BigInteger ifMetagenerationMatch)
Makes the operation conditional on whether the object's current metageneration matches the
given value.
|
Storage.Objects.Get |
setIfMetagenerationNotMatch(java.math.BigInteger ifMetagenerationNotMatch)
Makes the operation conditional on whether the object's current metageneration does not
match the given value.
|
Storage.Objects.Get |
setKey(java.lang.String key)
API key.
|
Storage.Objects.Get |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Storage.Objects.Get |
setObject(java.lang.String object__)
Name of the object.
|
Storage.Objects.Get |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Storage.Objects.Get |
setProjection(java.lang.String projection)
Set of properties to return.
|
Storage.Objects.Get |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
Storage.Objects.Get |
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, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
protected Storage.Objects.Get(java.lang.String bucket, java.lang.String object__)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Storage.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be
called to initialize this instance immediately after invoking the constructor.
bucket
- Name of the bucket in which the object resides.object__
- Name of the object.public void executeMediaAndDownloadTo(java.io.OutputStream outputStream) throws java.io.IOException
executeMediaAndDownloadTo
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<StorageObject>
java.io.IOException
public java.io.InputStream executeMediaAsInputStream() throws java.io.IOException
executeMediaAsInputStream
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<StorageObject>
java.io.IOException
public com.google.api.client.http.HttpResponse executeMedia() throws java.io.IOException
executeMedia
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<StorageObject>
java.io.IOException
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<StorageObject>
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<StorageObject>
java.io.IOException
public Storage.Objects.Get setAlt(java.lang.String alt)
StorageRequest
setAlt
in class StorageRequest<StorageObject>
public Storage.Objects.Get setFields(java.lang.String fields)
StorageRequest
setFields
in class StorageRequest<StorageObject>
public Storage.Objects.Get setKey(java.lang.String key)
StorageRequest
setKey
in class StorageRequest<StorageObject>
public Storage.Objects.Get setOauthToken(java.lang.String oauthToken)
StorageRequest
setOauthToken
in class StorageRequest<StorageObject>
public Storage.Objects.Get setPrettyPrint(java.lang.Boolean prettyPrint)
StorageRequest
setPrettyPrint
in class StorageRequest<StorageObject>
public Storage.Objects.Get setQuotaUser(java.lang.String quotaUser)
StorageRequest
setQuotaUser
in class StorageRequest<StorageObject>
public Storage.Objects.Get setUserIp(java.lang.String userIp)
StorageRequest
setUserIp
in class StorageRequest<StorageObject>
public java.lang.String getBucket()
public Storage.Objects.Get setBucket(java.lang.String bucket)
public java.lang.String getObject()
public Storage.Objects.Get setObject(java.lang.String object__)
public java.math.BigInteger getGeneration()
public Storage.Objects.Get setGeneration(java.math.BigInteger generation)
public java.math.BigInteger getIfGenerationMatch()
public Storage.Objects.Get setIfGenerationMatch(java.math.BigInteger ifGenerationMatch)
public java.math.BigInteger getIfGenerationNotMatch()
public Storage.Objects.Get setIfGenerationNotMatch(java.math.BigInteger ifGenerationNotMatch)
public java.math.BigInteger getIfMetagenerationMatch()
public Storage.Objects.Get setIfMetagenerationMatch(java.math.BigInteger ifMetagenerationMatch)
public java.math.BigInteger getIfMetagenerationNotMatch()
public Storage.Objects.Get setIfMetagenerationNotMatch(java.math.BigInteger ifMetagenerationNotMatch)
public java.lang.String getProjection()
public Storage.Objects.Get setProjection(java.lang.String projection)
public Storage.Objects.Get set(java.lang.String parameterName, java.lang.Object value)
set
in class StorageRequest<StorageObject>