Package com.openai.models.conversations
Class TextContent.Builder
-
- All Implemented Interfaces:
public final class TextContent.BuilderA builder for TextContent.
-
-
Method Summary
Modifier and Type Method Description final TextContent.Buildertext(String text)final TextContent.Buildertext(JsonField<String> text)Sets Builder.text to an arbitrary JSON value. final TextContent.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final TextContent.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final TextContent.BuilderputAdditionalProperty(String key, JsonValue value)final TextContent.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final TextContent.BuilderremoveAdditionalProperty(String key)final TextContent.BuilderremoveAllAdditionalProperties(Set<String> keys)final TextContentbuild()Returns an immutable instance of TextContent. -
-
Method Detail
-
text
final TextContent.Builder text(String text)
-
text
final TextContent.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 TextContent.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 TextContent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TextContent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TextContent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TextContent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TextContent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TextContent build()
Returns an immutable instance of TextContent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.text()
-
-
-
-