Class TopicDetectionResult.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.transcripts.types.TopicDetectionResult.Builder
-
- All Implemented Interfaces:
TopicDetectionResult._FinalStage,TopicDetectionResult.TextStage
- Enclosing class:
- TopicDetectionResult
public static final class TopicDetectionResult.Builder extends java.lang.Object implements TopicDetectionResult.TextStage, TopicDetectionResult._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopicDetectionResultbuild()TopicDetectionResult.Builderfrom(TopicDetectionResult other)TopicDetectionResult._FinalStagelabels(java.util.List<TopicDetectionResultLabelsItem> labels)TopicDetectionResult._FinalStagelabels(java.util.Optional<java.util.List<TopicDetectionResultLabelsItem>> labels)TopicDetectionResult._FinalStagetext(java.lang.String text)The text in the transcript in which a detected topic occursTopicDetectionResult._FinalStagetimestamp(Timestamp timestamp)TopicDetectionResult._FinalStagetimestamp(java.util.Optional<Timestamp> timestamp)
-
-
-
Method Detail
-
from
public TopicDetectionResult.Builder from(TopicDetectionResult other)
- Specified by:
fromin interfaceTopicDetectionResult.TextStage
-
text
public TopicDetectionResult._FinalStage text(java.lang.String text)
The text in the transcript in which a detected topic occurs
- Specified by:
textin interfaceTopicDetectionResult.TextStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
timestamp
public TopicDetectionResult._FinalStage timestamp(Timestamp timestamp)
- Specified by:
timestampin interfaceTopicDetectionResult._FinalStage
-
timestamp
public TopicDetectionResult._FinalStage timestamp(java.util.Optional<Timestamp> timestamp)
- Specified by:
timestampin interfaceTopicDetectionResult._FinalStage
-
labels
public TopicDetectionResult._FinalStage labels(java.util.List<TopicDetectionResultLabelsItem> labels)
- Specified by:
labelsin interfaceTopicDetectionResult._FinalStage
-
labels
public TopicDetectionResult._FinalStage labels(java.util.Optional<java.util.List<TopicDetectionResultLabelsItem>> labels)
- Specified by:
labelsin interfaceTopicDetectionResult._FinalStage
-
build
public TopicDetectionResult build()
- Specified by:
buildin interfaceTopicDetectionResult._FinalStage
-
-