Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference

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) ⇒ GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReference.



9065
9066
9067
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9065

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)


9053
9054
9055
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9053

def code_snippet
  @code_snippet
end

#contentString

Referenced text content. Corresponds to the JSON property content

Returns:

  • (String)


9058
9059
9060
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9058

def content
  @content
end

#document_metadataGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAssistantGroundedContentTextGroundingMetadataReferenceDocumentMetadata

Document metadata. Corresponds to the JSON property documentMetadata



9063
9064
9065
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9063

def 
  @document_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9070
9071
9072
9073
9074
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9070

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