Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig

Returns a new instance of GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig.



1012
1013
1014
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1012

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)


1005
1006
1007
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1005

def name
  @name
end

#ocr_configGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaOcrConfig

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



1010
1011
1012
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1010

def ocr_config
  @ocr_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1017
1018
1019
1020
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1017

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