Show / Hide Table of Contents

Class TranslateTextRequest

The main translation request message for the Cloud Translation API.

Inheritance
object
TranslateTextRequest
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
IList<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

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX