Class PRBranchInfo
java.lang.Object
build.cursed.genapi.forgejo.model.PRBranchInfo
@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 PRBranchInfo
extends Object
PRBranchInfo information about a branch
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PRBranchInfoCreate an instance of PRBranchInfo given an JSON stringgetLabel()Get labelgetRef()Get refgetRepo()Get repoGet repoIdgetSha()Get shainthashCode()repo(Repository repo) voidvoidvoidsetRepo(Repository repo) voidvoidtoJson()Convert an instance of PRBranchInfo 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_LABEL
- See Also:
-
SERIALIZED_NAME_REF
- See Also:
-
SERIALIZED_NAME_REPO
- See Also:
-
SERIALIZED_NAME_REPO_ID
- See Also:
-
SERIALIZED_NAME_SHA
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PRBranchInfo
public PRBranchInfo()
-
-
Method Details
-
label
-
getLabel
Get label- Returns:
- label
-
setLabel
-
ref
-
getRef
Get ref- Returns:
- ref
-
setRef
-
repo
-
getRepo
Get repo- Returns:
- repo
-
setRepo
-
repoId
-
getRepoId
Get repoId- Returns:
- repoId
-
setRepoId
-
sha
-
getSha
Get sha- Returns:
- sha
-
setSha
-
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 PRBranchInfo
-
fromJson
Create an instance of PRBranchInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PRBranchInfo
- Throws:
IOException- if the JSON string is invalid with respect to PRBranchInfo
-
toJson
Convert an instance of PRBranchInfo to an JSON string- Returns:
- JSON string
-