Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment

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 segment. Guide

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment.



5306
5307
5308
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5306

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

Instance Attribute Details

#contentString

Extractive segment content. Corresponds to the JSON property content

Returns:

  • (String)


5299
5300
5301
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5299

def content
  @content
end

#page_identifierString

Page identifier. Corresponds to the JSON property pageIdentifier

Returns:

  • (String)


5304
5305
5306
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5304

def page_identifier
  @page_identifier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5311
5312
5313
5314
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5311

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