Class ContentSafetyLabelResult
- java.lang.Object
-
- com.assemblyai.api.resources.transcripts.types.ContentSafetyLabelResult
-
public final class ContentSafetyLabelResult extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContentSafetyLabelResult._FinalStagestatic classContentSafetyLabelResult.Builderstatic interfaceContentSafetyLabelResult.SentencesIdxEndStagestatic interfaceContentSafetyLabelResult.SentencesIdxStartStagestatic interfaceContentSafetyLabelResult.TextStagestatic interfaceContentSafetyLabelResult.TimestampStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentSafetyLabelResult.TextStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.List<ContentSafetyLabel>getLabels()intgetSentencesIdxEnd()intgetSentencesIdxStart()java.lang.StringgetText()TimestampgetTimestamp()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getText
public java.lang.String getText()
- Returns:
- The transcript of the section flagged by the Content Moderation model
-
getLabels
public java.util.List<ContentSafetyLabel> getLabels()
- Returns:
- An array of safety labels, one per sensitive topic that was detected in the section
-
getSentencesIdxStart
public int getSentencesIdxStart()
- Returns:
- The sentence index at which the section begins
-
getSentencesIdxEnd
public int getSentencesIdxEnd()
- Returns:
- The sentence index at which the section ends
-
getTimestamp
public Timestamp getTimestamp()
- Returns:
- Timestamp information for the section
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static ContentSafetyLabelResult.TextStage builder()
-
-