public class Keep.Media.Download extends KeepRequest<Attachment>
com.google.api.client.util.GenericData.FlagsAbstractMap.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, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected 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>IOExceptionpublic InputStream executeMediaAsInputStream() throws IOException
executeMediaAsInputStream in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Attachment>IOExceptionpublic com.google.api.client.http.HttpResponse executeMedia()
throws IOException
executeMedia in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Attachment>IOExceptionpublic 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>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Attachment>IOExceptionpublic Keep.Media.Download set$Xgafv(String $Xgafv)
KeepRequestset$Xgafv in class KeepRequest<Attachment>public Keep.Media.Download setAccessToken(String accessToken)
KeepRequestsetAccessToken in class KeepRequest<Attachment>public Keep.Media.Download setAlt(String alt)
KeepRequestsetAlt in class KeepRequest<Attachment>public Keep.Media.Download setCallback(String callback)
KeepRequestsetCallback in class KeepRequest<Attachment>public Keep.Media.Download setFields(String fields)
KeepRequestsetFields in class KeepRequest<Attachment>public Keep.Media.Download setKey(String key)
KeepRequestsetKey in class KeepRequest<Attachment>public Keep.Media.Download setOauthToken(String oauthToken)
KeepRequestsetOauthToken in class KeepRequest<Attachment>public Keep.Media.Download setPrettyPrint(Boolean prettyPrint)
KeepRequestsetPrettyPrint in class KeepRequest<Attachment>public Keep.Media.Download setQuotaUser(String quotaUser)
KeepRequestsetQuotaUser in class KeepRequest<Attachment>public Keep.Media.Download setUploadType(String uploadType)
KeepRequestsetUploadType in class KeepRequest<Attachment>public Keep.Media.Download setUploadProtocol(String uploadProtocol)
KeepRequestsetUploadProtocol 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.