Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/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::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
Related configurations applied to a specific type of document parser.
-
#name ⇒ String
The full resource name of the Document Processing Config.
-
#ocr_config ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrConfig
The OCR options for parsing documents.
-
#parsing_config_overrides ⇒ Hash<String,Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig>
Map from file type to override the default parsing configuration based on the file type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
Returns a new instance of GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig.
1920 1921 1922 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1920 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_parsing_config ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
Related configurations applied to a specific type of document parser.
Corresponds to the JSON property defaultParsingConfig
1898 1899 1900 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1898 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
1904 1905 1906 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1904 def name @name end |
#ocr_config ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrConfig
The OCR options for parsing documents.
Corresponds to the JSON property ocrConfig
1909 1910 1911 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1909 def ocr_config @ocr_config end |
#parsing_config_overrides ⇒ Hash<String,Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig>
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.
Corresponds to the JSON property parsingConfigOverrides
1918 1919 1920 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1918 def parsing_config_overrides @parsing_config_overrides end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1925 1926 1927 1928 1929 1930 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1925 def update!(**args) @default_parsing_config = args[:default_parsing_config] if args.key?(:default_parsing_config) @name = args[:name] if args.key?(:name) @ocr_config = args[:ocr_config] if args.key?(:ocr_config) @parsing_config_overrides = args[:parsing_config_overrides] if args.key?(:parsing_config_overrides) end |