Class PutTrainedModelVocabularyRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutTrainedModelVocabularyRequest.Builder>
co.elastic.clients.elasticsearch.ml.PutTrainedModelVocabularyRequest.Builder
- All Implemented Interfaces:
WithJson<PutTrainedModelVocabularyRequest.Builder>,ObjectBuilder<PutTrainedModelVocabularyRequest>
- Enclosing class:
- PutTrainedModelVocabularyRequest
public static class PutTrainedModelVocabularyRequest.Builder
extends RequestBase.AbstractBuilder<PutTrainedModelVocabularyRequest.Builder>
implements ObjectBuilder<PutTrainedModelVocabularyRequest>
Builder for
PutTrainedModelVocabularyRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutTrainedModelVocabularyRequest.The optional model merges if required by the tokenizer.The optional model merges if required by the tokenizer.Required - The unique identifier of the trained model.The optional vocabulary value scores if required by the tokenizer.The optional vocabulary value scores if required by the tokenizer.protected PutTrainedModelVocabularyRequest.Builderself()vocabulary(String value, String... values) Required - The model vocabulary, which must not be empty.vocabulary(List<String> list) Required - The model vocabulary, which must not be empty.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
merges
The optional model merges if required by the tokenizer.API name:
mergesAdds all elements of
listtomerges. -
merges
The optional model merges if required by the tokenizer.API name:
mergesAdds one or more values to
merges. -
modelId
Required - The unique identifier of the trained model.API name:
model_id -
scores
The optional vocabulary value scores if required by the tokenizer.API name:
scoresAdds all elements of
listtoscores. -
scores
The optional vocabulary value scores if required by the tokenizer.API name:
scoresAdds one or more values to
scores. -
vocabulary
Required - The model vocabulary, which must not be empty.API name:
vocabularyAdds all elements of
listtovocabulary. -
vocabulary
Required - The model vocabulary, which must not be empty.API name:
vocabularyAdds one or more values to
vocabulary. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutTrainedModelVocabularyRequest.Builder>
-
build
Builds aPutTrainedModelVocabularyRequest.- Specified by:
buildin interfaceObjectBuilder<PutTrainedModelVocabularyRequest>- Throws:
NullPointerException- if some of the required fields are null.
-