TranslateTextRequest

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Settings to configure your translation output, including the option to set the formality level of the output text and the option to mask profane words and phrases.

Link copied to clipboard

The language code for the language of the source text. For a list of language codes, see Supported languages.

Link copied to clipboard

The language code requested for the language of the target text. For a list of language codes, see Supported languages.

Link copied to clipboard

The name of a terminology list file to add to the translation job. This file provides source terms and the desired translation for each term. A terminology list can contain a maximum of 256 terms. You can use one custom terminology resource in your translation request.

Link copied to clipboard
val text: String?

The text to translate. The text string can be a maximum of 10,000 bytes long. Depending on your character set, this may be fewer than 10,000 characters.

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String