public class YouTube.Sponsors.List extends YouTubeRequest<SponsorListResponse>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
YouTube.Sponsors.List(java.lang.String part)
Lists sponsors for a channel.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getFilter()
The filter parameter specifies which channel sponsors to return.
|
java.lang.Long |
getMaxResults()
The maxResults parameter specifies the maximum number of items that should be returned in the
result set.
|
java.lang.String |
getPageToken()
The pageToken parameter identifies a specific page in the result set that should be returned.
|
java.lang.String |
getPart()
The part parameter specifies the sponsor resource parts that the API response will include.
|
YouTube.Sponsors.List |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTube.Sponsors.List |
setAlt(java.lang.String alt)
Data format for the response.
|
YouTube.Sponsors.List |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Sponsors.List |
setFilter(java.lang.String filter)
The filter parameter specifies which channel sponsors to return.
|
YouTube.Sponsors.List |
setKey(java.lang.String key)
API key.
|
YouTube.Sponsors.List |
setMaxResults(java.lang.Long maxResults)
The maxResults parameter specifies the maximum number of items that should be returned in
the result set.
|
YouTube.Sponsors.List |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Sponsors.List |
setPageToken(java.lang.String pageToken)
The pageToken parameter identifies a specific page in the result set that should be
returned.
|
YouTube.Sponsors.List |
setPart(java.lang.String part)
The part parameter specifies the sponsor resource parts that the API response will include.
|
YouTube.Sponsors.List |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Sponsors.List |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Sponsors.List |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysprotected YouTube.Sponsors.List(java.lang.String part)
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 specifies the sponsor resource parts that the API response will include.
Supported values are id and snippet.public com.google.api.client.http.HttpResponse executeUsingHead()
throws java.io.IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<SponsorListResponse>java.io.IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws java.io.IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<SponsorListResponse>java.io.IOExceptionpublic YouTube.Sponsors.List setAlt(java.lang.String alt)
YouTubeRequestsetAlt in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setFields(java.lang.String fields)
YouTubeRequestsetFields in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setKey(java.lang.String key)
YouTubeRequestsetKey in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setOauthToken(java.lang.String oauthToken)
YouTubeRequestsetOauthToken in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeRequestsetPrettyPrint in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setQuotaUser(java.lang.String quotaUser)
YouTubeRequestsetQuotaUser in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setUserIp(java.lang.String userIp)
YouTubeRequestsetUserIp in class YouTubeRequest<SponsorListResponse>public java.lang.String getPart()
public YouTube.Sponsors.List setPart(java.lang.String part)
public java.lang.String getFilter()
public YouTube.Sponsors.List setFilter(java.lang.String filter)
public java.lang.Long getMaxResults()
public YouTube.Sponsors.List setMaxResults(java.lang.Long maxResults)
public java.lang.String getPageToken()
public YouTube.Sponsors.List setPageToken(java.lang.String pageToken)
public YouTube.Sponsors.List set(java.lang.String parameterName, java.lang.Object value)
set in class YouTubeRequest<SponsorListResponse>