public class YouTube.Videos.Rate extends YouTubeRequest<Void>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Rate(String id,
String rating)
Add a like or dislike rating to a video or remove a rating from a video.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
The id parameter specifies the YouTube video ID of the video that is being rated or having its
rating removed.
|
String |
getRating()
Specifies the rating to record.
|
YouTube.Videos.Rate |
set(String parameterName,
Object value) |
YouTube.Videos.Rate |
setAlt(String alt)
Data format for the response.
|
YouTube.Videos.Rate |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Videos.Rate |
setId(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(String key)
API key.
|
YouTube.Videos.Rate |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Videos.Rate |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Videos.Rate |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
YouTube.Videos.Rate |
setRating(String rating)
Specifies the rating to record.
|
YouTube.Videos.Rate |
setUserIp(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, 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 Rate(String id, 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(String alt)
YouTubeRequestsetAlt in class YouTubeRequest<Void>public YouTube.Videos.Rate setFields(String fields)
YouTubeRequestsetFields in class YouTubeRequest<Void>public YouTube.Videos.Rate setKey(String key)
YouTubeRequestsetKey in class YouTubeRequest<Void>public YouTube.Videos.Rate setOauthToken(String oauthToken)
YouTubeRequestsetOauthToken in class YouTubeRequest<Void>public YouTube.Videos.Rate setPrettyPrint(Boolean prettyPrint)
YouTubeRequestsetPrettyPrint in class YouTubeRequest<Void>public YouTube.Videos.Rate setQuotaUser(String quotaUser)
YouTubeRequestsetQuotaUser in class YouTubeRequest<Void>public YouTube.Videos.Rate setUserIp(String userIp)
YouTubeRequestsetUserIp in class YouTubeRequest<Void>public String getId()
public YouTube.Videos.Rate setId(String id)
public String getRating()
public YouTube.Videos.Rate setRating(String rating)
public YouTube.Videos.Rate set(String parameterName, Object value)
set in class YouTubeRequest<Void>Copyright © 2011–2019 Google. All rights reserved.