Class AutoHighlightResult.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.transcripts.types.AutoHighlightResult.Builder
-
- All Implemented Interfaces:
AutoHighlightResult._FinalStage,AutoHighlightResult.CountStage,AutoHighlightResult.RankStage,AutoHighlightResult.TextStage
- Enclosing class:
- AutoHighlightResult
public static final class AutoHighlightResult.Builder extends java.lang.Object implements AutoHighlightResult.CountStage, AutoHighlightResult.RankStage, AutoHighlightResult.TextStage, AutoHighlightResult._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoHighlightResult._FinalStageaddAllTimestamps(java.util.List<Timestamp> timestamps)The timestamp of the of the key phraseAutoHighlightResult._FinalStageaddTimestamps(Timestamp timestamps)The timestamp of the of the key phraseAutoHighlightResultbuild()AutoHighlightResult.RankStagecount(int count)The total number of times the key phrase appears in the audio fileAutoHighlightResult.Builderfrom(AutoHighlightResult other)AutoHighlightResult.TextStagerank(double rank)The total relevancy to the overall audio file of this key phrase - a greater number means more relevantAutoHighlightResult._FinalStagetext(java.lang.String text)The text itself of the key phraseAutoHighlightResult._FinalStagetimestamps(java.util.List<Timestamp> timestamps)
-
-
-
Method Detail
-
from
public AutoHighlightResult.Builder from(AutoHighlightResult other)
- Specified by:
fromin interfaceAutoHighlightResult.CountStage
-
count
public AutoHighlightResult.RankStage count(int count)
The total number of times the key phrase appears in the audio file
- Specified by:
countin interfaceAutoHighlightResult.CountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
rank
public AutoHighlightResult.TextStage rank(double rank)
The total relevancy to the overall audio file of this key phrase - a greater number means more relevant
- Specified by:
rankin interfaceAutoHighlightResult.RankStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
text
public AutoHighlightResult._FinalStage text(java.lang.String text)
The text itself of the key phrase
- Specified by:
textin interfaceAutoHighlightResult.TextStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllTimestamps
public AutoHighlightResult._FinalStage addAllTimestamps(java.util.List<Timestamp> timestamps)
The timestamp of the of the key phrase
- Specified by:
addAllTimestampsin interfaceAutoHighlightResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addTimestamps
public AutoHighlightResult._FinalStage addTimestamps(Timestamp timestamps)
The timestamp of the of the key phrase
- Specified by:
addTimestampsin interfaceAutoHighlightResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
timestamps
public AutoHighlightResult._FinalStage timestamps(java.util.List<Timestamp> timestamps)
- Specified by:
timestampsin interfaceAutoHighlightResult._FinalStage
-
build
public AutoHighlightResult build()
- Specified by:
buildin interfaceAutoHighlightResult._FinalStage
-
-