Class: Google::Cloud::Translate::V3::DocumentTranslation

Inherits:
Object
  • Object
show all
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

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.

Returns:

  • (::Array<::String>)

    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.



716
717
718
719
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 716

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.

Returns:

  • (::String)

    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.



716
717
718
719
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 716

class DocumentTranslation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#mime_type::String

Returns The translated document's mime type.

Returns:

  • (::String)

    The translated document's mime type.



716
717
718
719
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 716

class DocumentTranslation
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end