Record Class Events.InteractionStatusUpdate
java.lang.Object
java.lang.Record
io.github.glaforge.gemini.interactions.model.Events.InteractionStatusUpdate
- Record Components:
eventType- The type of event ("interaction.status_update").eventId- The unique identifier for the event.interactionId- The ID of the interaction.status- The new status of the interaction.
- All Implemented Interfaces:
Events
- Enclosing interface:
Events
public static record Events.InteractionStatusUpdate(Events.EventType eventType, String eventId, String interactionId, String status)
extends Record
implements Events
Event indicating a status update for an interaction.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.glaforge.gemini.interactions.model.Events
Events.AudioDelta, Events.CodeExecutionCallDelta, Events.CodeExecutionResultDelta, Events.ContentDelta, Events.ContentStart, Events.ContentStop, Events.Delta, Events.DeltaType, Events.DocumentDelta, Events.Error, Events.ErrorEvent, Events.EventType, Events.FileSearchResultDelta, Events.FunctionCallDelta, Events.FunctionResultDelta, Events.GoogleSearchCallDelta, Events.GoogleSearchResultDelta, Events.ImageDelta, Events.InteractionEvent, Events.InteractionStatusUpdate, Events.McpServerToolCallDelta, Events.McpServerToolResultDelta, Events.TextDelta, Events.ThoughtSignatureDelta, Events.ThoughtSummaryDelta, Events.UrlContextCallDelta, Events.UrlContextResultDelta, Events.VideoDelta -
Constructor Summary
ConstructorsConstructorDescriptionInteractionStatusUpdate(Events.EventType eventType, String eventId, String interactionId, String status) Creates an instance of aInteractionStatusUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.eventId()Returns the value of theeventIdrecord component.Returns the value of theeventTyperecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinteractionIdrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InteractionStatusUpdate
public InteractionStatusUpdate(Events.EventType eventType, String eventId, String interactionId, String status) Creates an instance of aInteractionStatusUpdaterecord class.- Parameters:
eventType- the value for theeventTyperecord componenteventId- the value for theeventIdrecord componentinteractionId- the value for theinteractionIdrecord componentstatus- the value for thestatusrecord 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). -
eventType
Returns the value of theeventTyperecord component. -
eventId
Returns the value of theeventIdrecord component. -
interactionId
Returns the value of theinteractionIdrecord component.- Returns:
- the value of the
interactionIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-