Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3LanguageInfo
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3LanguageInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Overview
Represents the language information of the request.
Instance Attribute Summary collapse
-
#confidence_score ⇒ Float
The confidence score of the detected language between 0 and 1.
-
#input_language_code ⇒ String
The language code specified in the original request.
-
#resolved_language_code ⇒ String
The language code detected for this request based on the user conversation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3LanguageInfo
constructor
A new instance of GoogleCloudDialogflowCxV3LanguageInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3LanguageInfo
Returns a new instance of GoogleCloudDialogflowCxV3LanguageInfo.
2115 2116 2117 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2115 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence_score ⇒ Float
The confidence score of the detected language between 0 and 1.
Corresponds to the JSON property confidenceScore
2103 2104 2105 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2103 def confidence_score @confidence_score end |
#input_language_code ⇒ String
The language code specified in the original request.
Corresponds to the JSON property inputLanguageCode
2108 2109 2110 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2108 def input_language_code @input_language_code end |
#resolved_language_code ⇒ String
The language code detected for this request based on the user conversation.
Corresponds to the JSON property resolvedLanguageCode
2113 2114 2115 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2113 def resolved_language_code @resolved_language_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2120 2121 2122 2123 2124 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2120 def update!(**args) @confidence_score = args[:confidence_score] if args.key?(:confidence_score) @input_language_code = args[:input_language_code] if args.key?(:input_language_code) @resolved_language_code = args[:resolved_language_code] if args.key?(:resolved_language_code) end |