Class ChatCompletionContentPartText.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionContentPartText.Builder
A builder for ChatCompletionContentPartText.
-
-
Method Summary
Modifier and Type Method Description final ChatCompletionContentPartText.Builder
text(String text)
The text content. final ChatCompletionContentPartText.Builder
text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value. final ChatCompletionContentPartText.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ChatCompletionContentPartText.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ChatCompletionContentPartText.Builder
putAdditionalProperty(String key, JsonValue value)
final ChatCompletionContentPartText.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ChatCompletionContentPartText.Builder
removeAdditionalProperty(String key)
final ChatCompletionContentPartText.Builder
removeAllAdditionalProperties(Set<String> keys)
final ChatCompletionContentPartText
build()
Returns an immutable instance of ChatCompletionContentPartText. -
-
Method Detail
-
text
final ChatCompletionContentPartText.Builder text(String text)
The text content.
-
text
final ChatCompletionContentPartText.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 ChatCompletionContentPartText.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")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionContentPartText.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionContentPartText.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionContentPartText.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionContentPartText.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionContentPartText.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionContentPartText build()
Returns an immutable instance of ChatCompletionContentPartText.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.text()
-
-
-
-