Record Class DashScopeWebSocketClient.EventMessage.EventMessageHeader
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.dashscope.protocol.DashScopeWebSocketClient.EventMessage.EventMessageHeader
- Enclosing class:
- DashScopeWebSocketClient.EventMessage
public static record DashScopeWebSocketClient.EventMessage.EventMessageHeader(String taskId, DashScopeWebSocketClient.EventType event, String code, String message)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEventMessageHeader(String taskId, DashScopeWebSocketClient.EventType event, String code, String message) Creates an instance of aEventMessageHeaderrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EventMessageHeader
public EventMessageHeader(String taskId, DashScopeWebSocketClient.EventType event, String code, String message) Creates an instance of aEventMessageHeaderrecord class.- Parameters:
taskId- the value for thetaskIdrecord componentevent- the value for theeventrecord componentcode- the value for thecoderecord componentmessage- the value for themessagerecord 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). -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-