target.apidocs.com.google.api.services.youtube.model.VideoSnippet.html Maven / Gradle / Ivy
VideoSnippet (YouTube Data API v3 v3-rev20240909-2.0.0)
com.google.api.services.youtube.model
Class VideoSnippet
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.youtube.model.VideoSnippet
-
public final class VideoSnippet
extends com.google.api.client.json.GenericJson
Basic details about a video, including title, description, uploader, thumbnails and category.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
VideoSnippet()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
VideoSnippet
clone()
String
getCategoryId()
The YouTube video category associated with the video.
String
getChannelId()
The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
String
getChannelTitle()
Channel title for the channel that the video belongs to.
String
getDefaultAudioLanguage()
The default_audio_language property specifies the language spoken in the video's default audio
track.
String
getDefaultLanguage()
The language of the videos's default snippet.
String
getDescription()
The video's description.
String
getLiveBroadcastContent()
Indicates if the video is an upcoming/active live broadcast.
VideoLocalization
getLocalized()
Localized snippet selected with the hl parameter.
com.google.api.client.util.DateTime
getPublishedAt()
The date and time when the video was uploaded.
List<String>
getTags()
A list of keyword tags associated with the video.
ThumbnailDetails
getThumbnails()
A map of thumbnail images associated with the video.
String
getTitle()
The video's title.
VideoSnippet
set(String fieldName,
Object value)
VideoSnippet
setCategoryId(String categoryId)
The YouTube video category associated with the video.
VideoSnippet
setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
VideoSnippet
setChannelTitle(String channelTitle)
Channel title for the channel that the video belongs to.
VideoSnippet
setDefaultAudioLanguage(String defaultAudioLanguage)
The default_audio_language property specifies the language spoken in the video's default audio
track.
VideoSnippet
setDefaultLanguage(String defaultLanguage)
The language of the videos's default snippet.
VideoSnippet
setDescription(String description)
The video's description.
VideoSnippet
setLiveBroadcastContent(String liveBroadcastContent)
Indicates if the video is an upcoming/active live broadcast.
VideoSnippet
setLocalized(VideoLocalization localized)
Localized snippet selected with the hl parameter.
VideoSnippet
setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time when the video was uploaded.
VideoSnippet
setTags(List<String> tags)
A list of keyword tags associated with the video.
VideoSnippet
setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the video.
VideoSnippet
setTitle(String title)
The video's title.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getCategoryId
public String getCategoryId()
The YouTube video category associated with the video.
- Returns:
- value or
null
for none
-
setCategoryId
public VideoSnippet setCategoryId(String categoryId)
The YouTube video category associated with the video.
- Parameters:
categoryId
- categoryId or null
for none
-
getChannelId
public String getChannelId()
The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
- Returns:
- value or
null
for none
-
setChannelId
public VideoSnippet setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
- Parameters:
channelId
- channelId or null
for none
-
getChannelTitle
public String getChannelTitle()
Channel title for the channel that the video belongs to.
- Returns:
- value or
null
for none
-
setChannelTitle
public VideoSnippet setChannelTitle(String channelTitle)
Channel title for the channel that the video belongs to.
- Parameters:
channelTitle
- channelTitle or null
for none
-
getDefaultAudioLanguage
public String getDefaultAudioLanguage()
The default_audio_language property specifies the language spoken in the video's default audio
track.
- Returns:
- value or
null
for none
-
setDefaultAudioLanguage
public VideoSnippet setDefaultAudioLanguage(String defaultAudioLanguage)
The default_audio_language property specifies the language spoken in the video's default audio
track.
- Parameters:
defaultAudioLanguage
- defaultAudioLanguage or null
for none
-
getDefaultLanguage
public String getDefaultLanguage()
The language of the videos's default snippet.
- Returns:
- value or
null
for none
-
setDefaultLanguage
public VideoSnippet setDefaultLanguage(String defaultLanguage)
The language of the videos's default snippet.
- Parameters:
defaultLanguage
- defaultLanguage or null
for none
-
getDescription
public String getDescription()
The video's description. @mutable youtube.videos.insert youtube.videos.update
- Returns:
- value or
null
for none
-
setDescription
public VideoSnippet setDescription(String description)
The video's description. @mutable youtube.videos.insert youtube.videos.update
- Parameters:
description
- description or null
for none
-
getLiveBroadcastContent
public String getLiveBroadcastContent()
Indicates if the video is an upcoming/active live broadcast. Or it's "none" if the video is not
an upcoming/active live broadcast.
- Returns:
- value or
null
for none
-
setLiveBroadcastContent
public VideoSnippet setLiveBroadcastContent(String liveBroadcastContent)
Indicates if the video is an upcoming/active live broadcast. Or it's "none" if the video is not
an upcoming/active live broadcast.
- Parameters:
liveBroadcastContent
- liveBroadcastContent or null
for none
-
getLocalized
public VideoLocalization getLocalized()
Localized snippet selected with the hl parameter. If no such localization exists, this field is
populated with the default snippet. (Read-only)
- Returns:
- value or
null
for none
-
setLocalized
public VideoSnippet setLocalized(VideoLocalization localized)
Localized snippet selected with the hl parameter. If no such localization exists, this field is
populated with the default snippet. (Read-only)
- Parameters:
localized
- localized or null
for none
-
getPublishedAt
public com.google.api.client.util.DateTime getPublishedAt()
The date and time when the video was uploaded.
- Returns:
- value or
null
for none
-
setPublishedAt
public VideoSnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time when the video was uploaded.
- Parameters:
publishedAt
- publishedAt or null
for none
-
getTags
public List<String> getTags()
A list of keyword tags associated with the video. Tags may contain spaces.
- Returns:
- value or
null
for none
-
setTags
public VideoSnippet setTags(List<String> tags)
A list of keyword tags associated with the video. Tags may contain spaces.
- Parameters:
tags
- tags or null
for none
-
getThumbnails
public ThumbnailDetails getThumbnails()
A map of thumbnail images associated with the video. For each object in the map, the key is the
name of the thumbnail image, and the value is an object that contains other information about
the thumbnail.
- Returns:
- value or
null
for none
-
setThumbnails
public VideoSnippet setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the video. For each object in the map, the key is the
name of the thumbnail image, and the value is an object that contains other information about
the thumbnail.
- Parameters:
thumbnails
- thumbnails or null
for none
-
getTitle
public String getTitle()
The video's title. @mutable youtube.videos.insert youtube.videos.update
- Returns:
- value or
null
for none
-
setTitle
public VideoSnippet setTitle(String title)
The video's title. @mutable youtube.videos.insert youtube.videos.update
- Parameters:
title
- title or null
for none
-
set
public VideoSnippet set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public VideoSnippet clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy