Class TrainedModelConfig

java.lang.Object
org.elasticsearch.client.ml.inference.TrainedModelConfig
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class TrainedModelConfig extends Object implements org.elasticsearch.xcontent.ToXContentObject
  • Field Details

    • NAME

      public static final String NAME
      See Also:
    • MODEL_ID

      public static final org.elasticsearch.xcontent.ParseField MODEL_ID
    • CREATED_BY

      public static final org.elasticsearch.xcontent.ParseField CREATED_BY
    • VERSION

      public static final org.elasticsearch.xcontent.ParseField VERSION
    • DESCRIPTION

      public static final org.elasticsearch.xcontent.ParseField DESCRIPTION
    • CREATE_TIME

      public static final org.elasticsearch.xcontent.ParseField CREATE_TIME
    • DEFINITION

      public static final org.elasticsearch.xcontent.ParseField DEFINITION
    • COMPRESSED_DEFINITION

      public static final org.elasticsearch.xcontent.ParseField COMPRESSED_DEFINITION
    • TAGS

      public static final org.elasticsearch.xcontent.ParseField TAGS
    • METADATA

      public static final org.elasticsearch.xcontent.ParseField METADATA
    • INPUT

      public static final org.elasticsearch.xcontent.ParseField INPUT
    • ESTIMATED_HEAP_MEMORY_USAGE_BYTES

      @Deprecated public static final org.elasticsearch.xcontent.ParseField ESTIMATED_HEAP_MEMORY_USAGE_BYTES
      Deprecated.
    • MODEL_SIZE_BYTES

      public static final org.elasticsearch.xcontent.ParseField MODEL_SIZE_BYTES
    • ESTIMATED_OPERATIONS

      public static final org.elasticsearch.xcontent.ParseField ESTIMATED_OPERATIONS
    • LICENSE_LEVEL

      public static final org.elasticsearch.xcontent.ParseField LICENSE_LEVEL
    • DEFAULT_FIELD_MAP

      public static final org.elasticsearch.xcontent.ParseField DEFAULT_FIELD_MAP
    • INFERENCE_CONFIG

      public static final org.elasticsearch.xcontent.ParseField INFERENCE_CONFIG
    • PARSER

      public static final org.elasticsearch.xcontent.ObjectParser<TrainedModelConfig.Builder,Void> PARSER
  • Method Details

    • fromXContent

      public static TrainedModelConfig fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • getModelId

      public String getModelId()
    • getCreatedBy

      public String getCreatedBy()
    • getVersion

      public org.elasticsearch.Version getVersion()
    • getDescription

      public String getDescription()
    • getCreateTime

      public Instant getCreateTime()
    • getTags

      public List<String> getTags()
    • getMetadata

      public Map<String,Object> getMetadata()
    • getDefinition

      public TrainedModelDefinition getDefinition()
    • getCompressedDefinition

      public String getCompressedDefinition()
    • getInput

      public TrainedModelInput getInput()
    • getEstimatedHeapMemory

      @Deprecated public org.elasticsearch.common.unit.ByteSizeValue getEstimatedHeapMemory()
      Deprecated.
      use getModelSize() instead
      Returns:
      the ByteSizeValue of the model size if available.
    • getEstimatedHeapMemoryBytes

      @Deprecated public Long getEstimatedHeapMemoryBytes()
      Deprecated.
      Returns:
      the model size in bytes if available.
    • getModelSize

      public org.elasticsearch.common.unit.ByteSizeValue getModelSize()
      Returns:
      the ByteSizeValue of the model size if available.
    • getModelSizeBytes

      public Long getModelSizeBytes()
      Returns:
      the model size in bytes if available.
    • getLicenseLevel

      public String getLicenseLevel()
    • getDefaultFieldMap

      public Map<String,String> getDefaultFieldMap()
    • getInferenceConfig

      public InferenceConfig getInferenceConfig()
    • builder

      public static TrainedModelConfig.Builder builder()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object