public class YouTube.Search.List extends YouTubeRequest<SearchListResponse>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
YouTube.Search.List(java.lang.String part)
Returns a collection of search results that match the query parameters specified in the API
request.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getChannelId()
The channelId parameter indicates that the API response should only contain resources created by
the channel
|
java.lang.String |
getChannelType()
The channelType parameter lets you restrict a search to a particular type of channel.
|
java.lang.String |
getEventType()
The eventType parameter restricts a search to broadcast events.
|
java.lang.Boolean |
getForContentOwner()
Note: This parameter is intended exclusively for YouTube content partners.
|
java.lang.Boolean |
getForDeveloper()
The forDeveloper parameter restricts the search to only retrieve videos uploaded via the
developer's application or website.
|
java.lang.Boolean |
getForMine()
The forMine parameter restricts the search to only retrieve videos owned by the authenticated user.
|
java.lang.String |
getLocation()
The location parameter restricts a search to videos that have a geographical location specified in
their metadata.
|
java.lang.String |
getLocationRadius()
The locationRadius, in conjunction with the location parameter, defines a geographic area.
|
java.lang.Long |
getMaxResults()
The maxResults parameter specifies the maximum number of items that should be returned in the
result set.
|
java.lang.String |
getOnBehalfOfContentOwner()
Note: This parameter is intended exclusively for YouTube content partners.
|
java.lang.String |
getOrder()
The order parameter specifies the method that will be used to order resources in the API response.
|
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 a comma-separated list of one or more search resource properties that
the API response will include.
|
com.google.api.client.util.DateTime |
getPublishedAfter()
The publishedAfter parameter indicates that the API response should only contain resources created
after the specified time.
|
com.google.api.client.util.DateTime |
getPublishedBefore()
The publishedBefore parameter indicates that the API response should only contain resources created
before the specified time.
|
java.lang.String |
getQ()
The q parameter specifies the query term to search for.
|
java.lang.String |
getRegionCode()
The regionCode parameter instructs the API to return search results for the specified country.
|
java.lang.String |
getRelatedToVideoId()
The relatedToVideoId parameter retrieves a list of videos that are related to the video that the
parameter value identifies.
|
java.lang.String |
getRelevanceLanguage()
The relevanceLanguage parameter instructs the API to return search results that are most relevant
to the specified language.
|
java.lang.String |
getSafeSearch()
The safeSearch parameter indicates whether the search results should include restricted content as
well as standard content.
|
java.lang.String |
getTopicId()
The topicId parameter indicates that the API response should only contain resources associated with
the specified topic.
|
java.lang.String |
getType()
The type parameter restricts a search query to only retrieve a particular type of resource.
|
java.lang.String |
getVideoCaption()
The videoCaption parameter indicates whether the API should filter video search results based on
whether they have captions.
|
java.lang.String |
getVideoCategoryId()
The videoCategoryId parameter filters video search results based on their category.
|
java.lang.String |
getVideoDefinition()
The videoDefinition parameter lets you restrict a search to only include either high definition
(HD) or standard definition (SD) videos.
|
java.lang.String |
getVideoDimension()
The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos.
|
java.lang.String |
getVideoDuration()
The videoDuration parameter filters video search results based on their duration.
|
java.lang.String |
getVideoEmbeddable()
The videoEmbeddable parameter lets you to restrict a search to only videos that can be embedded
into a webpage.
|
java.lang.String |
getVideoLicense()
The videoLicense parameter filters search results to only include videos with a particular license.
|
java.lang.String |
getVideoSyndicated()
The videoSyndicated parameter lets you to restrict a search to only videos that can be played
outside youtube.com.
|
java.lang.String |
getVideoType()
The videoType parameter lets you restrict a search to a particular type of videos.
|
YouTube.Search.List |
set(java.lang.String parameterName,
java.lang.Object value) |
YouTube.Search.List |
setAlt(java.lang.String alt)
Data format for the response.
|
YouTube.Search.List |
setChannelId(java.lang.String channelId)
The channelId parameter indicates that the API response should only contain resources
created by the channel
|
YouTube.Search.List |
setChannelType(java.lang.String channelType)
The channelType parameter lets you restrict a search to a particular type of channel.
|
YouTube.Search.List |
setEventType(java.lang.String eventType)
The eventType parameter restricts a search to broadcast events.
|
YouTube.Search.List |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
YouTube.Search.List |
setForContentOwner(java.lang.Boolean forContentOwner)
Note: This parameter is intended exclusively for YouTube content partners.
|
YouTube.Search.List |
setForDeveloper(java.lang.Boolean forDeveloper)
The forDeveloper parameter restricts the search to only retrieve videos uploaded via the
developer's application or website.
|
YouTube.Search.List |
setForMine(java.lang.Boolean forMine)
The forMine parameter restricts the search to only retrieve videos owned by the
authenticated user.
|
YouTube.Search.List |
setKey(java.lang.String key)
API key.
|
YouTube.Search.List |
setLocation(java.lang.String location)
The location parameter restricts a search to videos that have a geographical location
specified in their metadata.
|
YouTube.Search.List |
setLocationRadius(java.lang.String locationRadius)
The locationRadius, in conjunction with the location parameter, defines a geographic area.
|
YouTube.Search.List |
setMaxResults(java.lang.Long maxResults)
The maxResults parameter specifies the maximum number of items that should be returned in
the result set.
|
YouTube.Search.List |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
YouTube.Search.List |
setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
Note: This parameter is intended exclusively for YouTube content partners.
|
YouTube.Search.List |
setOrder(java.lang.String order)
The order parameter specifies the method that will be used to order resources in the API
response.
|
YouTube.Search.List |
setPageToken(java.lang.String pageToken)
The pageToken parameter identifies a specific page in the result set that should be
returned.
|
YouTube.Search.List |
setPart(java.lang.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(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
YouTube.Search.List |
setPublishedAfter(com.google.api.client.util.DateTime publishedAfter)
The publishedAfter parameter indicates that the API response should only contain resources
created after the specified time.
|
YouTube.Search.List |
setPublishedBefore(com.google.api.client.util.DateTime publishedBefore)
The publishedBefore parameter indicates that the API response should only contain resources
created before the specified time.
|
YouTube.Search.List |
setQ(java.lang.String q)
The q parameter specifies the query term to search for.
|
YouTube.Search.List |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
YouTube.Search.List |
setRegionCode(java.lang.String regionCode)
The regionCode parameter instructs the API to return search results for the specified
country.
|
YouTube.Search.List |
setRelatedToVideoId(java.lang.String relatedToVideoId)
The relatedToVideoId parameter retrieves a list of videos that are related to the video
that the parameter value identifies.
|
YouTube.Search.List |
setRelevanceLanguage(java.lang.String relevanceLanguage)
The relevanceLanguage parameter instructs the API to return search results that are most
relevant to the specified language.
|
YouTube.Search.List |
setSafeSearch(java.lang.String safeSearch)
The safeSearch parameter indicates whether the search results should include restricted
content as well as standard content.
|
YouTube.Search.List |
setTopicId(java.lang.String topicId)
The topicId parameter indicates that the API response should only contain resources
associated with the specified topic.
|
YouTube.Search.List |
setType(java.lang.String type)
The type parameter restricts a search query to only retrieve a particular type of resource.
|
YouTube.Search.List |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
YouTube.Search.List |
setVideoCaption(java.lang.String videoCaption)
The videoCaption parameter indicates whether the API should filter video search results
based on whether they have captions.
|
YouTube.Search.List |
setVideoCategoryId(java.lang.String videoCategoryId)
The videoCategoryId parameter filters video search results based on their category.
|
YouTube.Search.List |
setVideoDefinition(java.lang.String videoDefinition)
The videoDefinition parameter lets you restrict a search to only include either high
definition (HD) or standard definition (SD) videos.
|
YouTube.Search.List |
setVideoDimension(java.lang.String videoDimension)
The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos.
|
YouTube.Search.List |
setVideoDuration(java.lang.String videoDuration)
The videoDuration parameter filters video search results based on their duration.
|
YouTube.Search.List |
setVideoEmbeddable(java.lang.String videoEmbeddable)
The videoEmbeddable parameter lets you to restrict a search to only videos that can be
embedded into a webpage.
|
YouTube.Search.List |
setVideoLicense(java.lang.String videoLicense)
The videoLicense parameter filters search results to only include videos with a particular
license.
|
YouTube.Search.List |
setVideoSyndicated(java.lang.String videoSyndicated)
The videoSyndicated parameter lets you to restrict a search to only videos that can be
played outside youtube.com.
|
YouTube.Search.List |
setVideoType(java.lang.String videoType)
The videoType parameter lets you restrict a search to a particular type of videos.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, 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, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
protected YouTube.Search.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 a comma-separated list of one or more search resource properties that
the API response will include. The part names that you can include in the parameter value
are id and snippet.
If the parameter identifies a property that contains child properties,
the child properties will be included in the response. For example, in a search result,
the snippet property contains other properties that identify the result's title,
description, and so forth. If you set part=snippet, the API response will also contain all
of those nested properties.public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<SearchListResponse>
java.io.IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<SearchListResponse>
java.io.IOException
public YouTube.Search.List setAlt(java.lang.String alt)
YouTubeRequest
setAlt
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setFields(java.lang.String fields)
YouTubeRequest
setFields
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setKey(java.lang.String key)
YouTubeRequest
setKey
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setOauthToken(java.lang.String oauthToken)
YouTubeRequest
setOauthToken
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setPrettyPrint(java.lang.Boolean prettyPrint)
YouTubeRequest
setPrettyPrint
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setQuotaUser(java.lang.String quotaUser)
YouTubeRequest
setQuotaUser
in class YouTubeRequest<SearchListResponse>
public YouTube.Search.List setUserIp(java.lang.String userIp)
YouTubeRequest
setUserIp
in class YouTubeRequest<SearchListResponse>
public java.lang.String getPart()
public YouTube.Search.List setPart(java.lang.String part)
public java.lang.String getEventType()
public YouTube.Search.List setEventType(java.lang.String eventType)
public java.lang.String getChannelId()
public YouTube.Search.List setChannelId(java.lang.String channelId)
public java.lang.Boolean getForDeveloper()
public YouTube.Search.List setForDeveloper(java.lang.Boolean forDeveloper)
public java.lang.String getVideoSyndicated()
public YouTube.Search.List setVideoSyndicated(java.lang.String videoSyndicated)
public java.lang.String getChannelType()
public YouTube.Search.List setChannelType(java.lang.String channelType)
public java.lang.String getVideoCaption()
public YouTube.Search.List setVideoCaption(java.lang.String videoCaption)
public com.google.api.client.util.DateTime getPublishedAfter()
public YouTube.Search.List setPublishedAfter(com.google.api.client.util.DateTime publishedAfter)
public java.lang.String getOnBehalfOfContentOwner()
public YouTube.Search.List setOnBehalfOfContentOwner(java.lang.String onBehalfOfContentOwner)
public java.lang.String getPageToken()
public YouTube.Search.List setPageToken(java.lang.String pageToken)
public java.lang.Boolean getForContentOwner()
public YouTube.Search.List setForContentOwner(java.lang.Boolean forContentOwner)
public java.lang.String getRegionCode()
public YouTube.Search.List setRegionCode(java.lang.String regionCode)
public java.lang.String getLocation()
public YouTube.Search.List setLocation(java.lang.String location)
public java.lang.String getLocationRadius()
public YouTube.Search.List setLocationRadius(java.lang.String locationRadius)
public java.lang.String getVideoType()
public YouTube.Search.List setVideoType(java.lang.String videoType)
public java.lang.String getType()
public YouTube.Search.List setType(java.lang.String type)
public java.lang.String getTopicId()
public YouTube.Search.List setTopicId(java.lang.String topicId)
public com.google.api.client.util.DateTime getPublishedBefore()
public YouTube.Search.List setPublishedBefore(com.google.api.client.util.DateTime publishedBefore)
public java.lang.String getVideoDimension()
public YouTube.Search.List setVideoDimension(java.lang.String videoDimension)
public java.lang.String getVideoLicense()
public YouTube.Search.List setVideoLicense(java.lang.String videoLicense)
public java.lang.Long getMaxResults()
public YouTube.Search.List setMaxResults(java.lang.Long maxResults)
public java.lang.String getRelatedToVideoId()
public YouTube.Search.List setRelatedToVideoId(java.lang.String relatedToVideoId)
public java.lang.String getVideoDefinition()
public YouTube.Search.List setVideoDefinition(java.lang.String videoDefinition)
public java.lang.String getVideoDuration()
public YouTube.Search.List setVideoDuration(java.lang.String videoDuration)
public java.lang.String getRelevanceLanguage()
public YouTube.Search.List setRelevanceLanguage(java.lang.String relevanceLanguage)
public java.lang.Boolean getForMine()
public YouTube.Search.List setForMine(java.lang.Boolean forMine)
public java.lang.String getQ()
public YouTube.Search.List setQ(java.lang.String q)
public java.lang.String getSafeSearch()
public YouTube.Search.List setSafeSearch(java.lang.String safeSearch)
public java.lang.String getVideoEmbeddable()
public YouTube.Search.List setVideoEmbeddable(java.lang.String videoEmbeddable)
public java.lang.String getVideoCategoryId()
public YouTube.Search.List setVideoCategoryId(java.lang.String videoCategoryId)
public java.lang.String getOrder()
public YouTube.Search.List setOrder(java.lang.String order)
public YouTube.Search.List set(java.lang.String parameterName, java.lang.Object value)
set
in class YouTubeRequest<SearchListResponse>