public class YouTube.Captions.Update extends YouTubeRequest<Caption>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
YouTube.Captions.Update(java.lang.String part,
Caption content)
Updates a caption track.
|
protected |
YouTube.Captions.Update(java.lang.String part,
Caption content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Updates a caption track.
|
Modifier and Type | Method and Description |
---|---|
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 |
getPart()
The part parameter serves two purposes in this operation.
|
java.lang.Boolean |
getSync()
Note: The API server only processes the parameter value if the request contains an updated caption
file.
|
YouTube.Captions.Update |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTube.Captions.Update |
setAlt(java.lang.String alt)
Data format for the response.
|
YouTube.Captions.Update |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Captions.Update |
setKey(java.lang.String key)
API key.
|
YouTube.Captions.Update |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Captions.Update |
setOnBehalfOf(java.lang.String onBehalfOf)
ID of the Google+ Page for the channel that the request is be on behalf of
|
YouTube.Captions.Update |
setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
Note: This parameter is intended exclusively for YouTube content partners.
|
YouTube.Captions.Update |
setPart(java.lang.String part)
The part parameter serves two purposes in this operation.
|
YouTube.Captions.Update |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Captions.Update |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Captions.Update |
setSync(java.lang.Boolean sync)
Note: The API server only processes the parameter value if the request contains an updated
caption file.
|
YouTube.Captions.Update |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
protected YouTube.Captions.Update(java.lang.String part, Caption content)
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.
part
- The part parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. Set
the property value to snippet if you are updating the track's draft status. Otherwise, set
the property value to id.content
- the Caption
protected YouTube.Captions.Update(java.lang.String part, Caption content, com.google.api.client.http.AbstractInputStreamContent mediaContent)
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.
This constructor should be used for uploading media content.
part
- The part parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include. Set
the property value to snippet if you are updating the track's draft status. Otherwise, set
the property value to id.content
- the Caption
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.public YouTube.Captions.Update setAlt(java.lang.String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<Caption>
public YouTube.Captions.Update setFields(java.lang.String fields)
YouTubeRequest
setFields
in class YouTubeRequest<Caption>
public YouTube.Captions.Update setKey(java.lang.String key)
YouTubeRequest
setKey
in class YouTubeRequest<Caption>
public YouTube.Captions.Update setOauthToken(java.lang.String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<Caption>
public YouTube.Captions.Update setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<Caption>
public YouTube.Captions.Update setQuotaUser(java.lang.String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<Caption>
public YouTube.Captions.Update setUserIp(java.lang.String userIp)
YouTubeRequest
setUserIp
in class YouTubeRequest<Caption>
public java.lang.String getPart()
public YouTube.Captions.Update setPart(java.lang.String part)
public java.lang.String getOnBehalfOf()
public YouTube.Captions.Update setOnBehalfOf(java.lang.String onBehalfOf)
public java.lang.String getOnBehalfOfContentOwner()
public YouTube.Captions.Update setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
public java.lang.Boolean getSync()
public YouTube.Captions.Update setSync(java.lang.Boolean sync)
public YouTube.Captions.Update set(java.lang.String parameterName, java.lang.Object value)
set
in class YouTubeRequest<Caption>