Note: The following fields are mutually exclusive: language_codes_set, language_pair. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: language_codes_set, language_pair. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: language_codes_set, language_pair. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: language_pair, language_codes_set. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: language_pair, language_codes_set. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: language_pair, language_codes_set. If a field in that set is populated, all other fields in the set will automatically be cleared.
#name
defname()->::String
Returns
(::String) — Required. The resource name of the glossary. Glossary names have the form
projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
#name=
defname=(value)->::String
Parameter
value (::String) — Required. The resource name of the glossary. Glossary names have the form
projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}.
Returns
(::String) — Required. The resource name of the glossary. Glossary names have the form
projects/{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-09 UTC."],[],[],null,["# Cloud Translation V3 API - Class Google::Cloud::Translate::V3::Glossary (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-Glossary)\n- [1.5.1](/ruby/docs/reference/google-cloud-translate-v3/1.5.1/Google-Cloud-Translate-V3-Glossary)\n- [1.4.1](/ruby/docs/reference/google-cloud-translate-v3/1.4.1/Google-Cloud-Translate-V3-Glossary)\n- [1.3.0](/ruby/docs/reference/google-cloud-translate-v3/1.3.0/Google-Cloud-Translate-V3-Glossary)\n- [1.2.0](/ruby/docs/reference/google-cloud-translate-v3/1.2.0/Google-Cloud-Translate-V3-Glossary)\n- [1.1.1](/ruby/docs/reference/google-cloud-translate-v3/1.1.1/Google-Cloud-Translate-V3-Glossary)\n- [1.0.0](/ruby/docs/reference/google-cloud-translate-v3/1.0.0/Google-Cloud-Translate-V3-Glossary)\n- [0.12.0](/ruby/docs/reference/google-cloud-translate-v3/0.12.0/Google-Cloud-Translate-V3-Glossary)\n- [0.11.2](/ruby/docs/reference/google-cloud-translate-v3/0.11.2/Google-Cloud-Translate-V3-Glossary)\n- [0.10.0](/ruby/docs/reference/google-cloud-translate-v3/0.10.0/Google-Cloud-Translate-V3-Glossary)\n- [0.9.0](/ruby/docs/reference/google-cloud-translate-v3/0.9.0/Google-Cloud-Translate-V3-Glossary)\n- [0.8.0](/ruby/docs/reference/google-cloud-translate-v3/0.8.0/Google-Cloud-Translate-V3-Glossary)\n- [0.7.3](/ruby/docs/reference/google-cloud-translate-v3/0.7.3/Google-Cloud-Translate-V3-Glossary)\n- [0.6.0](/ruby/docs/reference/google-cloud-translate-v3/0.6.0/Google-Cloud-Translate-V3-Glossary)\n- [0.5.2](/ruby/docs/reference/google-cloud-translate-v3/0.5.2/Google-Cloud-Translate-V3-Glossary)\n- [0.4.2](/ruby/docs/reference/google-cloud-translate-v3/0.4.2/Google-Cloud-Translate-V3-Glossary) \nReference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::Glossary.\n\nRepresents a glossary built from user-provided data. \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_name\n\n def display_name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The display name of the glossary.\n\n### #display_name=\n\n def display_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The display name of the glossary. \n**Returns**\n\n- (::String) --- Optional. The display name of the glossary.\n\n### #end_time\n\n def end_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. When the glossary creation was finished.\n\n### #entry_count\n\n def entry_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. The number of entries defined in the glossary.\n\n### #input_config\n\n def input_config() -\u003e ::Google::Cloud::Translate::V3::GlossaryInputConfig\n\n**Returns**\n\n- ([::Google::Cloud::Translate::V3::GlossaryInputConfig](./Google-Cloud-Translate-V3-GlossaryInputConfig)) --- Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.\n\n### #input_config=\n\n def input_config=(value) -\u003e ::Google::Cloud::Translate::V3::GlossaryInputConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Translate::V3::GlossaryInputConfig](./Google-Cloud-Translate-V3-GlossaryInputConfig)) --- Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints. \n**Returns**\n\n- ([::Google::Cloud::Translate::V3::GlossaryInputConfig](./Google-Cloud-Translate-V3-GlossaryInputConfig)) --- Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints.\n\n### #language_codes_set\n\n def language_codes_set() -\u003e ::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet\n\n**Returns**\n\n- ([::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet](./Google-Cloud-Translate-V3-Glossary-LanguageCodesSet)) --- Used with equivalent term set glossaries.\n\n\n Note: The following fields are mutually exclusive: `language_codes_set`, `language_pair`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #language_codes_set=\n\n def language_codes_set=(value) -\u003e ::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet](./Google-Cloud-Translate-V3-Glossary-LanguageCodesSet)) --- Used with equivalent term set glossaries.\n\n\nNote: The following fields are mutually exclusive: `language_codes_set`, `language_pair`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet](./Google-Cloud-Translate-V3-Glossary-LanguageCodesSet)) --- Used with equivalent term set glossaries.\n\n\n Note: The following fields are mutually exclusive: `language_codes_set`, `language_pair`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #language_pair\n\n def language_pair() -\u003e ::Google::Cloud::Translate::V3::Glossary::LanguageCodePair\n\n**Returns**\n\n- ([::Google::Cloud::Translate::V3::Glossary::LanguageCodePair](./Google-Cloud-Translate-V3-Glossary-LanguageCodePair)) --- Used with unidirectional glossaries.\n\n\n Note: The following fields are mutually exclusive: `language_pair`, `language_codes_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #language_pair=\n\n def language_pair=(value) -\u003e ::Google::Cloud::Translate::V3::Glossary::LanguageCodePair\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Translate::V3::Glossary::LanguageCodePair](./Google-Cloud-Translate-V3-Glossary-LanguageCodePair)) --- Used with unidirectional glossaries.\n\n\nNote: The following fields are mutually exclusive: `language_pair`, `language_codes_set`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Translate::V3::Glossary::LanguageCodePair](./Google-Cloud-Translate-V3-Glossary-LanguageCodePair)) --- Used with unidirectional glossaries.\n\n\n Note: The following fields are mutually exclusive: `language_pair`, `language_codes_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`. \n**Returns**\n\n- (::String) --- Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`.\n\n### #submit_time\n\n def submit_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. When CreateGlossary was called."]]