Module com.github.copilot.java
Package com.github.copilot.generated
Record Class SessionCompactionCompleteEvent.SessionCompactionCompleteEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.SessionCompactionCompleteEvent.SessionCompactionCompleteEventData
- Enclosing class:
- SessionCompactionCompleteEvent
public static record SessionCompactionCompleteEvent.SessionCompactionCompleteEventData(Boolean success, String error, Long preCompactionTokens, Long postCompactionTokens, Long preCompactionMessagesLength, Long messagesRemoved, Long tokensRemoved, String customInstructions, String summaryContent, Long checkpointNumber, String checkpointPath, CompactionCompleteCompactionTokensUsed compactionTokensUsed, String requestId, String serviceRequestId, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens)
extends Record
Data payload for
SessionCompactionCompleteEvent.-
Constructor Summary
ConstructorsConstructorDescriptionSessionCompactionCompleteEventData(Boolean success, String error, Long preCompactionTokens, Long postCompactionTokens, Long preCompactionMessagesLength, Long messagesRemoved, Long tokensRemoved, String customInstructions, String summaryContent, Long checkpointNumber, String checkpointPath, CompactionCompleteCompactionTokensUsed compactionTokensUsed, String requestId, String serviceRequestId, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens) Creates an instance of aSessionCompactionCompleteEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckpointNumberrecord component.Returns the value of thecheckpointPathrecord component.Returns the value of thecompactionTokensUsedrecord component.Returns the value of theconversationTokensrecord component.Returns the value of thecustomInstructionsrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themessagesRemovedrecord component.Returns the value of thepostCompactionTokensrecord component.Returns the value of thepreCompactionMessagesLengthrecord component.Returns the value of thepreCompactionTokensrecord component.Returns the value of therequestIdrecord component.Returns the value of theserviceRequestIdrecord component.success()Returns the value of thesuccessrecord component.Returns the value of thesummaryContentrecord component.Returns the value of thesystemTokensrecord component.Returns the value of thetokensRemovedrecord component.Returns the value of thetoolDefinitionsTokensrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionCompactionCompleteEventData
public SessionCompactionCompleteEventData(Boolean success, String error, Long preCompactionTokens, Long postCompactionTokens, Long preCompactionMessagesLength, Long messagesRemoved, Long tokensRemoved, String customInstructions, String summaryContent, Long checkpointNumber, String checkpointPath, CompactionCompleteCompactionTokensUsed compactionTokensUsed, String requestId, String serviceRequestId, Long systemTokens, Long conversationTokens, Long toolDefinitionsTokens) Creates an instance of aSessionCompactionCompleteEventDatarecord class.- Parameters:
success- the value for thesuccessrecord componenterror- the value for theerrorrecord componentpreCompactionTokens- the value for thepreCompactionTokensrecord componentpostCompactionTokens- the value for thepostCompactionTokensrecord componentpreCompactionMessagesLength- the value for thepreCompactionMessagesLengthrecord componentmessagesRemoved- the value for themessagesRemovedrecord componenttokensRemoved- the value for thetokensRemovedrecord componentcustomInstructions- the value for thecustomInstructionsrecord componentsummaryContent- the value for thesummaryContentrecord componentcheckpointNumber- the value for thecheckpointNumberrecord componentcheckpointPath- the value for thecheckpointPathrecord componentcompactionTokensUsed- the value for thecompactionTokensUsedrecord componentrequestId- the value for therequestIdrecord componentserviceRequestId- the value for theserviceRequestIdrecord componentsystemTokens- the value for thesystemTokensrecord componentconversationTokens- the value for theconversationTokensrecord componenttoolDefinitionsTokens- the value for thetoolDefinitionsTokensrecord 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). -
success
Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
preCompactionTokens
Returns the value of thepreCompactionTokensrecord component.- Returns:
- the value of the
preCompactionTokensrecord component
-
postCompactionTokens
Returns the value of thepostCompactionTokensrecord component.- Returns:
- the value of the
postCompactionTokensrecord component
-
preCompactionMessagesLength
Returns the value of thepreCompactionMessagesLengthrecord component.- Returns:
- the value of the
preCompactionMessagesLengthrecord component
-
messagesRemoved
Returns the value of themessagesRemovedrecord component.- Returns:
- the value of the
messagesRemovedrecord component
-
tokensRemoved
Returns the value of thetokensRemovedrecord component.- Returns:
- the value of the
tokensRemovedrecord component
-
customInstructions
Returns the value of thecustomInstructionsrecord component.- Returns:
- the value of the
customInstructionsrecord component
-
summaryContent
Returns the value of thesummaryContentrecord component.- Returns:
- the value of the
summaryContentrecord component
-
checkpointNumber
Returns the value of thecheckpointNumberrecord component.- Returns:
- the value of the
checkpointNumberrecord component
-
checkpointPath
Returns the value of thecheckpointPathrecord component.- Returns:
- the value of the
checkpointPathrecord component
-
compactionTokensUsed
Returns the value of thecompactionTokensUsedrecord component.- Returns:
- the value of the
compactionTokensUsedrecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
serviceRequestId
Returns the value of theserviceRequestIdrecord component.- Returns:
- the value of the
serviceRequestIdrecord component
-
systemTokens
Returns the value of thesystemTokensrecord component.- Returns:
- the value of the
systemTokensrecord component
-
conversationTokens
Returns the value of theconversationTokensrecord component.- Returns:
- the value of the
conversationTokensrecord component
-
toolDefinitionsTokens
Returns the value of thetoolDefinitionsTokensrecord component.- Returns:
- the value of the
toolDefinitionsTokensrecord component
-