# REST Resource: projects.locations.glossaries.glossaryEntries

- [Resource: GlossaryEntry](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryEntry)
  - [JSON representation](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryEntry.SCHEMA_REPRESENTATION)
- [GlossaryTermsPair](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTermsPair)
  - [JSON representation](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTermsPair.SCHEMA_REPRESENTATION)
- [GlossaryTerm](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTerm)
  - [JSON representation](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTerm.SCHEMA_REPRESENTATION)
- [GlossaryTermsSet](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTermsSet)
  - [JSON representation](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTermsSet.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#METHODS_SUMMARY)

## Resource: GlossaryEntry

Represents a single entry in a glossary.

| JSON representation |
|---|
| ``` { "name": string, "description": string, // Union field `data` can be only one of the following: "termsPair": { object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTermsPair`) }, "termsSet": { object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTermsSet`) } // End of list of possible types for union field `data`. } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. The resource name of the entry. Format: "projects/\*/locations/\*/glossaries/\*/glossaryEntries/\*" |
| `description` | `string` Describes the glossary entry. |
| Union field `data`. The different data for the glossary types (Unidirectional, Equivalent term sets). `data` can be only one of the following: ||
| `termsPair` | ``object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTermsPair`)`` Used for an unidirectional glossary. |
| `termsSet` | ``object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTermsSet`)`` Used for an equivalent term sets glossary. |

## GlossaryTermsPair

Represents a single entry for an unidirectional glossary.

| JSON representation |
|---|
| ``` { "sourceTerm": { object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTerm`) }, "targetTerm": { object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTerm`) } } ``` |

| Fields ||
|---|---|
| `sourceTerm` | ``object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTerm`)`` The source term is the term that will get match in the text, |
| `targetTerm` | ``object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTerm`)`` The term that will replace the match source term. |

## GlossaryTerm

Represents a single glossary term

| JSON representation |
|---|
| ``` { "languageCode": string, "text": string } ``` |

| Fields ||
|---|---|
| `languageCode` | `string` The language for this glossary term. |
| `text` | `string` The text for the glossary term. |

## GlossaryTermsSet

Represents a single entry for an equivalent term set glossary. This is used for equivalent term sets where each term can be replaced by the other terms in the set.

| JSON representation |
|---|
| ``` { "terms": [ { object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTerm`) } ] } ``` |

| Fields ||
|---|---|
| `terms[]` | ``object (`https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries#GlossaryTerm`)`` Each term in the set represents a term that can be replaced by the other terms. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries/create` | Creates a glossary entry. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries/delete` | Deletes a single entry from the glossary |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries/get` | Gets a single glossary entry by the given id. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries/list` | List the entries for the glossary. |
| ### `https://docs.cloud.google.com/translate/docs/reference/rest/v3/projects.locations.glossaries.glossaryEntries/patch` | Updates a glossary entry. |