java.lang.Object
java.lang.Record
org.elasticsearch.inference.UnparsedModel
public record UnparsedModel(String inferenceEntityId, TaskType taskType, String service, Map<String,Object> settings, Map<String,Object> secrets)
extends Record
Semi parsed model where inference entity id, task type and service
are known but the settings are not parsed.
-
Constructor Summary
Constructors -
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 theinferenceEntityId
record component.secrets()
Returns the value of thesecrets
record component.service()
Returns the value of theservice
record component.settings()
Returns the value of thesettings
record component.taskType()
Returns the value of thetaskType
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
UnparsedModel
public UnparsedModel(String inferenceEntityId, TaskType taskType, String service, Map<String, Object> settings, Map<String, Object> secrets) Creates an instance of aUnparsedModel
record class.- Parameters:
inferenceEntityId
- the value for theinferenceEntityId
record componenttaskType
- the value for thetaskType
record componentservice
- the value for theservice
record componentsettings
- the value for thesettings
record componentsecrets
- the value for thesecrets
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)
. -
inferenceEntityId
Returns the value of theinferenceEntityId
record component.- Returns:
- the value of the
inferenceEntityId
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
-
settings
Returns the value of thesettings
record component.- Returns:
- the value of the
settings
record component
-
secrets
Returns the value of thesecrets
record component.- Returns:
- the value of the
secrets
record component
-