Class RefineTextRequest (3.23.0)

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

Request message for RefineText.

Attributes

Name Description
parent str
Required. Project or location to make a call. Must refer to a caller's project. Format: projects/{project-number-or-id}/locations/{location-id}. For global calls, use projects/{project-number-or-id}/locations/global or projects/{project-number-or-id}.
refinement_entries MutableSequence[google.cloud.translate_v3beta1.types.RefinementEntry]
Required. The source texts and original translations in the source and target languages.
source_language_code str
Required. The BCP-47 language code of the source text in the request, for example, "en-US".
target_language_code str
Required. The BCP-47 language code for translation output, for example, "zh-CN".