Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundingFact
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaGroundingFact
- 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
-
#attributes ⇒ Hash<String,String>
Attributes associated with the fact.
-
#fact_text ⇒ String
Text content of the fact.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGroundingFact
constructor
A new instance of GoogleCloudDiscoveryengineV1betaGroundingFact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaGroundingFact
Returns a new instance of GoogleCloudDiscoveryengineV1betaGroundingFact.
9294 9295 9296 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9294 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
9287 9288 9289 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9287 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
9292 9293 9294 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9292 def fact_text @fact_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9299 9300 9301 9302 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9299 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @fact_text = args[:fact_text] if args.key?(:fact_text) end |