Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest
- 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
Request message for the TrainProcessorVersion method.
Instance Attribute Summary collapse
-
#base_processor_version ⇒ String
Optional.
-
#document_schema ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema
The schema defines the output of the processed document by a processor.
-
#input_data ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData
The input data used to train a new ProcessorVersion.
-
#processor_version ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersion
A processor version is an implementation of a processor.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest
constructor
A new instance of GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest
Returns a new instance of GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequest.
10156 10157 10158 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10156 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_processor_version ⇒ String
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`
10135 10136 10137 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10135 def base_processor_version @base_processor_version end |
#document_schema ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3DocumentSchema
The schema defines the output of the processed document by a processor.
Corresponds to the JSON property documentSchema
10140 10141 10142 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10140 def document_schema @document_schema end |
#input_data ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3TrainProcessorVersionRequestInputData
The input data used to train a new ProcessorVersion.
Corresponds to the JSON property inputData
10145 10146 10147 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10145 def input_data @input_data end |
#processor_version ⇒ Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessorVersion
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
10154 10155 10156 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10154 def processor_version @processor_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10161 10162 10163 10164 10165 10166 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 10161 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 |