public class Keep.Media.Download extends KeepRequest<Attachment>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Download(String name)
Gets an attachment.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.GenericUrl |
buildHttpRequestUrl() |
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeMedia() |
void |
executeMediaAndDownloadTo(OutputStream outputStream) |
InputStream |
executeMediaAsInputStream() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getMimeType()
The IANA MIME type format requested.
|
String |
getName()
Required.
|
Keep.Media.Download |
set(String parameterName,
Object value) |
Keep.Media.Download |
set$Xgafv(String $Xgafv)
V1 error format.
|
Keep.Media.Download |
setAccessToken(String accessToken)
OAuth access token.
|
Keep.Media.Download |
setAlt(String alt)
Data format for response.
|
Keep.Media.Download |
setCallback(String callback)
JSONP
|
Keep.Media.Download |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Keep.Media.Download |
setKey(String key)
API key.
|
Keep.Media.Download |
setMimeType(String mimeType)
The IANA MIME type format requested.
|
Keep.Media.Download |
setName(String name)
Required.
|
Keep.Media.Download |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Keep.Media.Download |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Keep.Media.Download |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Keep.Media.Download |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Keep.Media.Download |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected Download(String name)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
Keep.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
name
- Required. The name of the attachment.public void executeMediaAndDownloadTo(OutputStream outputStream) throws IOException
executeMediaAndDownloadTo
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Attachment>
IOException
public InputStream executeMediaAsInputStream() throws IOException
executeMediaAsInputStream
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Attachment>
IOException
public com.google.api.client.http.HttpResponse executeMedia() throws IOException
executeMedia
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Attachment>
IOException
public com.google.api.client.http.GenericUrl buildHttpRequestUrl()
buildHttpRequestUrl
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Attachment>
public com.google.api.client.http.HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Attachment>
IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Attachment>
IOException
public Keep.Media.Download set$Xgafv(String $Xgafv)
KeepRequest
set$Xgafv
in class KeepRequest<Attachment>
public Keep.Media.Download setAccessToken(String accessToken)
KeepRequest
setAccessToken
in class KeepRequest<Attachment>
public Keep.Media.Download setAlt(String alt)
KeepRequest
setAlt
in class KeepRequest<Attachment>
public Keep.Media.Download setCallback(String callback)
KeepRequest
setCallback
in class KeepRequest<Attachment>
public Keep.Media.Download setFields(String fields)
KeepRequest
setFields
in class KeepRequest<Attachment>
public Keep.Media.Download setKey(String key)
KeepRequest
setKey
in class KeepRequest<Attachment>
public Keep.Media.Download setOauthToken(String oauthToken)
KeepRequest
setOauthToken
in class KeepRequest<Attachment>
public Keep.Media.Download setPrettyPrint(Boolean prettyPrint)
KeepRequest
setPrettyPrint
in class KeepRequest<Attachment>
public Keep.Media.Download setQuotaUser(String quotaUser)
KeepRequest
setQuotaUser
in class KeepRequest<Attachment>
public Keep.Media.Download setUploadType(String uploadType)
KeepRequest
setUploadType
in class KeepRequest<Attachment>
public Keep.Media.Download setUploadProtocol(String uploadProtocol)
KeepRequest
setUploadProtocol
in class KeepRequest<Attachment>
public String getName()
public Keep.Media.Download setName(String name)
public String getMimeType()
public Keep.Media.Download setMimeType(String mimeType)
public Keep.Media.Download set(String parameterName, Object value)
set
in class KeepRequest<Attachment>
Copyright © 2011–2025 Google. All rights reserved.