Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1/classes.rb,
lib/google/apis/documentai_v1/representations.rb,
lib/google/apis/documentai_v1/representations.rb more...
Overview
Options for Process API
Instance Attribute Summary collapse
-
#from_end ⇒ Fixnum
Only process certain pages from the end, same as above.
-
#from_start ⇒ Fixnum
Only process certain pages from the start.
-
#individual_page_selector ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector
A list of individual page numbers.
-
#ocr_config ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfig
Config for Document OCR.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1ProcessOptions
constructor
A new instance of GoogleCloudDocumentaiV1ProcessOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1ProcessOptions
Returns a new instance of GoogleCloudDocumentaiV1ProcessOptions.
4683 4684 4685 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 4683 def initialize(**args) update!(**args) end |
Instance Attribute Details
#from_end ⇒ Fixnum
Only process certain pages from the end, same as above.
Corresponds to the JSON property fromEnd
4665 4666 4667 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 4665 def from_end @from_end end |
#from_start ⇒ Fixnum
Only process certain pages from the start. Process all if the document has
fewer pages.
Corresponds to the JSON property fromStart
4671 4672 4673 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 4671 def from_start @from_start end |
#individual_page_selector ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector
A list of individual page numbers.
Corresponds to the JSON property individualPageSelector
4676 4677 4678 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 4676 def individual_page_selector @individual_page_selector end |
#ocr_config ⇒ Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1OcrConfig
Config for Document OCR.
Corresponds to the JSON property ocrConfig
4681 4682 4683 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 4681 def ocr_config @ocr_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4688 4689 4690 4691 4692 4693 |
# File 'lib/google/apis/documentai_v1/classes.rb', line 4688 def update!(**args) @from_end = args[:from_end] if args.key?(:from_end) @from_start = args[:from_start] if args.key?(:from_start) @individual_page_selector = args[:individual_page_selector] if args.key?(:individual_page_selector) @ocr_config = args[:ocr_config] if args.key?(:ocr_config) end |