Class ManifestSummarySize
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ManifestSummarySize
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ManifestSummarySizeCreate an instance of ManifestSummarySize given an JSON stringContent is the size (in bytes) of all the locally present content in the content store (e.g.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.inthashCode()voidsetContent(Long content) voidtoJson()Convert an instance of ManifestSummarySize to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONTENT
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ManifestSummarySize
public ManifestSummarySize()
-
-
Method Details
-
content
-
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
-
total
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
-
toJson
Convert an instance of ManifestSummarySize to an JSON string- Returns:
- JSON string
-