Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1DocumentProcessingConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

A singleton resource of DataStore. It's empty when DataStore is created, which defaults to digital parser. The first call to DataStoreService. UpdateDocumentProcessingConfig method will initialize the config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1DocumentProcessingConfig

Returns a new instance of GoogleCloudDiscoveryengineV1DocumentProcessingConfig.



1325
1326
1327
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1325

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

Instance Attribute Details

#chunking_configGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig

Configuration for chunking config. Corresponds to the JSON property chunkingConfig



1301
1302
1303
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1301

def chunking_config
  @chunking_config
end

#default_parsing_configGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig

Related configurations applied to a specific type of document parser. Corresponds to the JSON property defaultParsingConfig



1306
1307
1308
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1306

def default_parsing_config
  @default_parsing_config
end

#nameString

The full resource name of the Document Processing Config. Format: projects/*/ locations/*/collections/*/dataStores/*/documentProcessingConfig. Corresponds to the JSON property name

Returns:

  • (String)


1312
1313
1314
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1312

def name
  @name
end

#parsing_config_overridesHash<String,Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig>

Map from file type to override the default parsing configuration based on the file type. Supported keys: * pdf: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported. * html: Override parsing config for HTML files, only digital parsing and layout parsing are supported. * docx: Override parsing config for DOCX files, only digital parsing and layout parsing are supported. * pptx: Override parsing config for PPTX files, only digital parsing and layout parsing are supported. Corresponds to the JSON property parsingConfigOverrides



1323
1324
1325
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1323

def parsing_config_overrides
  @parsing_config_overrides
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1330
1331
1332
1333
1334
1335
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 1330

def update!(**args)
  @chunking_config = args[:chunking_config] if args.key?(:chunking_config)
  @default_parsing_config = args[:default_parsing_config] if args.key?(:default_parsing_config)
  @name = args[:name] if args.key?(:name)
  @parsing_config_overrides = args[:parsing_config_overrides] if args.key?(:parsing_config_overrides)
end