Record Class AIConversationRequest.Message
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.pg.request.AIConversationRequest.Message
- Enclosing class:
AIConversationRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.html()
Returns the value of thehtml
record component.role()
Returns the value of therole
record component.Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.user()
Returns the value of theuser
record component.userId()
Returns the value of theuserId
record component.
-
Constructor Details
-
Message
Creates an instance of aMessage
record class.- Parameters:
user
- the value for theuser
record componenthtml
- the value for thehtml
record componentrole
- the value for therole
record componenttimestamp
- the value for thetimestamp
record componentuserId
- the value for theuserId
record 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)
. -
user
Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-
html
Returns the value of thehtml
record component.- Returns:
- the value of the
html
record component
-
role
Returns the value of therole
record component.- Returns:
- the value of the
role
record component
-
timestamp
Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
userId
Returns the value of theuserId
record component.- Returns:
- the value of the
userId
record component
-