Class: Google::Cloud::Translate::V3::DocumentTranslation
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::V3::DocumentTranslation
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/translate/v3/translation_service.rb
Overview
A translated document message.
Instance Attribute Summary collapse
-
#byte_stream_outputs ⇒ ::Array<::String>
The array of translated documents.
-
#detected_language_code ⇒ ::String
The detected language for the input document.
-
#mime_type ⇒ ::String
The translated document's mime type.
Instance Attribute Details
#byte_stream_outputs ⇒ ::Array<::String>
Returns The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.
667 668 669 670 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 667 class DocumentTranslation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#detected_language_code ⇒ ::String
Returns The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected. If the source language was passed, auto-detection of the language does not occur and this field is empty.
667 668 669 670 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 667 class DocumentTranslation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#mime_type ⇒ ::String
Returns The translated document's mime type.
667 668 669 670 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 667 class DocumentTranslation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |