# Cloud Translation V3 Client - Class GlossaryConfig (2.3.0)

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 GlossaryConfig.

Configures which glossary is used for a specific target language and
defines
options for applying that glossary.

Generated from protobuf message `google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig`

## Namespace

Google \\ Cloud \\ Translate \\ V3 \\ AdaptiveMtTranslateRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ glossary` | `string` Required. The `glossary` to be applied for this translation. The format depends on the glossary: - User-provided custom glossary: `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}` |
| `↳ ignore_case` | `bool` Optional. Indicates match is case insensitive. The default value is `false` if missing. |
| `↳ contextual_translation_enabled` | `bool` Optional. If set to true, the glossary will be used for contextual translation. |

### getGlossary

Required. The `glossary` to be applied for this translation.

The format depends on the glossary:

- User-provided custom glossary: `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`

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

### setGlossary

Required. The `glossary` to be applied for this translation.

The format depends on the glossary:

- User-provided custom glossary: `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`

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

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

### getIgnoreCase

Optional. Indicates match is case insensitive. The default value is
`false` if missing.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIgnoreCase

Optional. Indicates match is case insensitive. The default value is
`false` if missing.

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

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

### getContextualTranslationEnabled

Optional. If set to true, the glossary will be used for contextual
translation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setContextualTranslationEnabled

Optional. If set to true, the glossary will be used for contextual
translation.

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

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