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 |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeMedia() |
void |
executeMediaAndDownloadTo(OutputStream outputStream) |
InputStream |
executeMediaAsInputStream() |
HttpResponse |
executeUsingHead() |
String |
getId()
The id parameter identifies the caption track that is being retrieved.
|
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()
The tfmt parameter specifies that the caption track should be returned in a specific format.
|
String |
getTlang()
The tlang parameter specifies that the API response should return a translation of the specified
caption track.
|
YouTube.Captions.Download |
set(String parameterName,
Object value) |
YouTube.Captions.Download |
setAlt(String alt)
Data format for the response.
|
YouTube.Captions.Download |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Captions.Download |
setId(String id)
The id parameter identifies the caption track that is being retrieved.
|
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)
An opaque string that represents a user for quota purposes.
|
YouTube.Captions.Download |
setTfmt(String tfmt)
The tfmt parameter specifies that the caption track should be returned in a specific
format.
|
YouTube.Captions.Download |
setTlang(String tlang)
The tlang parameter specifies that the API response should return a translation of the
specified caption track.
|
YouTube.Captions.Download |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, 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 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 parameter identifies the caption track that is being retrieved. The value is a caption track
ID as identified by the id property in a caption resource.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 HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<Void>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<Void>IOExceptionpublic YouTube.Captions.Download setAlt(String alt)
YouTubeRequestsetAlt 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 setUserIp(String userIp)
YouTubeRequestsetUserIp 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–2019 Google. All rights reserved.