public class YouTube.Videos.Update extends YouTubeRequest<Video>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
YouTube.Videos.Update(java.lang.String part,
Video content)
Updates a video's metadata.
|
Modifier and Type | Method and Description |
---|---|
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.
|
YouTube.Videos.Update |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTube.Videos.Update |
setAlt(java.lang.String alt)
Data format for the response.
|
YouTube.Videos.Update |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Videos.Update |
setKey(java.lang.String key)
API key.
|
YouTube.Videos.Update |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Videos.Update |
setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
Note: This parameter is intended exclusively for YouTube content partners.
|
YouTube.Videos.Update |
setPart(java.lang.String part)
The part parameter serves two purposes in this operation.
|
YouTube.Videos.Update |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Videos.Update |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Videos.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.Videos.Update(java.lang.String part, Video 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.
The
part names that you can include in the parameter value are snippet, contentDetails,
fileDetails, liveStreamingDetails, localizations, player, processingDetails,
recordingDetails, statistics, status, suggestions, and topicDetails.
Note that this method
will override the existing values for all of the mutable properties that are contained in
any parts that the parameter value specifies. For example, a video's privacy setting is
contained in the status part. As such, if your request is updating a private video, and
the request's part parameter value includes the status part, the video's privacy setting
will be updated to whatever value the request body specifies. If the request body does not
specify a value, the existing privacy setting will be removed and the video will revert to
the default privacy setting.
In addition, not all of those parts contain properties that
can be set when setting or updating a video's metadata. For example, the statistics object
encapsulates statistics that YouTube calculates for a video and does not contain values
that you can set or modify. If the parameter value specifies a part that does not contain
mutable values, that part will still be included in the API response.content
- the Video
public YouTube.Videos.Update setAlt(java.lang.String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<Video>
public YouTube.Videos.Update setFields(java.lang.String fields)
YouTubeRequest
setFields
in class YouTubeRequest<Video>
public YouTube.Videos.Update setKey(java.lang.String key)
YouTubeRequest
setKey
in class YouTubeRequest<Video>
public YouTube.Videos.Update setOauthToken(java.lang.String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<Video>
public YouTube.Videos.Update setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<Video>
public YouTube.Videos.Update setQuotaUser(java.lang.String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<Video>
public YouTube.Videos.Update setUserIp(java.lang.String userIp)
YouTubeRequest
setUserIp
in class YouTubeRequest<Video>
public java.lang.String getPart()
public YouTube.Videos.Update setPart(java.lang.String part)
public java.lang.String getOnBehalfOfContentOwner()
public YouTube.Videos.Update setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
public YouTube.Videos.Update set(java.lang.String parameterName, java.lang.Object value)
set
in class YouTubeRequest<Video>