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- (::Google::Cloud::Translate::V3::DocumentTranslation) — Translated document.
 
#document_translation=
def document_translation=(value) -> ::Google::Cloud::Translate::V3::DocumentTranslation- value (::Google::Cloud::Translate::V3::DocumentTranslation) — Translated document.
 
- (::Google::Cloud::Translate::V3::DocumentTranslation) — Translated document.
 
#glossary_config
def glossary_config() -> ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig- 
        (::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig) — The 
glossary_configused for this translation. 
#glossary_config=
def glossary_config=(value) -> ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig- 
        value (::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig) — The 
glossary_configused for this translation. 
- 
        (::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig) — The 
glossary_configused for this translation. 
#glossary_document_translation
def glossary_document_translation() -> ::Google::Cloud::Translate::V3::DocumentTranslation- (::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- value (::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.
 
- (::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- 
        (::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/nmtthenmodelhere would be normalized toprojects/{project-number}/locations/{location-id}/models/general/nmt. 
#model=
def model=(value) -> ::String- 
        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/nmtthenmodelhere would be normalized toprojects/{project-number}/locations/{location-id}/models/general/nmt. 
- 
        (::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/nmtthenmodelhere would be normalized toprojects/{project-number}/locations/{location-id}/models/general/nmt.