Class InferTrainedModelDeploymentRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.InferTrainedModelDeploymentRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class InferTrainedModelDeploymentRequest extends RequestBase implements JsonpSerializable
Evaluates a trained model.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInferTrainedModelDeploymentRequest.BuilderBuilder forInferTrainedModelDeploymentRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<InferTrainedModelDeploymentRequest>_DESERIALIZERJson deserializer forInferTrainedModelDeploymentRequeststatic Endpoint<InferTrainedModelDeploymentRequest,InferTrainedModelDeploymentResponse,ErrorResponse>_ENDPOINTEndpoint "ml.infer_trained_model_deployment". -
Method Summary
Modifier and Type Method Description java.util.List<java.util.Map<java.lang.String,java.lang.String>>docs()Required - An array of objects to pass to the model for inference.java.lang.StringmodelId()Required - The unique identifier of the trained model.static InferTrainedModelDeploymentRequestof(java.util.function.Function<InferTrainedModelDeploymentRequest.Builder,ObjectBuilder<InferTrainedModelDeploymentRequest>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupInferTrainedModelDeploymentRequestDeserializer(ObjectDeserializer<InferTrainedModelDeploymentRequest.Builder> op)Timetimeout()Controls the amount of time to wait for inference results.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forInferTrainedModelDeploymentRequest -
_ENDPOINT
public static final Endpoint<InferTrainedModelDeploymentRequest,InferTrainedModelDeploymentResponse,ErrorResponse> _ENDPOINTEndpoint "ml.infer_trained_model_deployment".
-
-
Method Details
-
of
public static InferTrainedModelDeploymentRequest of(java.util.function.Function<InferTrainedModelDeploymentRequest.Builder,ObjectBuilder<InferTrainedModelDeploymentRequest>> fn) -
docs
public final java.util.List<java.util.Map<java.lang.String,java.lang.String>> docs()Required - An array of objects to pass to the model for inference. The objects should contain a field matching your configured trained model input. Typically, the field name istext_field. Currently, only a single value is allowed.API name:
docs -
modelId
public final java.lang.String modelId()Required - The unique identifier of the trained model.API name:
model_id -
timeout
Controls the amount of time to wait for inference results.API name:
timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupInferTrainedModelDeploymentRequestDeserializer
protected static void setupInferTrainedModelDeploymentRequestDeserializer(ObjectDeserializer<InferTrainedModelDeploymentRequest.Builder> op)
-