Class GitTreeResponse

java.lang.Object
build.cursed.genapi.forgejo.model.GitTreeResponse

@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 GitTreeResponse extends Object
GitTreeResponse returns a git tree
  • Field Details

  • Constructor Details

    • GitTreeResponse

      public GitTreeResponse()
  • Method Details

    • page

      public GitTreeResponse page(@Nullable Long page)
    • getPage

      @Nullable public Long getPage()
      Get page
      Returns:
      page
    • setPage

      public void setPage(@Nullable Long page)
    • sha

      public GitTreeResponse sha(@Nullable String sha)
    • getSha

      @Nullable public String getSha()
      Get sha
      Returns:
      sha
    • setSha

      public void setSha(@Nullable String sha)
    • totalCount

      public GitTreeResponse totalCount(@Nullable Long totalCount)
    • getTotalCount

      @Nullable public Long getTotalCount()
      Get totalCount
      Returns:
      totalCount
    • setTotalCount

      public void setTotalCount(@Nullable Long totalCount)
    • tree

      public GitTreeResponse tree(@Nullable List<GitEntry> tree)
    • addTreeItem

      public GitTreeResponse addTreeItem(GitEntry treeItem)
    • getTree

      @Nullable public List<GitEntry> getTree()
      Get tree
      Returns:
      tree
    • setTree

      public void setTree(@Nullable List<GitEntry> tree)
    • truncated

      public GitTreeResponse truncated(@Nullable Boolean truncated)
    • getTruncated

      @Nullable public Boolean getTruncated()
      Get truncated
      Returns:
      truncated
    • setTruncated

      public void setTruncated(@Nullable Boolean truncated)
    • url

      public GitTreeResponse url(@Nullable String url)
    • getUrl

      @Nullable public String getUrl()
      Get url
      Returns:
      url
    • setUrl

      public void setUrl(@Nullable String url)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static GitTreeResponse fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of GitTreeResponse to an JSON string
      Returns:
      JSON string