public class YouTube.Videos.Insert extends YouTubeRequest<Video>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Insert(List<String> part,
Video content)
Inserts a new resource into this collection.
|
protected |
Insert(List<String> part,
Video content,
AbstractInputStreamContent mediaContent)
Inserts a new resource into this collection.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAutoLevels()
Should auto-levels be applied to the upload.
|
Boolean |
getNotifySubscribers()
Notify the channel subscribers about the new video.
|
String |
getOnBehalfOfContentOwner()
Note:* This parameter is intended exclusively for YouTube content partners.
|
String |
getOnBehalfOfContentOwnerChannel()
This parameter can only be used in a properly authorized request.
|
List<String> |
getPart()
The *part* parameter serves two purposes in this operation.
|
Boolean |
getStabilize()
Should stabilize be applied to the upload.
|
boolean |
isNotifySubscribers()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
YouTube.Videos.Insert |
set(String parameterName,
Object value) |
YouTube.Videos.Insert |
set$Xgafv(String $Xgafv)
V1 error format.
|
YouTube.Videos.Insert |
setAccessToken(String accessToken)
OAuth access token.
|
YouTube.Videos.Insert |
setAlt(String alt)
Data format for response.
|
YouTube.Videos.Insert |
setAutoLevels(Boolean autoLevels)
Should auto-levels be applied to the upload.
|
YouTube.Videos.Insert |
setCallback(String callback)
JSONP
|
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 |
setNotifySubscribers(Boolean notifySubscribers)
Notify the channel subscribers about the new video.
|
YouTube.Videos.Insert |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Videos.Insert |
setOnBehalfOfContentOwner(String onBehalfOfContentOwner)
*Note:* This parameter is intended exclusively for YouTube content partners.
|
YouTube.Videos.Insert |
setOnBehalfOfContentOwnerChannel(String onBehalfOfContentOwnerChannel)
This parameter can only be used in a properly authorized request.
|
YouTube.Videos.Insert |
setPart(List<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)
Should stabilize be applied to the upload.
|
YouTube.Videos.Insert |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
YouTube.Videos.Insert |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, 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 Insert(List<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.
Note that not all parts contain properties that can be set when inserting or updating a
video. 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 Videoprotected Insert(List<String> part, Video content, 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.
Note that not all parts contain properties that can be set when inserting or updating a
video. 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 set$Xgafv(String $Xgafv)
YouTubeRequestset$Xgafv in class YouTubeRequest<Video>public YouTube.Videos.Insert setAccessToken(String accessToken)
YouTubeRequestsetAccessToken in class YouTubeRequest<Video>public YouTube.Videos.Insert setAlt(String alt)
YouTubeRequestsetAlt in class YouTubeRequest<Video>public YouTube.Videos.Insert setCallback(String callback)
YouTubeRequestsetCallback in class YouTubeRequest<Video>public YouTube.Videos.Insert setFields(String fields)
YouTubeRequestsetFields in class YouTubeRequest<Video>public YouTube.Videos.Insert setKey(String key)
YouTubeRequestsetKey in class YouTubeRequest<Video>public YouTube.Videos.Insert setOauthToken(String oauthToken)
YouTubeRequestsetOauthToken in class YouTubeRequest<Video>public YouTube.Videos.Insert setPrettyPrint(Boolean prettyPrint)
YouTubeRequestsetPrettyPrint in class YouTubeRequest<Video>public YouTube.Videos.Insert setQuotaUser(String quotaUser)
YouTubeRequestsetQuotaUser in class YouTubeRequest<Video>public YouTube.Videos.Insert setUploadType(String uploadType)
YouTubeRequestsetUploadType in class YouTubeRequest<Video>public YouTube.Videos.Insert setUploadProtocol(String uploadProtocol)
YouTubeRequestsetUploadProtocol in class YouTubeRequest<Video>public List<String> getPart()
public YouTube.Videos.Insert setPart(List<String> part)
public Boolean getAutoLevels()
public YouTube.Videos.Insert setAutoLevels(Boolean autoLevels)
public Boolean getNotifySubscribers()
public YouTube.Videos.Insert setNotifySubscribers(Boolean notifySubscribers)
public boolean isNotifySubscribers()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Notify the channel subscribers about the new video. As default, the notification is enabled.
public String getOnBehalfOfContentOwner()
public YouTube.Videos.Insert setOnBehalfOfContentOwner(String onBehalfOfContentOwner)
public String getOnBehalfOfContentOwnerChannel()
public YouTube.Videos.Insert setOnBehalfOfContentOwnerChannel(String onBehalfOfContentOwnerChannel)
public Boolean getStabilize()
public YouTube.Videos.Insert setStabilize(Boolean stabilize)
public YouTube.Videos.Insert set(String parameterName, Object value)
set in class YouTubeRequest<Video>Copyright © 2011–2021 Google. All rights reserved.