Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference

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

Overview

Document reference.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference.



12412
12413
12414
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12412

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

Instance Attribute Details

#chunk_contentsArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent>

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



12393
12394
12395
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12393

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)


12400
12401
12402
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12400

def document
  @document
end

#titleString

Title of the document. Corresponds to the JSON property title

Returns:

  • (String)


12405
12406
12407
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12405

def title
  @title
end

#uriString

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

Returns:

  • (String)


12410
12411
12412
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12410

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12417
12418
12419
12420
12421
12422
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 12417

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