Class PutElserRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutElserRequest.Builder>
co.elastic.clients.elasticsearch.inference.PutElserRequest.Builder
- All Implemented Interfaces:
WithJson<PutElserRequest.Builder>
,ObjectBuilder<PutElserRequest>
- Enclosing class:
- PutElserRequest
@Deprecated
public static class PutElserRequest.Builder
extends RequestBase.AbstractBuilder<PutElserRequest.Builder>
implements ObjectBuilder<PutElserRequest>
Deprecated.
Builder for
PutElserRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.Builds aPutElserRequest
.final PutElserRequest.Builder
Deprecated.The chunking configuration object.final PutElserRequest.Builder
chunkingSettings
(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) Deprecated.The chunking configuration object.final PutElserRequest.Builder
elserInferenceId
(String value) Deprecated.Required - The unique identifier of the inference endpoint.protected PutElserRequest.Builder
self()
Deprecated.final PutElserRequest.Builder
service
(ElserServiceType value) Deprecated.Required - The type of service supported for the specified task type.final PutElserRequest.Builder
Deprecated.Required - Settings used to install the inference model.final PutElserRequest.Builder
Deprecated.Required - Settings used to install the inference model.final PutElserRequest.Builder
taskType
(ElserTaskType value) Deprecated.Required - The type of the inference task that the model will perform.final PutElserRequest.Builder
Deprecated.Specifies the amount of time to wait for the inference endpoint to be created.final PutElserRequest.Builder
Deprecated.Specifies the amount of time to wait for the inference endpoint to be created.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()Deprecated.
-
-
Method Details
-
chunkingSettings
Deprecated.The chunking configuration object.API name:
chunking_settings
-
chunkingSettings
public final PutElserRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) Deprecated.The chunking configuration object.API name:
chunking_settings
-
elserInferenceId
Deprecated.Required - The unique identifier of the inference endpoint.API name:
elser_inference_id
-
service
Deprecated.Required - The type of service supported for the specified task type. In this case,elser
.API name:
service
-
serviceSettings
Deprecated.Required - Settings used to install the inference model. These settings are specific to theelser
service.API name:
service_settings
-
serviceSettings
public final PutElserRequest.Builder serviceSettings(Function<ElserServiceSettings.Builder, ObjectBuilder<ElserServiceSettings>> fn) Deprecated.Required - Settings used to install the inference model. These settings are specific to theelser
service.API name:
service_settings
-
taskType
Deprecated.Required - The type of the inference task that the model will perform.API name:
task_type
-
timeout
Deprecated.Specifies the amount of time to wait for the inference endpoint to be created.API name:
timeout
-
timeout
Deprecated.Specifies the amount of time to wait for the inference endpoint to be created.API name:
timeout
-
self
Deprecated.- Specified by:
self
in classRequestBase.AbstractBuilder<PutElserRequest.Builder>
-
build
Deprecated.Builds aPutElserRequest
.- Specified by:
build
in interfaceObjectBuilder<PutElserRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-