Class: Google::Cloud::Translate::V3::Translation
- Inherits:
-
Object
- Object
- Google::Cloud::Translate::V3::Translation
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/translate/v3/translation_service.rb
Overview
A single translation response.
Instance Attribute Summary collapse
-
#detected_language_code ⇒ ::String
The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request.
-
#glossary_config ⇒ ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig
The
glossary_configused for this translation. -
#model ⇒ ::String
Only present when
modelis present in the request. -
#translated_text ⇒ ::String
Text translated into the target language.
Instance Attribute Details
#detected_language_code ⇒ ::String
166 167 168 169 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 166 class Translation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#glossary_config ⇒ ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig
166 167 168 169 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 166 class Translation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#model ⇒ ::String
166 167 168 169 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 166 class Translation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#translated_text ⇒ ::String
166 167 168 169 |
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 166 class Translation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |