Class AlibabaCloudTaskSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AlibabaCloudTaskSettings.Builder>
co.elastic.clients.elasticsearch.inference.AlibabaCloudTaskSettings.Builder
- All Implemented Interfaces:
- WithJson<AlibabaCloudTaskSettings.Builder>,- ObjectBuilder<AlibabaCloudTaskSettings>
- Enclosing class:
- AlibabaCloudTaskSettings
public static class AlibabaCloudTaskSettings.Builder
extends WithJsonObjectBuilderBase<AlibabaCloudTaskSettings.Builder>
implements ObjectBuilder<AlibabaCloudTaskSettings>
Builder for 
AlibabaCloudTaskSettings.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aAlibabaCloudTaskSettings.For asparse_embeddingortext_embeddingtask, specify the type of input passed to the model.returnToken(Boolean value) For asparse_embeddingtask, it affects whether the token name will be returned in the response.protected AlibabaCloudTaskSettings.Builderself()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- 
inputTypeFor asparse_embeddingortext_embeddingtask, specify the type of input passed to the model. Valid values are:- ingestfor storing document embeddings in a vector database.
- searchfor storing embeddings of search queries run against a vector database to find relevant documents.
 API name: input_type
- 
returnTokenFor asparse_embeddingtask, it affects whether the token name will be returned in the response. It defaults tofalse, which means only the token ID will be returned in the response.API name: return_token
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<AlibabaCloudTaskSettings.Builder>
 
- 
buildBuilds aAlibabaCloudTaskSettings.- Specified by:
- buildin interface- ObjectBuilder<AlibabaCloudTaskSettings>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-