Record Class FilePart_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.FilePart_v0_3
- All Implemented Interfaces:
Part_v0_3<FileContent_v0_3>
public record FilePart_v0_3(FileContent_v0_3 file, Map<String,Object> metadata, Part_v0_3.Kind kind)
extends Record
implements Part_v0_3<FileContent_v0_3>
Represents a file segment within a message or artifact. The file content can be
provided either directly as bytes or as a URI.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Part_v0_3
Part_v0_3.Kind -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFilePart_v0_3(FileContent_v0_3 file, @Nullable Map<String, Object> metadata) FilePart_v0_3(FileContent_v0_3 file, @Nullable Map<String, Object> metadata, Part_v0_3.Kind kind) Creates an instance of aFilePart_v0_3record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
FILE
- See Also:
-
-
Constructor Details
-
FilePart_v0_3
public FilePart_v0_3(FileContent_v0_3 file, @Nullable Map<String, Object> metadata, Part_v0_3.Kind kind) Creates an instance of aFilePart_v0_3record class.- Parameters:
file- the value for thefilerecord componentmetadata- the value for themetadatarecord componentkind- the value for thekindrecord component
-
FilePart_v0_3
-
FilePart_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). -
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
metadata
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-