Class PackageFile
java.lang.Object
build.cursed.genapi.forgejo.model.PackageFile
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class PackageFile
extends Object
PackageFile represents a package file
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PackageFileCreate an instance of PackageFile given an JSON stringgetId()Get idgetMd5()Get md5getName()Get namegetSha1()Get sha1Get sha256Get sha512getSize()Get sizeinthashCode()voidvoidvoidvoidvoidvoidvoidtoJson()Convert an instance of PackageFile 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_SIZE
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_MD5
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_SHA1
- See Also:
-
SERIALIZED_NAME_SHA256
- See Also:
-
SERIALIZED_NAME_SHA512
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PackageFile
public PackageFile()
-
-
Method Details
-
size
-
getSize
Get size- Returns:
- size
-
setSize
-
id
-
getId
Get id- Returns:
- id
-
setId
-
md5
-
getMd5
Get md5- Returns:
- md5
-
setMd5
-
name
-
getName
Get name- Returns:
- name
-
setName
-
sha1
-
getSha1
Get sha1- Returns:
- sha1
-
setSha1
-
sha256
-
getSha256
Get sha256- Returns:
- sha256
-
setSha256
-
sha512
-
getSha512
Get sha512- Returns:
- sha512
-
setSha512
-
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 PackageFile
-
fromJson
Create an instance of PackageFile given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PackageFile
- Throws:
IOException- if the JSON string is invalid with respect to PackageFile
-
toJson
Convert an instance of PackageFile to an JSON string- Returns:
- JSON string
-