Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGroundingFact
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGroundingFact
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/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) ⇒ GoogleCloudDiscoveryengineV1alphaGroundingFact
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaGroundingFact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGroundingFact
Returns a new instance of GoogleCloudDiscoveryengineV1alphaGroundingFact.
7015 7016 7017 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7015 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
7008 7009 7010 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7008 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
7013 7014 7015 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7013 def fact_text @fact_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7020 7021 7022 7023 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7020 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @fact_text = args[:fact_text] if args.key?(:fact_text) end |