Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundingFact

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

Overview

Grounding Fact.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1GroundingFact

Returns a new instance of GoogleCloudDiscoveryengineV1GroundingFact.



4482
4483
4484
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4482

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


4475
4476
4477
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4475

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)


4480
4481
4482
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4480

def fact_text
  @fact_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4487
4488
4489
4490
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4487

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