Class TextEmbeddingInferenceUpdateOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.TextEmbeddingInferenceUpdateOptions
- All Implemented Interfaces:
InferenceConfigUpdateVariant,JsonpSerializable
@JsonpDeserializable public class TextEmbeddingInferenceUpdateOptions extends java.lang.Object implements InferenceConfigUpdateVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTextEmbeddingInferenceUpdateOptions.BuilderBuilder forTextEmbeddingInferenceUpdateOptions. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TextEmbeddingInferenceUpdateOptions>_DESERIALIZERJson deserializer forTextEmbeddingInferenceUpdateOptions -
Method Summary
Modifier and Type Method Description InferenceConfigUpdate.Kind_inferenceConfigUpdateKind()InferenceConfigUpdate variant kind.static TextEmbeddingInferenceUpdateOptionsof(java.util.function.Function<TextEmbeddingInferenceUpdateOptions.Builder,ObjectBuilder<TextEmbeddingInferenceUpdateOptions>> fn)java.lang.StringresultsField()The field that is added to incoming documents to contain the inference prediction.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTextEmbeddingInferenceUpdateOptionsDeserializer(ObjectDeserializer<TextEmbeddingInferenceUpdateOptions.Builder> op)NlpTokenizationUpdateOptionstokenization()API name:tokenizationjava.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigUpdateVariant
_toInferenceConfigUpdate
-
Field Details
-
_DESERIALIZER
Json deserializer forTextEmbeddingInferenceUpdateOptions
-
-
Method Details
-
of
public static TextEmbeddingInferenceUpdateOptions of(java.util.function.Function<TextEmbeddingInferenceUpdateOptions.Builder,ObjectBuilder<TextEmbeddingInferenceUpdateOptions>> fn) -
_inferenceConfigUpdateKind
InferenceConfigUpdate variant kind.- Specified by:
_inferenceConfigUpdateKindin interfaceInferenceConfigUpdateVariant
-
tokenization
API name:tokenization -
resultsField
@Nullable public final java.lang.String resultsField()The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupTextEmbeddingInferenceUpdateOptionsDeserializer
protected static void setupTextEmbeddingInferenceUpdateOptionsDeserializer(ObjectDeserializer<TextEmbeddingInferenceUpdateOptions.Builder> op)
-