Record Class UiEphemeralQueryEvent.UiEphemeralQueryEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.UiEphemeralQueryEvent.UiEphemeralQueryEventData
- Enclosing class:
UiEphemeralQueryEvent
@CopilotExperimental
public static record UiEphemeralQueryEvent.UiEphemeralQueryEventData(String requestId, UIEphemeralQueryPhase phase, String chunk, String answer, String error)
extends Record
Data payload for
UiEphemeralQueryEvent.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionUiEphemeralQueryEventData(String requestId, UIEphemeralQueryPhase phase, String chunk, String answer, String error) Creates an instance of aUiEphemeralQueryEventDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionanswer()Returns the value of theanswerrecord component.chunk()Returns the value of thechunkrecord 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.phase()Returns the value of thephaserecord component.Returns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UiEphemeralQueryEventData
public UiEphemeralQueryEventData(String requestId, UIEphemeralQueryPhase phase, String chunk, String answer, String error) Creates an instance of aUiEphemeralQueryEventDatarecord class.- Parameters:
requestId- the value for therequestIdrecord componentphase- the value for thephaserecord componentchunk- the value for thechunkrecord componentanswer- the value for theanswerrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
chunk
Returns the value of thechunkrecord component.- Returns:
- the value of the
chunkrecord component
-
answer
Returns the value of theanswerrecord component.- Returns:
- the value of the
answerrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-