Record Class McpSchema.ResourceContent
java.lang.Object
java.lang.Record
net.mcreator.io.mcp.protocol.McpSchema.ResourceContent
- Enclosing class:
McpSchema
-
Constructor Summary
ConstructorsConstructorDescriptionResourceContent(String uri, String mimeType, String text, String blob, McpSchema.Annotations annotations) Creates an instance of aResourceContentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotationsrecord component.blob()Returns the value of theblobrecord component.static McpSchema.ResourceContentblob(String uri, String mimeType, String blobBase64, McpSchema.Annotations annotations) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mimeType()Returns the value of themimeTyperecord component.text()Returns the value of thetextrecord component.static McpSchema.ResourceContenttext(String uri, String mimeType, String text, McpSchema.Annotations annotations) final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
ResourceContent
public ResourceContent(String uri, String mimeType, String text, String blob, McpSchema.Annotations annotations) Creates an instance of aResourceContentrecord class.- Parameters:
uri- the value for theurirecord componentmimeType- the value for themimeTyperecord componenttext- the value for thetextrecord componentblob- the value for theblobrecord componentannotations- the value for theannotationsrecord component
-
-
Method Details
-
text
public static McpSchema.ResourceContent text(String uri, String mimeType, String text, McpSchema.Annotations annotations) -
blob
public static McpSchema.ResourceContent blob(String uri, String mimeType, String blobBase64, McpSchema.Annotations annotations) -
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). -
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
mimeType
Returns the value of themimeTyperecord component.- Returns:
- the value of the
mimeTyperecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
blob
Returns the value of theblobrecord component.- Returns:
- the value of the
blobrecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-