Record Class TextExtractionRequest.TextExtractionParameters
java.lang.Object
java.lang.Record
io.quarkiverse.langchain4j.watsonx.bean.TextExtractionRequest.TextExtractionParameters
- Enclosing class:
TextExtractionRequest
public static record TextExtractionRequest.TextExtractionParameters(List<TextExtractionRequest.Type> requestedOutputs, TextExtractionRequest.Mode mode, TextExtractionRequest.OCR ocrMode, Boolean autoRotationCorrection, TextExtractionRequest.EmbeddedImages createEmbeddedImages, Integer outputDpi, Boolean outputTokensAndBbox)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTextExtractionParameters(List<TextExtractionRequest.Type> requestedOutputs, TextExtractionRequest.Mode mode, TextExtractionRequest.OCR ocrMode, Boolean autoRotationCorrection, TextExtractionRequest.EmbeddedImages createEmbeddedImages, Integer outputDpi, Boolean outputTokensAndBbox) Creates an instance of aTextExtractionParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theautoRotationCorrectionrecord component.Returns the value of thecreateEmbeddedImagesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.ocrMode()Returns the value of theocrModerecord component.Returns the value of theoutputDpirecord component.Returns the value of theoutputTokensAndBboxrecord component.Returns the value of therequestedOutputsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextExtractionParameters
public TextExtractionParameters(List<TextExtractionRequest.Type> requestedOutputs, TextExtractionRequest.Mode mode, TextExtractionRequest.OCR ocrMode, Boolean autoRotationCorrection, TextExtractionRequest.EmbeddedImages createEmbeddedImages, Integer outputDpi, Boolean outputTokensAndBbox) Creates an instance of aTextExtractionParametersrecord class.- Parameters:
requestedOutputs- the value for therequestedOutputsrecord componentmode- the value for themoderecord componentocrMode- the value for theocrModerecord componentautoRotationCorrection- the value for theautoRotationCorrectionrecord componentcreateEmbeddedImages- the value for thecreateEmbeddedImagesrecord componentoutputDpi- the value for theoutputDpirecord componentoutputTokensAndBbox- the value for theoutputTokensAndBboxrecord component
-
-
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). -
requestedOutputs
Returns the value of therequestedOutputsrecord component.- Returns:
- the value of the
requestedOutputsrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
ocrMode
Returns the value of theocrModerecord component.- Returns:
- the value of the
ocrModerecord component
-
autoRotationCorrection
Returns the value of theautoRotationCorrectionrecord component.- Returns:
- the value of the
autoRotationCorrectionrecord component
-
createEmbeddedImages
Returns the value of thecreateEmbeddedImagesrecord component.- Returns:
- the value of the
createEmbeddedImagesrecord component
-
outputDpi
Returns the value of theoutputDpirecord component.- Returns:
- the value of the
outputDpirecord component
-
outputTokensAndBbox
Returns the value of theoutputTokensAndBboxrecord component.- Returns:
- the value of the
outputTokensAndBboxrecord component
-