Record Class Events.ContentStop
java.lang.Object
java.lang.Record
io.github.glaforge.gemini.interactions.model.Events.ContentStop
- Record Components:
eventType- The type of event ("content.stop").eventId- The unique identifier for the event.index- The index of the content part.
- All Implemented Interfaces:
Events
- Enclosing interface:
Events
public static record Events.ContentStop(Events.EventType eventType, String eventId, Integer index)
extends Record
implements Events
Event indicating the end of a content part.
-
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
ConstructorsConstructorDescriptionContentStop(Events.EventType eventType, String eventId, Integer index) Creates an instance of aContentStoprecord 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.index()Returns the value of theindexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. -
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-