Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundingFact
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundingFact
- 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
-
#attributes ⇒ Hash<String,String>
Attributes associated with the fact.
-
#fact_text ⇒ String
Text content of the fact.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1GroundingFact
constructor
A new instance of GoogleCloudDiscoveryengineV1GroundingFact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1GroundingFact
Returns a new instance of GoogleCloudDiscoveryengineV1GroundingFact.
4600 4601 4602 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4600 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Hash<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
4593 4594 4595 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4593 def attributes @attributes end |
#fact_text ⇒ String
Text content of the fact. Can be at most 10K characters long.
Corresponds to the JSON property factText
4598 4599 4600 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4598 def fact_text @fact_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4605 4606 4607 4608 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 4605 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @fact_text = args[:fact_text] if args.key?(:fact_text) end |