public class YouTube.Videos.Rate extends YouTubeRequest<java.lang.Void>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
YouTube.Videos.Rate(java.lang.String id,
java.lang.String rating)
Add a like or dislike rating to a video or remove a rating from a video.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
The id parameter specifies the YouTube video ID of the video that is being rated or having its
rating removed.
|
java.lang.String |
getRating()
Specifies the rating to record.
|
YouTube.Videos.Rate |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTube.Videos.Rate |
setAlt(java.lang.String alt)
Data format for the response.
|
YouTube.Videos.Rate |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Videos.Rate |
setId(java.lang.String id)
The id parameter specifies the YouTube video ID of the video that is being rated or having
its rating removed.
|
YouTube.Videos.Rate |
setKey(java.lang.String key)
API key.
|
YouTube.Videos.Rate |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Videos.Rate |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Videos.Rate |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Videos.Rate |
setRating(java.lang.String rating)
Specifies the rating to record.
|
YouTube.Videos.Rate |
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.Rate(java.lang.String id, java.lang.String rating)
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.
id
- The id parameter specifies the YouTube video ID of the video that is being rated or having its
rating removed.rating
- Specifies the rating to record.public YouTube.Videos.Rate setAlt(java.lang.String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<java.lang.Void>
public YouTube.Videos.Rate setFields(java.lang.String fields)
YouTubeRequest
setFields
in class YouTubeRequest<java.lang.Void>
public YouTube.Videos.Rate setKey(java.lang.String key)
YouTubeRequest
setKey
in class YouTubeRequest<java.lang.Void>
public YouTube.Videos.Rate setOauthToken(java.lang.String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<java.lang.Void>
public YouTube.Videos.Rate setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<java.lang.Void>
public YouTube.Videos.Rate setQuotaUser(java.lang.String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<java.lang.Void>
public YouTube.Videos.Rate setUserIp(java.lang.String userIp)
YouTubeRequest
setUserIp
in class YouTubeRequest<java.lang.Void>
public java.lang.String getId()
public YouTube.Videos.Rate setId(java.lang.String id)
public java.lang.String getRating()
public YouTube.Videos.Rate setRating(java.lang.String rating)
public YouTube.Videos.Rate set(java.lang.String parameterName, java.lang.Object value)
set
in class YouTubeRequest<java.lang.Void>