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 Summary
ConstructorsConstructorDescriptionSessionSettingsRepoSnapshot(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 aSessionSettingsRepoSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()Returns the value of thebranchrecord component.commit()Returns the value of thecommitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.Returns the value of thehostProtocolrecord component.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.ownerId()Returns the value of theownerIdrecord component.Returns the value of theownerNamerecord component.Returns the value of theprCommitCountrecord component.Returns the value of thereadWriterecord component.Returns the value of thesecretScanningUrlrecord component.Returns the value of theserverUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aSessionSettingsRepoSnapshotrecord class.- Parameters:
name- the value for thenamerecord componentid- the value for theidrecord componentbranch- the value for thebranchrecord componentcommit- the value for thecommitrecord componentreadWrite- the value for thereadWriterecord componentownerName- the value for theownerNamerecord componentownerId- the value for theownerIdrecord componentserverUrl- the value for theserverUrlrecord componenthost- the value for thehostrecord componenthostProtocol- the value for thehostProtocolrecord componentsecretScanningUrl- the value for thesecretScanningUrlrecord componentprCommitCount- the value for theprCommitCountrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
branch
Returns the value of thebranchrecord component.- Returns:
- the value of the
branchrecord component
-
commit
Returns the value of thecommitrecord component.- Returns:
- the value of the
commitrecord component
-
readWrite
Returns the value of thereadWriterecord component.- Returns:
- the value of the
readWriterecord component
-
ownerName
Returns the value of theownerNamerecord component.- Returns:
- the value of the
ownerNamerecord component
-
ownerId
Returns the value of theownerIdrecord component.- Returns:
- the value of the
ownerIdrecord component
-
serverUrl
Returns the value of theserverUrlrecord component.- Returns:
- the value of the
serverUrlrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
hostProtocol
Returns the value of thehostProtocolrecord component.- Returns:
- the value of the
hostProtocolrecord component
-
secretScanningUrl
Returns the value of thesecretScanningUrlrecord component.- Returns:
- the value of the
secretScanningUrlrecord component
-
prCommitCount
Returns the value of theprCommitCountrecord component.- Returns:
- the value of the
prCommitCountrecord component
-