Class TextEmbedding.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TextEmbedding.Builder>
co.elastic.clients.elasticsearch._types.TextEmbedding.Builder
- All Implemented Interfaces:
WithJson<TextEmbedding.Builder>,ObjectBuilder<TextEmbedding>
- Enclosing class:
- TextEmbedding
public static class TextEmbedding.Builder
extends WithJsonObjectBuilderBase<TextEmbedding.Builder>
implements ObjectBuilder<TextEmbedding>
Builder for
TextEmbedding.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTextEmbedding.final TextEmbedding.BuilderRequired - API name:model_idfinal TextEmbedding.BuilderRequired - API name:model_textprotected TextEmbedding.Builderself()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
-
modelId
Required - API name:model_id -
modelText
Required - API name:model_text -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TextEmbedding.Builder>
-
build
Builds aTextEmbedding.- Specified by:
buildin interfaceObjectBuilder<TextEmbedding>- Throws:
NullPointerException- if some of the required fields are null.
-