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
Constructors Constructor Description Builder() -
Method Summary
Methods 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 ZeroShotClassificationInferenceUpdateOptions.Builder tokenization(@Nullable NlpTokenizationUpdateOptions value)The tokenization options to update when inferringAPI name:
tokenization -
tokenization
public final ZeroShotClassificationInferenceUpdateOptions.Builder tokenization(java.util.function.Function<NlpTokenizationUpdateOptions.Builder,ObjectBuilder<NlpTokenizationUpdateOptions>> fn)The tokenization options to update when inferringAPI name:
tokenization -
resultsField
public final ZeroShotClassificationInferenceUpdateOptions.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 -
multiLabel
public final ZeroShotClassificationInferenceUpdateOptions.Builder multiLabel(@Nullable java.lang.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
public final ZeroShotClassificationInferenceUpdateOptions.Builder labels(java.util.List<java.lang.String> list)Required - The labels to predict.API name:
labelsAdds all elements of
listtolabels. -
labels
public final ZeroShotClassificationInferenceUpdateOptions.Builder labels(java.lang.String value, java.lang.String... values)Required - The labels to predict.API name:
labelsAdds one or more values to
labels. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ZeroShotClassificationInferenceUpdateOptions.Builder>
-
build
- Specified by:
buildin interfaceObjectBuilder<ZeroShotClassificationInferenceUpdateOptions>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-