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

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

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






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












com.google.api.services.youtube.model

Class CaptionSnippet

    • Constructor Detail

      • CaptionSnippet

        public CaptionSnippet()
    • Method Detail

      • getAudioTrackType

        public String getAudioTrackType()
        The type of audio track associated with the caption track.
        Returns:
        value or null for none
      • setAudioTrackType

        public CaptionSnippet setAudioTrackType(String audioTrackType)
        The type of audio track associated with the caption track.
        Parameters:
        audioTrackType - audioTrackType or null for none
      • getFailureReason

        public String getFailureReason()
        The reason that YouTube failed to process the caption track. This property is only present if the state property's value is failed.
        Returns:
        value or null for none
      • setFailureReason

        public CaptionSnippet setFailureReason(String failureReason)
        The reason that YouTube failed to process the caption track. This property is only present if the state property's value is failed.
        Parameters:
        failureReason - failureReason or null for none
      • getIsAutoSynced

        public Boolean getIsAutoSynced()
        Indicates whether YouTube synchronized the caption track to the audio track in the video. The value will be true if a sync was explicitly requested when the caption track was uploaded. For example, when calling the captions.insert or captions.update methods, you can set the sync parameter to true to instruct YouTube to sync the uploaded track to the video. If the value is false, YouTube uses the time codes in the uploaded caption track to determine when to display captions.
        Returns:
        value or null for none
      • setIsAutoSynced

        public CaptionSnippet setIsAutoSynced(Boolean isAutoSynced)
        Indicates whether YouTube synchronized the caption track to the audio track in the video. The value will be true if a sync was explicitly requested when the caption track was uploaded. For example, when calling the captions.insert or captions.update methods, you can set the sync parameter to true to instruct YouTube to sync the uploaded track to the video. If the value is false, YouTube uses the time codes in the uploaded caption track to determine when to display captions.
        Parameters:
        isAutoSynced - isAutoSynced or null for none
      • getIsCC

        public Boolean getIsCC()
        Indicates whether the track contains closed captions for the deaf and hard of hearing. The default value is false.
        Returns:
        value or null for none
      • setIsCC

        public CaptionSnippet setIsCC(Boolean isCC)
        Indicates whether the track contains closed captions for the deaf and hard of hearing. The default value is false.
        Parameters:
        isCC - isCC or null for none
      • getIsDraft

        public Boolean getIsDraft()
        Indicates whether the caption track is a draft. If the value is true, then the track is not publicly visible. The default value is false. @mutable youtube.captions.insert youtube.captions.update
        Returns:
        value or null for none
      • setIsDraft

        public CaptionSnippet setIsDraft(Boolean isDraft)
        Indicates whether the caption track is a draft. If the value is true, then the track is not publicly visible. The default value is false. @mutable youtube.captions.insert youtube.captions.update
        Parameters:
        isDraft - isDraft or null for none
      • getIsEasyReader

        public Boolean getIsEasyReader()
        Indicates whether caption track is formatted for "easy reader," meaning it is at a third-grade level for language learners. The default value is false.
        Returns:
        value or null for none
      • setIsEasyReader

        public CaptionSnippet setIsEasyReader(Boolean isEasyReader)
        Indicates whether caption track is formatted for "easy reader," meaning it is at a third-grade level for language learners. The default value is false.
        Parameters:
        isEasyReader - isEasyReader or null for none
      • getIsLarge

        public Boolean getIsLarge()
        Indicates whether the caption track uses large text for the vision-impaired. The default value is false.
        Returns:
        value or null for none
      • setIsLarge

        public CaptionSnippet setIsLarge(Boolean isLarge)
        Indicates whether the caption track uses large text for the vision-impaired. The default value is false.
        Parameters:
        isLarge - isLarge or null for none
      • getLanguage

        public String getLanguage()
        The language of the caption track. The property value is a BCP-47 language tag.
        Returns:
        value or null for none
      • setLanguage

        public CaptionSnippet setLanguage(String language)
        The language of the caption track. The property value is a BCP-47 language tag.
        Parameters:
        language - language or null for none
      • getLastUpdated

        public com.google.api.client.util.DateTime getLastUpdated()
        The date and time when the caption track was last updated.
        Returns:
        value or null for none
      • setLastUpdated

        public CaptionSnippet setLastUpdated(com.google.api.client.util.DateTime lastUpdated)
        The date and time when the caption track was last updated.
        Parameters:
        lastUpdated - lastUpdated or null for none
      • getName

        public String getName()
        The name of the caption track. The name is intended to be visible to the user as an option during playback.
        Returns:
        value or null for none
      • setName

        public CaptionSnippet setName(String name)
        The name of the caption track. The name is intended to be visible to the user as an option during playback.
        Parameters:
        name - name or null for none
      • getStatus

        public String getStatus()
        The caption track's status.
        Returns:
        value or null for none
      • setStatus

        public CaptionSnippet setStatus(String status)
        The caption track's status.
        Parameters:
        status - status or null for none
      • getTrackKind

        public String getTrackKind()
        The caption track's type.
        Returns:
        value or null for none
      • setTrackKind

        public CaptionSnippet setTrackKind(String trackKind)
        The caption track's type.
        Parameters:
        trackKind - trackKind or null for none
      • getVideoId

        public String getVideoId()
        The ID that YouTube uses to uniquely identify the video associated with the caption track.
        Returns:
        value or null for none
      • setVideoId

        public CaptionSnippet setVideoId(String videoId)
        The ID that YouTube uses to uniquely identify the video associated with the caption track.
        Parameters:
        videoId - videoId or null for none
      • set

        public CaptionSnippet set(String fieldName,
                                  Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public CaptionSnippet 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