Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::DetectedLanguage.
The response message for language detection.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#confidence
def confidence() -> ::Float
Returns
- (::Float) — The confidence of the detection result for this language.
#confidence=
def confidence=(value) -> ::Float
Parameter
- value (::Float) — The confidence of the detection result for this language.
Returns
- (::Float) — The confidence of the detection result for this language.
#language_code
def language_code() -> ::String
Returns
- (::String) — The BCP-47 language code of source content in the request, detected automatically.
#language_code=
def language_code=(value) -> ::String
Parameter
- value (::String) — The BCP-47 language code of source content in the request, detected automatically.
Returns
- (::String) — The BCP-47 language code of source content in the request, detected automatically.