1.16.0 (latest) 1.15.0 1.14.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class Database : IMessage<Database>, IEquatable<Database>, IDeepCloneable<Database>, IBufferMessage, IMessage

Reference documentation and code samples for the AlloyDB v1 API class Database.

Message describing Database object.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Database

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[Database](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Database.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Database](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Database.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[Database](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Database.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AlloyDb.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.md.txt)

## Assembly

Google.Cloud.AlloyDb.V1.dll

## Constructors

### Database()

    public Database()

### Database(Database)

    public Database(Database other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `Database` |

## Properties

### CharacterType

    public string CharacterType { get; set; }

Optional. Immutable. lc_ctype for the database.
Character classification (What is a letter? The upper-case equivalent?).
Example values include "C", "POSIX", etc.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Charset

    public string Charset { get; set; }

Optional. Immutable. Charset for the database.
This field can contain any PostgreSQL supported charset name.
Example values include "UTF8", "SQL_ASCII", etc.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Collation

    public string Collation { get; set; }

Optional. Immutable. lc_collate for the database.
String sort order.
Example values include "C", "POSIX", etc.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DatabaseName

    public DatabaseName DatabaseName { get; set; }

[DatabaseName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.DatabaseName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Database.md.txt#Google_Cloud_AlloyDb_V1_Database_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `DatabaseName` |   |

### DatabaseTemplate

    public string DatabaseTemplate { get; set; }

Input only. Immutable. Template of the database to be used for creating a
new database.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### HasIsTemplateDatabase

    public bool HasIsTemplateDatabase { get; }

Gets whether the "is_template_database" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### IsTemplateDatabase

    public bool IsTemplateDatabase { get; set; }

Optional. Whether the database is a template database.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Name

    public string Name { get; set; }

Identifier. Name of the resource in the form of
`projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |