Class RawMessageDeltaEvent.Delta.Builder
-
- All Implemented Interfaces:
public final class RawMessageDeltaEvent.Delta.BuilderA builder for Delta.
-
-
Method Summary
-
-
Method Detail
-
container
final RawMessageDeltaEvent.Delta.Builder container(Container container)
Information about the container used in the request (for the code execution tool)
-
container
final RawMessageDeltaEvent.Delta.Builder container(Optional<Container> container)
Alias for calling Builder.container with
container.orElse(null).
-
container
final RawMessageDeltaEvent.Delta.Builder container(JsonField<Container> container)
Sets Builder.container to an arbitrary JSON value.
You should usually call Builder.container with a well-typed Container value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stopReason
final RawMessageDeltaEvent.Delta.Builder stopReason(StopReason stopReason)
-
stopReason
final RawMessageDeltaEvent.Delta.Builder stopReason(Optional<StopReason> stopReason)
Alias for calling Builder.stopReason with
stopReason.orElse(null).
-
stopReason
final RawMessageDeltaEvent.Delta.Builder stopReason(JsonField<StopReason> stopReason)
Sets Builder.stopReason to an arbitrary JSON value.
You should usually call Builder.stopReason with a well-typed StopReason value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stopSequence
final RawMessageDeltaEvent.Delta.Builder stopSequence(String stopSequence)
-
stopSequence
final RawMessageDeltaEvent.Delta.Builder stopSequence(Optional<String> stopSequence)
Alias for calling Builder.stopSequence with
stopSequence.orElse(null).
-
stopSequence
final RawMessageDeltaEvent.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 RawMessageDeltaEvent.Delta.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RawMessageDeltaEvent.Delta.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RawMessageDeltaEvent.Delta.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RawMessageDeltaEvent.Delta.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RawMessageDeltaEvent.Delta.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RawMessageDeltaEvent.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()
-
-
-
-