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 booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinferenceEntityIdrecord component.secrets()Returns the value of thesecretsrecord component.service()Returns the value of theservicerecord component.settings()Returns the value of thesettingsrecord component.taskType()Returns the value of thetaskTyperecord component.final StringtoString()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 aUnparsedModelrecord class.- Parameters:
inferenceEntityId- the value for theinferenceEntityIdrecord componenttaskType- the value for thetaskTyperecord componentservice- the value for theservicerecord componentsettings- the value for thesettingsrecord componentsecrets- the value for thesecretsrecord 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 theinferenceEntityIdrecord component.- Returns:
- the value of the
inferenceEntityIdrecord component
-
taskType
Returns the value of thetaskTyperecord component.- Returns:
- the value of the
taskTyperecord component
-
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
secrets
Returns the value of thesecretsrecord component.- Returns:
- the value of the
secretsrecord component
-