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 v3. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.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.
|
String |
getLiveBroadcastContent()
It indicates if the resource (video or channel) has upcoming/active live broadcast content.
|
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 |
setLiveBroadcastContent(String liveBroadcastContent)
It indicates if the resource (video or channel) has upcoming/active live broadcast content.
|
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, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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 String getLiveBroadcastContent()
null for nonepublic SearchResultSnippet setLiveBroadcastContent(String liveBroadcastContent)
liveBroadcastContent - liveBroadcastContent 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 GenericJsonpublic SearchResultSnippet clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.