Class BetaRawMessageDeltaEvent.Delta.Builder
-
- All Implemented Interfaces:
public final class BetaRawMessageDeltaEvent.Delta.BuilderA builder for Delta.
-
-
Method Summary
-
-
Method Detail
-
container
final BetaRawMessageDeltaEvent.Delta.Builder container(BetaContainer container)
Information about the container used in the request (for the code execution tool)
-
container
final BetaRawMessageDeltaEvent.Delta.Builder container(Optional<BetaContainer> container)
Alias for calling Builder.container with
container.orElse(null).
-
container
final BetaRawMessageDeltaEvent.Delta.Builder container(JsonField<BetaContainer> container)
Sets Builder.container to an arbitrary JSON value.
You should usually call Builder.container with a well-typed BetaContainer value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stopReason
final BetaRawMessageDeltaEvent.Delta.Builder stopReason(BetaStopReason stopReason)
-
stopReason
final BetaRawMessageDeltaEvent.Delta.Builder stopReason(Optional<BetaStopReason> stopReason)
Alias for calling Builder.stopReason with
stopReason.orElse(null).
-
stopReason
final BetaRawMessageDeltaEvent.Delta.Builder stopReason(JsonField<BetaStopReason> stopReason)
Sets Builder.stopReason to an arbitrary JSON value.
You should usually call Builder.stopReason with a well-typed BetaStopReason value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stopSequence
final BetaRawMessageDeltaEvent.Delta.Builder stopSequence(String stopSequence)
-
stopSequence
final BetaRawMessageDeltaEvent.Delta.Builder stopSequence(Optional<String> stopSequence)
Alias for calling Builder.stopSequence with
stopSequence.orElse(null).
-
stopSequence
final BetaRawMessageDeltaEvent.Delta.Builder stopSequence(JsonField<String> stopSequence)
Sets Builder.stopSequence to an arbitrary JSON value.
You should usually call Builder.stopSequence with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaRawMessageDeltaEvent.Delta.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaRawMessageDeltaEvent.Delta.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaRawMessageDeltaEvent.Delta.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaRawMessageDeltaEvent.Delta.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaRawMessageDeltaEvent.Delta.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaRawMessageDeltaEvent.Delta build()
Returns an immutable instance of Delta.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.container() .stopReason() .stopSequence()
-
-
-
-