Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment

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

Extractive segment. Guide Answer generation will only use it if document_contexts is empty. This is supposed to be shorter snippets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment.



5162
5163
5164
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5162

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

Instance Attribute Details

#contentString

Extractive segment content. Corresponds to the JSON property content

Returns:

  • (String)


5155
5156
5157
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5155

def content
  @content
end

#page_identifierString

Page identifier. Corresponds to the JSON property pageIdentifier

Returns:

  • (String)


5160
5161
5162
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5160

def page_identifier
  @page_identifier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5167
5168
5169
5170
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5167

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