# Cloud Translation V3 Client - Class GlossaryEntry (2.1.2)

2.3.0 (latest) 2.2.0 2.1.2 2.0.3 1.21.0 1.20.2 1.19.0 1.18.1 1.17.7 1.16.0 1.15.4 1.14.3 1.13.3 1.12.12 Reference documentation and code samples for the Cloud Translation V3 Client class GlossaryEntry.

Represents a single entry in a glossary.

Generated from protobuf message `google.cloud.translation.v3.GlossaryEntry`

## Namespace

Google \\ Cloud \\ Translate \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Identifier. The resource name of the entry. Format: `projects/*/locations/*/glossaries/*/glossaryEntries/*` |
| `↳ terms_pair` | `https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.GlossaryEntry.GlossaryTermsPair` Used for an unidirectional glossary. |
| `↳ terms_set` | `https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.GlossaryEntry.GlossaryTermsSet` Used for an equivalent term sets glossary. |
| `↳ description` | `string` Describes the glossary entry. |

### getName

Identifier. The resource name of the entry.

Format:
`projects/*/locations/*/glossaries/*/glossaryEntries/*`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Identifier. The resource name of the entry.

Format:
`projects/*/locations/*/glossaries/*/glossaryEntries/*`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTermsPair

Used for an unidirectional glossary.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.GlossaryEntry.GlossaryTermsPair|null` |   |

### hasTermsPair

### setTermsPair

Used for an unidirectional glossary.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.GlossaryEntry.GlossaryTermsPair` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTermsSet

Used for an equivalent term sets glossary.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.GlossaryEntry.GlossaryTermsSet|null` |   |

### hasTermsSet

### setTermsSet

Used for an equivalent term sets glossary.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.GlossaryEntry.GlossaryTermsSet` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

Describes the glossary entry.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

Describes the glossary entry.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getData

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |