Class TextEmbeddingResult.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TextEmbeddingResult.Builder>
co.elastic.clients.elasticsearch.inference.TextEmbeddingResult.Builder
- All Implemented Interfaces:
WithJson<TextEmbeddingResult.Builder>
,ObjectBuilder<TextEmbeddingResult>
- Enclosing class:
- TextEmbeddingResult
public static class TextEmbeddingResult.Builder
extends WithJsonObjectBuilderBase<TextEmbeddingResult.Builder>
implements ObjectBuilder<TextEmbeddingResult>
Builder for
TextEmbeddingResult
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aTextEmbeddingResult
.Required - API name:embedding
Required - API name:embedding
protected TextEmbeddingResult.Builder
self()
Methods 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
-
embedding
Required - API name:embedding
Adds all elements of
list
toembedding
. -
embedding
Required - API name:embedding
Adds one or more values to
embedding
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TextEmbeddingResult.Builder>
-
build
Builds aTextEmbeddingResult
.- Specified by:
build
in interfaceObjectBuilder<TextEmbeddingResult>
- Throws:
NullPointerException
- if some of the required fields are null.
-