# Cloud Translation V2 API - Class Google::Cloud::Translate::V2::Detection::Result (v1.2.0)

1.2.0 (latest) 1.1.0 1.0.1 0.5.1 0.4.1 0.3.1 Reference documentation and code samples for the Cloud Translation V2 API class Google::Cloud::Translate::V2::Detection::Result.

## Result

Represents an individual result in a [Google::Cloud::Translate::V2::Detection](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v2/latest/Google-Cloud-Translate-V2-Detection "Google::Cloud::Translate::V2::Detection (class)") result.

## Inherits

- Object

## Methods

### #confidence

    def confidence() -> Float

The confidence that the language detection result is correct. The closer this value is to 1, the higher
the confidence in language detection.
**Returns**

- (Float) --- a value between 0 and 1

### #language

    def language() -> String

The language detected. This is an [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
language code.
**Returns**

- (String) --- the language code