Package com.github.copilot.sdk.generated
Record Class UserMessageEvent.UserMessageEventData
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.UserMessageEvent.UserMessageEventData
- Enclosing class:
- UserMessageEvent
public static record UserMessageEvent.UserMessageEventData(String content, String transformedContent, List<Object> attachments, String source, UserMessageEvent.UserMessageEventData.UserMessageEventDataAgentMode agentMode, String interactionId)
extends Record
Data payload for
UserMessageEvent.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe agent mode that was active when this message was sent -
Constructor Summary
ConstructorsConstructorDescriptionUserMessageEventData(String content, String transformedContent, List<Object> attachments, String source, UserMessageEvent.UserMessageEventData.UserMessageEventDataAgentMode agentMode, String interactionId) Creates an instance of aUserMessageEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentModerecord component.Returns the value of theattachmentsrecord component.content()Returns the value of thecontentrecord 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 theinteractionIdrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransformedContentrecord component.
-
Constructor Details
-
UserMessageEventData
public UserMessageEventData(String content, String transformedContent, List<Object> attachments, String source, UserMessageEvent.UserMessageEventData.UserMessageEventDataAgentMode agentMode, String interactionId) Creates an instance of aUserMessageEventDatarecord class.- Parameters:
content- the value for thecontentrecord componenttransformedContent- the value for thetransformedContentrecord componentattachments- the value for theattachmentsrecord componentsource- the value for thesourcerecord componentagentMode- the value for theagentModerecord componentinteractionId- the value for theinteractionIdrecord 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). -
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
transformedContent
Returns the value of thetransformedContentrecord component.- Returns:
- the value of the
transformedContentrecord component
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
agentMode
Returns the value of theagentModerecord component.- Returns:
- the value of the
agentModerecord component
-
interactionId
Returns the value of theinteractionIdrecord component.- Returns:
- the value of the
interactionIdrecord component
-