public class HangoutsChat.Media.Download extends HangoutsChatRequest<Media>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Download(String resourceName)
Downloads media.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, 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 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 AbstractGoogleClientRequest<Media>IOExceptionpublic InputStream executeMediaAsInputStream() throws IOException
executeMediaAsInputStream in class AbstractGoogleClientRequest<Media>IOExceptionpublic HttpResponse executeMedia() throws IOException
executeMedia in class AbstractGoogleClientRequest<Media>IOExceptionpublic HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<Media>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<Media>IOExceptionpublic HangoutsChat.Media.Download set$Xgafv(String $Xgafv)
HangoutsChatRequestset$Xgafv in class HangoutsChatRequest<Media>public HangoutsChat.Media.Download setAccessToken(String accessToken)
HangoutsChatRequestsetAccessToken in class HangoutsChatRequest<Media>public HangoutsChat.Media.Download setAlt(String alt)
HangoutsChatRequestsetAlt in class HangoutsChatRequest<Media>public HangoutsChat.Media.Download setCallback(String callback)
HangoutsChatRequestsetCallback in class HangoutsChatRequest<Media>public HangoutsChat.Media.Download setFields(String fields)
HangoutsChatRequestsetFields in class HangoutsChatRequest<Media>public HangoutsChat.Media.Download setKey(String key)
HangoutsChatRequestsetKey in class HangoutsChatRequest<Media>public HangoutsChat.Media.Download setOauthToken(String oauthToken)
HangoutsChatRequestsetOauthToken in class HangoutsChatRequest<Media>public HangoutsChat.Media.Download setPrettyPrint(Boolean prettyPrint)
HangoutsChatRequestsetPrettyPrint in class HangoutsChatRequest<Media>public HangoutsChat.Media.Download setQuotaUser(String quotaUser)
HangoutsChatRequestsetQuotaUser in class HangoutsChatRequest<Media>public HangoutsChat.Media.Download setUploadType(String uploadType)
HangoutsChatRequestsetUploadType in class HangoutsChatRequest<Media>public HangoutsChat.Media.Download setUploadProtocol(String uploadProtocol)
HangoutsChatRequestsetUploadProtocol 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–2021 Google. All rights reserved.