Class ManifestSummarySize

java.lang.Object
io.github.alersrt.pod4j.openapi.model.ManifestSummarySize

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class ManifestSummarySize extends Object
Size is the size information of the content related to this manifest. Note: These sizes only take the locally available content into account.
  • Field Details

  • Constructor Details

    • ManifestSummarySize

      public ManifestSummarySize()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to ManifestSummarySize
    • fromJson

      public static ManifestSummarySize fromJson(String jsonString) throws IOException
      Create an instance of ManifestSummarySize given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ManifestSummarySize
      Throws:
      IOException - if the JSON string is invalid with respect to ManifestSummarySize
    • content

      public ManifestSummarySize content(Long content)
    • getContent

      @Nullable public Long getContent()
      Content is the size (in bytes) of all the locally present content in the content store (e.g. image config, layers) referenced by this manifest and its children. This only includes blobs in the content store.
      Returns:
      content
    • setContent

      public void setContent(Long content)
    • total

      public ManifestSummarySize total(Long total)
    • getTotal

      @Nullable public Long getTotal()
      Total is the total size (in bytes) of all the locally present data (both distributable and non-distributable) that's related to this manifest and its children. This equal to the sum of [Content] size AND all the sizes in the [Size] struct present in the Kind-specific data struct. For example, for an image kind (Kind == ManifestKindImage), this would include the size of the image content and unpacked image snapshots ([Size.Content] + [ImageData.Size.Unpacked]).
      Returns:
      total
    • setTotal

      public void setTotal(Long total)
    • equals

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

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

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

      public String toJson()
      Convert an instance of ManifestSummarySize to an JSON string
      Returns:
      JSON string