Record Class SessionCompletionReceiptEvent.SessionCompletionReceiptEventData

java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionCompletionReceiptEvent.SessionCompletionReceiptEventData
Enclosing class:
SessionCompletionReceiptEvent

public static record SessionCompletionReceiptEvent.SessionCompletionReceiptEventData(Long schemaVersion, Long attempt, String sourceEventId, CompletionReceiptEventRange eventRange, CompletionReceiptStopReason stopReason, CompletionReceiptFinalTool finalTool, Long successfulToolCount, Long failedToolCount) extends Record
Since:
1.0.0
  • Constructor Details

    • SessionCompletionReceiptEventData

      public SessionCompletionReceiptEventData(Long schemaVersion, Long attempt, String sourceEventId, CompletionReceiptEventRange eventRange, CompletionReceiptStopReason stopReason, CompletionReceiptFinalTool finalTool, Long successfulToolCount, Long failedToolCount)
      Creates an instance of a SessionCompletionReceiptEventData record class.
      Parameters:
      schemaVersion - the value for the schemaVersion record component
      attempt - the value for the attempt record component
      sourceEventId - the value for the sourceEventId record component
      eventRange - the value for the eventRange record component
      stopReason - the value for the stopReason record component
      finalTool - the value for the finalTool record component
      successfulToolCount - the value for the successfulToolCount record component
      failedToolCount - the value for the failedToolCount 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.
    • schemaVersion

      public Long schemaVersion()
      Returns the value of the schemaVersion record component.
      Returns:
      the value of the schemaVersion record component
    • attempt

      public Long attempt()
      Returns the value of the attempt record component.
      Returns:
      the value of the attempt record component
    • sourceEventId

      public String sourceEventId()
      Returns the value of the sourceEventId record component.
      Returns:
      the value of the sourceEventId record component
    • eventRange

      public CompletionReceiptEventRange eventRange()
      Returns the value of the eventRange record component.
      Returns:
      the value of the eventRange record component
    • stopReason

      public CompletionReceiptStopReason stopReason()
      Returns the value of the stopReason record component.
      Returns:
      the value of the stopReason record component
    • finalTool

      public CompletionReceiptFinalTool finalTool()
      Returns the value of the finalTool record component.
      Returns:
      the value of the finalTool record component
    • successfulToolCount

      public Long successfulToolCount()
      Returns the value of the successfulToolCount record component.
      Returns:
      the value of the successfulToolCount record component
    • failedToolCount

      public Long failedToolCount()
      Returns the value of the failedToolCount record component.
      Returns:
      the value of the failedToolCount record component