public class YouTube.Sponsors.List extends YouTubeRequest<SponsorListResponse>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
List(String part)
Lists sponsors for a channel.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getFilter()
The filter parameter specifies which channel sponsors to return.
|
Long |
getMaxResults()
The maxResults parameter specifies the maximum number of items that should be returned in the
result set.
|
String |
getPageToken()
The pageToken parameter identifies a specific page in the result set that should be returned.
|
String |
getPart()
The part parameter specifies the sponsor resource parts that the API response will include.
|
YouTube.Sponsors.List |
set(String parameterName,
Object value) |
YouTube.Sponsors.List |
setAlt(String alt)
Data format for the response.
|
YouTube.Sponsors.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Sponsors.List |
setFilter(String filter)
The filter parameter specifies which channel sponsors to return.
|
YouTube.Sponsors.List |
setKey(String key)
API key.
|
YouTube.Sponsors.List |
setMaxResults(Long maxResults)
The maxResults parameter specifies the maximum number of items that should be returned in
the result set.
|
YouTube.Sponsors.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Sponsors.List |
setPageToken(String pageToken)
The pageToken parameter identifies a specific page in the result set that should be
returned.
|
YouTube.Sponsors.List |
setPart(String part)
The part parameter specifies the sponsor resource parts that the API response will include.
|
YouTube.Sponsors.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Sponsors.List |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
YouTube.Sponsors.List |
setUserIp(String userIp)
Deprecated.
|
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, 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 List(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 HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<SponsorListResponse>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<SponsorListResponse>IOExceptionpublic YouTube.Sponsors.List setAlt(String alt)
YouTubeRequestsetAlt in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setFields(String fields)
YouTubeRequestsetFields in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setKey(String key)
YouTubeRequestsetKey in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setOauthToken(String oauthToken)
YouTubeRequestsetOauthToken in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setPrettyPrint(Boolean prettyPrint)
YouTubeRequestsetPrettyPrint in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setQuotaUser(String quotaUser)
YouTubeRequestsetQuotaUser in class YouTubeRequest<SponsorListResponse>public YouTube.Sponsors.List setUserIp(String userIp)
YouTubeRequestsetUserIp in class YouTubeRequest<SponsorListResponse>public String getPart()
public YouTube.Sponsors.List setPart(String part)
public String getFilter()
public YouTube.Sponsors.List setFilter(String filter)
public Long getMaxResults()
public YouTube.Sponsors.List setMaxResults(Long maxResults)
public String getPageToken()
public YouTube.Sponsors.List setPageToken(String pageToken)
public YouTube.Sponsors.List set(String parameterName, Object value)
set in class YouTubeRequest<SponsorListResponse>Copyright © 2011–2019 Google. All rights reserved.