Module org.elasticsearch.xcore
Class ModelPackageConfig
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.ModelPackageConfig
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionModelPackageConfig(String packagedModelId, String modelRepository, String description, String minimumVersion, Instant createTime, Long size, String sha256, Map<String, Object> inferenceConfigSource, Map<String, Object> metadata, String modelType, List<String> tags, String vocabularyFile, String platformArchitecture, TrainedModelPrefixStrings prefixStrings) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ModelPackageConfigfromXContentLenient(XContentParser parser) static ModelPackageConfigfromXContentStrict(XContentParser parser) longgetSize()getTags()inthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
PACKAGED_MODEL_ID
-
MODEL_REPOSITORY
-
MINIMUM_VERSION
-
CREATE_TIME
-
SIZE
-
CHECKSUM_SHA256
-
VOCABULARY_FILE
-
PLATFORM_ARCHITECTURE
-
-
Constructor Details
-
ModelPackageConfig
public ModelPackageConfig(String packagedModelId, String modelRepository, String description, String minimumVersion, Instant createTime, Long size, String sha256, Map<String, Object> inferenceConfigSource, Map<String, Object> metadata, String modelType, List<String> tags, String vocabularyFile, String platformArchitecture, TrainedModelPrefixStrings prefixStrings) -
ModelPackageConfig
- Throws:
IOException
-
-
Method Details
-
fromXContentStrict
- Throws:
IOException
-
fromXContentLenient
- Throws:
IOException
-
getPackagedModelId
-
getModelRepository
-
getDescription
-
getMinimumVersion
-
getCreateTime
-
getSize
public long getSize() -
getSha256
-
getInferenceConfigSource
-
getMetadata
-
getModelType
-
getTags
-
getVocabularyFile
-
getPlatformArchitecture
-
getPrefixStrings
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-