Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ArticleAnswer
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ArticleAnswer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Instance Attribute Summary collapse
-
#answer_record ⇒ String
Corresponds to the JSON property
answerRecord. -
#confidence ⇒ Float
Corresponds to the JSON property
confidence. -
#metadata ⇒ Hash<String,String>
Corresponds to the JSON property
metadata. -
#snippets ⇒ Array<String>
Corresponds to the JSON property
snippets. -
#title ⇒ String
Corresponds to the JSON property
title. -
#uri ⇒ String
Corresponds to the JSON property
uri.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2ArticleAnswer
constructor
A new instance of GoogleCloudDialogflowV2ArticleAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2ArticleAnswer
Returns a new instance of GoogleCloudDialogflowV2ArticleAnswer.
7093 7094 7095 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7093 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_record ⇒ String
Corresponds to the JSON property answerRecord
7066 7067 7068 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7066 def answer_record @answer_record end |
#confidence ⇒ Float
Corresponds to the JSON property confidence
7071 7072 7073 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7071 def confidence @confidence end |
#metadata ⇒ Hash<String,String>
Corresponds to the JSON property metadata
7076 7077 7078 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7076 def @metadata end |
#snippets ⇒ Array<String>
Corresponds to the JSON property snippets
7081 7082 7083 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7081 def snippets @snippets end |
#title ⇒ String
Corresponds to the JSON property title
7086 7087 7088 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7086 def title @title end |
#uri ⇒ String
Corresponds to the JSON property uri
7091 7092 7093 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7091 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7098 7099 7100 7101 7102 7103 7104 7105 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 7098 def update!(**args) @answer_record = args[:answer_record] if args.key?(:answer_record) @confidence = args[:confidence] if args.key?(:confidence) @metadata = args[:metadata] if args.key?(:metadata) @snippets = args[:snippets] if args.key?(:snippets) @title = args[:title] if args.key?(:title) @uri = args[:uri] if args.key?(:uri) end |