Class FileResponse
java.lang.Object
build.cursed.genapi.forgejo.model.FileResponse
@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 FileResponse
extends Object
FileResponse contains information about a repo's file
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommit(FileCommitResponse commit) content(ContentsResponse content) booleanstatic FileResponseCreate an instance of FileResponse given an JSON stringGet commitGet contentGet verificationinthashCode()voidsetCommit(FileCommitResponse commit) voidsetContent(ContentsResponse content) voidsetVerification(PayloadCommitVerification verification) toJson()Convert an instance of FileResponse to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundverification(PayloadCommitVerification verification)
-
Field Details
-
SERIALIZED_NAME_COMMIT
- See Also:
-
SERIALIZED_NAME_CONTENT
- See Also:
-
SERIALIZED_NAME_VERIFICATION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
FileResponse
public FileResponse()
-
-
Method Details
-
commit
-
getCommit
Get commit- Returns:
- commit
-
setCommit
-
content
-
getContent
Get content- Returns:
- content
-
setContent
-
verification
-
getVerification
Get verification- Returns:
- verification
-
setVerification
-
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 FileResponse
-
fromJson
Create an instance of FileResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of FileResponse
- Throws:
IOException- if the JSON string is invalid with respect to FileResponse
-
toJson
Convert an instance of FileResponse to an JSON string- Returns:
- JSON string
-