Class GitBlob
java.lang.Object
build.cursed.genapi.forgejo.model.GitBlob
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class GitBlob
extends Object
GitBlob represents a git blob
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GitBlobCreate an instance of GitBlob given an JSON stringGet contentGet encodinggetSha()Get shagetSize()Get sizegetUrl()Get urlinthashCode()voidsetContent(String content) voidsetEncoding(String encoding) voidvoidvoidtoJson()Convert an instance of GitBlob 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_ENCODING
- See Also:
-
SERIALIZED_NAME_SHA
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GitBlob
public GitBlob()
-
-
Method Details
-
content
-
getContent
Get content- Returns:
- content
-
setContent
-
encoding
-
getEncoding
Get encoding- Returns:
- encoding
-
setEncoding
-
sha
-
getSha
Get sha- Returns:
- sha
-
setSha
-
size
-
getSize
Get size- Returns:
- size
-
setSize
-
url
-
getUrl
Get url- Returns:
- url
-
setUrl
-
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 GitBlob
-
fromJson
Create an instance of GitBlob given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GitBlob
- Throws:
IOException- if the JSON string is invalid with respect to GitBlob
-
toJson
Convert an instance of GitBlob to an JSON string- Returns:
- JSON string
-