Reference documentation and code samples for the Cloud Translation V3 Client class Glossary.
Represents a glossary built from user-provided data.
Generated from protobuf messagegoogle.cloud.translation.v3.Glossary
Namespace
Google \ Cloud \ Translate \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Required. The resource name of the glossary. Glossary names have the formprojects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
Output only. When the glossary creation was finished.
↳ display_name
string
Optional. The display name of the glossary.
getName
Required. The resource name of the glossary. Glossary names have the formprojects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
Returns
Type
Description
string
setName
Required. The resource name of the glossary. Glossary names have the formprojects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
[[["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 Glossary (2.0.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.3 (latest)](/php/docs/reference/cloud-translate/latest/V3.Glossary)\n- [2.0.2](/php/docs/reference/cloud-translate/2.0.2/V3.Glossary)\n- [1.21.0](/php/docs/reference/cloud-translate/1.21.0/V3.Glossary)\n- [1.20.2](/php/docs/reference/cloud-translate/1.20.2/V3.Glossary)\n- [1.19.0](/php/docs/reference/cloud-translate/1.19.0/V3.Glossary)\n- [1.18.1](/php/docs/reference/cloud-translate/1.18.1/V3.Glossary)\n- [1.17.7](/php/docs/reference/cloud-translate/1.17.7/V3.Glossary)\n- [1.16.0](/php/docs/reference/cloud-translate/1.16.0/V3.Glossary)\n- [1.15.4](/php/docs/reference/cloud-translate/1.15.4/V3.Glossary)\n- [1.14.3](/php/docs/reference/cloud-translate/1.14.3/V3.Glossary)\n- [1.13.3](/php/docs/reference/cloud-translate/1.13.3/V3.Glossary)\n- [1.12.12](/php/docs/reference/cloud-translate/1.12.12/V3.Glossary) \nReference documentation and code samples for the Cloud Translation V3 Client class Glossary.\n\nRepresents a glossary built from user-provided data.\n\nGenerated from protobuf message `google.cloud.translation.v3.Glossary`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Translate \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. The resource name of the glossary. Glossary names have the form\n`projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.\n\n### setName\n\nRequired. The resource name of the glossary. Glossary names have the form\n`projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.\n\n### getLanguagePair\n\nUsed with unidirectional glossaries.\n\n### hasLanguagePair\n\n### setLanguagePair\n\nUsed with unidirectional glossaries.\n\n### getLanguageCodesSet\n\nUsed with equivalent term set glossaries.\n\n### hasLanguageCodesSet\n\n### setLanguageCodesSet\n\nUsed with equivalent term set glossaries.\n\n### getInputConfig\n\nRequired. Provides examples to build the glossary from.\n\nTotal glossary must not exceed 10M Unicode codepoints.\n\n### hasInputConfig\n\n### clearInputConfig\n\n### setInputConfig\n\nRequired. Provides examples to build the glossary from.\n\nTotal glossary must not exceed 10M Unicode codepoints.\n\n### getEntryCount\n\nOutput only. The number of entries defined in the glossary.\n\n### setEntryCount\n\nOutput only. The number of entries defined in the glossary.\n\n### getSubmitTime\n\nOutput only. When CreateGlossary was called.\n\n### hasSubmitTime\n\n### clearSubmitTime\n\n### setSubmitTime\n\nOutput only. When CreateGlossary was called.\n\n### getEndTime\n\nOutput only. When the glossary creation was finished.\n\n### hasEndTime\n\n### clearEndTime\n\n### setEndTime\n\nOutput only. When the glossary creation was finished.\n\n### getDisplayName\n\nOptional. The display name of the glossary.\n\n### setDisplayName\n\nOptional. The display name of the glossary.\n\n### getLanguages"]]