# AlloyDB V1 API - Class Google::Cloud::AlloyDB::V1::Database (v1.9.0)

1.9.0 (latest) 1.7.0 1.6.2 1.5.0 1.4.0 1.3.1 1.2.0 1.1.0 1.0.1 0.12.0 0.11.0 0.10.0 0.9.2 0.8.2 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the AlloyDB V1 API class Google::Cloud::AlloyDB::V1::Database.

Message describing Database object.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #character_type

    def character_type() -> ::String

**Returns**

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

### #character_type=

    def character_type=(value) -> ::String

**Parameter**

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

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

### #charset

    def charset() -> ::String

**Returns**

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

### #charset=

    def charset=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Immutable. Charset for the database. This field can contain any PostgreSQL supported charset name. Example values include "UTF8", "SQL_ASCII", etc.
**Returns**

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

### #collation

    def collation() -> ::String

**Returns**

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

### #collation=

    def collation=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Immutable. lc_collate for the database. String sort order. Example values include "C", "POSIX", etc.
**Returns**

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

### #database_template

    def database_template() -> ::String

**Returns**

- (::String) --- Input only. Immutable. Template of the database to be used for creating a new database.

### #database_template=

    def database_template=(value) -> ::String

**Parameter**

- **value** (::String) --- Input only. Immutable. Template of the database to be used for creating a new database.
**Returns**

- (::String) --- Input only. Immutable. Template of the database to be used for creating a new database.

### #is_template_database

    def is_template_database() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Whether the database is a template database.

### #is_template_database=

    def is_template_database=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Whether the database is a template database.
**Returns**

- (::Boolean) --- Optional. Whether the database is a template database.

### #name

    def name() -> ::String

**Returns**

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

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Identifier. Name of the resource in the form of `projects/{project}/locations/{location}/clusters/{cluster}/databases/{database}`.
**Returns**

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