Show / Hide Table of Contents

Class TranslationsResource.ListRequest

Translates input text, returning translated text.

Inheritance
System.Object
Google.Apis.Requests.ClientServiceRequest
Google.Apis.Requests.ClientServiceRequest<TranslationsListResponse>
TranslateBaseServiceRequest<TranslationsListResponse>
TranslationsResource.ListRequest
Implements
Google.Apis.Requests.IClientServiceRequest<TranslationsListResponse>
Google.Apis.Requests.IClientServiceRequest
Inherited Members
TranslateBaseServiceRequest<TranslationsListResponse>.Xgafv
TranslateBaseServiceRequest<TranslationsListResponse>.AccessToken
TranslateBaseServiceRequest<TranslationsListResponse>.Alt
TranslateBaseServiceRequest<TranslationsListResponse>.BearerToken
TranslateBaseServiceRequest<TranslationsListResponse>.Callback
TranslateBaseServiceRequest<TranslationsListResponse>.Fields
TranslateBaseServiceRequest<TranslationsListResponse>.Key
TranslateBaseServiceRequest<TranslationsListResponse>.OauthToken
TranslateBaseServiceRequest<TranslationsListResponse>.Pp
TranslateBaseServiceRequest<TranslationsListResponse>.PrettyPrint
TranslateBaseServiceRequest<TranslationsListResponse>.QuotaUser
TranslateBaseServiceRequest<TranslationsListResponse>.UploadType
TranslateBaseServiceRequest<TranslationsListResponse>.UploadProtocol
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.GetBody()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.ValidateParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Translate.v2
Assembly: Google.Apis.Translate.v2.dll
Syntax
public class 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
Google.Apis.Services.IClientService service
Google.Apis.Util.Repeatable<System.String> q
System.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
Google.Apis.Util.Repeatable<System.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
System.Nullable<TranslationsResource.ListRequest.FormatEnum>

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.MethodName

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
System.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
Google.Apis.Util.Repeatable<System.String>

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.RestPath

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
System.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
System.String

Methods

InitParameters()

Initializes List parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.Translate.v2.TranslateBaseServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.InitParameters()

Implements

Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest
In This Article
Back to top