Class GitTreeResponse
java.lang.Object
build.cursed.genapi.forgejo.model.GitTreeResponse
@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 GitTreeResponse
extends Object
GitTreeResponse returns a git tree
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTreeItem(GitEntry treeItem) booleanstatic GitTreeResponseCreate an instance of GitTreeResponse given an JSON stringgetPage()Get pagegetSha()Get shaGet totalCountgetTree()Get treeGet truncatedgetUrl()Get urlinthashCode()voidvoidvoidsetTotalCount(Long totalCount) voidvoidsetTruncated(Boolean truncated) voidtoJson()Convert an instance of GitTreeResponse to an JSON stringtoString()totalCount(Long totalCount) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_PAGE
- See Also:
-
SERIALIZED_NAME_SHA
- See Also:
-
SERIALIZED_NAME_TOTAL_COUNT
- See Also:
-
SERIALIZED_NAME_TREE
- See Also:
-
SERIALIZED_NAME_TRUNCATED
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GitTreeResponse
public GitTreeResponse()
-
-
Method Details
-
page
-
getPage
Get page- Returns:
- page
-
setPage
-
sha
-
getSha
Get sha- Returns:
- sha
-
setSha
-
totalCount
-
getTotalCount
Get totalCount- Returns:
- totalCount
-
setTotalCount
-
tree
-
addTreeItem
-
getTree
Get tree- Returns:
- tree
-
setTree
-
truncated
-
getTruncated
Get truncated- Returns:
- truncated
-
setTruncated
-
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 GitTreeResponse
-
fromJson
Create an instance of GitTreeResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GitTreeResponse
- Throws:
IOException- if the JSON string is invalid with respect to GitTreeResponse
-
toJson
Convert an instance of GitTreeResponse to an JSON string- Returns:
- JSON string
-