# Cloud Translation V3 Client - Class AdaptiveMtTranslateRequest (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 AdaptiveMtTranslateRequest.

The request for sending an AdaptiveMt translation query.

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

## Namespace

Google \\ Cloud \\ Translate \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. |
| `↳ dataset` | `string` Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}` |
| `↳ content` | `string[]` Required. The content of the input in string format. |
| `↳ mime_type` | `string` The format of the source text. |
| `↳ reference_sentence_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig` Configuration for caller provided reference sentences. |
| `↳ glossary_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.AdaptiveMtTranslateRequest.GlossaryConfig` Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned. |

### getParent

Required. Location to make a regional call.

Format: `projects/{project-number-or-id}/locations/{location-id}`.

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

### setParent

Required. Location to make a regional call.

Format: `projects/{project-number-or-id}/locations/{location-id}`.

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

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

### getDataset

Required. The resource name for the dataset to use for adaptive MT.

`projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`

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

### setDataset

Required. The resource name for the dataset to use for adaptive MT.

`projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`

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

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

### getContent

Required. The content of the input in string format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setContent

Required. The content of the input in string format.

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

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

### getMimeType

The format of the source text.

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

### setMimeType

The format of the source text.

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

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

### getReferenceSentenceConfig

Configuration for caller provided reference sentences.

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

### hasReferenceSentenceConfig

### clearReferenceSentenceConfig

### setReferenceSentenceConfig

Configuration for caller provided reference sentences.

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

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

### getGlossaryConfig

Optional. Glossary to be applied. The glossary must be
within the same region (have the same location-id) as the model, otherwise
an INVALID_ARGUMENT (400) error is returned.

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

### hasGlossaryConfig

### clearGlossaryConfig

### setGlossaryConfig

Optional. Glossary to be applied. The glossary must be
within the same region (have the same location-id) as the model, otherwise
an INVALID_ARGUMENT (400) error is returned.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. Please see TranslationServiceClient::locationName() for help formatting this field. |
| `content` | `string[]` Required. The content of the input in string format. |

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