target.apidocs.com.google.api.services.youtube.model.LiveBroadcastSnippet.html Maven / Gradle / Ivy
LiveBroadcastSnippet (YouTube Data API v3 v3-rev20240909-2.0.0)
com.google.api.services.youtube.model
Class LiveBroadcastSnippet
- 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.LiveBroadcastSnippet
-
public final class LiveBroadcastSnippet
extends com.google.api.client.json.GenericJson
Basic broadcast information.
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
LiveBroadcastSnippet()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
LiveBroadcastSnippet
clone()
com.google.api.client.util.DateTime
getActualEndTime()
The date and time that the broadcast actually ended.
com.google.api.client.util.DateTime
getActualStartTime()
The date and time that the broadcast actually started.
String
getChannelId()
The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
String
getDescription()
The broadcast's description.
Boolean
getIsDefaultBroadcast()
Indicates whether this broadcast is the default broadcast.
String
getLiveChatId()
The id of the live chat for this broadcast.
com.google.api.client.util.DateTime
getPublishedAt()
The date and time that the broadcast was added to YouTube's live broadcast schedule.
com.google.api.client.util.DateTime
getScheduledEndTime()
The date and time that the broadcast is scheduled to end.
com.google.api.client.util.DateTime
getScheduledStartTime()
The date and time that the broadcast is scheduled to start.
ThumbnailDetails
getThumbnails()
A map of thumbnail images associated with the broadcast.
String
getTitle()
The broadcast's title.
LiveBroadcastSnippet
set(String fieldName,
Object value)
LiveBroadcastSnippet
setActualEndTime(com.google.api.client.util.DateTime actualEndTime)
The date and time that the broadcast actually ended.
LiveBroadcastSnippet
setActualStartTime(com.google.api.client.util.DateTime actualStartTime)
The date and time that the broadcast actually started.
LiveBroadcastSnippet
setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
LiveBroadcastSnippet
setDescription(String description)
The broadcast's description.
LiveBroadcastSnippet
setIsDefaultBroadcast(Boolean isDefaultBroadcast)
Indicates whether this broadcast is the default broadcast.
LiveBroadcastSnippet
setLiveChatId(String liveChatId)
The id of the live chat for this broadcast.
LiveBroadcastSnippet
setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time that the broadcast was added to YouTube's live broadcast schedule.
LiveBroadcastSnippet
setScheduledEndTime(com.google.api.client.util.DateTime scheduledEndTime)
The date and time that the broadcast is scheduled to end.
LiveBroadcastSnippet
setScheduledStartTime(com.google.api.client.util.DateTime scheduledStartTime)
The date and time that the broadcast is scheduled to start.
LiveBroadcastSnippet
setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the broadcast.
LiveBroadcastSnippet
setTitle(String title)
The broadcast'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
-
getActualEndTime
public com.google.api.client.util.DateTime getActualEndTime()
The date and time that the broadcast actually ended. This information is only available once
the broadcast's state is complete.
- Returns:
- value or
null
for none
-
setActualEndTime
public LiveBroadcastSnippet setActualEndTime(com.google.api.client.util.DateTime actualEndTime)
The date and time that the broadcast actually ended. This information is only available once
the broadcast's state is complete.
- Parameters:
actualEndTime
- actualEndTime or null
for none
-
getActualStartTime
public com.google.api.client.util.DateTime getActualStartTime()
The date and time that the broadcast actually started. This information is only available once
the broadcast's state is live.
- Returns:
- value or
null
for none
-
setActualStartTime
public LiveBroadcastSnippet setActualStartTime(com.google.api.client.util.DateTime actualStartTime)
The date and time that the broadcast actually started. This information is only available once
the broadcast's state is live.
- Parameters:
actualStartTime
- actualStartTime or null
for none
-
getChannelId
public String getChannelId()
The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
- Returns:
- value or
null
for none
-
setChannelId
public LiveBroadcastSnippet setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
- Parameters:
channelId
- channelId or null
for none
-
getDescription
public String getDescription()
The broadcast's description. As with the title, you can set this field by modifying the
broadcast resource or by setting the description field of the corresponding video resource.
- Returns:
- value or
null
for none
-
setDescription
public LiveBroadcastSnippet setDescription(String description)
The broadcast's description. As with the title, you can set this field by modifying the
broadcast resource or by setting the description field of the corresponding video resource.
- Parameters:
description
- description or null
for none
-
getIsDefaultBroadcast
public Boolean getIsDefaultBroadcast()
Indicates whether this broadcast is the default broadcast. Internal only.
- Returns:
- value or
null
for none
-
setIsDefaultBroadcast
public LiveBroadcastSnippet setIsDefaultBroadcast(Boolean isDefaultBroadcast)
Indicates whether this broadcast is the default broadcast. Internal only.
- Parameters:
isDefaultBroadcast
- isDefaultBroadcast or null
for none
-
getLiveChatId
public String getLiveChatId()
The id of the live chat for this broadcast.
- Returns:
- value or
null
for none
-
setLiveChatId
public LiveBroadcastSnippet setLiveChatId(String liveChatId)
The id of the live chat for this broadcast.
- Parameters:
liveChatId
- liveChatId or null
for none
-
getPublishedAt
public com.google.api.client.util.DateTime getPublishedAt()
The date and time that the broadcast was added to YouTube's live broadcast schedule.
- Returns:
- value or
null
for none
-
setPublishedAt
public LiveBroadcastSnippet setPublishedAt(com.google.api.client.util.DateTime publishedAt)
The date and time that the broadcast was added to YouTube's live broadcast schedule.
- Parameters:
publishedAt
- publishedAt or null
for none
-
getScheduledEndTime
public com.google.api.client.util.DateTime getScheduledEndTime()
The date and time that the broadcast is scheduled to end.
- Returns:
- value or
null
for none
-
setScheduledEndTime
public LiveBroadcastSnippet setScheduledEndTime(com.google.api.client.util.DateTime scheduledEndTime)
The date and time that the broadcast is scheduled to end.
- Parameters:
scheduledEndTime
- scheduledEndTime or null
for none
-
getScheduledStartTime
public com.google.api.client.util.DateTime getScheduledStartTime()
The date and time that the broadcast is scheduled to start.
- Returns:
- value or
null
for none
-
setScheduledStartTime
public LiveBroadcastSnippet setScheduledStartTime(com.google.api.client.util.DateTime scheduledStartTime)
The date and time that the broadcast is scheduled to start.
- Parameters:
scheduledStartTime
- scheduledStartTime or null
for none
-
getThumbnails
public ThumbnailDetails getThumbnails()
A map of thumbnail images associated with the broadcast. For each nested object in this object,
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 LiveBroadcastSnippet setThumbnails(ThumbnailDetails thumbnails)
A map of thumbnail images associated with the broadcast. For each nested object in this object,
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 broadcast's title. Note that the broadcast represents exactly one YouTube video. You can
set this field by modifying the broadcast resource or by setting the title field of the
corresponding video resource.
- Returns:
- value or
null
for none
-
setTitle
public LiveBroadcastSnippet setTitle(String title)
The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can
set this field by modifying the broadcast resource or by setting the title field of the
corresponding video resource.
- Parameters:
title
- title or null
for none
-
set
public LiveBroadcastSnippet set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public LiveBroadcastSnippet 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