Class TranslateTextResponse (3.4.1)

TranslateTextResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

NameDescription
translations Sequence[google.cloud.translate_v3.types.Translation]
Text translation responses with no glossary applied. This field has the same length as [contents][google.cloud.translation.v3.TranslateTextRequest.contents].
glossary_translations Sequence[google.cloud.translate_v3.types.Translation]
Text translation responses if a glossary is provided in the request. This can be the same as [translations][google.cloud.translation.v3.TranslateTextResponse.translations] if no terms apply. This field has the same length as [contents][google.cloud.translation.v3.TranslateTextRequest.contents].