Class Language (3.1.0)

public sealed 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