Module org.elasticsearch.server
Package org.elasticsearch.inference
Record Class InferenceService.DefaultConfigId
java.lang.Object
java.lang.Record
org.elasticsearch.inference.InferenceService.DefaultConfigId
- Enclosing interface:
- InferenceService
public static record InferenceService.DefaultConfigId(String inferenceId, TaskType taskType, InferenceService service)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultConfigId
(String inferenceId, TaskType taskType, InferenceService service) Creates an instance of aDefaultConfigId
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinferenceId
record component.service()
Returns the value of theservice
record component.taskType()
Returns the value of thetaskType
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DefaultConfigId
Creates an instance of aDefaultConfigId
record class.- Parameters:
inferenceId
- the value for theinferenceId
record componenttaskType
- the value for thetaskType
record componentservice
- the value for theservice
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
inferenceId
Returns the value of theinferenceId
record component.- Returns:
- the value of the
inferenceId
record component
-
taskType
Returns the value of thetaskType
record component.- Returns:
- the value of the
taskType
record component
-
service
Returns the value of theservice
record component.- Returns:
- the value of the
service
record component
-