Module com.github.copilot.java
Package com.github.copilot.generated.rpc
Record Class SessionWorkspacesDiffResult
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionWorkspacesDiffResult
@Generated("copilot-sdk-codegen")
public record SessionWorkspacesDiffResult(WorkspaceDiffMode requestedMode, WorkspaceDiffMode mode, List<WorkspaceDiffFileChange> changes, String baseBranch, Boolean isFallback)
extends Record
Workspace diff result for the requested mode.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionWorkspacesDiffResult(WorkspaceDiffMode requestedMode, WorkspaceDiffMode mode, List<WorkspaceDiffFileChange> changes, String baseBranch, Boolean isFallback) Creates an instance of aSessionWorkspacesDiffResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaseBranchrecord component.changes()Returns the value of thechangesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theisFallbackrecord component.mode()Returns the value of themoderecord component.Returns the value of therequestedModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionWorkspacesDiffResult
public SessionWorkspacesDiffResult(WorkspaceDiffMode requestedMode, WorkspaceDiffMode mode, List<WorkspaceDiffFileChange> changes, String baseBranch, Boolean isFallback) Creates an instance of aSessionWorkspacesDiffResultrecord class.- Parameters:
requestedMode- the value for therequestedModerecord componentmode- the value for themoderecord componentchanges- the value for thechangesrecord componentbaseBranch- the value for thebaseBranchrecord componentisFallback- the value for theisFallbackrecord component
-
-
Method Details
-
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. -
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. -
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). -
requestedMode
Returns the value of therequestedModerecord component.- Returns:
- the value of the
requestedModerecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
changes
Returns the value of thechangesrecord component.- Returns:
- the value of the
changesrecord component
-
baseBranch
Returns the value of thebaseBranchrecord component.- Returns:
- the value of the
baseBranchrecord component
-
isFallback
Returns the value of theisFallbackrecord component.- Returns:
- the value of the
isFallbackrecord component
-