Class BranchRep


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2026-03-05T10:45:26.516033Z[Etc/UTC]",
               comments="Generator version: 7.18.0")
    public class BranchRep
    extends java.lang.Object
    BranchRep
    • Field Detail

      • SERIALIZED_NAME_NAME

        public static final java.lang.String SERIALIZED_NAME_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_HEAD

        public static final java.lang.String SERIALIZED_NAME_HEAD
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_UPDATE_SEQUENCE_ID

        public static final java.lang.String SERIALIZED_NAME_UPDATE_SEQUENCE_ID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_SYNC_TIME

        public static final java.lang.String SERIALIZED_NAME_SYNC_TIME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_REFERENCES

        public static final java.lang.String SERIALIZED_NAME_REFERENCES
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_LINKS

        public static final java.lang.String SERIALIZED_NAME_LINKS
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • BranchRep

        public BranchRep()
    • Method Detail

      • name

        public BranchRep name​(@Nonnull
                              java.lang.String name)
      • getName

        @Nonnull
        public java.lang.String getName()
        The branch name
        Returns:
        name
      • setName

        public void setName​(@Nonnull
                            java.lang.String name)
      • head

        public BranchRep head​(@Nonnull
                              java.lang.String head)
      • getHead

        @Nonnull
        public java.lang.String getHead()
        An ID representing the branch HEAD. For example, a commit SHA.
        Returns:
        head
      • setHead

        public void setHead​(@Nonnull
                            java.lang.String head)
      • updateSequenceId

        public BranchRep updateSequenceId​(@Nullable
                                          java.lang.Long updateSequenceId)
      • getUpdateSequenceId

        @Nullable
        public java.lang.Long getUpdateSequenceId()
        An optional ID used to prevent older data from overwriting newer data
        Returns:
        updateSequenceId
      • setUpdateSequenceId

        public void setUpdateSequenceId​(@Nullable
                                        java.lang.Long updateSequenceId)
      • syncTime

        public BranchRep syncTime​(@Nonnull
                                  java.lang.Long syncTime)
      • getSyncTime

        @Nonnull
        public java.lang.Long getSyncTime()
        Get syncTime
        Returns:
        syncTime
      • setSyncTime

        public void setSyncTime​(@Nonnull
                                java.lang.Long syncTime)
      • getReferences

        @Nullable
        public java.util.List<ReferenceRep> getReferences()
        An array of flag references found on the branch
        Returns:
        references
      • setReferences

        public void setReferences​(@Nullable
                                  java.util.List<ReferenceRep> references)
      • links

        public BranchRep links​(@Nonnull
                               java.util.Map<java.lang.String,​java.lang.Object> links)
      • putLinksItem

        public BranchRep putLinksItem​(java.lang.String key,
                                      java.lang.Object linksItem)
      • getLinks

        @Nonnull
        public java.util.Map<java.lang.String,​java.lang.Object> getLinks()
        The location and content type of related resources
        Returns:
        links
      • setLinks

        public void setLinks​(@Nonnull
                             java.util.Map<java.lang.String,​java.lang.Object> links)
      • putAdditionalProperty

        public BranchRep putAdditionalProperty​(java.lang.String key,
                                               java.lang.Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
        Parameters:
        key - name of the property
        value - value of the property
        Returns:
        the BranchRep instance itself
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws java.io.IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        java.io.IOException - if the JSON Element is invalid with respect to BranchRep
      • fromJson

        public static BranchRep fromJson​(java.lang.String jsonString)
                                  throws java.io.IOException
        Create an instance of BranchRep given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of BranchRep
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to BranchRep
      • toJson

        public java.lang.String toJson()
        Convert an instance of BranchRep to an JSON string
        Returns:
        JSON string