Class TranscriptionTextSegmentEvent.Builder
-
- All Implemented Interfaces:
public final class TranscriptionTextSegmentEvent.BuilderA builder for TranscriptionTextSegmentEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final TranscriptionTextSegmentEvent.Builder id(String id)
Unique identifier for the segment.
-
id
final TranscriptionTextSegmentEvent.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
end
final TranscriptionTextSegmentEvent.Builder end(Float end)
End timestamp of the segment in seconds.
-
end
final TranscriptionTextSegmentEvent.Builder end(JsonField<Float> end)
Sets Builder.end to an arbitrary JSON value.
You should usually call Builder.end with a well-typed Float value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
speaker
final TranscriptionTextSegmentEvent.Builder speaker(String speaker)
Speaker label for this segment.
-
speaker
final TranscriptionTextSegmentEvent.Builder speaker(JsonField<String> speaker)
Sets Builder.speaker to an arbitrary JSON value.
You should usually call Builder.speaker with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
start
final TranscriptionTextSegmentEvent.Builder start(Float start)
Start timestamp of the segment in seconds.
-
start
final TranscriptionTextSegmentEvent.Builder start(JsonField<Float> start)
Sets Builder.start to an arbitrary JSON value.
You should usually call Builder.start with a well-typed Float value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
text
final TranscriptionTextSegmentEvent.Builder text(String text)
Transcript text for this segment.
-
text
final TranscriptionTextSegmentEvent.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final TranscriptionTextSegmentEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("transcript.text.segment")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TranscriptionTextSegmentEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionTextSegmentEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionTextSegmentEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionTextSegmentEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionTextSegmentEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionTextSegmentEvent build()
Returns an immutable instance of TranscriptionTextSegmentEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .end() .speaker() .start() .text()
-
-
-
-