Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3LanguageInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/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.



2096
2097
2098
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2096

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)


2084
2085
2086
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2084

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)


2089
2090
2091
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2089

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)


2094
2095
2096
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2094

def resolved_language_code
  @resolved_language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2101
2102
2103
2104
2105
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 2101

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