Class TranslationsResource.ListRequest
Translates input text, returning translated text.
Inheritance
Inherited Members
Namespace: Google.Apis.Translate.v2
Assembly: Google.Apis.Translate.v2.dll
Syntax
public class TranslationsResource.ListRequest : TranslateBaseServiceRequest<TranslationsListResponse>, IClientServiceRequest<TranslationsListResponse>, IClientServiceRequest
Constructors
ListRequest(IClientService, Repeatable<string>, string)
Constructs a new List request.
Declaration
public ListRequest(IClientService service, Repeatable<string> q, string target)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Repeatable<string> | q | |
string | target |
Properties
Cid
The customization id for translate
Declaration
[RequestParameter("cid", RequestParameterType.Query)]
public virtual Repeatable<string> Cid { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<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
[RequestParameter("format", RequestParameterType.Query)]
public virtual TranslationsResource.ListRequest.FormatEnum? Format { get; set; }
Property Value
Type | Description |
---|---|
TranslationsResource.ListRequest.FormatEnum? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Model
The model
type requested for this translation. Valid values are listed in public documentation.
Declaration
[RequestParameter("model", RequestParameterType.Query)]
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
[RequestParameter("q", RequestParameterType.Query)]
public virtual Repeatable<string> Q { get; }
Property Value
Type | Description |
---|---|
Repeatable<string> |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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
[RequestParameter("source", RequestParameterType.Query)]
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
[RequestParameter("target", RequestParameterType.Query)]
public virtual string Target { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes List parameter list.
Declaration
protected override void InitParameters()