[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Translation V2 API - Class Google::Cloud::Translate::V2::Detection::Result (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-translate-v2/latest/Google-Cloud-Translate-V2-Detection-Result)\n- [1.0.1](/ruby/docs/reference/google-cloud-translate-v2/1.0.1/Google-Cloud-Translate-V2-Detection-Result)\n- [0.5.1](/ruby/docs/reference/google-cloud-translate-v2/0.5.1/Google-Cloud-Translate-V2-Detection-Result)\n- [0.4.1](/ruby/docs/reference/google-cloud-translate-v2/0.4.1/Google-Cloud-Translate-V2-Detection-Result)\n- [0.3.1](/ruby/docs/reference/google-cloud-translate-v2/0.3.1/Google-Cloud-Translate-V2-Detection-Result) \nReference documentation and code samples for the Cloud Translation V2 API class Google::Cloud::Translate::V2::Detection::Result.\n\nResult\n------\n\nRepresents an individual result in a [Google::Cloud::Translate::V2::Detection](/ruby/docs/reference/google-cloud-translate-v2/latest/Google-Cloud-Translate-V2-Detection \"Google::Cloud::Translate::V2::Detection (class)\") result. \n\nInherits\n--------\n\n- Object\n\nMethods\n-------\n\n### #confidence\n\n def confidence() -\u003e Float\n\nThe confidence that the language detection result is correct. The closer this value is to 1, the higher\nthe confidence in language detection. \n**Returns**\n\n- (Float) --- a value between 0 and 1\n\n### #language\n\n def language() -\u003e String\n\nThe language detected. This is an [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)\nlanguage code. \n**Returns**\n\n- (String) --- the language code"]]