Class Branch
java.lang.Object
build.cursed.genapi.forgejo.model.Branch
@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 Branch
extends Object
Branch represents a repository branch
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_protected(Boolean _protected) addStatusCheckContextsItem(String statusCheckContextsItem) commit(PayloadCommit commit) effectiveBranchProtectionName(String effectiveBranchProtectionName) enableStatusCheck(Boolean enableStatusCheck) booleanstatic BranchCreate an instance of Branch given an JSON stringGet commitGet effectiveBranchProtectionNameGet enableStatusCheckgetName()Get nameGet _protectedGet requiredApprovalsGet statusCheckContextsGet userCanMergeGet userCanPushinthashCode()requiredApprovals(Long requiredApprovals) voidsetCommit(PayloadCommit commit) voidsetEffectiveBranchProtectionName(String effectiveBranchProtectionName) voidsetEnableStatusCheck(Boolean enableStatusCheck) voidvoidsetProtected(Boolean _protected) voidsetRequiredApprovals(Long requiredApprovals) voidsetStatusCheckContexts(List<String> statusCheckContexts) voidsetUserCanMerge(Boolean userCanMerge) voidsetUserCanPush(Boolean userCanPush) statusCheckContexts(List<String> statusCheckContexts) toJson()Convert an instance of Branch to an JSON stringtoString()userCanMerge(Boolean userCanMerge) userCanPush(Boolean userCanPush) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_COMMIT
- See Also:
-
SERIALIZED_NAME_EFFECTIVE_BRANCH_PROTECTION_NAME
- See Also:
-
SERIALIZED_NAME_ENABLE_STATUS_CHECK
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_PROTECTED
- See Also:
-
SERIALIZED_NAME_REQUIRED_APPROVALS
- See Also:
-
SERIALIZED_NAME_STATUS_CHECK_CONTEXTS
- See Also:
-
SERIALIZED_NAME_USER_CAN_MERGE
- See Also:
-
SERIALIZED_NAME_USER_CAN_PUSH
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Branch
public Branch()
-
-
Method Details
-
commit
-
getCommit
Get commit- Returns:
- commit
-
setCommit
-
effectiveBranchProtectionName
-
getEffectiveBranchProtectionName
Get effectiveBranchProtectionName- Returns:
- effectiveBranchProtectionName
-
setEffectiveBranchProtectionName
-
enableStatusCheck
-
getEnableStatusCheck
Get enableStatusCheck- Returns:
- enableStatusCheck
-
setEnableStatusCheck
-
name
-
getName
Get name- Returns:
- name
-
setName
-
_protected
-
getProtected
Get _protected- Returns:
- _protected
-
setProtected
-
requiredApprovals
-
getRequiredApprovals
Get requiredApprovals- Returns:
- requiredApprovals
-
setRequiredApprovals
-
statusCheckContexts
-
addStatusCheckContextsItem
-
getStatusCheckContexts
Get statusCheckContexts- Returns:
- statusCheckContexts
-
setStatusCheckContexts
-
userCanMerge
-
getUserCanMerge
Get userCanMerge- Returns:
- userCanMerge
-
setUserCanMerge
-
userCanPush
-
getUserCanPush
Get userCanPush- Returns:
- userCanPush
-
setUserCanPush
-
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 Branch
-
fromJson
Create an instance of Branch given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Branch
- Throws:
IOException- if the JSON string is invalid with respect to Branch
-
toJson
Convert an instance of Branch to an JSON string- Returns:
- JSON string
-