Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3LanguageInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Overview

Represents the language information of the request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3LanguageInfo

Returns a new instance of GoogleCloudDialogflowCxV3LanguageInfo.



4724
4725
4726
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4724

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#confidence_scoreFloat

The confidence score of the detected language between 0 and 1. Corresponds to the JSON property confidenceScore

Returns:

  • (Float)


4712
4713
4714
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4712

def confidence_score
  @confidence_score
end

#input_language_codeString

The language code specified in the original request. Corresponds to the JSON property inputLanguageCode

Returns:

  • (String)


4717
4718
4719
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4717

def input_language_code
  @input_language_code
end

#resolved_language_codeString

The language code detected for this request based on the user conversation. Corresponds to the JSON property resolvedLanguageCode

Returns:

  • (String)


4722
4723
4724
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4722

def resolved_language_code
  @resolved_language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4729
4730
4731
4732
4733
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4729

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