Class ChatKitThreadUserMessageItem.Content.InputText
-
- All Implemented Interfaces:
public final class ChatKitThreadUserMessageItem.Content.InputText
Text block that a user contributed to the thread.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatKitThreadUserMessageItem.Content.InputText.Builder
A builder for InputText.
-
Method Summary
Modifier and Type Method Description final String
text()
Plain-text content supplied by the user. final JsonValue
_type()
Type discriminator that is always input_text
.final JsonField<String>
_text()
Returns the raw JSON value of text. final Map<String, JsonValue>
_additionalProperties()
final ChatKitThreadUserMessageItem.Content.InputText.Builder
toBuilder()
final ChatKitThreadUserMessageItem.Content.InputText
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatKitThreadUserMessageItem.Content.InputText.Builder
builder()
Returns a mutable builder for constructing an instance of InputText. -
-
Method Detail
-
_type
final JsonValue _type()
Type discriminator that is always
input_text
.Expected to always return the following:
JsonValue.from("input_text")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatKitThreadUserMessageItem.Content.InputText.Builder toBuilder()
-
validate
final ChatKitThreadUserMessageItem.Content.InputText validate()
-
builder
final static ChatKitThreadUserMessageItem.Content.InputText.Builder builder()
Returns a mutable builder for constructing an instance of InputText.
The following fields are required:
.text()
-
-
-
-