public class YouTube.Videos.Insert extends YouTubeRequest<Video>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
YouTube.Videos.Insert(String part,
Video content)
Uploads a video to YouTube and optionally sets the video's metadata.
|
protected |
YouTube.Videos.Insert(String part,
Video content,
AbstractInputStreamContent mediaContent)
Uploads a video to YouTube and optionally sets the video's metadata.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getAutoLevels()
The autoLevels parameter specifies whether the video should be auto-leveled by YouTube.
|
String |
getPart()
The part parameter serves two purposes in this operation.
|
Boolean |
getStabilize()
The stabilize parameter specifies whether the video should be stabilized by YouTube.
|
YouTube.Videos.Insert |
setAlt(String alt)
Data format for the response.
|
YouTube.Videos.Insert |
setAutoLevels(Boolean autoLevels)
The autoLevels parameter specifies whether the video should be auto-leveled by YouTube.
|
YouTube.Videos.Insert |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Videos.Insert |
setKey(String key)
API key.
|
YouTube.Videos.Insert |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Videos.Insert |
setPart(String part)
The part parameter serves two purposes in this operation.
|
YouTube.Videos.Insert |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Videos.Insert |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Videos.Insert |
setStabilize(Boolean stabilize)
The stabilize parameter specifies whether the video should be stabilized by YouTube.
|
YouTube.Videos.Insert |
setUserIp(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, 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, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected YouTube.Videos.Insert(String part, Video content)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. YouTube.initialize(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,
player, statistics, status, and topicDetails. However, 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
protected YouTube.Videos.Insert(String part, Video content, AbstractInputStreamContent mediaContent)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. YouTube.initialize(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.
The
part names that you can include in the parameter value are snippet, contentDetails,
player, statistics, status, and topicDetails. However, 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
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.public YouTube.Videos.Insert setAlt(String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<Video>
public YouTube.Videos.Insert setFields(String fields)
YouTubeRequest
setFields
in class YouTubeRequest<Video>
public YouTube.Videos.Insert setKey(String key)
YouTubeRequest
setKey
in class YouTubeRequest<Video>
public YouTube.Videos.Insert setOauthToken(String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<Video>
public YouTube.Videos.Insert setPrettyPrint(Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<Video>
public YouTube.Videos.Insert setQuotaUser(String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<Video>
public YouTube.Videos.Insert setUserIp(String userIp)
YouTubeRequest
setUserIp
in class YouTubeRequest<Video>
public String getPart()
public YouTube.Videos.Insert setPart(String part)
public Boolean getStabilize()
public YouTube.Videos.Insert setStabilize(Boolean stabilize)
public Boolean getAutoLevels()
public YouTube.Videos.Insert setAutoLevels(Boolean autoLevels)