Class InputAudioBufferSpeechStoppedEvent.Builder
-
- All Implemented Interfaces:
public final class InputAudioBufferSpeechStoppedEvent.Builder
A builder for InputAudioBufferSpeechStoppedEvent.
-
-
Method Summary
-
-
Method Detail
-
audioEndMs
final InputAudioBufferSpeechStoppedEvent.Builder audioEndMs(Long audioEndMs)
Milliseconds since the session started when speech stopped. This will correspond to the end of audio sent to the model, and thus includes the
min_silence_duration_ms
configured in the Session.
-
audioEndMs
final InputAudioBufferSpeechStoppedEvent.Builder audioEndMs(JsonField<Long> audioEndMs)
Sets Builder.audioEndMs to an arbitrary JSON value.
You should usually call Builder.audioEndMs with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final InputAudioBufferSpeechStoppedEvent.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final InputAudioBufferSpeechStoppedEvent.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 InputAudioBufferSpeechStoppedEvent.Builder itemId(String itemId)
The ID of the user message item that will be created.
-
itemId
final InputAudioBufferSpeechStoppedEvent.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.
-
type
final InputAudioBufferSpeechStoppedEvent.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("input_audio_buffer.speech_stopped")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final InputAudioBufferSpeechStoppedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final InputAudioBufferSpeechStoppedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final InputAudioBufferSpeechStoppedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final InputAudioBufferSpeechStoppedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final InputAudioBufferSpeechStoppedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final InputAudioBufferSpeechStoppedEvent build()
Returns an immutable instance of InputAudioBufferSpeechStoppedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.audioEndMs() .eventId() .itemId()
-
-
-
-