Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo

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

Structured search information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo.



5378
5379
5380
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5378

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

Instance Attribute Details

#documentString

Document resource name. Corresponds to the JSON property document

Returns:

  • (String)


5371
5372
5373
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5371

def document
  @document
end

#struct_dataHash<String,Object>

Structured search data. Corresponds to the JSON property structData

Returns:

  • (Hash<String,Object>)


5376
5377
5378
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5376

def struct_data
  @struct_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5383
5384
5385
5386
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5383

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