Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo

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

Structured search information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerReferenceStructuredDocumentInfo.



7779
7780
7781
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7779

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

Instance Attribute Details

#documentString

Document resource name. Corresponds to the JSON property document

Returns:

  • (String)


7762
7763
7764
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7762

def document
  @document
end

#struct_dataHash<String,Object>

Structured search data. Corresponds to the JSON property structData

Returns:

  • (Hash<String,Object>)


7767
7768
7769
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7767

def struct_data
  @struct_data
end

#titleString

Output only. The title of the document. Corresponds to the JSON property title

Returns:

  • (String)


7772
7773
7774
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7772

def title
  @title
end

#uriString

Output only. The URI of the document. Corresponds to the JSON property uri

Returns:

  • (String)


7777
7778
7779
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7777

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7784
7785
7786
7787
7788
7789
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7784

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