Class ConversationItemInputAudioTranscriptionSegment.Builder
-
- All Implemented Interfaces:
public final class ConversationItemInputAudioTranscriptionSegment.Builder
A builder for ConversationItemInputAudioTranscriptionSegment.
-
-
Method Summary
-
-
Method Detail
-
id
final ConversationItemInputAudioTranscriptionSegment.Builder id(String id)
The segment identifier.
-
id
final ConversationItemInputAudioTranscriptionSegment.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.
-
contentIndex
final ConversationItemInputAudioTranscriptionSegment.Builder contentIndex(Long contentIndex)
The index of the input audio content part within the item.
-
contentIndex
final ConversationItemInputAudioTranscriptionSegment.Builder contentIndex(JsonField<Long> contentIndex)
Sets Builder.contentIndex to an arbitrary JSON value.
You should usually call Builder.contentIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
end
final ConversationItemInputAudioTranscriptionSegment.Builder end(Float end)
End time of the segment in seconds.
-
end
final ConversationItemInputAudioTranscriptionSegment.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.
-
eventId
final ConversationItemInputAudioTranscriptionSegment.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final ConversationItemInputAudioTranscriptionSegment.Builder eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value.
You should usually call Builder.eventId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
itemId
final ConversationItemInputAudioTranscriptionSegment.Builder itemId(String itemId)
The ID of the item containing the input audio content.
-
itemId
final ConversationItemInputAudioTranscriptionSegment.Builder itemId(JsonField<String> itemId)
Sets Builder.itemId to an arbitrary JSON value.
You should usually call Builder.itemId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
speaker
final ConversationItemInputAudioTranscriptionSegment.Builder speaker(String speaker)
The detected speaker label for this segment.
-
speaker
final ConversationItemInputAudioTranscriptionSegment.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 ConversationItemInputAudioTranscriptionSegment.Builder start(Float start)
Start time of the segment in seconds.
-
start
final ConversationItemInputAudioTranscriptionSegment.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 ConversationItemInputAudioTranscriptionSegment.Builder text(String text)
The text for this segment.
-
text
final ConversationItemInputAudioTranscriptionSegment.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 ConversationItemInputAudioTranscriptionSegment.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("conversation.item.input_audio_transcription.segment")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ConversationItemInputAudioTranscriptionSegment.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ConversationItemInputAudioTranscriptionSegment.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ConversationItemInputAudioTranscriptionSegment.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ConversationItemInputAudioTranscriptionSegment.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ConversationItemInputAudioTranscriptionSegment.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ConversationItemInputAudioTranscriptionSegment build()
Returns an immutable instance of ConversationItemInputAudioTranscriptionSegment.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .contentIndex() .end() .eventId() .itemId() .speaker() .start() .text()
-
-
-
-