Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig

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) ⇒ GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig

Returns a new instance of GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig.



2637
2638
2639
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2637

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


2630
2631
2632
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2630

def name
  @name
end

#ocr_configGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaOcrConfig

The OCR options for parsing documents. Corresponds to the JSON property ocrConfig



2635
2636
2637
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2635

def ocr_config
  @ocr_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2642
2643
2644
2645
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2642

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