Record Class HistoryRewindPoint
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.HistoryRewindPoint
@Generated("copilot-sdk-codegen")
public record HistoryRewindPoint(String eventId, String userMessage, String timestamp, Boolean canRestoreFiles, Long fileCount, Boolean turnChangedFiles, Long linesAdded, Long linesRemoved, Boolean isAutopilotContinuation)
extends Record
A root user turn that the session can rewind to.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecanRestoreFilesrecord component.final booleanIndicates whether some other object is "equal to" this one.eventId()Returns the value of theeventIdrecord component.Returns the value of thefileCountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theisAutopilotContinuationrecord component.Returns the value of thelinesAddedrecord component.Returns the value of thelinesRemovedrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theturnChangedFilesrecord component.Returns the value of theuserMessagerecord component.
-
Constructor Details
-
HistoryRewindPoint
public HistoryRewindPoint(String eventId, String userMessage, String timestamp, Boolean canRestoreFiles, Long fileCount, Boolean turnChangedFiles, Long linesAdded, Long linesRemoved, Boolean isAutopilotContinuation) Creates an instance of aHistoryRewindPointrecord class.- Parameters:
eventId- the value for theeventIdrecord componentuserMessage- the value for theuserMessagerecord componenttimestamp- the value for thetimestamprecord componentcanRestoreFiles- the value for thecanRestoreFilesrecord componentfileCount- the value for thefileCountrecord componentturnChangedFiles- the value for theturnChangedFilesrecord componentlinesAdded- the value for thelinesAddedrecord componentlinesRemoved- the value for thelinesRemovedrecord componentisAutopilotContinuation- the value for theisAutopilotContinuationrecord 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). -
eventId
Returns the value of theeventIdrecord component.- Returns:
- the value of the
eventIdrecord component
-
userMessage
Returns the value of theuserMessagerecord component.- Returns:
- the value of the
userMessagerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
canRestoreFiles
Returns the value of thecanRestoreFilesrecord component.- Returns:
- the value of the
canRestoreFilesrecord component
-
fileCount
Returns the value of thefileCountrecord component.- Returns:
- the value of the
fileCountrecord component
-
turnChangedFiles
Returns the value of theturnChangedFilesrecord component.- Returns:
- the value of the
turnChangedFilesrecord component
-
linesAdded
Returns the value of thelinesAddedrecord component.- Returns:
- the value of the
linesAddedrecord component
-
linesRemoved
Returns the value of thelinesRemovedrecord component.- Returns:
- the value of the
linesRemovedrecord component
-
isAutopilotContinuation
Returns the value of theisAutopilotContinuationrecord component.- Returns:
- the value of the
isAutopilotContinuationrecord component
-