Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3ProcessOptions

Returns a new instance of GoogleCloudDocumentaiV1beta3ProcessOptions.



11714
11715
11716
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11714

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#from_endFixnum

Only process certain pages from the end, same as above. Corresponds to the JSON property fromEnd

Returns:

  • (Fixnum)


11686
11687
11688
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11686

def from_end
  @from_end
end

#from_startFixnum

Only process certain pages from the start. Process all if the document has fewer pages. Corresponds to the JSON property fromStart

Returns:

  • (Fixnum)


11692
11693
11694
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11692

def from_start
  @from_start
end

#individual_page_selectorGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsIndividualPageSelector

A list of individual page numbers. Corresponds to the JSON property individualPageSelector



11697
11698
11699
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11697

def individual_page_selector
  @individual_page_selector
end

#layout_configGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessOptionsLayoutConfig

Serving config for layout parser processor. Corresponds to the JSON property layoutConfig



11702
11703
11704
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11702

def layout_config
  @layout_config
end

#ocr_configGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3OcrConfig

Config for Document OCR. Corresponds to the JSON property ocrConfig



11707
11708
11709
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11707

def ocr_config
  @ocr_config
end

#schema_overrideGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema

The schema defines the output of the processed document by a processor. Corresponds to the JSON property schemaOverride



11712
11713
11714
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11712

def schema_override
  @schema_override
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11719
11720
11721
11722
11723
11724
11725
11726
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11719

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