(::Google::Protobuf::Map{::String => ::String}) — Optional. The labels with user-defined metadata for the request.
Label keys and values can be no longer than 63 characters
(Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed.
Label values are optional. Label keys must start with a letter.
See https://cloud.google.com/translate/docs/advanced/labels for more
information.
value (::Google::Protobuf::Map{::String => ::String}) — Optional. The labels with user-defined metadata for the request.
Label keys and values can be no longer than 63 characters
(Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed.
Label values are optional. Label keys must start with a letter.
See https://cloud.google.com/translate/docs/advanced/labels for more
information.
Returns
(::Google::Protobuf::Map{::String => ::String}) — Optional. The labels with user-defined metadata for the request.
Label keys and values can be no longer than 63 characters
(Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed.
Label values are optional. Label keys must start with a letter.
See https://cloud.google.com/translate/docs/advanced/labels for more
information.
#mime_type
defmime_type()->::String
Returns
(::String) — Optional. The format of the source text, for example, "text/html",
"text/plain". If left blank, the MIME type defaults to "text/html".
#mime_type=
defmime_type=(value)->::String
Parameter
value (::String) — Optional. The format of the source text, for example, "text/html",
"text/plain". If left blank, the MIME type defaults to "text/html".
Returns
(::String) — Optional. The format of the source text, for example, "text/html",
"text/plain". If left blank, the MIME type defaults to "text/html".
#model
defmodel()->::String
Returns
(::String) — Optional. The language detection model to be used.
[[["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-09 UTC."],[],[],null,["# Cloud Translation V3 API - Class Google::Cloud::Translate::V3::DetectLanguageRequest (v1.5.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.2 (latest)](/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [1.5.1](/ruby/docs/reference/google-cloud-translate-v3/1.5.1/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [1.4.1](/ruby/docs/reference/google-cloud-translate-v3/1.4.1/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-translate-v3/1.3.0/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-translate-v3/1.2.0/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [1.1.1](/ruby/docs/reference/google-cloud-translate-v3/1.1.1/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [1.0.0](/ruby/docs/reference/google-cloud-translate-v3/1.0.0/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-translate-v3/0.12.0/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [0.11.2](/ruby/docs/reference/google-cloud-translate-v3/0.11.2/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-translate-v3/0.10.0/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-translate-v3/0.9.0/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-translate-v3/0.8.0/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [0.7.3](/ruby/docs/reference/google-cloud-translate-v3/0.7.3/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-translate-v3/0.6.0/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [0.5.2](/ruby/docs/reference/google-cloud-translate-v3/0.5.2/Google-Cloud-Translate-V3-DetectLanguageRequest)\n- [0.4.2](/ruby/docs/reference/google-cloud-translate-v3/0.4.2/Google-Cloud-Translate-V3-DetectLanguageRequest) \nReference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::DetectLanguageRequest.\n\nThe request message for language detection. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #content\n\n def content() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The content of the input stored as a string.\n\n### #content=\n\n def content=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The content of the input stored as a string. \n**Returns**\n\n- (::String) --- The content of the input stored as a string.\n\n### #labels\n\n def labels() -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Optional. The labels with user-defined metadata for the request.\n\n Label keys and values can be no longer than 63 characters\n (Unicode codepoints), can only contain lowercase letters, numeric\n characters, underscores and dashes. International characters are allowed.\n Label values are optional. Label keys must start with a letter.\n\n See https://cloud.google.com/translate/docs/advanced/labels for more\n information.\n\n### #labels=\n\n def labels=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::String}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Optional. The labels with user-defined metadata for the request.\n\n\n Label keys and values can be no longer than 63 characters\n (Unicode codepoints), can only contain lowercase letters, numeric\n characters, underscores and dashes. International characters are allowed.\n Label values are optional. Label keys must start with a letter.\n\n See https://cloud.google.com/translate/docs/advanced/labels for more\ninformation. \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::String}) --- Optional. The labels with user-defined metadata for the request.\n\n Label keys and values can be no longer than 63 characters\n (Unicode codepoints), can only contain lowercase letters, numeric\n characters, underscores and dashes. International characters are allowed.\n Label values are optional. Label keys must start with a letter.\n\n See https://cloud.google.com/translate/docs/advanced/labels for more\n information.\n\n### #mime_type\n\n def mime_type() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The format of the source text, for example, \"text/html\", \"text/plain\". If left blank, the MIME type defaults to \"text/html\".\n\n### #mime_type=\n\n def mime_type=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The format of the source text, for example, \"text/html\", \"text/plain\". If left blank, the MIME type defaults to \"text/html\". \n**Returns**\n\n- (::String) --- Optional. The format of the source text, for example, \"text/html\", \"text/plain\". If left blank, the MIME type defaults to \"text/html\".\n\n### #model\n\n def model() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The language detection model to be used.\n\n Format:\n `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}`\n\n Only one language detection model is currently supported:\n `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`.\n\n If not specified, the default model is used.\n\n### #model=\n\n def model=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The language detection model to be used.\n\n\n Format:\n `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}`\n\n Only one language detection model is currently supported:\n `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`.\n\nIf not specified, the default model is used. \n**Returns**\n\n- (::String) --- Optional. The language detection model to be used.\n\n Format:\n `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}`\n\n Only one language detection model is currently supported:\n `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`.\n\n If not specified, the default model is used.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Project or location to make a call. Must refer to a caller's project.\n\n Format: `projects/{project-number-or-id}/locations/{location-id}` or\n `projects/{project-number-or-id}`.\n\n For global calls, use `projects/{project-number-or-id}/locations/global` or\n `projects/{project-number-or-id}`.\n\n Only models within the same region (has same location-id) can be used.\n Otherwise an INVALID_ARGUMENT (400) error is returned.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Project or location to make a call. Must refer to a caller's project.\n\n\n Format: `projects/{project-number-or-id}/locations/{location-id}` or\n `projects/{project-number-or-id}`.\n\n For global calls, use `projects/{project-number-or-id}/locations/global` or\n `projects/{project-number-or-id}`.\n\n Only models within the same region (has same location-id) can be used.\nOtherwise an INVALID_ARGUMENT (400) error is returned. \n**Returns**\n\n- (::String) --- Required. Project or location to make a call. Must refer to a caller's project.\n\n Format: `projects/{project-number-or-id}/locations/{location-id}` or\n `projects/{project-number-or-id}`.\n\n For global calls, use `projects/{project-number-or-id}/locations/global` or\n `projects/{project-number-or-id}`.\n\n Only models within the same region (has same location-id) can be used.\n Otherwise an INVALID_ARGUMENT (400) error is returned."]]