Class RerankRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<RerankRequest.Builder>
co.elastic.clients.elasticsearch.inference.RerankRequest.Builder
- All Implemented Interfaces:
WithJson<RerankRequest.Builder>
,ObjectBuilder<RerankRequest>
- Enclosing class:
- RerankRequest
public static class RerankRequest.Builder
extends RequestBase.AbstractBuilder<RerankRequest.Builder>
implements ObjectBuilder<RerankRequest>
Builder for
RerankRequest
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aRerankRequest
.final RerankRequest.Builder
inferenceId
(String value) Required - The unique identifier for the inference endpoint.final RerankRequest.Builder
Required - The text on which you want to perform the inference task.final RerankRequest.Builder
Required - The text on which you want to perform the inference task.final RerankRequest.Builder
Required - Query input.protected RerankRequest.Builder
self()
final RerankRequest.Builder
taskSettings
(JsonData value) Task settings for the individual inference request.final RerankRequest.Builder
The amount of time to wait for the inference request to complete.final RerankRequest.Builder
The amount of time to wait for the inference request to complete.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()
-
-
Method Details
-
inferenceId
Required - The unique identifier for the inference endpoint.API name:
inference_id
-
input
Required - The text on which you want to perform the inference task. It can be a single string or an array.info Inference endpoints for the
completion
task type currently only support a single string as input.API name:
input
Adds all elements of
list
toinput
. -
input
Required - The text on which you want to perform the inference task. It can be a single string or an array.info Inference endpoints for the
completion
task type currently only support a single string as input.API name:
input
Adds one or more values to
input
. -
query
Required - Query input.API name:
query
-
taskSettings
Task settings for the individual inference request. These settings are specific to the task type you specified and override the task settings specified when initializing the service.API name:
task_settings
-
timeout
The amount of time to wait for the inference request to complete.API name:
timeout
-
timeout
The amount of time to wait for the inference request to complete.API name:
timeout
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<RerankRequest.Builder>
-
build
Builds aRerankRequest
.- Specified by:
build
in interfaceObjectBuilder<RerankRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-