Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata

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 metadata contains the information of the document of the current chunk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfoDocumentMetadata.



11516
11517
11518
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11516

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

Instance Attribute Details

#titleString

Title of the document. Corresponds to the JSON property title

Returns:

  • (String)


11509
11510
11511
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11509

def title
  @title
end

#uriString

Uri of the document. Corresponds to the JSON property uri

Returns:

  • (String)


11514
11515
11516
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11514

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11521
11522
11523
11524
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 11521

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