Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer

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

Extractive answer. Guide

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer.



11954
11955
11956
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11954

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

Instance Attribute Details

#contentString

Extractive answer content. Corresponds to the JSON property content

Returns:

  • (String)


11947
11948
11949
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11947

def content
  @content
end

#page_identifierString

Page identifier. Corresponds to the JSON property pageIdentifier

Returns:

  • (String)


11952
11953
11954
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11952

def page_identifier
  @page_identifier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11959
11960
11961
11962
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11959

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