Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentProcessingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentProcessingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
A singleton resource of DataStore. If it's empty when DataStore is created and DataStore is set to DataStore.ContentConfig.CONTENT_REQUIRED, the default parser will default to digital parser.
Instance Attribute Summary collapse
-
#chunking_config ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig
Configuration for chunking config.
-
#default_parsing_config ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig
Related configurations applied to a specific type of document parser.
-
#name ⇒ String
The full resource name of the Document Processing Config.
-
#parsing_config_overrides ⇒ Hash<String,Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig>
Map from file type to override the default parsing configuration based on the file type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1DocumentProcessingConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1DocumentProcessingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1DocumentProcessingConfig
Returns a new instance of GoogleCloudDiscoveryengineV1DocumentProcessingConfig.
3981 3982 3983 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3981 def initialize(**args) update!(**args) end |
Instance Attribute Details
#chunking_config ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentProcessingConfigChunkingConfig
Configuration for chunking config.
Corresponds to the JSON property chunkingConfig
3954 3955 3956 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3954 def chunking_config @chunking_config end |
#default_parsing_config ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig
Related configurations applied to a specific type of document parser.
Corresponds to the JSON property defaultParsingConfig
3959 3960 3961 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3959 def default_parsing_config @default_parsing_config end |
#name ⇒ String
The full resource name of the Document Processing Config. Format: projects/*/
locations/*/collections/*/dataStores/*/documentProcessingConfig
.
Corresponds to the JSON property name
3965 3966 3967 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3965 def name @name end |
#parsing_config_overrides ⇒ Hash<String,Google::Apis::DiscoveryengineV1::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. *
xlsm
: Override parsing config for XLSM files, only digital parsing and
layout parsing are supported. * xlsx
: Override parsing config for XLSX files,
only digital parsing and layout parsing are supported.
Corresponds to the JSON property parsingConfigOverrides
3979 3980 3981 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3979 def parsing_config_overrides @parsing_config_overrides end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3986 3987 3988 3989 3990 3991 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 3986 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 |