Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

Document metadata contains the information of the document of the current chunk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata.



1548
1549
1550
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1548

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

Instance Attribute Details

#titleString

Title of the document. Corresponds to the JSON property title

Returns:

  • (String)


1541
1542
1543
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1541

def title
  @title
end

#uriString

Uri of the document. Corresponds to the JSON property uri

Returns:

  • (String)


1546
1547
1548
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1546

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1553
1554
1555
1556
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1553

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