TranslateTextRequest class

The main translation request message for the Cloud Translation API.

Constructors

TranslateTextRequest()
TranslateTextRequest.fromJson(Map _json)

Properties

format ↔ String
The format of the source text, in either HTML (default) or plain-text. A value of "html" indicates HTML and a value of "text" indicates plain-text.
read / write
model ↔ String
The model type requested for this translation. Valid values are listed in public documentation.
read / write
q ↔ List<String>
The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.
read / write
source ↔ String
The language of the source text, set to one of the language codes listed in Language Support. If the source language is not specified, the API will attempt to identify the source language automatically and return it within the response.
read / write
target ↔ String
The language to use for translation of the input text, set to one of the language codes listed in Language Support.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited