# Cloud Vision V1 API - Class Google::Cloud::Vision::V1::TextAnnotation::DetectedLanguage (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.1 1.1.0 1.0.1 0.15.0 0.14.0 0.13.2 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.4 Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::TextAnnotation::DetectedLanguage.

Detected language for a structural component.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #confidence

    def confidence() -> ::Float

**Returns**

- (::Float) --- Confidence of detected language. Range \[0, 1\].

### #confidence=

    def confidence=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Confidence of detected language. Range \[0, 1\].
**Returns**

- (::Float) --- Confidence of detected language. Range \[0, 1\].

### #language_code

    def language_code() -> ::String

**Returns**

- (::String) --- The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

### #language_code=

    def language_code=(value) -> ::String

**Parameter**

- **value** (::String) --- The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
**Returns**

- (::String) --- The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.