Class: Google::Apis::TranslateV3beta1::TranslateDocumentResponse
- Inherits:
-
Object
- Object
- Google::Apis::TranslateV3beta1::TranslateDocumentResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/translate_v3beta1/classes.rb,
lib/google/apis/translate_v3beta1/representations.rb,
lib/google/apis/translate_v3beta1/representations.rb
Overview
A translated document response message.
Instance Attribute Summary collapse
-
#document_translation ⇒ Google::Apis::TranslateV3beta1::DocumentTranslation
A translated document message.
-
#glossary_config ⇒ Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig
Configures which glossary should be used for a specific target language, and defines options for applying that glossary.
-
#glossary_document_translation ⇒ Google::Apis::TranslateV3beta1::DocumentTranslation
A translated document message.
-
#model ⇒ String
Only present when 'model' is present in the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TranslateDocumentResponse
constructor
A new instance of TranslateDocumentResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TranslateDocumentResponse
Returns a new instance of TranslateDocumentResponse.
1023 1024 1025 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1023 def initialize(**args) update!(**args) end |
Instance Attribute Details
#document_translation ⇒ Google::Apis::TranslateV3beta1::DocumentTranslation
A translated document message.
Corresponds to the JSON property documentTranslation
1001 1002 1003 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1001 def document_translation @document_translation end |
#glossary_config ⇒ Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig
Configures which glossary should be used for a specific target language, and
defines options for applying that glossary.
Corresponds to the JSON property glossaryConfig
1007 1008 1009 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1007 def glossary_config @glossary_config end |
#glossary_document_translation ⇒ Google::Apis::TranslateV3beta1::DocumentTranslation
A translated document message.
Corresponds to the JSON property glossaryDocumentTranslation
1012 1013 1014 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1012 def glossary_document_translation @glossary_document_translation end |
#model ⇒ String
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
1021 1022 1023 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1021 def model @model end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1028 1029 1030 1031 1032 1033 |
# File 'lib/google/apis/translate_v3beta1/classes.rb', line 1028 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 |