Module org.elasticsearch.xcore
Class ModelPackageConfig
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.ModelPackageConfig
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.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(org.elasticsearch.xcontent.XContentParser parser) static ModelPackageConfigfromXContentStrict(org.elasticsearch.xcontent.XContentParser parser) longgetSize()getTags()inthashCode()toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static final org.elasticsearch.xcontent.ParseField PACKAGED_MODEL_ID -
MODEL_REPOSITORY
public static final org.elasticsearch.xcontent.ParseField MODEL_REPOSITORY -
MINIMUM_VERSION
public static final org.elasticsearch.xcontent.ParseField MINIMUM_VERSION -
CREATE_TIME
public static final org.elasticsearch.xcontent.ParseField CREATE_TIME -
SIZE
public static final org.elasticsearch.xcontent.ParseField SIZE -
CHECKSUM_SHA256
public static final org.elasticsearch.xcontent.ParseField CHECKSUM_SHA256 -
VOCABULARY_FILE
public static final org.elasticsearch.xcontent.ParseField VOCABULARY_FILE -
PLATFORM_ARCHITECTURE
public static final org.elasticsearch.xcontent.ParseField 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
public static ModelPackageConfig fromXContentStrict(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
fromXContentLenient
public static ModelPackageConfig fromXContentLenient(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
getPackagedModelId
-
getModelRepository
-
getDescription
-
getMinimumVersion
-
getCreateTime
-
getSize
public long getSize() -
getSha256
-
getInferenceConfigSource
-
getMetadata
-
getModelType
-
getTags
-
getVocabularyFile
-
getPlatformArchitecture
-
getPrefixStrings
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-