public class YouTube.Captions.Download extends YouTubeRequest<java.lang.Void>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
YouTube.Captions.Download(java.lang.String id)
Downloads a caption track.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeMedia() |
void |
executeMediaAndDownloadTo(java.io.OutputStream outputStream) |
java.io.InputStream |
executeMediaAsInputStream() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getId()
The id parameter identifies the caption track that is being retrieved.
|
java.lang.String |
getOnBehalfOf()
ID of the Google+ Page for the channel that the request is be on behalf of
|
java.lang.String |
getOnBehalfOfContentOwner()
Note: This parameter is intended exclusively for YouTube content partners.
|
java.lang.String |
getTfmt()
The tfmt parameter specifies that the caption track should be returned in a specific format.
|
java.lang.String |
getTlang()
The tlang parameter specifies that the API response should return a translation of the specified
caption track.
|
YouTube.Captions.Download |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTube.Captions.Download |
setAlt(java.lang.String alt)
Data format for the response.
|
YouTube.Captions.Download |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Captions.Download |
setId(java.lang.String id)
The id parameter identifies the caption track that is being retrieved.
|
YouTube.Captions.Download |
setKey(java.lang.String key)
API key.
|
YouTube.Captions.Download |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Captions.Download |
setOnBehalfOf(java.lang.String onBehalfOf)
ID of the Google+ Page for the channel that the request is be on behalf of
|
YouTube.Captions.Download |
setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
Note: This parameter is intended exclusively for YouTube content partners.
|
YouTube.Captions.Download |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Captions.Download |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Captions.Download |
setTfmt(java.lang.String tfmt)
The tfmt parameter specifies that the caption track should be returned in a specific
format.
|
YouTube.Captions.Download |
setTlang(java.lang.String tlang)
The tlang parameter specifies that the API response should return a translation of the
specified caption track.
|
YouTube.Captions.Download |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
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, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysprotected YouTube.Captions.Download(java.lang.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(java.io.OutputStream outputStream)
throws java.io.IOException
executeMediaAndDownloadTo in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>java.io.IOExceptionpublic java.io.InputStream executeMediaAsInputStream()
throws java.io.IOException
executeMediaAsInputStream in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>java.io.IOExceptionpublic com.google.api.client.http.HttpResponse executeMedia()
throws java.io.IOException
executeMedia in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>java.io.IOExceptionpublic com.google.api.client.http.HttpResponse executeUsingHead()
throws java.io.IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>java.io.IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws java.io.IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<java.lang.Void>java.io.IOExceptionpublic YouTube.Captions.Download setAlt(java.lang.String alt)
YouTubeRequestsetAlt in class YouTubeRequest<java.lang.Void>public YouTube.Captions.Download setFields(java.lang.String fields)
YouTubeRequestsetFields in class YouTubeRequest<java.lang.Void>public YouTube.Captions.Download setKey(java.lang.String key)
YouTubeRequestsetKey in class YouTubeRequest<java.lang.Void>public YouTube.Captions.Download setOauthToken(java.lang.String oauthToken)
YouTubeRequestsetOauthToken in class YouTubeRequest<java.lang.Void>public YouTube.Captions.Download setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeRequestsetPrettyPrint in class YouTubeRequest<java.lang.Void>public YouTube.Captions.Download setQuotaUser(java.lang.String quotaUser)
YouTubeRequestsetQuotaUser in class YouTubeRequest<java.lang.Void>public YouTube.Captions.Download setUserIp(java.lang.String userIp)
YouTubeRequestsetUserIp in class YouTubeRequest<java.lang.Void>public java.lang.String getId()
public YouTube.Captions.Download setId(java.lang.String id)
public java.lang.String getOnBehalfOf()
public YouTube.Captions.Download setOnBehalfOf(java.lang.String onBehalfOf)
public java.lang.String getOnBehalfOfContentOwner()
public YouTube.Captions.Download setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
public java.lang.String getTfmt()
public YouTube.Captions.Download setTfmt(java.lang.String tfmt)
public java.lang.String getTlang()
public YouTube.Captions.Download setTlang(java.lang.String tlang)
public YouTube.Captions.Download set(java.lang.String parameterName, java.lang.Object value)
set in class YouTubeRequest<java.lang.Void>