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. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/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 |
getLicensedContent()
The value of is_license_content indicates whether the video is licensed content.
|
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 |
setLicensedContent(Boolean licensedContent)
The value of is_license_content indicates whether the video is licensed content.
|
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
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 getLicensedContent()
null
for nonepublic VideoContentDetails setLicensedContent(Boolean licensedContent)
licensedContent
- licensedContent 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