Class GitEntry
java.lang.Object
build.cursed.genapi.forgejo.model.GitEntry
@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 GitEntry
extends Object
GitEntry represents a git tree
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GitEntryCreate an instance of GitEntry given an JSON stringgetMode()Get modegetPath()Get pathgetSha()Get shagetSize()Get sizegetType()Get typegetUrl()Get urlinthashCode()voidvoidvoidvoidvoidvoidtoJson()Convert an instance of GitEntry 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_MODE
- See Also:
-
SERIALIZED_NAME_PATH
- See Also:
-
SERIALIZED_NAME_SHA
- See Also:
-
SERIALIZED_NAME_SIZE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GitEntry
public GitEntry()
-
-
Method Details
-
mode
-
getMode
Get mode- Returns:
- mode
-
setMode
-
path
-
getPath
Get path- Returns:
- path
-
setPath
-
sha
-
getSha
Get sha- Returns:
- sha
-
setSha
-
size
-
getSize
Get size- Returns:
- size
-
setSize
-
type
-
getType
Get type- Returns:
- type
-
setType
-
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 GitEntry
-
fromJson
Create an instance of GitEntry given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GitEntry
- Throws:
IOException- if the JSON string is invalid with respect to GitEntry
-
toJson
Convert an instance of GitEntry to an JSON string- Returns:
- JSON string
-