public final class SearchResult extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the YouTube Data API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders()
is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SearchResult() |
Modifier and Type | Method and Description |
---|---|
String |
getEtag()
Etag of this resource.
|
ResourceId |
getId()
The id object contains information that can be used to uniquely identify the resource that
matches the search request.
|
String |
getKind()
The kind, fixed to "youtube#searchResult".
|
SearchResultSnippet |
getSnippet()
The snippet object contains basic details about a search result, such as its title or
description.
|
SearchResult |
setEtag(String etag)
Etag of this resource.
|
SearchResult |
setId(ResourceId id)
The id object contains information that can be used to uniquely identify the resource that
matches the search request.
|
SearchResult |
setKind(String kind)
The kind, fixed to "youtube#searchResult".
|
SearchResult |
setSnippet(SearchResultSnippet snippet)
The snippet object contains basic details about a search result, such as its title or
description.
|
clone, getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getEtag()
null
.public SearchResult setEtag(String etag)
null
.public ResourceId getId()
null
.public SearchResult setId(ResourceId id)
null
.public String getKind()
null
.public SearchResult setKind(String kind)
null
.public SearchResultSnippet getSnippet()
null
.public SearchResult setSnippet(SearchResultSnippet snippet)
null
.