Class TranslationsResource
The "translations" collection of methods.
Inheritance
System.Object
    TranslationsResource
  Inherited Members
      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 TranslationsResource
  Constructors
TranslationsResource(IClientService)
Constructs a new resource.
Declaration
public TranslationsResource(IClientService service)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Google.Apis.Services.IClientService | service | 
Methods
List(Repeatable<String>, String)
Translates input text, returning translated text.
Declaration
public virtual TranslationsResource.ListRequest List(Repeatable<string> q, string target)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Google.Apis.Util.Repeatable<System.String> | q | The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.  | 
      
| System.String | target | The language to use for translation of the input text, set to one of the language codes listed in Language Support.  | 
      
Returns
| Type | Description | 
|---|---|
| TranslationsResource.ListRequest | 
Translate(TranslateTextRequest)
Translates input text, returning translated text.
Declaration
public virtual TranslationsResource.TranslateRequest Translate(TranslateTextRequest body)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TranslateTextRequest | body | The body of the request.  | 
      
Returns
| Type | Description | 
|---|---|
| TranslationsResource.TranslateRequest |