target.apidocs.com.google.api.services.youtube.model.LiveStreamSnippet.html Maven / Gradle / Ivy
LiveStreamSnippet (YouTube Data API v3 v3-rev20210410-1.31.0)
com.google.api.services.youtube.model
Class LiveStreamSnippet
- 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.LiveStreamSnippet
-
public final class LiveStreamSnippet
extends GenericJson
Model definition for LiveStreamSnippet.
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
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
LiveStreamSnippet()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
LiveStreamSnippet
clone()
String
getChannelId()
The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
String
getDescription()
The stream's description.
Boolean
getIsDefaultStream()
DateTime
getPublishedAt()
The date and time that the stream was created.
String
getTitle()
The stream's title.
LiveStreamSnippet
set(String fieldName,
Object value)
LiveStreamSnippet
setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
LiveStreamSnippet
setDescription(String description)
The stream's description.
LiveStreamSnippet
setIsDefaultStream(Boolean isDefaultStream)
LiveStreamSnippet
setPublishedAt(DateTime publishedAt)
The date and time that the stream was created.
LiveStreamSnippet
setTitle(String title)
The stream'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
-
getChannelId
public String getChannelId()
The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
- Returns:
- value or
null
for none
-
setChannelId
public LiveStreamSnippet setChannelId(String channelId)
The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
- Parameters:
channelId
- channelId or null
for none
-
getDescription
public String getDescription()
The stream's description. The value cannot be longer than 10000 characters.
- Returns:
- value or
null
for none
-
setDescription
public LiveStreamSnippet setDescription(String description)
The stream's description. The value cannot be longer than 10000 characters.
- Parameters:
description
- description or null
for none
-
getIsDefaultStream
public Boolean getIsDefaultStream()
- Returns:
- value or
null
for none
-
setIsDefaultStream
public LiveStreamSnippet setIsDefaultStream(Boolean isDefaultStream)
- Parameters:
isDefaultStream
- isDefaultStream or null
for none
-
getPublishedAt
public DateTime getPublishedAt()
The date and time that the stream was created.
- Returns:
- value or
null
for none
-
setPublishedAt
public LiveStreamSnippet setPublishedAt(DateTime publishedAt)
The date and time that the stream was created.
- Parameters:
publishedAt
- publishedAt or null
for none
-
getTitle
public String getTitle()
The stream's title. The value must be between 1 and 128 characters long.
- Returns:
- value or
null
for none
-
setTitle
public LiveStreamSnippet setTitle(String title)
The stream's title. The value must be between 1 and 128 characters long.
- Parameters:
title
- title or null
for none
-
set
public LiveStreamSnippet set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public LiveStreamSnippet clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.