public class YouTube.Captions.Download extends YouTubeRequest<Void>
GenericData.Flags
AbstractMap.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, 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 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>
IOException
public InputStream executeMediaAsInputStream() throws IOException
executeMediaAsInputStream
in class AbstractGoogleClientRequest<Void>
IOException
public HttpResponse executeMedia() throws IOException
executeMedia
in class AbstractGoogleClientRequest<Void>
IOException
public GenericUrl buildHttpRequestUrl()
buildHttpRequestUrl
in class AbstractGoogleClientRequest<Void>
public HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class AbstractGoogleClientRequest<Void>
IOException
public HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class AbstractGoogleClientRequest<Void>
IOException
public YouTube.Captions.Download set$Xgafv(String $Xgafv)
YouTubeRequest
set$Xgafv
in class YouTubeRequest<Void>
public YouTube.Captions.Download setAccessToken(String accessToken)
YouTubeRequest
setAccessToken
in class YouTubeRequest<Void>
public YouTube.Captions.Download setAlt(String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<Void>
public YouTube.Captions.Download setCallback(String callback)
YouTubeRequest
setCallback
in class YouTubeRequest<Void>
public YouTube.Captions.Download setFields(String fields)
YouTubeRequest
setFields
in class YouTubeRequest<Void>
public YouTube.Captions.Download setKey(String key)
YouTubeRequest
setKey
in class YouTubeRequest<Void>
public YouTube.Captions.Download setOauthToken(String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<Void>
public YouTube.Captions.Download setPrettyPrint(Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<Void>
public YouTube.Captions.Download setQuotaUser(String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<Void>
public YouTube.Captions.Download setUploadType(String uploadType)
YouTubeRequest
setUploadType
in class YouTubeRequest<Void>
public YouTube.Captions.Download setUploadProtocol(String uploadProtocol)
YouTubeRequest
setUploadProtocol
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.