public class YouTube.Search.List extends YouTubeRequest<SearchListResponse>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
USER_AGENT_SUFFIX
Modifier | Constructor and Description |
---|---|
protected |
List(List<String> part)
Retrieves a list of search resources
Create a request for the method "search.list".
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getChannelId()
Filter on resources belonging to this channelId.
|
String |
getChannelType()
Add a filter on the channel search.
|
String |
getEventType()
Filter on the livestream status of the videos.
|
Boolean |
getForContentOwner()
Search owned by a content owner.
|
Boolean |
getForDeveloper()
Restrict the search to only retrieve videos uploaded using the project id of the authenticated
user.
|
Boolean |
getForMine()
Search for the private videos of the authenticated user.
|
String |
getLocation()
Filter on location of the video
|
String |
getLocationRadius()
Filter on distance from the location (specified above).
|
Long |
getMaxResults()
The *maxResults* parameter specifies the maximum number of items that should be returned in the
result set.
|
String |
getOnBehalfOfContentOwner()
Note:* This parameter is intended exclusively for YouTube content partners.
|
String |
getOrder()
Sort order of the results.
|
String |
getPageToken()
The *pageToken* parameter identifies a specific page in the result set that should be returned.
|
List<String> |
getPart()
The *part* parameter specifies a comma-separated list of one or more search resource properties
that the API response will include.
|
String |
getPublishedAfter()
Filter on resources published after this date.
|
String |
getPublishedBefore()
Filter on resources published before this date.
|
String |
getQ()
Textual search terms to match.
|
String |
getRegionCode()
Display the content as seen by viewers in this country.
|
String |
getRelatedToVideoId()
Search related to a resource.
|
String |
getRelevanceLanguage()
Return results relevant to this language.
|
String |
getSafeSearch()
Indicates whether the search results should include restricted content as well as standard content.
|
String |
getTopicId()
Restrict results to a particular topic.
|
List<String> |
getType()
Restrict results to a particular set of resource types from One Platform.
|
String |
getVideoCaption()
Filter on the presence of captions on the videos.
|
String |
getVideoCategoryId()
Filter on videos in a specific category.
|
String |
getVideoDefinition()
Filter on the definition of the videos.
|
String |
getVideoDimension()
Filter on 3d videos.
|
String |
getVideoDuration()
Filter on the duration of the videos.
|
String |
getVideoEmbeddable()
Filter on embeddable videos.
|
String |
getVideoLicense()
Filter on the license of the videos.
|
String |
getVideoSyndicated()
Filter on syndicated videos.
|
String |
getVideoType()
Filter on videos of a specific type.
|
YouTube.Search.List |
set(String parameterName,
Object value) |
YouTube.Search.List |
set$Xgafv(String $Xgafv)
V1 error format.
|
YouTube.Search.List |
setAccessToken(String accessToken)
OAuth access token.
|
YouTube.Search.List |
setAlt(String alt)
Data format for response.
|
YouTube.Search.List |
setCallback(String callback)
JSONP
|
YouTube.Search.List |
setChannelId(String channelId)
Filter on resources belonging to this channelId.
|
YouTube.Search.List |
setChannelType(String channelType)
Add a filter on the channel search.
|
YouTube.Search.List |
setEventType(String eventType)
Filter on the livestream status of the videos.
|
YouTube.Search.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Search.List |
setForContentOwner(Boolean forContentOwner)
Search owned by a content owner.
|
YouTube.Search.List |
setForDeveloper(Boolean forDeveloper)
Restrict the search to only retrieve videos uploaded using the project id of the
authenticated user.
|
YouTube.Search.List |
setForMine(Boolean forMine)
Search for the private videos of the authenticated user.
|
YouTube.Search.List |
setKey(String key)
API key.
|
YouTube.Search.List |
setLocation(String location)
Filter on location of the video
|
YouTube.Search.List |
setLocationRadius(String locationRadius)
Filter on distance from the location (specified above).
|
YouTube.Search.List |
setMaxResults(Long maxResults)
The *maxResults* parameter specifies the maximum number of items that should be returned in
the result set.
|
YouTube.Search.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Search.List |
setOnBehalfOfContentOwner(String onBehalfOfContentOwner)
*Note:* This parameter is intended exclusively for YouTube content partners.
|
YouTube.Search.List |
setOrder(String order)
Sort order of the results.
|
YouTube.Search.List |
setPageToken(String pageToken)
The *pageToken* parameter identifies a specific page in the result set that should be
returned.
|
YouTube.Search.List |
setPart(List<String> part)
The *part* parameter specifies a comma-separated list of one or more search resource
properties that the API response will include.
|
YouTube.Search.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Search.List |
setPublishedAfter(String publishedAfter)
Filter on resources published after this date.
|
YouTube.Search.List |
setPublishedBefore(String publishedBefore)
Filter on resources published before this date.
|
YouTube.Search.List |
setQ(String q)
Textual search terms to match.
|
YouTube.Search.List |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Search.List |
setRegionCode(String regionCode)
Display the content as seen by viewers in this country.
|
YouTube.Search.List |
setRelatedToVideoId(String relatedToVideoId)
Search related to a resource.
|
YouTube.Search.List |
setRelevanceLanguage(String relevanceLanguage)
Return results relevant to this language.
|
YouTube.Search.List |
setSafeSearch(String safeSearch)
Indicates whether the search results should include restricted content as well as standard
content.
|
YouTube.Search.List |
setTopicId(String topicId)
Restrict results to a particular topic.
|
YouTube.Search.List |
setType(List<String> type)
Restrict results to a particular set of resource types from One Platform.
|
YouTube.Search.List |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
YouTube.Search.List |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
YouTube.Search.List |
setVideoCaption(String videoCaption)
Filter on the presence of captions on the videos.
|
YouTube.Search.List |
setVideoCategoryId(String videoCategoryId)
Filter on videos in a specific category.
|
YouTube.Search.List |
setVideoDefinition(String videoDefinition)
Filter on the definition of the videos.
|
YouTube.Search.List |
setVideoDimension(String videoDimension)
Filter on 3d videos.
|
YouTube.Search.List |
setVideoDuration(String videoDuration)
Filter on the duration of the videos.
|
YouTube.Search.List |
setVideoEmbeddable(String videoEmbeddable)
Filter on embeddable videos.
|
YouTube.Search.List |
setVideoLicense(String videoLicense)
Filter on the license of the videos.
|
YouTube.Search.List |
setVideoSyndicated(String videoSyndicated)
Filter on syndicated videos.
|
YouTube.Search.List |
setVideoType(String videoType)
Filter on videos of a specific type.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected List(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 a comma-separated list of one or more search resource properties that
the API response will include. Set the parameter value to snippet.public HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class AbstractGoogleClientRequest<SearchListResponse>
IOException
public HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class AbstractGoogleClientRequest<SearchListResponse>
IOException
public YouTube.Search.List set$Xgafv(String $Xgafv)
YouTubeRequest
set$Xgafv
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setAccessToken(String accessToken)
YouTubeRequest
setAccessToken
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setAlt(String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setCallback(String callback)
YouTubeRequest
setCallback
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setFields(String fields)
YouTubeRequest
setFields
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setKey(String key)
YouTubeRequest
setKey
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setOauthToken(String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setPrettyPrint(Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setQuotaUser(String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setUploadType(String uploadType)
YouTubeRequest
setUploadType
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setUploadProtocol(String uploadProtocol)
YouTubeRequest
setUploadProtocol
in class YouTubeRequest<SearchListResponse>
public List<String> getPart()
public YouTube.Search.List setPart(List<String> part)
public String getChannelId()
public YouTube.Search.List setChannelId(String channelId)
public String getChannelType()
public YouTube.Search.List setChannelType(String channelType)
public String getEventType()
public YouTube.Search.List setEventType(String eventType)
public Boolean getForContentOwner()
public YouTube.Search.List setForContentOwner(Boolean forContentOwner)
public Boolean getForDeveloper()
public YouTube.Search.List setForDeveloper(Boolean forDeveloper)
public Boolean getForMine()
public YouTube.Search.List setForMine(Boolean forMine)
public String getLocation()
public YouTube.Search.List setLocation(String location)
public String getLocationRadius()
public YouTube.Search.List setLocationRadius(String locationRadius)
public Long getMaxResults()
public YouTube.Search.List setMaxResults(Long maxResults)
public String getOnBehalfOfContentOwner()
public YouTube.Search.List setOnBehalfOfContentOwner(String onBehalfOfContentOwner)
public String getOrder()
public YouTube.Search.List setOrder(String order)
public String getPageToken()
public YouTube.Search.List setPageToken(String pageToken)
public String getPublishedAfter()
public YouTube.Search.List setPublishedAfter(String publishedAfter)
public String getPublishedBefore()
public YouTube.Search.List setPublishedBefore(String publishedBefore)
public String getQ()
public YouTube.Search.List setQ(String q)
public String getRegionCode()
public YouTube.Search.List setRegionCode(String regionCode)
public String getRelatedToVideoId()
public YouTube.Search.List setRelatedToVideoId(String relatedToVideoId)
public String getRelevanceLanguage()
public YouTube.Search.List setRelevanceLanguage(String relevanceLanguage)
public String getSafeSearch()
public YouTube.Search.List setSafeSearch(String safeSearch)
public String getTopicId()
public YouTube.Search.List setTopicId(String topicId)
public List<String> getType()
public YouTube.Search.List setType(List<String> type)
public String getVideoCaption()
public YouTube.Search.List setVideoCaption(String videoCaption)
public String getVideoCategoryId()
public YouTube.Search.List setVideoCategoryId(String videoCategoryId)
public String getVideoDefinition()
public YouTube.Search.List setVideoDefinition(String videoDefinition)
public String getVideoDimension()
public YouTube.Search.List setVideoDimension(String videoDimension)
public String getVideoDuration()
public YouTube.Search.List setVideoDuration(String videoDuration)
public String getVideoEmbeddable()
public YouTube.Search.List setVideoEmbeddable(String videoEmbeddable)
public String getVideoLicense()
public YouTube.Search.List setVideoLicense(String videoLicense)
public String getVideoSyndicated()
public YouTube.Search.List setVideoSyndicated(String videoSyndicated)
public String getVideoType()
public YouTube.Search.List setVideoType(String videoType)
public YouTube.Search.List set(String parameterName, Object value)
set
in class YouTubeRequest<SearchListResponse>
Copyright © 2011–2022 Google. All rights reserved.