class Google::Apis::TranslateV3beta1::TranslateDocumentResponse

A translated document response message.

Attributes

document_translation[RW]

A translated document message. Corresponds to the JSON property `documentTranslation` @return [Google::Apis::TranslateV3beta1::DocumentTranslation]

glossary_config[RW]

Configures which glossary should be used for a specific target language, and defines options for applying that glossary. Corresponds to the JSON property `glossaryConfig` @return [Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig]

glossary_document_translation[RW]

A translated document message. Corresponds to the JSON property `glossaryDocumentTranslation` @return [Google::Apis::TranslateV3beta1::DocumentTranslation]

model[RW]

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

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/translate_v3beta1/classes.rb, line 1020
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 1025
def update!(**args)
  @document_translation = args[:document_translation] if args.key?(:document_translation)
  @glossary_config = args[:glossary_config] if args.key?(:glossary_config)
  @glossary_document_translation = args[:glossary_document_translation] if args.key?(:glossary_document_translation)
  @model = args[:model] if args.key?(:model)
end