Record Class McpSchema.Content
java.lang.Object
java.lang.Record
net.mcreator.io.mcp.protocol.McpSchema.Content
- Enclosing class:
McpSchema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static McpSchema.ContentmimeType()Returns the value of themimeTyperecord component.text()Returns the value of thetextrecord component.static McpSchema.Contentstatic McpSchema.Contenttext(String text, McpSchema.Annotations annotations) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Content
-
Content
public Content(String type, String text, String data, String mimeType, McpSchema.Annotations annotations) Creates an instance of aContentrecord class.- Parameters:
type- the value for thetyperecord componenttext- the value for thetextrecord componentdata- the value for thedatarecord componentmimeType- the value for themimeTyperecord componentannotations- the value for theannotationsrecord component
-
-
Method Details
-
text
-
text
-
image
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
mimeType
Returns the value of themimeTyperecord component.- Returns:
- the value of the
mimeTyperecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-