Class TextEmbeddingRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<TextEmbeddingRequest.Builder>
co.elastic.clients.elasticsearch.inference.TextEmbeddingRequest.Builder
- All Implemented Interfaces:
- WithJson<TextEmbeddingRequest.Builder>,- ObjectBuilder<TextEmbeddingRequest>
- Enclosing class:
- TextEmbeddingRequest
public static class TextEmbeddingRequest.Builder
extends RequestBase.AbstractBuilder<TextEmbeddingRequest.Builder>
implements ObjectBuilder<TextEmbeddingRequest>
Builder for 
TextEmbeddingRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aTextEmbeddingRequest.inferenceId(String value) Required - The inference IdRequired - Inference input.Required - Inference input.The input data type for the text embedding model.protected TextEmbeddingRequest.Builderself()taskSettings(JsonData value) Optional task settingsSpecifies the amount of time to wait for the inference request to complete.Specifies the amount of time to wait for the inference request to complete.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
inferenceIdRequired - The inference IdAPI name: inference_id
- 
inputRequired - Inference input. Either a string or an array of strings.API name: inputAdds all elements of listtoinput.
- 
inputRequired - Inference input. Either a string or an array of strings.API name: inputAdds one or more values to input.
- 
inputTypeThe input data type for the text embedding model. Possible values include:- SEARCH
- INGEST
- CLASSIFICATION
- CLUSTERINGNot all services support all values. Unsupported values will trigger a validation exception. Accepted values depend on the configured inference service, refer to the relevant service-specific documentation for more info.
 info The input_typeparameter specified on the root level of the request body will take precedence over theinput_typeparameter specified intask_settings.API name: input_type
- 
taskSettingsOptional task settingsAPI name: task_settings
- 
timeoutSpecifies the amount of time to wait for the inference request to complete.API name: timeout
- 
timeoutSpecifies the amount of time to wait for the inference request to complete.API name: timeout
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<TextEmbeddingRequest.Builder>
 
- 
buildBuilds aTextEmbeddingRequest.- Specified by:
- buildin interface- ObjectBuilder<TextEmbeddingRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-