public sealed class LanguageReference documentation and code samples for the Google Cloud Translation v2 API class Language.
A language supported by the Google Cloud Translation API.
Namespace
Google.Cloud.Translation.V2Assembly
Google.Cloud.Translation.V2.dll
Constructors
Language(string, string)
public Language(string name, string code)Constructs an instance.
| Parameters | |
|---|---|
| Name | Description |
name |
stringThe name of the language. May be null. |
code |
stringThe 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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
string |
|