Class TopicDetectionModelResult.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.transcripts.types.TopicDetectionModelResult.Builder
-
- All Implemented Interfaces:
TopicDetectionModelResult._FinalStage,TopicDetectionModelResult.StatusStage
- Enclosing class:
- TopicDetectionModelResult
public static final class TopicDetectionModelResult.Builder extends java.lang.Object implements TopicDetectionModelResult.StatusStage, TopicDetectionModelResult._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicDetectionModelResult._FinalStageaddAllResults(java.util.List<TopicDetectionResult> results)An array of results for the Topic Detection modelTopicDetectionModelResult._FinalStageaddResults(TopicDetectionResult results)An array of results for the Topic Detection modelTopicDetectionModelResultbuild()TopicDetectionModelResult.Builderfrom(TopicDetectionModelResult other)TopicDetectionModelResult._FinalStageputAllSummary(java.util.Map<java.lang.String,java.lang.Double> summary)The overall relevance of topic to the entire audio fileTopicDetectionModelResult._FinalStageresults(java.util.List<TopicDetectionResult> results)TopicDetectionModelResult._FinalStagestatus(AudioIntelligenceModelStatus status)The status of the Topic Detection model.TopicDetectionModelResult._FinalStagesummary(java.lang.String key, java.lang.Double value)The overall relevance of topic to the entire audio fileTopicDetectionModelResult._FinalStagesummary(java.util.Map<java.lang.String,java.lang.Double> summary)
-
-
-
Method Detail
-
from
public TopicDetectionModelResult.Builder from(TopicDetectionModelResult other)
- Specified by:
fromin interfaceTopicDetectionModelResult.StatusStage
-
status
public TopicDetectionModelResult._FinalStage status(AudioIntelligenceModelStatus status)
The status of the Topic Detection model. Either success, or unavailable in the rare case that the model failed.
- Specified by:
statusin interfaceTopicDetectionModelResult.StatusStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
summary
public TopicDetectionModelResult._FinalStage summary(java.lang.String key, java.lang.Double value)
The overall relevance of topic to the entire audio file
- Specified by:
summaryin interfaceTopicDetectionModelResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
putAllSummary
public TopicDetectionModelResult._FinalStage putAllSummary(java.util.Map<java.lang.String,java.lang.Double> summary)
The overall relevance of topic to the entire audio file
- Specified by:
putAllSummaryin interfaceTopicDetectionModelResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
summary
public TopicDetectionModelResult._FinalStage summary(java.util.Map<java.lang.String,java.lang.Double> summary)
- Specified by:
summaryin interfaceTopicDetectionModelResult._FinalStage
-
addAllResults
public TopicDetectionModelResult._FinalStage addAllResults(java.util.List<TopicDetectionResult> results)
An array of results for the Topic Detection model
- Specified by:
addAllResultsin interfaceTopicDetectionModelResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addResults
public TopicDetectionModelResult._FinalStage addResults(TopicDetectionResult results)
An array of results for the Topic Detection model
- Specified by:
addResultsin interfaceTopicDetectionModelResult._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
results
public TopicDetectionModelResult._FinalStage results(java.util.List<TopicDetectionResult> results)
- Specified by:
resultsin interfaceTopicDetectionModelResult._FinalStage
-
build
public TopicDetectionModelResult build()
- Specified by:
buildin interfaceTopicDetectionModelResult._FinalStage
-
-