Class InferenceString
java.lang.Object
co.elastic.clients.elasticsearch._types.InferenceString
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<InferenceString>Json deserializer forInferenceString -
Method Summary
Modifier and TypeMethodDescriptionfinal EmbeddingContentFormatformat()The format of the data.static InferenceStringrebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()final EmbeddingContentTypetype()Required - The type of data that the value represents.final Stringvalue()Required - String which may be raw text, or the string representation of some other data such as an image in base64.
-
Field Details
-
_DESERIALIZER
Json deserializer forInferenceString
-
-
Method Details
-
of
public static InferenceString of(Function<InferenceString.Builder, ObjectBuilder<InferenceString>> fn) -
type
Required - The type of data that the value represents.API name:
type -
format
The format of the data. If null, the default data format for the given type is used.API name:
format -
value
Required - String which may be raw text, or the string representation of some other data such as an image in base64.API name:
value -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
InferenceString.Builderinitialized with field values of this instance
-
setupInferenceStringDeserializer
protected static void setupInferenceStringDeserializer(ObjectDeserializer<InferenceString.Builder> op)
-