Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo

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

Unstructured document information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo.



5370
5371
5372
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5370

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

Instance Attribute Details

#chunk_contentsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent>

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



5353
5354
5355
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5353

def chunk_contents
  @chunk_contents
end

#documentString

Document resource name. Corresponds to the JSON property document

Returns:

  • (String)


5358
5359
5360
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5358

def document
  @document
end

#titleString

Title. Corresponds to the JSON property title

Returns:

  • (String)


5363
5364
5365
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5363

def title
  @title
end

#uriString

URI for the document. Corresponds to the JSON property uri

Returns:

  • (String)


5368
5369
5370
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5368

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5375
5376
5377
5378
5379
5380
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 5375

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