public class HangoutsChat.Media.Download extends HangoutsChatRequest<Media>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Download(String resourceName)
Downloads media.
|
Modifier and Type | Method and Description |
---|---|
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 |
getResourceName()
Name of the media that is being downloaded.
|
HangoutsChat.Media.Download |
set(String parameterName,
Object value) |
HangoutsChat.Media.Download |
set$Xgafv(String $Xgafv)
V1 error format.
|
HangoutsChat.Media.Download |
setAccessToken(String accessToken)
OAuth access token.
|
HangoutsChat.Media.Download |
setAlt(String alt)
Data format for response.
|
HangoutsChat.Media.Download |
setCallback(String callback)
JSONP
|
HangoutsChat.Media.Download |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
HangoutsChat.Media.Download |
setKey(String key)
API key.
|
HangoutsChat.Media.Download |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
HangoutsChat.Media.Download |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
HangoutsChat.Media.Download |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
HangoutsChat.Media.Download |
setResourceName(String resourceName)
Name of the media that is being downloaded.
|
HangoutsChat.Media.Download |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
HangoutsChat.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, buildHttpRequestUrl, 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 resourceName)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
HangoutsChat.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
resourceName
- Name of the media that is being downloaded. See ReadRequest.resource_name.public void executeMediaAndDownloadTo(OutputStream outputStream) throws IOException
executeMediaAndDownloadTo
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Media>
IOException
public InputStream executeMediaAsInputStream() throws IOException
executeMediaAsInputStream
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Media>
IOException
public com.google.api.client.http.HttpResponse executeMedia() throws IOException
executeMedia
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Media>
IOException
public com.google.api.client.http.HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Media>
IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Media>
IOException
public HangoutsChat.Media.Download set$Xgafv(String $Xgafv)
HangoutsChatRequest
set$Xgafv
in class HangoutsChatRequest<Media>
public HangoutsChat.Media.Download setAccessToken(String accessToken)
HangoutsChatRequest
setAccessToken
in class HangoutsChatRequest<Media>
public HangoutsChat.Media.Download setAlt(String alt)
HangoutsChatRequest
setAlt
in class HangoutsChatRequest<Media>
public HangoutsChat.Media.Download setCallback(String callback)
HangoutsChatRequest
setCallback
in class HangoutsChatRequest<Media>
public HangoutsChat.Media.Download setFields(String fields)
HangoutsChatRequest
setFields
in class HangoutsChatRequest<Media>
public HangoutsChat.Media.Download setKey(String key)
HangoutsChatRequest
setKey
in class HangoutsChatRequest<Media>
public HangoutsChat.Media.Download setOauthToken(String oauthToken)
HangoutsChatRequest
setOauthToken
in class HangoutsChatRequest<Media>
public HangoutsChat.Media.Download setPrettyPrint(Boolean prettyPrint)
HangoutsChatRequest
setPrettyPrint
in class HangoutsChatRequest<Media>
public HangoutsChat.Media.Download setQuotaUser(String quotaUser)
HangoutsChatRequest
setQuotaUser
in class HangoutsChatRequest<Media>
public HangoutsChat.Media.Download setUploadType(String uploadType)
HangoutsChatRequest
setUploadType
in class HangoutsChatRequest<Media>
public HangoutsChat.Media.Download setUploadProtocol(String uploadProtocol)
HangoutsChatRequest
setUploadProtocol
in class HangoutsChatRequest<Media>
public String getResourceName()
public HangoutsChat.Media.Download setResourceName(String resourceName)
public HangoutsChat.Media.Download set(String parameterName, Object value)
set
in class HangoutsChatRequest<Media>
Copyright © 2011–2024 Google. All rights reserved.