Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseSummaryReference

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 reference.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1SearchResponseSummaryReference

Returns a new instance of GoogleCloudDiscoveryengineV1SearchResponseSummaryReference.



4648
4649
4650
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4648

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

Instance Attribute Details

#chunk_contentsArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchResponseSummaryReferenceChunkContent>

List of cited chunk contents derived from document content. Corresponds to the JSON property chunkContents



4629
4630
4631
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4629

def chunk_contents
  @chunk_contents
end

#documentString

Required. Document.name of the document. Full resource name of the referenced document, in the format projects/*/locations/*/collections/*/dataStores/*/ branches/*/documents/*. Corresponds to the JSON property document

Returns:

  • (String)


4636
4637
4638
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4636

def document
  @document
end

#titleString

Title of the document. Corresponds to the JSON property title

Returns:

  • (String)


4641
4642
4643
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4641

def title
  @title
end

#uriString

Cloud Storage or HTTP uri for the document. Corresponds to the JSON property uri

Returns:

  • (String)


4646
4647
4648
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4646

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4653
4654
4655
4656
4657
4658
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4653

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