target.apidocs.com.google.api.services.youtube.model.PlaylistItemContentDetails.html Maven / Gradle / Ivy
PlaylistItemContentDetails (YouTube Data API v3 v3-rev20240417-2.0.0)
com.google.api.services.youtube.model
Class PlaylistItemContentDetails
- 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.PlaylistItemContentDetails
-
public final class PlaylistItemContentDetails
extends com.google.api.client.json.GenericJson
Model definition for PlaylistItemContentDetails.
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
PlaylistItemContentDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
PlaylistItemContentDetails
clone()
String
getEndAt()
The time, measured in seconds from the start of the video, when the video should stop playing.
String
getNote()
A user-generated note for this item.
String
getStartAt()
The time, measured in seconds from the start of the video, when the video should start playing.
String
getVideoId()
The ID that YouTube uses to uniquely identify a video.
com.google.api.client.util.DateTime
getVideoPublishedAt()
The date and time that the video was published to YouTube.
PlaylistItemContentDetails
set(String fieldName,
Object value)
PlaylistItemContentDetails
setEndAt(String endAt)
The time, measured in seconds from the start of the video, when the video should stop playing.
PlaylistItemContentDetails
setNote(String note)
A user-generated note for this item.
PlaylistItemContentDetails
setStartAt(String startAt)
The time, measured in seconds from the start of the video, when the video should start playing.
PlaylistItemContentDetails
setVideoId(String videoId)
The ID that YouTube uses to uniquely identify a video.
PlaylistItemContentDetails
setVideoPublishedAt(com.google.api.client.util.DateTime videoPublishedAt)
The date and time that the video was published to YouTube.
-
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
-
getEndAt
public String getEndAt()
The time, measured in seconds from the start of the video, when the video should stop playing.
(The playlist owner can specify the times when the video should start and stop playing when the
video is played in the context of the playlist.) By default, assume that the video.endTime is
the end of the video.
- Returns:
- value or
null
for none
-
setEndAt
public PlaylistItemContentDetails setEndAt(String endAt)
The time, measured in seconds from the start of the video, when the video should stop playing.
(The playlist owner can specify the times when the video should start and stop playing when the
video is played in the context of the playlist.) By default, assume that the video.endTime is
the end of the video.
- Parameters:
endAt
- endAt or null
for none
-
getNote
public String getNote()
A user-generated note for this item.
- Returns:
- value or
null
for none
-
setNote
public PlaylistItemContentDetails setNote(String note)
A user-generated note for this item.
- Parameters:
note
- note or null
for none
-
getStartAt
public String getStartAt()
The time, measured in seconds from the start of the video, when the video should start playing.
(The playlist owner can specify the times when the video should start and stop playing when the
video is played in the context of the playlist.) The default value is 0.
- Returns:
- value or
null
for none
-
setStartAt
public PlaylistItemContentDetails setStartAt(String startAt)
The time, measured in seconds from the start of the video, when the video should start playing.
(The playlist owner can specify the times when the video should start and stop playing when the
video is played in the context of the playlist.) The default value is 0.
- Parameters:
startAt
- startAt or null
for none
-
getVideoId
public String getVideoId()
The ID that YouTube uses to uniquely identify a video. To retrieve the video resource, set the
id query parameter to this value in your API request.
- Returns:
- value or
null
for none
-
setVideoId
public PlaylistItemContentDetails setVideoId(String videoId)
The ID that YouTube uses to uniquely identify a video. To retrieve the video resource, set the
id query parameter to this value in your API request.
- Parameters:
videoId
- videoId or null
for none
-
getVideoPublishedAt
public com.google.api.client.util.DateTime getVideoPublishedAt()
The date and time that the video was published to YouTube.
- Returns:
- value or
null
for none
-
setVideoPublishedAt
public PlaylistItemContentDetails setVideoPublishedAt(com.google.api.client.util.DateTime videoPublishedAt)
The date and time that the video was published to YouTube.
- Parameters:
videoPublishedAt
- videoPublishedAt or null
for none
-
set
public PlaylistItemContentDetails set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public PlaylistItemContentDetails clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.