Record Class TextPart_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.TextPart_v0_3
-
Nested Class Summary
Nested classes/interfaces inherited from interface Part_v0_3
Part_v0_3.Kind -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextPart_v0_3(String text) TextPart_v0_3(String text, @Nullable Map<String, Object> metadata) TextPart_v0_3(String text, @Nullable Map<String, Object> metadata, Part_v0_3.Kind kind) Creates an instance of aTextPart_v0_3record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.metadata()Returns the value of themetadatarecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TEXT
- See Also:
-
-
Constructor Details
-
TextPart_v0_3
Creates an instance of aTextPart_v0_3record class.- Parameters:
text- the value for thetextrecord componentmetadata- the value for themetadatarecord componentkind- the value for thekindrecord component
-
TextPart_v0_3
-
TextPart_v0_3
-
-
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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
metadata
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-