Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundingFact

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

Grounding Fact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGroundingFact

Returns a new instance of GoogleCloudDiscoveryengineV1betaGroundingFact.



16462
16463
16464
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16462

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

Instance Attribute Details

#attributesHash<String,String>

Attributes associated with the fact. Common attributes include source ( indicating where the fact was sourced from), author (indicating the author of the fact), and so on. Corresponds to the JSON property attributes

Returns:

  • (Hash<String,String>)


16455
16456
16457
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16455

def attributes
  @attributes
end

#fact_textString

Text content of the fact. Can be at most 10K characters long. Corresponds to the JSON property factText

Returns:

  • (String)


16460
16461
16462
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16460

def fact_text
  @fact_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16467
16468
16469
16470
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 16467

def update!(**args)
  @attributes = args[:attributes] if args.key?(:attributes)
  @fact_text = args[:fact_text] if args.key?(:fact_text)
end