Class MLUploadModelChunkInput

java.lang.Object
org.opensearch.ml.common.transport.upload_chunk.MLUploadModelChunkInput
All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject

public class MLUploadModelChunkInput extends Object implements org.opensearch.core.xcontent.ToXContentObject, org.opensearch.core.common.io.stream.Writeable
  • Field Details

  • Constructor Details

    • MLUploadModelChunkInput

      public MLUploadModelChunkInput(String modelId, Integer chunkNumber, byte[] content)
    • MLUploadModelChunkInput

      public MLUploadModelChunkInput(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • toXContent

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

      public static MLUploadModelChunkInput parse(org.opensearch.core.xcontent.XContentParser parser, byte[] content) throws IOException
      Throws:
      IOException
    • builder

    • toBuilder

    • getContent

      public byte[] getContent()
    • getModelId

      public String getModelId()
    • getChunkNumber

      public Integer getChunkNumber()
    • setContent

      public void setContent(byte[] content)
    • setModelId

      public void setModelId(String modelId)
    • setChunkNumber

      public void setChunkNumber(Integer chunkNumber)
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object