Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::TranslateTextResponse.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#glossary_translations
def glossary_translations() -> ::Array<::Google::Cloud::Translate::V3::Translation>
Returns
-
(::Array<::Google::Cloud::Translate::V3::Translation>) — Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length ascontents
.
#glossary_translations=
def glossary_translations=(value) -> ::Array<::Google::Cloud::Translate::V3::Translation>
Parameter
-
value (::Array<::Google::Cloud::Translate::V3::Translation>) — Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length ascontents
.
Returns
-
(::Array<::Google::Cloud::Translate::V3::Translation>) — Text translation responses if a glossary is provided in the request.
This can be the same as
translations
if no terms apply. This field has the same length ascontents
.
#translations
def translations() -> ::Array<::Google::Cloud::Translate::V3::Translation>
Returns
-
(::Array<::Google::Cloud::Translate::V3::Translation>) — Text translation responses with no glossary applied.
This field has the same length as
contents
.
#translations=
def translations=(value) -> ::Array<::Google::Cloud::Translate::V3::Translation>
Parameter
-
value (::Array<::Google::Cloud::Translate::V3::Translation>) — Text translation responses with no glossary applied.
This field has the same length as
contents
.
Returns
-
(::Array<::Google::Cloud::Translate::V3::Translation>) — Text translation responses with no glossary applied.
This field has the same length as
contents
.