Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1beta2/classes.rb,
lib/google/apis/documentai_v1beta2/representations.rb,
lib/google/apis/documentai_v1beta2/representations.rb

Overview

Request to process one document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2ProcessDocumentRequest

Returns a new instance of GoogleCloudDocumentaiV1beta2ProcessDocumentRequest.



5615
5616
5617
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5615

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

Instance Attribute Details

#automl_paramsGoogle::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2AutoMlParams

Parameters to control AutoML model prediction behavior. Corresponds to the JSON property automlParams



5568
5569
5570
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5568

def automl_params
  @automl_params
end

#document_typeString

Specifies a known document type for deeper structure detection. Valid values are currently "general" and "invoice". If not provided, "general"\ is used as default. If any other value is given, the request is rejected. Corresponds to the JSON property documentType

Returns:

  • (String)


5575
5576
5577
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5575

def document_type
  @document_type
end

#entity_extraction_paramsGoogle::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2EntityExtractionParams

Parameters to control entity extraction behavior. Corresponds to the JSON property entityExtractionParams



5580
5581
5582
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5580

def entity_extraction_params
  @entity_extraction_params
end

#form_extraction_paramsGoogle::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2FormExtractionParams

Parameters to control form extraction behavior. Corresponds to the JSON property formExtractionParams



5585
5586
5587
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5585

def form_extraction_params
  @form_extraction_params
end

#input_configGoogle::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2InputConfig

The desired input location and metadata. Corresponds to the JSON property inputConfig



5590
5591
5592
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5590

def input_config
  @input_config
end

#ocr_paramsGoogle::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OcrParams

Parameters to control Optical Character Recognition (OCR) behavior. Corresponds to the JSON property ocrParams



5595
5596
5597
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5595

def ocr_params
  @ocr_params
end

#output_configGoogle::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OutputConfig

The desired output location and metadata. Corresponds to the JSON property outputConfig



5600
5601
5602
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5600

def output_config
  @output_config
end

#parentString

Target project and location to make a call. Format: projects/project-id/ locations/location-id`. If no location is specified, a region will be chosen automatically. This field is only populated when used in ProcessDocument method. Corresponds to the JSON propertyparent`

Returns:

  • (String)


5608
5609
5610
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5608

def parent
  @parent
end

#table_extraction_paramsGoogle::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableExtractionParams

Parameters to control table extraction behavior. Corresponds to the JSON property tableExtractionParams



5613
5614
5615
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5613

def table_extraction_params
  @table_extraction_params
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 5620

def update!(**args)
  @automl_params = args[:automl_params] if args.key?(:automl_params)
  @document_type = args[:document_type] if args.key?(:document_type)
  @entity_extraction_params = args[:entity_extraction_params] if args.key?(:entity_extraction_params)
  @form_extraction_params = args[:form_extraction_params] if args.key?(:form_extraction_params)
  @input_config = args[:input_config] if args.key?(:input_config)
  @ocr_params = args[:ocr_params] if args.key?(:ocr_params)
  @output_config = args[:output_config] if args.key?(:output_config)
  @parent = args[:parent] if args.key?(:parent)
  @table_extraction_params = args[:table_extraction_params] if args.key?(:table_extraction_params)
end