All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.youtube.model.VideoContentDetails.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240514-2.0.0
Show newest version






VideoContentDetails (YouTube Data API v3 v3-rev20240417-2.0.0)












com.google.api.services.youtube.model

Class VideoContentDetails

    • Constructor Detail

      • VideoContentDetails

        public VideoContentDetails()
    • 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
      • clone

        public VideoContentDetails clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy