Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext

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

Document context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext.



11928
11929
11930
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11928

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

Instance Attribute Details

#contentString

Document content to be used for answer generation. Corresponds to the JSON property content

Returns:

  • (String)


11921
11922
11923
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11921

def content
  @content
end

#page_identifierString

Page identifier. Corresponds to the JSON property pageIdentifier

Returns:

  • (String)


11926
11927
11928
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11926

def page_identifier
  @page_identifier
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11933
11934
11935
11936
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11933

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