Class ContentSafetyLabel.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.transcripts.types.ContentSafetyLabel.Builder
-
- All Implemented Interfaces:
ContentSafetyLabel._FinalStage,ContentSafetyLabel.ConfidenceStage,ContentSafetyLabel.LabelStage,ContentSafetyLabel.SeverityStage
- Enclosing class:
- ContentSafetyLabel
public static final class ContentSafetyLabel.Builder extends java.lang.Object implements ContentSafetyLabel.LabelStage, ContentSafetyLabel.ConfidenceStage, ContentSafetyLabel.SeverityStage, ContentSafetyLabel._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentSafetyLabelbuild()ContentSafetyLabel.SeverityStageconfidence(double confidence)The confidence score for the topic being discussed, from 0 to 1ContentSafetyLabel.Builderfrom(ContentSafetyLabel other)ContentSafetyLabel.ConfidenceStagelabel(java.lang.String label)The label of the sensitive topicContentSafetyLabel._FinalStageseverity(double severity)How severely the topic is discussed in the section, from 0 to 1
-
-
-
Method Detail
-
from
public ContentSafetyLabel.Builder from(ContentSafetyLabel other)
- Specified by:
fromin interfaceContentSafetyLabel.LabelStage
-
label
public ContentSafetyLabel.ConfidenceStage label(java.lang.String label)
The label of the sensitive topic
- Specified by:
labelin interfaceContentSafetyLabel.LabelStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
confidence
public ContentSafetyLabel.SeverityStage confidence(double confidence)
The confidence score for the topic being discussed, from 0 to 1
- Specified by:
confidencein interfaceContentSafetyLabel.ConfidenceStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
severity
public ContentSafetyLabel._FinalStage severity(double severity)
How severely the topic is discussed in the section, from 0 to 1
- Specified by:
severityin interfaceContentSafetyLabel.SeverityStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public ContentSafetyLabel build()
- Specified by:
buildin interfaceContentSafetyLabel._FinalStage
-
-