Class TextEmbeddingInferenceUpdateOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TextEmbeddingInferenceUpdateOptions.Builder>
co.elastic.clients.elasticsearch.ml.TextEmbeddingInferenceUpdateOptions.Builder
- All Implemented Interfaces:
WithJson<TextEmbeddingInferenceUpdateOptions.Builder>,ObjectBuilder<TextEmbeddingInferenceUpdateOptions>
- Enclosing class:
- TextEmbeddingInferenceUpdateOptions
public static class TextEmbeddingInferenceUpdateOptions.Builder extends WithJsonObjectBuilderBase<TextEmbeddingInferenceUpdateOptions.Builder> implements ObjectBuilder<TextEmbeddingInferenceUpdateOptions>
Builder for
TextEmbeddingInferenceUpdateOptions.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TextEmbeddingInferenceUpdateOptionsbuild()Builds aTextEmbeddingInferenceUpdateOptions.TextEmbeddingInferenceUpdateOptions.BuilderresultsField(java.lang.String value)The field that is added to incoming documents to contain the inference prediction.protected TextEmbeddingInferenceUpdateOptions.Builderself()TextEmbeddingInferenceUpdateOptions.Buildertokenization(NlpTokenizationUpdateOptions value)API name:tokenizationTextEmbeddingInferenceUpdateOptions.Buildertokenization(java.util.function.Function<NlpTokenizationUpdateOptions.Builder,ObjectBuilder<NlpTokenizationUpdateOptions>> fn)API name:tokenizationMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tokenization
public final TextEmbeddingInferenceUpdateOptions.Builder tokenization(@Nullable NlpTokenizationUpdateOptions value)API name:tokenization -
tokenization
public final TextEmbeddingInferenceUpdateOptions.Builder tokenization(java.util.function.Function<NlpTokenizationUpdateOptions.Builder,ObjectBuilder<NlpTokenizationUpdateOptions>> fn)API name:tokenization -
resultsField
public final TextEmbeddingInferenceUpdateOptions.Builder resultsField(@Nullable java.lang.String value)The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TextEmbeddingInferenceUpdateOptions.Builder>
-
build
Builds aTextEmbeddingInferenceUpdateOptions.- Specified by:
buildin interfaceObjectBuilder<TextEmbeddingInferenceUpdateOptions>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-