Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig

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

Config for importing documents. Each batch can have its own dataset split type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig

Returns a new instance of GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfig.



11180
11181
11182
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11180

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

Instance Attribute Details

#auto_split_configGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ImportDocumentsRequestBatchDocumentsImportConfigAutoSplitConfig

The config for auto-split. Corresponds to the JSON property autoSplitConfig



11168
11169
11170
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11168

def auto_split_config
  @auto_split_config
end

#batch_input_configGoogle::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchDocumentsInputConfig

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



11173
11174
11175
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11173

def batch_input_config
  @batch_input_config
end

#dataset_splitString

Target dataset split where the documents must be stored. Corresponds to the JSON property datasetSplit

Returns:

  • (String)


11178
11179
11180
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11178

def dataset_split
  @dataset_split
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11185
11186
11187
11188
11189
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 11185

def update!(**args)
  @auto_split_config = args[:auto_split_config] if args.key?(:auto_split_config)
  @batch_input_config = args[:batch_input_config] if args.key?(:batch_input_config)
  @dataset_split = args[:dataset_split] if args.key?(:dataset_split)
end