Class WordSearchResponse.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.transcripts.types.WordSearchResponse.Builder
-
- All Implemented Interfaces:
WordSearchResponse._FinalStage,WordSearchResponse.IdStage,WordSearchResponse.TotalCountStage
- Enclosing class:
- WordSearchResponse
public static final class WordSearchResponse.Builder extends java.lang.Object implements WordSearchResponse.IdStage, WordSearchResponse.TotalCountStage, WordSearchResponse._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WordSearchResponse._FinalStageaddAllMatches(java.util.List<WordSearchMatch> matches)The matches of the searchWordSearchResponse._FinalStageaddMatches(WordSearchMatch matches)The matches of the searchWordSearchResponsebuild()WordSearchResponse.Builderfrom(WordSearchResponse other)WordSearchResponse.TotalCountStageid(java.lang.String id)The ID of the transcriptWordSearchResponse._FinalStagematches(java.util.List<WordSearchMatch> matches)WordSearchResponse._FinalStagetotalCount(int totalCount)The total count of all matched instances.
-
-
-
Method Detail
-
from
public WordSearchResponse.Builder from(WordSearchResponse other)
- Specified by:
fromin interfaceWordSearchResponse.IdStage
-
id
public WordSearchResponse.TotalCountStage id(java.lang.String id)
The ID of the transcript
- Specified by:
idin interfaceWordSearchResponse.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
totalCount
public WordSearchResponse._FinalStage totalCount(int totalCount)
The total count of all matched instances. For e.g., word 1 matched 2 times, and word 2 matched 3 times,
total_countwill equal 5.- Specified by:
totalCountin interfaceWordSearchResponse.TotalCountStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllMatches
public WordSearchResponse._FinalStage addAllMatches(java.util.List<WordSearchMatch> matches)
The matches of the search
- Specified by:
addAllMatchesin interfaceWordSearchResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addMatches
public WordSearchResponse._FinalStage addMatches(WordSearchMatch matches)
The matches of the search
- Specified by:
addMatchesin interfaceWordSearchResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
matches
public WordSearchResponse._FinalStage matches(java.util.List<WordSearchMatch> matches)
- Specified by:
matchesin interfaceWordSearchResponse._FinalStage
-
build
public WordSearchResponse build()
- Specified by:
buildin interfaceWordSearchResponse._FinalStage
-
-