Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2ProcessDocumentRequest
- 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
-
#automl_params ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2AutoMlParams
Parameters to control AutoML model prediction behavior.
-
#document_type ⇒ String
Specifies a known document type for deeper structure detection.
-
#entity_extraction_params ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2EntityExtractionParams
Parameters to control entity extraction behavior.
-
#form_extraction_params ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2FormExtractionParams
Parameters to control form extraction behavior.
-
#input_config ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2InputConfig
The desired input location and metadata.
-
#ocr_params ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OcrParams
Parameters to control Optical Character Recognition (OCR) behavior.
-
#output_config ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OutputConfig
The desired output location and metadata.
-
#parent ⇒ String
Target project and location to make a call.
-
#table_extraction_params ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableExtractionParams
Parameters to control table extraction behavior.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2ProcessDocumentRequest
constructor
A new instance of GoogleCloudDocumentaiV1beta2ProcessDocumentRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta2ProcessDocumentRequest
Returns a new instance of GoogleCloudDocumentaiV1beta2ProcessDocumentRequest.
7211 7212 7213 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#automl_params ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2AutoMlParams
Parameters to control AutoML model prediction behavior.
Corresponds to the JSON property automlParams
7164 7165 7166 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7164 def automl_params @automl_params end |
#document_type ⇒ String
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
7171 7172 7173 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7171 def document_type @document_type end |
#entity_extraction_params ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2EntityExtractionParams
Parameters to control entity extraction behavior.
Corresponds to the JSON property entityExtractionParams
7176 7177 7178 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7176 def entity_extraction_params @entity_extraction_params end |
#form_extraction_params ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2FormExtractionParams
Parameters to control form extraction behavior.
Corresponds to the JSON property formExtractionParams
7181 7182 7183 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7181 def form_extraction_params @form_extraction_params end |
#input_config ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2InputConfig
The desired input location and metadata.
Corresponds to the JSON property inputConfig
7186 7187 7188 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7186 def input_config @input_config end |
#ocr_params ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OcrParams
Parameters to control Optical Character Recognition (OCR) behavior.
Corresponds to the JSON property ocrParams
7191 7192 7193 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7191 def ocr_params @ocr_params end |
#output_config ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2OutputConfig
The desired output location and metadata.
Corresponds to the JSON property outputConfig
7196 7197 7198 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7196 def output_config @output_config end |
#parent ⇒ String
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 property
parent`
7204 7205 7206 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7204 def parent @parent end |
#table_extraction_params ⇒ Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2TableExtractionParams
Parameters to control table extraction behavior.
Corresponds to the JSON property tableExtractionParams
7209 7210 7211 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7209 def table_extraction_params @table_extraction_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 |
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 7216 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 |