Package com.anthropic.models.messages
Class TextDelta.Builder
-
- All Implemented Interfaces:
public final class TextDelta.BuilderA builder for TextDelta.
-
-
Method Summary
Modifier and Type Method Description final TextDelta.Buildertext(String text)final TextDelta.Buildertext(JsonField<String> text)Sets Builder.text to an arbitrary JSON value. final TextDelta.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final TextDelta.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final TextDelta.BuilderputAdditionalProperty(String key, JsonValue value)final TextDelta.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final TextDelta.BuilderremoveAdditionalProperty(String key)final TextDelta.BuilderremoveAllAdditionalProperties(Set<String> keys)final TextDeltabuild()Returns an immutable instance of TextDelta. -
-
Method Detail
-
text
final TextDelta.Builder text(String text)
-
text
final TextDelta.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text 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 TextDelta.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("text_delta")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TextDelta.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TextDelta.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TextDelta.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TextDelta.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TextDelta.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-