Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1LanguageInfo

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) ⇒ GoogleCloudDialogflowCxV3beta1LanguageInfo

Returns a new instance of GoogleCloudDialogflowCxV3beta1LanguageInfo.



10860
10861
10862
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10860

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)


10848
10849
10850
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10848

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)


10853
10854
10855
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10853

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)


10858
10859
10860
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10858

def resolved_language_code
  @resolved_language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10865
10866
10867
10868
10869
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 10865

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