java.lang.Object
org.elasticsearch.inference.ModelConfigurations
- All Implemented Interfaces:
NamedWriteable
,VersionedNamedWriteable
,Writeable
,ToXContent
,ToXContentObject
public class ModelConfigurations
extends Object
implements ToXContentObject, VersionedNamedWriteable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsConstructorDescriptionModelConfigurations
(String modelId, TaskType taskType, String service, ServiceSettings serviceSettings, TaskSettings taskSettings) -
Method Summary
Modifier and TypeMethodDescriptionboolean
The minimal version of the recipient this object can be sent toReturns the name of the writeable objectint
hashCode()
toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
MODEL_ID
- See Also:
-
SERVICE
- See Also:
-
SERVICE_SETTINGS
- See Also:
-
TASK_SETTINGS
- See Also:
-
-
Constructor Details
-
ModelConfigurations
public ModelConfigurations(String modelId, TaskType taskType, String service, ServiceSettings serviceSettings, TaskSettings taskSettings) -
ModelConfigurations
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
getModelId
-
getTaskType
-
getService
-
getServiceSettings
-
getTaskSettings
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
getWriteableName
Description copied from interface:VersionedNamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
- Specified by:
getWriteableName
in interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
Description copied from interface:VersionedNamedWriteable
The minimal version of the recipient this object can be sent to- Specified by:
getMinimalSupportedVersion
in interfaceVersionedNamedWriteable
-
equals
-
hashCode
public int hashCode()
-