Class: Google::Cloud::Translate::V3::TranslateDocumentResponse
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::V3::TranslateDocumentResponse
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/translate/v3/translation_service.rb
Overview
A translated document response message.
Instance Attribute Summary collapse
-
#document_translation ⇒ ::Google::Cloud::Translate::V3::DocumentTranslation
Translated document.
-
#glossary_config ⇒ ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig
The
glossary_config
used for this translation. -
#glossary_document_translation ⇒ ::Google::Cloud::Translate::V3::DocumentTranslation
The document's translation output if a glossary is provided in the request.
-
#model ⇒ ::String
Only present when 'model' is present in the request.
Instance Attribute Details
#document_translation ⇒ ::Google::Cloud::Translate::V3::DocumentTranslation
Returns Translated document.
743 744 745 746 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 743 class TranslateDocumentResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#glossary_config ⇒ ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig
Returns The glossary_config
used for this translation.
743 744 745 746 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 743 class TranslateDocumentResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#glossary_document_translation ⇒ ::Google::Cloud::Translate::V3::DocumentTranslation
Returns 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.
743 744 745 746 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 743 class TranslateDocumentResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#model ⇒ ::String
Returns 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
.
743 744 745 746 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 743 class TranslateDocumentResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |