Class: Google::Apis::TranslateV3beta1::DetectLanguageResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3beta1::DetectLanguageResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v3beta1/classes.rb,
lib/google/apis/translate_v3beta1/representations.rb,
lib/google/apis/translate_v3beta1/representations.rb
Overview
The response message for language detection.
Instance Attribute Summary collapse
-
#languages ⇒ Array<Google::Apis::TranslateV3beta1::DetectedLanguage>
A list of detected languages sorted by detection confidence in descending order.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DetectLanguageResponse
constructor
A new instance of DetectLanguageResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DetectLanguageResponse
Returns a new instance of DetectLanguageResponse.
300 301 302 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 300 def initialize(**args) update!(**args) end |
Instance Attribute Details
#languages ⇒ Array<Google::Apis::TranslateV3beta1::DetectedLanguage>
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
Corresponds to the JSON property languages
298 299 300 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 298 def languages @languages end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
305 306 307 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 305 def update!(**args) @languages = args[:languages] if args.key?(:languages) end |