# Cloud Translation V3 API - Class Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest (v1.10.0)

1.10.0 (latest) 1.9.0 1.8.0 1.7.1 1.6.0 1.5.2 1.4.1 1.3.0 1.2.0 1.1.1 1.0.0 0.12.0 0.11.2 0.10.0 0.9.0 0.8.0 0.7.3 0.6.0 0.5.2 0.4.2 Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest.

The request for sending an AdaptiveMt translation query.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #content

    def content() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Required. The content of the input in string format.

### #content=

    def content=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Required. The content of the input in string format.
**Returns**

- (::Array\<::String\>) --- Required. The content of the input in string format.

### #dataset

    def dataset() -> ::String

**Returns**

- (::String) --- Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`

### #dataset=

    def dataset=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`
**Returns**

- (::String) --- Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`

### #glossary_config

    def glossary_config() -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig

**Returns**

- ([::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-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.

### #glossary_config=

    def glossary_config=(value) -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig

**Parameter**

- **value** ([::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-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.
**Returns**

- ([::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::GlossaryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-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.

### #mime_type

    def mime_type() -> ::String

**Returns**

- (::String) --- The format of the source text.

### #mime_type=

    def mime_type=(value) -> ::String

**Parameter**

- **value** (::String) --- The format of the source text.
**Returns**

- (::String) --- The format of the source text.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. Location to make a regional call.

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

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Location to make a regional call.


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

- (::String) --- Required. Location to make a regional call.

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

### #reference_sentence_config

    def reference_sentence_config() -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig

**Returns**

- ([::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-AdaptiveMtTranslateRequest-ReferenceSentenceConfig)) --- Configuration for caller provided reference sentences.

### #reference_sentence_config=

    def reference_sentence_config=(value) -> ::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig

**Parameter**

- **value** ([::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-AdaptiveMtTranslateRequest-ReferenceSentenceConfig)) --- Configuration for caller provided reference sentences.
**Returns**

- ([::Google::Cloud::Translate::V3::AdaptiveMtTranslateRequest::ReferenceSentenceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-AdaptiveMtTranslateRequest-ReferenceSentenceConfig)) --- Configuration for caller provided reference sentences.