Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequest

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

Request message for the TrainProcessorVersion method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1TrainProcessorVersionRequest

Returns a new instance of GoogleCloudDocumentaiV1TrainProcessorVersionRequest.

[View source]

5379
5380
5381
# File 'lib/google/apis/documentai_v1/classes.rb', line 5379

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

Instance Attribute Details

#base_processor_versionString

Optional. The processor version to use as a base for training. This processor version must be a child of parent. Format: projects/project/locations/ location/processors/processor/processorVersions/processorVersion`. Corresponds to the JSON propertybaseProcessorVersion`

Returns:

  • (String)

5353
5354
5355
# File 'lib/google/apis/documentai_v1/classes.rb', line 5353

def base_processor_version
  @base_processor_version
end

#custom_document_extraction_optionsGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestCustomDocumentExtractionOptions

Options to control the training of the Custom Document Extraction (CDE) Processor. Corresponds to the JSON property customDocumentExtractionOptions


5359
5360
5361
# File 'lib/google/apis/documentai_v1/classes.rb', line 5359

def custom_document_extraction_options
  @custom_document_extraction_options
end

#document_schemaGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema

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


5364
5365
5366
# File 'lib/google/apis/documentai_v1/classes.rb', line 5364

def document_schema
  @document_schema
end

#input_dataGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData

The input data used to train a new ProcessorVersion. Corresponds to the JSON property inputData


5369
5370
5371
# File 'lib/google/apis/documentai_v1/classes.rb', line 5369

def input_data
  @input_data
end

#processor_versionGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorVersion

A processor version is an implementation of a processor. Each processor can have multiple versions, pretrained by Google internally or uptrained by the customer. A processor can only have one default version at a time. Its document-processing behavior is defined by that version. Corresponds to the JSON property processorVersion


5377
5378
5379
# File 'lib/google/apis/documentai_v1/classes.rb', line 5377

def processor_version
  @processor_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

5384
5385
5386
5387
5388
5389
5390
# File 'lib/google/apis/documentai_v1/classes.rb', line 5384

def update!(**args)
  @base_processor_version = args[:base_processor_version] if args.key?(:base_processor_version)
  @custom_document_extraction_options = args[:custom_document_extraction_options] if args.key?(:custom_document_extraction_options)
  @document_schema = args[:document_schema] if args.key?(:document_schema)
  @input_data = args[:input_data] if args.key?(:input_data)
  @processor_version = args[:processor_version] if args.key?(:processor_version)
end