target.apidocs.com.google.api.services.youtube.model.VideoContentDetails.html Maven / Gradle / Ivy
VideoContentDetails (YouTube Data API v3 v3-rev20230319-2.0.0)
com.google.api.services.youtube.model
Class VideoContentDetails
- 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.VideoContentDetails
-
public final class VideoContentDetails
extends com.google.api.client.json.GenericJson
Details about the content of a YouTube Video.
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
VideoContentDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
VideoContentDetails
clone()
String
getCaption()
The value of captions indicates whether the video has captions or not.
ContentRating
getContentRating()
Specifies the ratings that the video received under various rating schemes.
AccessPolicy
getCountryRestriction()
The countryRestriction object contains information about the countries where a video is (or is
not) viewable.
String
getDefinition()
The value of definition indicates whether the video is available in high definition or only in
standard definition.
String
getDimension()
The value of dimension indicates whether the video is available in 3D or in 2D.
String
getDuration()
The length of the video.
Boolean
getHasCustomThumbnail()
Indicates whether the video uploader has provided a custom thumbnail image for the video.
Boolean
getLicensedContent()
The value of is_license_content indicates whether the video is licensed content.
String
getProjection()
Specifies the projection format of the video.
VideoContentDetailsRegionRestriction
getRegionRestriction()
The regionRestriction object contains information about the countries where a video is (or is
not) viewable.
VideoContentDetails
set(String fieldName,
Object value)
VideoContentDetails
setCaption(String caption)
The value of captions indicates whether the video has captions or not.
VideoContentDetails
setContentRating(ContentRating contentRating)
Specifies the ratings that the video received under various rating schemes.
VideoContentDetails
setCountryRestriction(AccessPolicy countryRestriction)
The countryRestriction object contains information about the countries where a video is (or is
not) viewable.
VideoContentDetails
setDefinition(String definition)
The value of definition indicates whether the video is available in high definition or only in
standard definition.
VideoContentDetails
setDimension(String dimension)
The value of dimension indicates whether the video is available in 3D or in 2D.
VideoContentDetails
setDuration(String duration)
The length of the video.
VideoContentDetails
setHasCustomThumbnail(Boolean hasCustomThumbnail)
Indicates whether the video uploader has provided a custom thumbnail image for the video.
VideoContentDetails
setLicensedContent(Boolean licensedContent)
The value of is_license_content indicates whether the video is licensed content.
VideoContentDetails
setProjection(String projection)
Specifies the projection format of the video.
VideoContentDetails
setRegionRestriction(VideoContentDetailsRegionRestriction regionRestriction)
The regionRestriction object contains information about the countries where a video is (or is
not) viewable.
-
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
-
getCaption
public String getCaption()
The value of captions indicates whether the video has captions or not.
- Returns:
- value or
null
for none
-
setCaption
public VideoContentDetails setCaption(String caption)
The value of captions indicates whether the video has captions or not.
- Parameters:
caption
- caption or null
for none
-
getContentRating
public ContentRating getContentRating()
Specifies the ratings that the video received under various rating schemes.
- Returns:
- value or
null
for none
-
setContentRating
public VideoContentDetails setContentRating(ContentRating contentRating)
Specifies the ratings that the video received under various rating schemes.
- Parameters:
contentRating
- contentRating or null
for none
-
getCountryRestriction
public AccessPolicy getCountryRestriction()
The countryRestriction object contains information about the countries where a video is (or is
not) viewable.
- Returns:
- value or
null
for none
-
setCountryRestriction
public VideoContentDetails setCountryRestriction(AccessPolicy countryRestriction)
The countryRestriction object contains information about the countries where a video is (or is
not) viewable.
- Parameters:
countryRestriction
- countryRestriction or null
for none
-
getDefinition
public String getDefinition()
The value of definition indicates whether the video is available in high definition or only in
standard definition.
- Returns:
- value or
null
for none
-
setDefinition
public VideoContentDetails setDefinition(String definition)
The value of definition indicates whether the video is available in high definition or only in
standard definition.
- Parameters:
definition
- definition or null
for none
-
getDimension
public String getDimension()
The value of dimension indicates whether the video is available in 3D or in 2D.
- Returns:
- value or
null
for none
-
setDimension
public VideoContentDetails setDimension(String dimension)
The value of dimension indicates whether the video is available in 3D or in 2D.
- Parameters:
dimension
- dimension or null
for none
-
getDuration
public String getDuration()
The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which
the letters PT indicate that the value specifies a period of time, and the letters M and S
refer to length in minutes and seconds, respectively. The # characters preceding the M and S
letters are both integers that specify the number of minutes (or seconds) of the video. For
example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long.
- Returns:
- value or
null
for none
-
setDuration
public VideoContentDetails setDuration(String duration)
The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which
the letters PT indicate that the value specifies a period of time, and the letters M and S
refer to length in minutes and seconds, respectively. The # characters preceding the M and S
letters are both integers that specify the number of minutes (or seconds) of the video. For
example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long.
- Parameters:
duration
- duration or null
for none
-
getHasCustomThumbnail
public Boolean getHasCustomThumbnail()
Indicates whether the video uploader has provided a custom thumbnail image for the video. This
property is only visible to the video uploader.
- Returns:
- value or
null
for none
-
setHasCustomThumbnail
public VideoContentDetails setHasCustomThumbnail(Boolean hasCustomThumbnail)
Indicates whether the video uploader has provided a custom thumbnail image for the video. This
property is only visible to the video uploader.
- Parameters:
hasCustomThumbnail
- hasCustomThumbnail or null
for none
-
getLicensedContent
public Boolean getLicensedContent()
The value of is_license_content indicates whether the video is licensed content.
- Returns:
- value or
null
for none
-
setLicensedContent
public VideoContentDetails setLicensedContent(Boolean licensedContent)
The value of is_license_content indicates whether the video is licensed content.
- Parameters:
licensedContent
- licensedContent or null
for none
-
getProjection
public String getProjection()
Specifies the projection format of the video.
- Returns:
- value or
null
for none
-
setProjection
public VideoContentDetails setProjection(String projection)
Specifies the projection format of the video.
- Parameters:
projection
- projection or null
for none
-
getRegionRestriction
public VideoContentDetailsRegionRestriction getRegionRestriction()
The regionRestriction object contains information about the countries where a video is (or is
not) viewable. The object will contain either the contentDetails.regionRestriction.allowed
property or the contentDetails.regionRestriction.blocked property.
- Returns:
- value or
null
for none
-
setRegionRestriction
public VideoContentDetails setRegionRestriction(VideoContentDetailsRegionRestriction regionRestriction)
The regionRestriction object contains information about the countries where a video is (or is
not) viewable. The object will contain either the contentDetails.regionRestriction.allowed
property or the contentDetails.regionRestriction.blocked property.
- Parameters:
regionRestriction
- regionRestriction or null
for none
-
set
public VideoContentDetails set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public VideoContentDetails clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.