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

Overview

Request message for the create processor version method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1TrainProcessorVersionRequest

Returns a new instance of GoogleCloudDocumentaiV1TrainProcessorVersionRequest.



4585
4586
4587
# File 'lib/google/apis/documentai_v1/classes.rb', line 4585

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)


4564
4565
4566
# File 'lib/google/apis/documentai_v1/classes.rb', line 4564

def base_processor_version
  @base_processor_version
end

#document_schemaGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema

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



4569
4570
4571
# File 'lib/google/apis/documentai_v1/classes.rb', line 4569

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



4574
4575
4576
# File 'lib/google/apis/documentai_v1/classes.rb', line 4574

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, pre-trained by Google internally or up-trained by the customer. At a time, a processor can only have one default version version. So the processor's behavior (when processing documents) is defined by a default version Corresponds to the JSON property processorVersion



4583
4584
4585
# File 'lib/google/apis/documentai_v1/classes.rb', line 4583

def processor_version
  @processor_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4590
4591
4592
4593
4594
4595
# File 'lib/google/apis/documentai_v1/classes.rb', line 4590

def update!(**args)
  @base_processor_version = args[:base_processor_version] if args.key?(:base_processor_version)
  @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