Class TranslationsResource
The "translations" collection of methods.
Inheritance
object
TranslationsResource
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
Constructors
TranslationsResource(IClientService)
Constructs a new resource.
Declaration
public TranslationsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|---|
Repeatable<string> | q | The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs. |
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 |