Class TranslationsResource.TranslateRequest
Translates input text, returning translated text.
Inheritance
object
TranslationsResource.TranslateRequest
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
Assembly: Google.Apis.Translate.v2.dll
Syntax
public class TranslationsResource.TranslateRequest : TranslateBaseServiceRequest<TranslationsListResponse>, IClientServiceRequest<TranslationsListResponse>, IClientServiceRequest
Constructors
TranslateRequest(IClientService, TranslateTextRequest)
Constructs a new Translate request.
Declaration
public TranslateRequest(IClientService service, TranslateTextRequest body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
TranslateTextRequest | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
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 |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.MethodName
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.GetBody()
InitParameters()
Initializes Translate parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Translate.v2.TranslateBaseServiceRequest<Google.Apis.Translate.v2.Data.TranslationsListResponse>.InitParameters()