Class BetaResponseAudioDeltaEvent.Builder
-
- All Implemented Interfaces:
public final class BetaResponseAudioDeltaEvent.BuilderA builder for BetaResponseAudioDeltaEvent.
-
-
Method Summary
-
-
Method Detail
-
delta
final BetaResponseAudioDeltaEvent.Builder delta(String delta)
A chunk of Base64 encoded response audio bytes.
-
delta
final BetaResponseAudioDeltaEvent.Builder delta(JsonField<String> delta)
Sets Builder.delta to an arbitrary JSON value.
You should usually call Builder.delta with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sequenceNumber
final BetaResponseAudioDeltaEvent.Builder sequenceNumber(Long sequenceNumber)
A sequence number for this chunk of the stream response.
-
sequenceNumber
final BetaResponseAudioDeltaEvent.Builder sequenceNumber(JsonField<Long> sequenceNumber)
Sets Builder.sequenceNumber to an arbitrary JSON value.
You should usually call Builder.sequenceNumber with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaResponseAudioDeltaEvent.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("response.audio.delta")This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseAudioDeltaEvent.Builder agent(BetaResponseAudioDeltaEvent.Agent agent)
The agent that owns this multi-agent streaming event.
-
agent
final BetaResponseAudioDeltaEvent.Builder agent(Optional<BetaResponseAudioDeltaEvent.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseAudioDeltaEvent.Builder agent(JsonField<BetaResponseAudioDeltaEvent.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseAudioDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseAudioDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseAudioDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseAudioDeltaEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseAudioDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseAudioDeltaEvent build()
Returns an immutable instance of BetaResponseAudioDeltaEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.delta() .sequenceNumber()
-
-
-
-