Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::AdaptiveMtTranslateResponse.
An AdaptiveMtTranslate response.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#glossary_translations
def glossary_translations() -> ::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslation>
Returns
- (::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslation>) — Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
#glossary_translations=
def glossary_translations=(value) -> ::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslation>
Parameter
- value (::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslation>) — Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
Returns
- (::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslation>) — Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply.
#language_code
def language_code() -> ::String
Returns
- (::String) — Output only. The translation's language code.
#translations
def translations() -> ::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslation>
Returns
- (::Array<::Google::Cloud::Translate::V3::AdaptiveMtTranslation>) — Output only. The translation.