public class YouTube.PlaylistItems.Insert extends YouTubeRequest<PlaylistItem>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Insert(java.lang.String part,
PlaylistItem content)
Adds a resource to a playlist.
|
| 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.PlaylistItems.Insert |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTube.PlaylistItems.Insert |
setAlt(java.lang.String alt)
Data format for the response.
|
YouTube.PlaylistItems.Insert |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.PlaylistItems.Insert |
setKey(java.lang.String key)
API key.
|
YouTube.PlaylistItems.Insert |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.PlaylistItems.Insert |
setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
Note: This parameter is intended exclusively for YouTube content partners.
|
YouTube.PlaylistItems.Insert |
setPart(java.lang.String part)
The part parameter serves two purposes in this operation.
|
YouTube.PlaylistItems.Insert |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.PlaylistItems.Insert |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
YouTube.PlaylistItems.Insert |
setUserIp(java.lang.String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, 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, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected Insert(java.lang.String part,
PlaylistItem 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.content - the PlaylistItempublic YouTube.PlaylistItems.Insert setAlt(java.lang.String alt)
YouTubeRequestsetAlt in class YouTubeRequest<PlaylistItem>public YouTube.PlaylistItems.Insert setFields(java.lang.String fields)
YouTubeRequestsetFields in class YouTubeRequest<PlaylistItem>public YouTube.PlaylistItems.Insert setKey(java.lang.String key)
YouTubeRequestsetKey in class YouTubeRequest<PlaylistItem>public YouTube.PlaylistItems.Insert setOauthToken(java.lang.String oauthToken)
YouTubeRequestsetOauthToken in class YouTubeRequest<PlaylistItem>public YouTube.PlaylistItems.Insert setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeRequestsetPrettyPrint in class YouTubeRequest<PlaylistItem>public YouTube.PlaylistItems.Insert setQuotaUser(java.lang.String quotaUser)
YouTubeRequestsetQuotaUser in class YouTubeRequest<PlaylistItem>public YouTube.PlaylistItems.Insert setUserIp(java.lang.String userIp)
YouTubeRequestsetUserIp in class YouTubeRequest<PlaylistItem>public java.lang.String getPart()
public YouTube.PlaylistItems.Insert setPart(java.lang.String part)
public java.lang.String getOnBehalfOfContentOwner()
public YouTube.PlaylistItems.Insert setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
public YouTube.PlaylistItems.Insert set(java.lang.String parameterName, java.lang.Object value)
set in class YouTubeRequest<PlaylistItem>