Reference documentation and code samples for the Media Translation V1beta1 API class Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult::TextTranslationResult.
Text translation result.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#is_final
defis_final()->::Boolean
Returns
(::Boolean) — Output only. If false, this StreamingTranslateSpeechResult represents
an interim result that may change. If true, this is the final time the
translation service will return this particular
StreamingTranslateSpeechResult, the streaming translator will not
return any further hypotheses for this portion of the transcript and
corresponding audio.
#translation
deftranslation()->::String
Returns
(::String) — Output only. The translated sentence.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Media Translation V1beta1 API - Class Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult::TextTranslationResult (v0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/ruby/docs/reference/google-cloud-media_translation-v1beta1/latest/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechResult-TextTranslationResult)\n- [0.11.1](/ruby/docs/reference/google-cloud-media_translation-v1beta1/0.11.1/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechResult-TextTranslationResult)\n- [0.10.0](/ruby/docs/reference/google-cloud-media_translation-v1beta1/0.10.0/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechResult-TextTranslationResult)\n- [0.9.1](/ruby/docs/reference/google-cloud-media_translation-v1beta1/0.9.1/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechResult-TextTranslationResult)\n- [0.8.2](/ruby/docs/reference/google-cloud-media_translation-v1beta1/0.8.2/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechResult-TextTranslationResult)\n- [0.7.0](/ruby/docs/reference/google-cloud-media_translation-v1beta1/0.7.0/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechResult-TextTranslationResult)\n- [0.6.1](/ruby/docs/reference/google-cloud-media_translation-v1beta1/0.6.1/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechResult-TextTranslationResult)\n- [0.5.0](/ruby/docs/reference/google-cloud-media_translation-v1beta1/0.5.0/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechResult-TextTranslationResult)\n- [0.4.5](/ruby/docs/reference/google-cloud-media_translation-v1beta1/0.4.5/Google-Cloud-MediaTranslation-V1beta1-StreamingTranslateSpeechResult-TextTranslationResult) \nReference documentation and code samples for the Media Translation V1beta1 API class Google::Cloud::MediaTranslation::V1beta1::StreamingTranslateSpeechResult::TextTranslationResult.\n\nText translation result. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #is_final\n\n def is_final() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Output only. If `false`, this `StreamingTranslateSpeechResult` represents an interim result that may change. If `true`, this is the final time the translation service will return this particular `StreamingTranslateSpeechResult`, the streaming translator will not return any further hypotheses for this portion of the transcript and corresponding audio.\n\n### #translation\n\n def translation() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. The translated sentence."]]