Reference documentation and code samples for the Cloud Translation V3 Client class TranslateTextGlossaryConfig.
Configures which glossary is used for a specific target language and defines
options for applying that glossary.
Generated from protobuf messagegoogle.cloud.translation.v3.TranslateTextGlossaryConfig
Namespace
Google \ Cloud \ Translate \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ glossary
string
Required. Theglossaryto be applied for this translation. The format depends on the glossary: - User-provided custom glossary:projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}
↳ ignore_case
bool
Optional. Indicates match is case insensitive. The default value isfalseif missing.
↳ contextual_translation_enabled
bool
Optional. If set to true, the glossary will be used for contextual translation.
getGlossary
Required. Theglossaryto be applied for this translation.
[[["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 V3 Client - Class TranslateTextGlossaryConfig (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-translate/latest/V3.TranslateTextGlossaryConfig)\n- [2.0.2](/php/docs/reference/cloud-translate/2.0.2/V3.TranslateTextGlossaryConfig)\n- [1.21.0](/php/docs/reference/cloud-translate/1.21.0/V3.TranslateTextGlossaryConfig)\n- [1.20.2](/php/docs/reference/cloud-translate/1.20.2/V3.TranslateTextGlossaryConfig)\n- [1.19.0](/php/docs/reference/cloud-translate/1.19.0/V3.TranslateTextGlossaryConfig)\n- [1.18.1](/php/docs/reference/cloud-translate/1.18.1/V3.TranslateTextGlossaryConfig)\n- [1.17.7](/php/docs/reference/cloud-translate/1.17.7/V3.TranslateTextGlossaryConfig)\n- [1.16.0](/php/docs/reference/cloud-translate/1.16.0/V3.TranslateTextGlossaryConfig)\n- [1.15.4](/php/docs/reference/cloud-translate/1.15.4/V3.TranslateTextGlossaryConfig)\n- [1.14.3](/php/docs/reference/cloud-translate/1.14.3/V3.TranslateTextGlossaryConfig)\n- [1.13.3](/php/docs/reference/cloud-translate/1.13.3/V3.TranslateTextGlossaryConfig)\n- [1.12.12](/php/docs/reference/cloud-translate/1.12.12/V3.TranslateTextGlossaryConfig) \nReference documentation and code samples for the Cloud Translation V3 Client class TranslateTextGlossaryConfig.\n\nConfigures which glossary is used for a specific target language and defines\noptions for applying that glossary.\n\nGenerated from protobuf message `google.cloud.translation.v3.TranslateTextGlossaryConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Translate \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getGlossary\n\nRequired. The `glossary` to be applied for this translation.\n\nThe format depends on the glossary:\n\n- User-provided custom glossary: `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`\n\n### setGlossary\n\nRequired. The `glossary` to be applied for this translation.\n\nThe format depends on the glossary:\n\n- User-provided custom glossary: `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`\n\n### getIgnoreCase\n\nOptional. Indicates match is case insensitive. The default value is `false`\nif missing.\n\n### setIgnoreCase\n\nOptional. Indicates match is case insensitive. The default value is `false`\nif missing.\n\n### getContextualTranslationEnabled\n\nOptional. If set to true, the glossary will be used for contextual\ntranslation.\n\n### setContextualTranslationEnabled\n\nOptional. If set to true, the glossary will be used for contextual\ntranslation."]]