public final class VideoContentDetails extends GenericJson
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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
VideoContentDetails() |
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.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getCaption()
null
for nonepublic VideoContentDetails setCaption(String caption)
caption
- caption or null
for nonepublic ContentRating getContentRating()
null
for nonepublic VideoContentDetails setContentRating(ContentRating contentRating)
contentRating
- contentRating or null
for nonepublic AccessPolicy getCountryRestriction()
null
for nonepublic VideoContentDetails setCountryRestriction(AccessPolicy countryRestriction)
countryRestriction
- countryRestriction or null
for nonepublic String getDefinition()
null
for nonepublic VideoContentDetails setDefinition(String definition)
definition
- definition or null
for nonepublic String getDimension()
null
for nonepublic VideoContentDetails setDimension(String dimension)
dimension
- dimension or null
for nonepublic String getDuration()
null
for nonepublic VideoContentDetails setDuration(String duration)
duration
- duration or null
for nonepublic Boolean getHasCustomThumbnail()
null
for nonepublic VideoContentDetails setHasCustomThumbnail(Boolean hasCustomThumbnail)
hasCustomThumbnail
- hasCustomThumbnail or null
for nonepublic Boolean getLicensedContent()
null
for nonepublic VideoContentDetails setLicensedContent(Boolean licensedContent)
licensedContent
- licensedContent or null
for nonepublic String getProjection()
null
for nonepublic VideoContentDetails setProjection(String projection)
projection
- projection or null
for nonepublic VideoContentDetailsRegionRestriction getRegionRestriction()
null
for nonepublic VideoContentDetails setRegionRestriction(VideoContentDetailsRegionRestriction regionRestriction)
regionRestriction
- regionRestriction or null
for nonepublic VideoContentDetails set(String fieldName, Object value)
set
in class GenericJson
public VideoContentDetails clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.