Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::GetSupportedLanguagesRequest.
The request message for discovering supported languages.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#display_language_code
defdisplay_language_code()->::String
Returns
(::String) — Optional. The language to use to return localized, human readable names
of supported languages. If missing, then display names are not returned
in a response.
#display_language_code=
defdisplay_language_code=(value)->::String
Parameter
value (::String) — Optional. The language to use to return localized, human readable names
of supported languages. If missing, then display names are not returned
in a response.
Returns
(::String) — Optional. The language to use to return localized, human readable names
of supported languages. If missing, then display names are not returned
in a response.
#model
defmodel()->::String
Returns
(::String) — Optional. Get supported languages of this model.
[[["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::GetSupportedLanguagesRequest (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-GetSupportedLanguagesRequest)\n- [1.5.1](/ruby/docs/reference/google-cloud-translate-v3/1.5.1/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [1.4.1](/ruby/docs/reference/google-cloud-translate-v3/1.4.1/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-translate-v3/1.3.0/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-translate-v3/1.2.0/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [1.1.1](/ruby/docs/reference/google-cloud-translate-v3/1.1.1/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [1.0.0](/ruby/docs/reference/google-cloud-translate-v3/1.0.0/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-translate-v3/0.12.0/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [0.11.2](/ruby/docs/reference/google-cloud-translate-v3/0.11.2/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-translate-v3/0.10.0/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-translate-v3/0.9.0/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-translate-v3/0.8.0/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [0.7.3](/ruby/docs/reference/google-cloud-translate-v3/0.7.3/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-translate-v3/0.6.0/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [0.5.2](/ruby/docs/reference/google-cloud-translate-v3/0.5.2/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest)\n- [0.4.2](/ruby/docs/reference/google-cloud-translate-v3/0.4.2/Google-Cloud-Translate-V3-GetSupportedLanguagesRequest) \nReference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::GetSupportedLanguagesRequest.\n\nThe request message for discovering supported languages. \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### #display_language_code\n\n def display_language_code() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response.\n\n### #display_language_code=\n\n def display_language_code=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response. \n**Returns**\n\n- (::String) --- Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response.\n\n### #model\n\n def model() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Get supported languages of this model.\n\n The format depends on model type:\n - AutoML Translation models:\n `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`\n\n - General (built-in) models:\n `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,\n\n Returns languages supported by the specified model.\n If missing, we get supported languages of Google general NMT model.\n\n### #model=\n\n def model=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Get supported languages of this model.\n\n\n The format depends on model type:\n - AutoML Translation models:\n `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`\n\n - General (built-in) models:\n `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,\n\n Returns languages supported by the specified model.\nIf missing, we get supported languages of Google general NMT model. \n**Returns**\n\n- (::String) --- Optional. Get supported languages of this model.\n\n The format depends on model type:\n - AutoML Translation models:\n `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`\n\n - General (built-in) models:\n `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,\n\n Returns languages supported by the specified model.\n If missing, we get supported languages of Google general NMT model.\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}` or\n `projects/{project-number-or-id}/locations/{location-id}`.\n\n For global calls, use `projects/{project-number-or-id}/locations/global` or\n `projects/{project-number-or-id}`.\n\n Non-global location is required for AutoML models.\n\n Only models within the same region (have 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}` or\n `projects/{project-number-or-id}/locations/{location-id}`.\n\n For global calls, use `projects/{project-number-or-id}/locations/global` or\n `projects/{project-number-or-id}`.\n\n Non-global location is required for AutoML models.\n\n Only models within the same region (have 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}` or\n `projects/{project-number-or-id}/locations/{location-id}`.\n\n For global calls, use `projects/{project-number-or-id}/locations/global` or\n `projects/{project-number-or-id}`.\n\n Non-global location is required for AutoML models.\n\n Only models within the same region (have same location-id) can be used,\n otherwise an INVALID_ARGUMENT (400) error is returned."]]