Class TranscriptionDiarizedSegment.Builder
-
- All Implemented Interfaces:
public final class TranscriptionDiarizedSegment.BuilderA builder for TranscriptionDiarizedSegment.
-
-
Method Summary
-
-
Method Detail
-
id
final TranscriptionDiarizedSegment.Builder id(String id)
Unique identifier for the segment.
-
id
final TranscriptionDiarizedSegment.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 TranscriptionDiarizedSegment.Builder end(Float end)
End timestamp of the segment in seconds.
-
end
final TranscriptionDiarizedSegment.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 TranscriptionDiarizedSegment.Builder speaker(String speaker)
Speaker label for this segment. When known speakers are provided, the label matches
known_speaker_names[]. Otherwise speakers are labeled sequentially using capital letters (A,B, ...).
-
speaker
final TranscriptionDiarizedSegment.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 TranscriptionDiarizedSegment.Builder start(Float start)
Start timestamp of the segment in seconds.
-
start
final TranscriptionDiarizedSegment.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 TranscriptionDiarizedSegment.Builder text(String text)
Transcript text for this segment.
-
text
final TranscriptionDiarizedSegment.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 TranscriptionDiarizedSegment.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 TranscriptionDiarizedSegment.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionDiarizedSegment.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionDiarizedSegment.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionDiarizedSegment.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionDiarizedSegment.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionDiarizedSegment build()
Returns an immutable instance of TranscriptionDiarizedSegment.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .end() .speaker() .start() .text()
-
-
-
-