Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptions
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/documentai_v1beta3/classes.rb,
lib/google/apis/documentai_v1beta3/representations.rb,
lib/google/apis/documentai_v1beta3/representations.rb
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::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector
A list of individual page numbers.
-
#layout_config ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig
Serving config for layout parser processor.
-
#ocr_config ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig
Config for Document OCR.
-
#schema_override ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema
The schema defines the output of the processed document by a processor.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3ProcessOptions
constructor
A new instance of GoogleCloudDocumentaiV1beta3ProcessOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3ProcessOptions
Returns a new instance of GoogleCloudDocumentaiV1beta3ProcessOptions.
6663 6664 6665 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6663 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
6635 6636 6637 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6635 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
6641 6642 6643 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6641 def from_start @from_start end |
#individual_page_selector ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector
A list of individual page numbers.
Corresponds to the JSON property individualPageSelector
6646 6647 6648 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6646 def individual_page_selector @individual_page_selector end |
#layout_config ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig
Serving config for layout parser processor.
Corresponds to the JSON property layoutConfig
6651 6652 6653 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6651 def layout_config @layout_config end |
#ocr_config ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig
Config for Document OCR.
Corresponds to the JSON property ocrConfig
6656 6657 6658 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6656 def ocr_config @ocr_config end |
#schema_override ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema
The schema defines the output of the processed document by a processor.
Corresponds to the JSON property schemaOverride
6661 6662 6663 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6661 def schema_override @schema_override end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6668 6669 6670 6671 6672 6673 6674 6675 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 6668 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) @layout_config = args[:layout_config] if args.key?(:layout_config) @ocr_config = args[:ocr_config] if args.key?(:ocr_config) @schema_override = args[:schema_override] if args.key?(:schema_override) end |