Class ContentObject
java.lang.Object
co.elastic.clients.elasticsearch.inference.ContentObject
- All Implemented Interfaces:
JsonpSerializable
An object style representation of a single portion of a conversation.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ContentObject>
Json deserializer forContentObject
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContentObject
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
text()
Required - The text content.toString()
final String
type()
Required - The type of content.
-
Field Details
-
_DESERIALIZER
Json deserializer forContentObject
-
-
Method Details
-
of
-
text
Required - The text content.API name:
text
-
type
Required - The type of content.API name:
type
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupContentObjectDeserializer
-