public final class SearchResultSnippet 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-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SearchResultSnippet() |
Modifier and Type | Method and Description |
---|---|
SearchResultSnippet |
clone() |
String |
getChannelId()
The value that YouTube uses to uniquely identify the channel that published the resource that
the search result identifies.
|
String |
getChannelTitle()
The title of the channel that published the resource that the search result identifies.
|
String |
getDescription()
A description of the search result.
|
DateTime |
getPublishedAt()
The creation date and time of the resource that the search result identifies.
|
ThumbnailDetails |
getThumbnails()
A map of thumbnail images associated with the search result.
|
String |
getTitle()
The title of the search result.
|
SearchResultSnippet |
set(String fieldName,
Object value) |
SearchResultSnippet |
setChannelId(String channelId)
The value that YouTube uses to uniquely identify the channel that published the resource that
the search result identifies.
|
SearchResultSnippet |
setChannelTitle(String channelTitle)
The title of the channel that published the resource that the search result identifies.
|
SearchResultSnippet |
setDescription(String description)
A description of the search result.
|
SearchResultSnippet |
setPublishedAt(DateTime publishedAt)
The creation date and time of the resource that the search result identifies.
|
SearchResultSnippet |
setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the search result.
|
SearchResultSnippet |
setTitle(String title)
The title of the search result.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getChannelId()
null
for nonepublic SearchResultSnippet setChannelId(String channelId)
channelId
- channelId or null
for nonepublic String getChannelTitle()
null
for nonepublic SearchResultSnippet setChannelTitle(String channelTitle)
channelTitle
- channelTitle or null
for nonepublic String getDescription()
null
for nonepublic SearchResultSnippet setDescription(String description)
description
- description or null
for nonepublic DateTime getPublishedAt()
null
for nonepublic SearchResultSnippet setPublishedAt(DateTime publishedAt)
publishedAt
- publishedAt or null
for nonepublic ThumbnailDetails getThumbnails()
null
for nonepublic SearchResultSnippet setThumbnails(ThumbnailDetails thumbnails)
thumbnails
- thumbnails or null
for nonepublic String getTitle()
null
for nonepublic SearchResultSnippet setTitle(String title)
title
- title or null
for nonepublic SearchResultSnippet set(String fieldName, Object value)
set
in class GenericJson
public SearchResultSnippet clone()
clone
in class GenericJson