public final class SearchResultSnippet
extends com.google.api.client.json.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
com.google.api.client.util.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.
|
String |
getLiveBroadcastContent()
It indicates if the resource (video or channel) has upcoming/active live broadcast content.
|
com.google.api.client.util.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(com.google.api.client.util.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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
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
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 String getLiveBroadcastContent()
null
for nonepublic SearchResultSnippet setLiveBroadcastContent(String liveBroadcastContent)
liveBroadcastContent
- liveBroadcastContent or null
for nonepublic com.google.api.client.util.DateTime getPublishedAt()
null
for nonepublic SearchResultSnippet setPublishedAt(com.google.api.client.util.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 com.google.api.client.json.GenericJson
public SearchResultSnippet clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.