Opcional. El formato del texto de origen, por ejemplo, "text/html" o "text/plain". Si se deja en blanco, el tipo MIME será "text/html" de forma predeterminada.
content
string
El contenido de la entrada almacenado como una cadena.
Cuerpo de la respuesta
Si la solicitud se hace correctamente, en el cuerpo de la respuesta se incluye una instancia de DetectLanguageResponse.
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-08-21 (UTC)."],[[["\u003cp\u003eThis service detects the language of text submitted within a request.\u003c/p\u003e\n"],["\u003cp\u003eThe request is made via a \u003ccode\u003ePOST\u003c/code\u003e request to the provided endpoint, including the project ID as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the content to be analyzed, along with an optional MIME type, in JSON format.\u003c/p\u003e\n"],["\u003cp\u003eThe response body will contain the language detection results in \u003ccode\u003eDetectLanguageResponse\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.detectLanguage\n\nDetects the language of text within a request.\n\n### HTTP request\n\n`POST https://{TRANSLATION_GDC_ENDPOINT}/v3/{parent}:detectLanguage`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [DetectLanguageResponse](/distributed-cloud/hosted/docs/latest/gdch/apis/vertex-ai/translation/rest/v3/DetectLanguageResponse)."]]