# Cloud Translation V3 API - Class Google::Cloud::Translate::V3::TranslateDocumentResponse (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::TranslateDocumentResponse.

A translated document response message.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #document_translation

    def document_translation() -> ::Google::Cloud::Translate::V3::DocumentTranslation

**Returns**

- ([::Google::Cloud::Translate::V3::DocumentTranslation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-DocumentTranslation)) --- Translated document.

### #document_translation=

    def document_translation=(value) -> ::Google::Cloud::Translate::V3::DocumentTranslation

**Parameter**

- **value** ([::Google::Cloud::Translate::V3::DocumentTranslation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-DocumentTranslation)) --- Translated document.
**Returns**

- ([::Google::Cloud::Translate::V3::DocumentTranslation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-DocumentTranslation)) --- Translated document.

### #glossary_config

    def glossary_config() -> ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig

**Returns**

- ([::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-TranslateTextGlossaryConfig)) --- The `glossary_config` used for this translation.

### #glossary_config=

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

**Parameter**

- **value** ([::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-TranslateTextGlossaryConfig)) --- The `glossary_config` used for this translation.
**Returns**

- ([::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-TranslateTextGlossaryConfig)) --- The `glossary_config` used for this translation.

### #glossary_document_translation

    def glossary_document_translation() -> ::Google::Cloud::Translate::V3::DocumentTranslation

**Returns**

- ([::Google::Cloud::Translate::V3::DocumentTranslation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-DocumentTranslation)) --- The document's translation output if a glossary is provided in the request. This can be the same as \[TranslateDocumentResponse.document_translation\] if no glossary terms apply.

### #glossary_document_translation=

    def glossary_document_translation=(value) -> ::Google::Cloud::Translate::V3::DocumentTranslation

**Parameter**

- **value** ([::Google::Cloud::Translate::V3::DocumentTranslation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-DocumentTranslation)) --- The document's translation output if a glossary is provided in the request. This can be the same as \[TranslateDocumentResponse.document_translation\] if no glossary terms apply.
**Returns**

- ([::Google::Cloud::Translate::V3::DocumentTranslation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-translate-v3/latest/Google-Cloud-Translate-V3-DocumentTranslation)) --- The document's translation output if a glossary is provided in the request. This can be the same as \[TranslateDocumentResponse.document_translation\] if no glossary terms apply.

### #model

    def model() -> ::String

**Returns**

- (::String) --- Only present when 'model' is present in the request. 'model' is normalized to have a project number.

  For example:
  If the 'model' field in TranslateDocumentRequest is:
  `projects/{project-id}/locations/{location-id}/models/general/nmt` then
  `model` here would be normalized to
  `projects/{project-number}/locations/{location-id}/models/general/nmt`.

### #model=

    def model=(value) -> ::String

**Parameter**

- **value** (::String) --- Only present when 'model' is present in the request. 'model' is normalized to have a project number.


  For example:
  If the 'model' field in TranslateDocumentRequest is:
  `projects/{project-id}/locations/{location-id}/models/general/nmt` then
  `model` here would be normalized to
  `projects/{project-number}/locations/{location-id}/models/general/nmt`.
**Returns**

- (::String) --- Only present when 'model' is present in the request. 'model' is normalized to have a project number.

  For example:
  If the 'model' field in TranslateDocumentRequest is:
  `projects/{project-id}/locations/{location-id}/models/general/nmt` then
  `model` here would be normalized to
  `projects/{project-number}/locations/{location-id}/models/general/nmt`.