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