Record Class SessionSettingsRepoSnapshot

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionSettingsRepoSnapshot

@Generated("copilot-sdk-codegen") public record SessionSettingsRepoSnapshot(String name, Double id, String branch, String commit, Boolean readWrite, String ownerName, Double ownerId, String serverUrl, String host, String hostProtocol, String secretScanningUrl, Double prCommitCount) extends Record
Redacted repository and GitHub host settings for a session.
Since:
1.0.0
  • Constructor Details

    • SessionSettingsRepoSnapshot

      public SessionSettingsRepoSnapshot(String name, Double id, String branch, String commit, Boolean readWrite, String ownerName, Double ownerId, String serverUrl, String host, String hostProtocol, String secretScanningUrl, Double prCommitCount)
      Creates an instance of a SessionSettingsRepoSnapshot record class.
      Parameters:
      name - the value for the name record component
      id - the value for the id record component
      branch - the value for the branch record component
      commit - the value for the commit record component
      readWrite - the value for the readWrite record component
      ownerName - the value for the ownerName record component
      ownerId - the value for the ownerId record component
      serverUrl - the value for the serverUrl record component
      host - the value for the host record component
      hostProtocol - the value for the hostProtocol record component
      secretScanningUrl - the value for the secretScanningUrl record component
      prCommitCount - the value for the prCommitCount record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • id

      public Double id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • branch

      public String branch()
      Returns the value of the branch record component.
      Returns:
      the value of the branch record component
    • commit

      public String commit()
      Returns the value of the commit record component.
      Returns:
      the value of the commit record component
    • readWrite

      public Boolean readWrite()
      Returns the value of the readWrite record component.
      Returns:
      the value of the readWrite record component
    • ownerName

      public String ownerName()
      Returns the value of the ownerName record component.
      Returns:
      the value of the ownerName record component
    • ownerId

      public Double ownerId()
      Returns the value of the ownerId record component.
      Returns:
      the value of the ownerId record component
    • serverUrl

      public String serverUrl()
      Returns the value of the serverUrl record component.
      Returns:
      the value of the serverUrl record component
    • host

      public String host()
      Returns the value of the host record component.
      Returns:
      the value of the host record component
    • hostProtocol

      public String hostProtocol()
      Returns the value of the hostProtocol record component.
      Returns:
      the value of the hostProtocol record component
    • secretScanningUrl

      public String secretScanningUrl()
      Returns the value of the secretScanningUrl record component.
      Returns:
      the value of the secretScanningUrl record component
    • prCommitCount

      public Double prCommitCount()
      Returns the value of the prCommitCount record component.
      Returns:
      the value of the prCommitCount record component