public class YouTube.Captions.Download extends YouTubeRequest<Void>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Download(String id)
Downloads a caption track.
|
| Modifier and Type | Method and Description |
|---|---|
GenericUrl |
buildHttpRequestUrl() |
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeMedia() |
void |
executeMediaAndDownloadTo(OutputStream outputStream) |
InputStream |
executeMediaAsInputStream() |
HttpResponse |
executeUsingHead() |
String |
getId()
The ID of the caption track to download, required for One Platform.
|
String |
getOnBehalfOf()
ID of the Google+ Page for the channel that the request is be on behalf of
|
String |
getOnBehalfOfContentOwner()
Note:* This parameter is intended exclusively for YouTube content partners.
|
String |
getTfmt()
Convert the captions into this format.
|
String |
getTlang()
tlang is the language code; machine translate the captions into this language.
|
YouTube.Captions.Download |
set(String parameterName,
Object value) |
YouTube.Captions.Download |
set$Xgafv(String $Xgafv)
V1 error format.
|
YouTube.Captions.Download |
setAccessToken(String accessToken)
OAuth access token.
|
YouTube.Captions.Download |
setAlt(String alt)
Data format for response.
|
YouTube.Captions.Download |
setCallback(String callback)
JSONP
|
YouTube.Captions.Download |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Captions.Download |
setId(String id)
The ID of the caption track to download, required for One Platform.
|
YouTube.Captions.Download |
setKey(String key)
API key.
|
YouTube.Captions.Download |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Captions.Download |
setOnBehalfOf(String onBehalfOf)
ID of the Google+ Page for the channel that the request is be on behalf of
|
YouTube.Captions.Download |
setOnBehalfOfContentOwner(String onBehalfOfContentOwner)
*Note:* This parameter is intended exclusively for YouTube content partners.
|
YouTube.Captions.Download |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Captions.Download |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Captions.Download |
setTfmt(String tfmt)
Convert the captions into this format.
|
YouTube.Captions.Download |
setTlang(String tlang)
tlang is the language code; machine translate the captions into this language.
|
YouTube.Captions.Download |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
YouTube.Captions.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 id)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
YouTube.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
id - The ID of the caption track to download, required for One Platform.public void executeMediaAndDownloadTo(OutputStream outputStream) throws IOException
executeMediaAndDownloadTo in class AbstractGoogleClientRequest<Void>IOExceptionpublic InputStream executeMediaAsInputStream() throws IOException
executeMediaAsInputStream in class AbstractGoogleClientRequest<Void>IOExceptionpublic HttpResponse executeMedia() throws IOException
executeMedia in class AbstractGoogleClientRequest<Void>IOExceptionpublic GenericUrl buildHttpRequestUrl()
buildHttpRequestUrl in class AbstractGoogleClientRequest<Void>public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<Void>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<Void>IOExceptionpublic YouTube.Captions.Download set$Xgafv(String $Xgafv)
YouTubeRequestset$Xgafv in class YouTubeRequest<Void>public YouTube.Captions.Download setAccessToken(String accessToken)
YouTubeRequestsetAccessToken in class YouTubeRequest<Void>public YouTube.Captions.Download setAlt(String alt)
YouTubeRequestsetAlt in class YouTubeRequest<Void>public YouTube.Captions.Download setCallback(String callback)
YouTubeRequestsetCallback in class YouTubeRequest<Void>public YouTube.Captions.Download setFields(String fields)
YouTubeRequestsetFields in class YouTubeRequest<Void>public YouTube.Captions.Download setKey(String key)
YouTubeRequestsetKey in class YouTubeRequest<Void>public YouTube.Captions.Download setOauthToken(String oauthToken)
YouTubeRequestsetOauthToken in class YouTubeRequest<Void>public YouTube.Captions.Download setPrettyPrint(Boolean prettyPrint)
YouTubeRequestsetPrettyPrint in class YouTubeRequest<Void>public YouTube.Captions.Download setQuotaUser(String quotaUser)
YouTubeRequestsetQuotaUser in class YouTubeRequest<Void>public YouTube.Captions.Download setUploadType(String uploadType)
YouTubeRequestsetUploadType in class YouTubeRequest<Void>public YouTube.Captions.Download setUploadProtocol(String uploadProtocol)
YouTubeRequestsetUploadProtocol in class YouTubeRequest<Void>public String getId()
public YouTube.Captions.Download setId(String id)
public String getOnBehalfOf()
public YouTube.Captions.Download setOnBehalfOf(String onBehalfOf)
public String getOnBehalfOfContentOwner()
public YouTube.Captions.Download setOnBehalfOfContentOwner(String onBehalfOfContentOwner)
public String getTfmt()
public YouTube.Captions.Download setTfmt(String tfmt)
public String getTlang()
public YouTube.Captions.Download setTlang(String tlang)
public YouTube.Captions.Download set(String parameterName, Object value)
set in class YouTubeRequest<Void>Copyright © 2011–2021 Google. All rights reserved.