class Google::Apis::TranslateV3beta1::DocumentTranslation

A translated document message.

Attributes

byte_stream_outputs[RW]

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. Corresponds to the JSON property `byteStreamOutputs` @return [Array<String>]

detected_language_code[RW]

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. Corresponds to the JSON property `detectedLanguageCode` @return [String]

mime_type[RW]

The translated document's mime type. Corresponds to the JSON property `mimeType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/translate_v3beta1/classes.rb, line 393
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/translate_v3beta1/classes.rb, line 398
def update!(**args)
  @byte_stream_outputs = args[:byte_stream_outputs] if args.key?(:byte_stream_outputs)
  @detected_language_code = args[:detected_language_code] if args.key?(:detected_language_code)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end