Record Class MistralOcrApi.OCRRequest.ImageURLChunk
java.lang.Object
java.lang.Record
org.springframework.ai.mistralai.ocr.MistralOcrApi.OCRRequest.ImageURLChunk
- Record Components:
type- Must be 'image_url'.imageUrl- URL of the image.imageName- Optional name of the image.
- All Implemented Interfaces:
MistralOcrApi.OCRRequest.Document
- Enclosing class:
MistralOcrApi.OCRRequest
public static record MistralOcrApi.OCRRequest.ImageURLChunk(String type, String imageUrl, String imageName)
extends Record
implements MistralOcrApi.OCRRequest.Document
Represents an image URL chunk.
- Since:
- 1.1.0
- Author:
- Alexandros Pappas
-
Constructor Summary
ConstructorsConstructorDescriptionImageURLChunk(String imageUrl) Create an ImageURLChunk.ImageURLChunk(String type, String imageUrl, String imageName) Creates an instance of aImageURLChunkrecord 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.Returns the value of theimageNamerecord component.imageUrl()Returns the value of theimageUrlrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ImageURLChunk
Create an ImageURLChunk.- Parameters:
imageUrl- URL of the image.
-
ImageURLChunk
-
-
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). -
type
-
imageUrl
-
imageName
-