Google Cloud Translation v2 API - Class Language (3.3.0)

public sealed class Language

Reference documentation and code samples for the Google Cloud Translation v2 API class Language.

A language supported by the Google Cloud Translation API.

Inheritance

object > Language

Namespace

Google.Cloud.Translation.V2

Assembly

Google.Cloud.Translation.V2.dll

Constructors

Language(string, string)

public Language(string name, string code)

Constructs an instance.

Parameters
NameDescription
namestring

The name of the language. May be null.

codestring

The code of the language. Must not be null.

Properties

Code

public string Code { get; }

The code to use for the language when providing this to the API as a source or target language.

Property Value
TypeDescription
string

Name

public string Name { get; }

The descriptive name of the language, e.g. "English". May be null if no target language was provided when requesting the supported languages.

Property Value
TypeDescription
string