Interface DetectModerationLabelsResponse.Builder

    • Method Detail

      • moderationLabels

        DetectModerationLabelsResponse.Builder moderationLabels​(Collection<ModerationLabel> moderationLabels)

        Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.

        Parameters:
        moderationLabels - Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • moderationLabels

        DetectModerationLabelsResponse.Builder moderationLabels​(ModerationLabel... moderationLabels)

        Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.

        Parameters:
        moderationLabels - Array of detected Moderation labels and the time, in milliseconds from the start of the video, they were detected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • moderationModelVersion

        DetectModerationLabelsResponse.Builder moderationModelVersion​(String moderationModelVersion)

        Version number of the base moderation detection model that was used to detect unsafe content.

        Parameters:
        moderationModelVersion - Version number of the base moderation detection model that was used to detect unsafe content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • humanLoopActivationOutput

        DetectModerationLabelsResponse.Builder humanLoopActivationOutput​(HumanLoopActivationOutput humanLoopActivationOutput)

        Shows the results of the human in the loop evaluation.

        Parameters:
        humanLoopActivationOutput - Shows the results of the human in the loop evaluation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • projectVersion

        DetectModerationLabelsResponse.Builder projectVersion​(String projectVersion)

        Identifier of the custom adapter that was used during inference. If during inference the adapter was EXPIRED, then the parameter will not be returned, indicating that a base moderation detection project version was used.

        Parameters:
        projectVersion - Identifier of the custom adapter that was used during inference. If during inference the adapter was EXPIRED, then the parameter will not be returned, indicating that a base moderation detection project version was used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.