Class WordSearchMatch.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.transcripts.types.WordSearchMatch.Builder
-
- All Implemented Interfaces:
WordSearchMatch._FinalStage,WordSearchMatch.CountStage,WordSearchMatch.TextStage
- Enclosing class:
- WordSearchMatch
public static final class WordSearchMatch.Builder extends java.lang.Object implements WordSearchMatch.TextStage, WordSearchMatch.CountStage, WordSearchMatch._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WordSearchMatch._FinalStageaddAllIndexes(java.util.List<java.lang.Integer> indexes)An array of all index locations for that word within thewordsarray of the completed transcriptWordSearchMatch._FinalStageaddAllTimestamps(java.util.List<java.util.List<java.lang.Integer>> timestamps)An array of timestampsWordSearchMatch._FinalStageaddIndexes(java.lang.Integer indexes)An array of all index locations for that word within thewordsarray of the completed transcriptWordSearchMatch._FinalStageaddTimestamps(java.util.List<java.lang.Integer> timestamps)An array of timestampsWordSearchMatchbuild()WordSearchMatch._FinalStagecount(int count)The total amount of times the word is in the transcriptWordSearchMatch.Builderfrom(WordSearchMatch other)WordSearchMatch._FinalStageindexes(java.util.List<java.lang.Integer> indexes)WordSearchMatch.CountStagetext(java.lang.String text)The matched wordWordSearchMatch._FinalStagetimestamps(java.util.List<java.util.List<java.lang.Integer>> timestamps)
-
-
-
Method Detail
-
from
public WordSearchMatch.Builder from(WordSearchMatch other)
- Specified by:
fromin interfaceWordSearchMatch.TextStage
-
text
public WordSearchMatch.CountStage text(java.lang.String text)
The matched word
- Specified by:
textin interfaceWordSearchMatch.TextStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
count
public WordSearchMatch._FinalStage count(int count)
The total amount of times the word is in the transcript
- Specified by:
countin interfaceWordSearchMatch.CountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllIndexes
public WordSearchMatch._FinalStage addAllIndexes(java.util.List<java.lang.Integer> indexes)
An array of all index locations for that word within the
wordsarray of the completed transcript- Specified by:
addAllIndexesin interfaceWordSearchMatch._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addIndexes
public WordSearchMatch._FinalStage addIndexes(java.lang.Integer indexes)
An array of all index locations for that word within the
wordsarray of the completed transcript- Specified by:
addIndexesin interfaceWordSearchMatch._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
indexes
public WordSearchMatch._FinalStage indexes(java.util.List<java.lang.Integer> indexes)
- Specified by:
indexesin interfaceWordSearchMatch._FinalStage
-
addAllTimestamps
public WordSearchMatch._FinalStage addAllTimestamps(java.util.List<java.util.List<java.lang.Integer>> timestamps)
An array of timestamps
- Specified by:
addAllTimestampsin interfaceWordSearchMatch._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addTimestamps
public WordSearchMatch._FinalStage addTimestamps(java.util.List<java.lang.Integer> timestamps)
An array of timestamps
- Specified by:
addTimestampsin interfaceWordSearchMatch._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
timestamps
public WordSearchMatch._FinalStage timestamps(java.util.List<java.util.List<java.lang.Integer>> timestamps)
- Specified by:
timestampsin interfaceWordSearchMatch._FinalStage
-
build
public WordSearchMatch build()
- Specified by:
buildin interfaceWordSearchMatch._FinalStage
-
-