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 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 a HistoryRewindPoint record class.
      Parameters:
      eventId - the value for the eventId record component
      userMessage - the value for the userMessage record component
      timestamp - the value for the timestamp record component
      canRestoreFiles - the value for the canRestoreFiles record component
      fileCount - the value for the fileCount record component
      turnChangedFiles - the value for the turnChangedFiles record component
      linesAdded - the value for the linesAdded record component
      linesRemoved - the value for the linesRemoved record component
      isAutopilotContinuation - the value for the isAutopilotContinuation 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.
    • eventId

      public String eventId()
      Returns the value of the eventId record component.
      Returns:
      the value of the eventId record component
    • userMessage

      public String userMessage()
      Returns the value of the userMessage record component.
      Returns:
      the value of the userMessage record component
    • timestamp

      public String timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • canRestoreFiles

      public Boolean canRestoreFiles()
      Returns the value of the canRestoreFiles record component.
      Returns:
      the value of the canRestoreFiles record component
    • fileCount

      public Long fileCount()
      Returns the value of the fileCount record component.
      Returns:
      the value of the fileCount record component
    • turnChangedFiles

      public Boolean turnChangedFiles()
      Returns the value of the turnChangedFiles record component.
      Returns:
      the value of the turnChangedFiles record component
    • linesAdded

      public Long linesAdded()
      Returns the value of the linesAdded record component.
      Returns:
      the value of the linesAdded record component
    • linesRemoved

      public Long linesRemoved()
      Returns the value of the linesRemoved record component.
      Returns:
      the value of the linesRemoved record component
    • isAutopilotContinuation

      public Boolean isAutopilotContinuation()
      Returns the value of the isAutopilotContinuation record component.
      Returns:
      the value of the isAutopilotContinuation record component