Class TranslateTextRequest
The main translation request message for the Cloud Translation API.
Inheritance
Implements
Inherited Members
Namespace: Google.Apis.Translate.v2.Data
Assembly: Google.Apis.Translate.v2.dll
Syntax
public class TranslateTextRequest : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Format
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.
Declaration
[JsonProperty("format")]
public virtual string Format { get; set; }
Property Value
Type | Description |
---|---|
string |
Model
The model
type requested for this translation. Valid values are listed in public documentation.
Declaration
[JsonProperty("model")]
public virtual string Model { get; set; }
Property Value
Type | Description |
---|---|
string |
Q
The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.
Declaration
[JsonProperty("q")]
public virtual IList<string> Q { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<T><string> |
Source
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.
Declaration
[JsonProperty("source")]
public virtual string Source { get; set; }
Property Value
Type | Description |
---|---|
string |
Target
The language to use for translation of the input text, set to one of the language codes listed in Language Support.
Declaration
[JsonProperty("target")]
public virtual string Target { get; set; }
Property Value
Type | Description |
---|---|
string |