Class TrainedModelAssignmentTaskParameters
java.lang.Object
co.elastic.clients.elasticsearch.ml.TrainedModelAssignmentTaskParameters
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class TrainedModelAssignmentTaskParameters
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<TrainedModelAssignmentTaskParameters>
Json deserializer forTrainedModelAssignmentTaskParameters
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
Required - The size of the trained model cache.final String
Required - The unique identifier for the trained model deployment.final int
Required - The size of the trained model in bytes.final String
modelId()
Required - The unique identifier for the trained model.final int
Required - The total number of allocations this model is assigned across ML nodes.of
(Function<TrainedModelAssignmentTaskParameters.Builder, ObjectBuilder<TrainedModelAssignmentTaskParameters>> fn) final TrainingPriority
priority()
Required - API name:priority
final int
Required - Number of inference requests are allowed in the queue at a time.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupTrainedModelAssignmentTaskParametersDeserializer
(ObjectDeserializer<TrainedModelAssignmentTaskParameters.Builder> op) final int
Required - Number of threads per allocation.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forTrainedModelAssignmentTaskParameters
-
-
Method Details
-
of
-
modelBytes
public final int modelBytes()Required - The size of the trained model in bytes.API name:
model_bytes
-
modelId
Required - The unique identifier for the trained model.API name:
model_id
-
deploymentId
Required - The unique identifier for the trained model deployment.API name:
deployment_id
-
cacheSize
Required - The size of the trained model cache.API name:
cache_size
-
numberOfAllocations
public final int numberOfAllocations()Required - The total number of allocations this model is assigned across ML nodes.API name:
number_of_allocations
-
priority
Required - API name:priority
-
queueCapacity
public final int queueCapacity()Required - Number of inference requests are allowed in the queue at a time.API name:
queue_capacity
-
threadsPerAllocation
public final int threadsPerAllocation()Required - Number of threads per allocation.API name:
threads_per_allocation
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupTrainedModelAssignmentTaskParametersDeserializer
protected static void setupTrainedModelAssignmentTaskParametersDeserializer(ObjectDeserializer<TrainedModelAssignmentTaskParameters.Builder> op)
-