Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaProcessedDocument

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

Document captures all raw metadata information of items to be recommended or searched.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaProcessedDocument

Returns a new instance of GoogleCloudDiscoveryengineV1alphaProcessedDocument.



6724
6725
6726
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6724

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

Instance Attribute Details

#documentString

Required. Full resource name of the referenced document, in the format projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*. Corresponds to the JSON property document

Returns:

  • (String)


6717
6718
6719
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6717

def document
  @document
end

#json_dataString

The JSON string representation of the processed document. Corresponds to the JSON property jsonData

Returns:

  • (String)


6722
6723
6724
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6722

def json_data
  @json_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6729
6730
6731
6732
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 6729

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