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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TrainedModelAssignmentTaskParameters>Json deserializer forTrainedModelAssignmentTaskParameters
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringThe size of the trained model cache.final StringRequired - The unique identifier for the trained model deployment.final StringRequired - The size of the trained model in bytes.final StringmodelId()Required - The unique identifier for the trained model.final intRequired - The total number of allocations this model is assigned across ML nodes.of(Function<TrainedModelAssignmentTaskParameters.Builder, ObjectBuilder<TrainedModelAssignmentTaskParameters>> fn) final StringRequired - API name:per_allocation_memory_bytesfinal StringRequired - API name:per_deployment_memory_bytesfinal TrainingPrioritypriority()Required - API name:priorityfinal intRequired - Number of inference requests are allowed in the queue at a time.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupTrainedModelAssignmentTaskParametersDeserializer(ObjectDeserializer<TrainedModelAssignmentTaskParameters.Builder> op) final intRequired - Number of threads per allocation.toString()
- 
Field Details- 
_DESERIALIZERJson deserializer forTrainedModelAssignmentTaskParameters
 
- 
- 
Method Details- 
of
- 
modelBytesRequired - The size of the trained model in bytes.API name: model_bytes
- 
modelIdRequired - The unique identifier for the trained model.API name: model_id
- 
deploymentIdRequired - The unique identifier for the trained model deployment.API name: deployment_id
- 
cacheSizeThe size of the trained model cache.API name: cache_size
- 
numberOfAllocationspublic final int numberOfAllocations()Required - The total number of allocations this model is assigned across ML nodes.API name: number_of_allocations
- 
priorityRequired - API name:priority
- 
perDeploymentMemoryBytesRequired - API name:per_deployment_memory_bytes
- 
perAllocationMemoryBytesRequired - API name:per_allocation_memory_bytes
- 
queueCapacitypublic final int queueCapacity()Required - Number of inference requests are allowed in the queue at a time.API name: queue_capacity
- 
threadsPerAllocationpublic final int threadsPerAllocation()Required - Number of threads per allocation.API name: threads_per_allocation
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupTrainedModelAssignmentTaskParametersDeserializerprotected static void setupTrainedModelAssignmentTaskParametersDeserializer(ObjectDeserializer<TrainedModelAssignmentTaskParameters.Builder> op) 
 
-