Interface ContentModerationDetection.Builder

    • Method Detail

      • timestamp

        ContentModerationDetection.Builder timestamp​(Long timestamp)

        Time, in milliseconds from the beginning of the video, that the content moderation label was detected. Note that Timestamp is not guaranteed to be accurate to the individual frame where the moderated content first appears.

        Parameters:
        timestamp - Time, in milliseconds from the beginning of the video, that the content moderation label was detected. Note that Timestamp is not guaranteed to be accurate to the individual frame where the moderated content first appears.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • moderationLabel

        ContentModerationDetection.Builder moderationLabel​(ModerationLabel moderationLabel)

        The content moderation label detected by in the stored video.

        Parameters:
        moderationLabel - The content moderation label detected by in the stored video.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startTimestampMillis

        ContentModerationDetection.Builder startTimestampMillis​(Long startTimestampMillis)

        The time in milliseconds defining the start of the timeline segment containing a continuously detected moderation label.

        Parameters:
        startTimestampMillis - The time in milliseconds defining the start of the timeline segment containing a continuously detected moderation label.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endTimestampMillis

        ContentModerationDetection.Builder endTimestampMillis​(Long endTimestampMillis)

        The time in milliseconds defining the end of the timeline segment containing a continuously detected moderation label.

        Parameters:
        endTimestampMillis - The time in milliseconds defining the end of the timeline segment containing a continuously detected moderation label.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • durationMillis

        ContentModerationDetection.Builder durationMillis​(Long durationMillis)

        The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.

        Parameters:
        durationMillis - The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.
        Returns:
        Returns a reference to this object so that method calls can be chained together.