Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerReferenceStructuredDocumentInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

Structured search information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerReferenceStructuredDocumentInfo

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerReferenceStructuredDocumentInfo.



1284
1285
1286
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1284

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

Instance Attribute Details

#documentString

Document resource name. Corresponds to the JSON property document

Returns:

  • (String)


1277
1278
1279
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1277

def document
  @document
end

#struct_dataHash<String,Object>

Structured search data. Corresponds to the JSON property structData

Returns:

  • (Hash<String,Object>)


1282
1283
1284
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1282

def struct_data
  @struct_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1289
1290
1291
1292
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1289

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