# Class Glossary (3.27.0)

3.27.0 (latest) 3.25.0 3.24.0 3.23.0 3.22.0 3.21.1 3.20.3 3.19.0 3.18.0 3.17.0 3.15.5 3.14.0 3.13.0 3.12.1 3.11.3 3.10.1 3.9.0 3.8.4 3.7.4 3.6.1 3.5.0 3.4.1 3.3.2 3.2.1 3.1.0 3.0.2 2.0.4 1.7.2 1.6.0

    Glossary(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a glossary built from user-provided data.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`. |
| `language_pair` | `https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.Glossary.LanguageCodePair` Used with unidirectional glossaries. This field is a member of `oneof`_ `languages`. |
| `language_codes_set` | `https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.Glossary.LanguageCodesSet` Used with equivalent term set glossaries. This field is a member of `oneof`_ `languages`. |
| `input_config` | `https://docs.cloud.google.com/python/docs/reference/translate/latest/google.cloud.translate_v3.types.GlossaryInputConfig` Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints. |
| `entry_count` | `int` Output only. The number of entries defined in the glossary. |
| `submit_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. When CreateGlossary was called. |
| `end_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. When the glossary creation was finished. |
| `display_name` | `str` Optional. The display name of the glossary. |

## Classes

### LanguageCodePair

    LanguageCodePair(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Used with unidirectional glossaries.

### LanguageCodesSet

    LanguageCodesSet(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Used with equivalent term set glossaries.