Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData

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

The input data used to train a new ProcessorVersion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData

Returns a new instance of GoogleCloudDocumentaiV1TrainProcessorVersionRequestInputData.



6072
6073
6074
# File 'lib/google/apis/documentai_v1/classes.rb', line 6072

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

Instance Attribute Details

#test_documentsGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchDocumentsInputConfig

The common config to specify a set of documents used as input. Corresponds to the JSON property testDocuments



6065
6066
6067
# File 'lib/google/apis/documentai_v1/classes.rb', line 6065

def test_documents
  @test_documents
end

#training_documentsGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchDocumentsInputConfig

The common config to specify a set of documents used as input. Corresponds to the JSON property trainingDocuments



6070
6071
6072
# File 'lib/google/apis/documentai_v1/classes.rb', line 6070

def training_documents
  @training_documents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6077
6078
6079
6080
# File 'lib/google/apis/documentai_v1/classes.rb', line 6077

def update!(**args)
  @test_documents = args[:test_documents] if args.key?(:test_documents)
  @training_documents = args[:training_documents] if args.key?(:training_documents)
end