Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
- 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. 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
-
#default_parsing_config ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig
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::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig>
Map from file type to override the default parsing configuration based on the file type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
Returns a new instance of GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig.
8795 8796 8797 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8795 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_parsing_config ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig
Related configurations applied to a specific type of document parser.
Corresponds to the JSON property defaultParsingConfig
8777 8778 8779 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8777 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
8783 8784 8785 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8783 def name @name end |
#parsing_config_overrides ⇒ Hash<String,Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig>
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 or layout
parsing are supported. * docx: Override parsing config for DOCX files, only
digital parsing and or layout parsing are supported.
Corresponds to the JSON property parsingConfigOverrides
8793 8794 8795 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8793 def parsing_config_overrides @parsing_config_overrides end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8800 8801 8802 8803 8804 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 8800 def update!(**args) @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 |