Class Entity.Builder
- java.lang.Object
-
- com.assemblyai.api.resources.transcripts.types.Entity.Builder
-
- All Implemented Interfaces:
Entity._FinalStage,Entity.EndStage,Entity.EntityTypeStage,Entity.StartStage,Entity.TextStage
- Enclosing class:
- Entity
public static final class Entity.Builder extends java.lang.Object implements Entity.EntityTypeStage, Entity.TextStage, Entity.StartStage, Entity.EndStage, Entity._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entitybuild()Entity._FinalStageend(int end)The ending time, in milliseconds, for the detected entity in the audio fileEntity.TextStageentityType(EntityType entityType)The type of entity for the detected entityEntity.Builderfrom(Entity other)Entity.EndStagestart(int start)The starting time, in milliseconds, at which the detected entity appears in the audio fileEntity.StartStagetext(java.lang.String text)The text for the detected entity
-
-
-
Method Detail
-
from
public Entity.Builder from(Entity other)
- Specified by:
fromin interfaceEntity.EntityTypeStage
-
entityType
public Entity.TextStage entityType(EntityType entityType)
The type of entity for the detected entity
- Specified by:
entityTypein interfaceEntity.EntityTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
text
public Entity.StartStage text(java.lang.String text)
The text for the detected entity
- Specified by:
textin interfaceEntity.TextStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
start
public Entity.EndStage start(int start)
The starting time, in milliseconds, at which the detected entity appears in the audio file
- Specified by:
startin interfaceEntity.StartStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
end
public Entity._FinalStage end(int end)
The ending time, in milliseconds, for the detected entity in the audio file
- Specified by:
endin interfaceEntity.EndStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
build
public Entity build()
- Specified by:
buildin interfaceEntity._FinalStage
-
-