Class ZeroShotClassificationInferenceUpdateOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ZeroShotClassificationInferenceUpdateOptions.Builder>
co.elastic.clients.elasticsearch.ml.ZeroShotClassificationInferenceUpdateOptions.Builder
- All Implemented Interfaces:
WithJson<ZeroShotClassificationInferenceUpdateOptions.Builder>
,ObjectBuilder<ZeroShotClassificationInferenceUpdateOptions>
- Enclosing class:
- ZeroShotClassificationInferenceUpdateOptions
public static class ZeroShotClassificationInferenceUpdateOptions.Builder
extends WithJsonObjectBuilderBase<ZeroShotClassificationInferenceUpdateOptions.Builder>
implements ObjectBuilder<ZeroShotClassificationInferenceUpdateOptions>
Builder for
ZeroShotClassificationInferenceUpdateOptions
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Required - The labels to predict.Required - The labels to predict.multiLabel
(Boolean value) Update the configured multi label option.resultsField
(String value) The field that is added to incoming documents to contain the inference prediction.self()
The tokenization options to update when inferringtokenization
(Function<NlpTokenizationUpdateOptions.Builder, ObjectBuilder<NlpTokenizationUpdateOptions>> fn) The tokenization options to update when inferringMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tokenization
public final ZeroShotClassificationInferenceUpdateOptions.Builder tokenization(@Nullable NlpTokenizationUpdateOptions value) The tokenization options to update when inferringAPI name:
tokenization
-
tokenization
public final ZeroShotClassificationInferenceUpdateOptions.Builder tokenization(Function<NlpTokenizationUpdateOptions.Builder, ObjectBuilder<NlpTokenizationUpdateOptions>> fn) The tokenization options to update when inferringAPI name:
tokenization
-
resultsField
public final ZeroShotClassificationInferenceUpdateOptions.Builder resultsField(@Nullable String value) The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field
-
multiLabel
public final ZeroShotClassificationInferenceUpdateOptions.Builder multiLabel(@Nullable Boolean value) Update the configured multi label option. Indicates if more than one true label exists. Defaults to the configured value.API name:
multi_label
-
labels
Required - The labels to predict.API name:
labels
Adds all elements of
list
tolabels
. -
labels
public final ZeroShotClassificationInferenceUpdateOptions.Builder labels(String value, String... values) Required - The labels to predict.API name:
labels
Adds one or more values to
labels
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ZeroShotClassificationInferenceUpdateOptions.Builder>
-
build
- Specified by:
build
in interfaceObjectBuilder<ZeroShotClassificationInferenceUpdateOptions>
- Throws:
NullPointerException
- if some of the required fields are null.
-