Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadataReference

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

Referenced content and related document metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadataReference

Returns a new instance of GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadataReference.



21499
21500
21501
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21499

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

Instance Attribute Details

#code_snippetString

Chunk of code snippet from the referenced document. Corresponds to the JSON property codeSnippet

Returns:

  • (String)


21487
21488
21489
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21487

def code_snippet
  @code_snippet
end

#contentString

Referenced text content. Corresponds to the JSON property content

Returns:

  • (String)


21492
21493
21494
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21492

def content
  @content
end

#document_metadataGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata

Document metadata. Corresponds to the JSON property documentMetadata



21497
21498
21499
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21497

def 
  @document_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



21504
21505
21506
21507
21508
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 21504

def update!(**args)
  @code_snippet = args[:code_snippet] if args.key?(:code_snippet)
  @content = args[:content] if args.key?(:content)
  @document_metadata = args[:document_metadata] if args.key?(:document_metadata)
end