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.BuilderDeprecated.The chunking configuration object.final PutElserRequest.BuilderchunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) Deprecated.The chunking configuration object.final PutElserRequest.BuilderelserInferenceId(String value) Deprecated.Required - The unique identifier of the inference endpoint.protected PutElserRequest.Builderself()Deprecated.final PutElserRequest.Builderservice(ElserServiceType value) Deprecated.Required - The type of service supported for the specified task type.final PutElserRequest.BuilderDeprecated.Required - Settings used to install the inference model.final PutElserRequest.BuilderDeprecated.Required - Settings used to install the inference model.final PutElserRequest.BuildertaskType(ElserTaskType value) Deprecated.Required - The type of the inference task that the model will perform.final PutElserRequest.BuilderDeprecated.Specifies the amount of time to wait for the inference endpoint to be created.final PutElserRequest.BuilderDeprecated.Specifies the amount of time to wait for the inference endpoint to be created.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()Deprecated.
-
-
Method Details
-
chunkingSettings
Deprecated.The chunking configuration object. Note that for ELSER endpoints, the max_chunk_size may not exceed300.API name:
chunking_settings -
chunkingSettings
public final PutElserRequest.Builder chunkingSettings(Function<InferenceChunkingSettings.Builder, ObjectBuilder<InferenceChunkingSettings>> fn) Deprecated.The chunking configuration object. Note that for ELSER endpoints, the max_chunk_size may not exceed300.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 theelserservice.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 theelserservice.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:
selfin classRequestBase.AbstractBuilder<PutElserRequest.Builder>
-
build
Deprecated.Builds aPutElserRequest.- Specified by:
buildin interfaceObjectBuilder<PutElserRequest>- Throws:
NullPointerException- if some of the required fields are null.
-