Class InferenceString.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<InferenceString.Builder>
co.elastic.clients.elasticsearch._types.InferenceString.Builder
- All Implemented Interfaces:
WithJson<InferenceString.Builder>,ObjectBuilder<InferenceString>
- Enclosing class:
- InferenceString
public static class InferenceString.Builder
extends WithJsonObjectBuilderBase<InferenceString.Builder>
implements ObjectBuilder<InferenceString>
Builder for
InferenceString.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aInferenceString.final InferenceString.Builderformat(EmbeddingContentFormat value) The format of the data.protected InferenceString.Builderself()final InferenceString.Buildertype(EmbeddingContentType value) Required - The type of data that the value represents.final InferenceString.BuilderRequired - String which may be raw text, or the string representation of some other data such as an image in base64.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
-
type
Required - The type of data that the value represents.API name:
type -
format
The format of the data. If null, the default data format for the given type is used.API name:
format -
value
Required - String which may be raw text, or the string representation of some other data such as an image in base64.API name:
value -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<InferenceString.Builder>
-
build
Builds aInferenceString.- Specified by:
buildin interfaceObjectBuilder<InferenceString>- Throws:
NullPointerException- if some of the required fields are null.
-