# Interface DatabaseOrBuilder (0.42.0)

0.42.0 (latest) 0.40.0 0.37.0 0.36.0 0.34.0 0.32.0 0.31.0 0.29.0 0.27.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.19.0 0.17.0 0.16.0 0.13.0 0.12.0 0.11.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface DatabaseOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAdminPassword()

    public abstract String getAdminPassword()

Optional. The password for the default ADMIN user.
Note: Only one of `admin_password_secret_version` or `admin_password` can
be populated.

`string admin_password = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The adminPassword. |

### getAdminPasswordBytes()

    public abstract ByteString getAdminPasswordBytes()

Optional. The password for the default ADMIN user.
Note: Only one of `admin_password_secret_version` or `admin_password` can
be populated.

`string admin_password = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for adminPassword. |

### getAdminPasswordSecretVersion()

    public abstract String getAdminPasswordSecretVersion()

Optional. The resource name of a secret version in Secret Manager which
contains the database admin user's password. Format:
projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
`admin_password_secret_version` or `admin_password` can be populated.

`
string admin_password_secret_version = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The adminPasswordSecretVersion. |

### getAdminPasswordSecretVersionBytes()

    public abstract ByteString getAdminPasswordSecretVersionBytes()

Optional. The resource name of a secret version in Secret Manager which
contains the database admin user's password. Format:
projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
`admin_password_secret_version` or `admin_password` can be populated.

`
string admin_password_secret_version = 17 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for adminPasswordSecretVersion. |

### getCharacterSet()

    public abstract String getCharacterSet()

Optional. The character set for the database. The default is AL32UTF8.

`string character_set = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The characterSet. |

### getCharacterSetBytes()

    public abstract ByteString getCharacterSetBytes()

Optional. The character set for the database. The default is AL32UTF8.

`string character_set = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for characterSet. |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. The date and time that the Database was created.

`.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The date and time that the Database was created.

`.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getDatabaseId()

    public abstract String getDatabaseId()

Optional. The database ID of the Database.

`string database_id = 11 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The databaseId. |

### getDatabaseIdBytes()

    public abstract ByteString getDatabaseIdBytes()

Optional. The database ID of the Database.

`string database_id = 11 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for databaseId. |

### getDbHomeName()

    public abstract String getDbHomeName()

Optional. The name of the DbHome resource associated with the Database.

`string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The dbHomeName. |

### getDbHomeNameBytes()

    public abstract ByteString getDbHomeNameBytes()

Optional. The name of the DbHome resource associated with the Database.

`string db_home_name = 12 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for dbHomeName. |

### getDbName()

    public abstract String getDbName()

Optional. The database name. The name must begin with an alphabetic
character and can contain a maximum of eight alphanumeric characters.
Special characters are not permitted.

`string db_name = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The dbName. |

### getDbNameBytes()

    public abstract ByteString getDbNameBytes()

Optional. The database name. The name must begin with an alphabetic
character and can contain a maximum of eight alphanumeric characters.
Special characters are not permitted.

`string db_name = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for dbName. |

### getDbUniqueName()

    public abstract String getDbUniqueName()

Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.

`string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The dbUniqueName. |

### getDbUniqueNameBytes()

    public abstract ByteString getDbUniqueNameBytes()

Optional. The DB_UNIQUE_NAME of the Oracle Database being backed up.

`string db_unique_name = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for dbUniqueName. |

### getGcpOracleZone()

    public abstract String getGcpOracleZone()

Output only. The GCP Oracle zone where the Database is created.

`string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The gcpOracleZone. |

### getGcpOracleZoneBytes()

    public abstract ByteString getGcpOracleZoneBytes()

Output only. The GCP Oracle zone where the Database is created.

`string gcp_oracle_zone = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for gcpOracleZone. |

### getName()

    public abstract String getName()

Identifier. The name of the Database resource in the following format:
projects/{project}/locations/{region}/databases/{database}

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Identifier. The name of the Database resource in the following format:
projects/{project}/locations/{region}/databases/{database}

`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getNcharacterSet()

    public abstract String getNcharacterSet()

Optional. The national character set for the database. The default is
AL16UTF16.

`string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The ncharacterSet. |

### getNcharacterSetBytes()

    public abstract ByteString getNcharacterSetBytes()

Optional. The national character set for the database. The default is
AL16UTF16.

`string ncharacter_set = 7 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for ncharacterSet. |

### getOciUrl()

    public abstract String getOciUrl()

Output only. HTTPS link to OCI resources exposed to Customer via UI
Interface.

`string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The ociUrl. |

### getOciUrlBytes()

    public abstract ByteString getOciUrlBytes()

Output only. HTTPS link to OCI resources exposed to Customer via UI
Interface.

`string oci_url = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for ociUrl. |

### getOpsInsightsStatus()

    public abstract Database.OperationsInsightsStatus getOpsInsightsStatus()

Output only. The Status of Operations Insights for this Database.

`
.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/com.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus` | The opsInsightsStatus. |

### getOpsInsightsStatusValue()

    public abstract int getOpsInsightsStatusValue()

Output only. The Status of Operations Insights for this Database.

`
.google.cloud.oracledatabase.v1.Database.OperationsInsightsStatus ops_insights_status = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for opsInsightsStatus. |

### getPluggableDatabaseId()

    public abstract String getPluggableDatabaseId()

Optional. The ID of the pluggable database associated with the Database.
The ID must be unique within the project and location.

`string pluggable_database_id = 15 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The pluggableDatabaseId. |

### getPluggableDatabaseIdBytes()

    public abstract ByteString getPluggableDatabaseIdBytes()

Optional. The ID of the pluggable database associated with the Database.
The ID must be unique within the project and location.

`string pluggable_database_id = 15 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for pluggableDatabaseId. |

### getPluggableDatabaseName()

    public abstract String getPluggableDatabaseName()

Optional. The pluggable database associated with the Database. The name
must begin with an alphabetic character and can contain a maximum of thirty
alphanumeric characters.

`string pluggable_database_name = 16 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The pluggableDatabaseName. |

### getPluggableDatabaseNameBytes()

    public abstract ByteString getPluggableDatabaseNameBytes()

Optional. The pluggable database associated with the Database. The name
must begin with an alphabetic character and can contain a maximum of thirty
alphanumeric characters.

`string pluggable_database_name = 16 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for pluggableDatabaseName. |

### getProperties()

    public abstract DatabaseProperties getProperties()

Optional. The properties of the Database.

`
.google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/com.google.cloud.oracledatabase.v1.DatabaseProperties` | The properties. |

### getPropertiesOrBuilder()

    public abstract DatabasePropertiesOrBuilder getPropertiesOrBuilder()

Optional. The properties of the Database.

`
.google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/com.google.cloud.oracledatabase.v1.DatabasePropertiesOrBuilder` |   |

### getTdeWalletPassword()

    public abstract String getTdeWalletPassword()

Optional. The TDE wallet password for the database.
Note: Only one of `tde_wallet_password_secret_version` or
`tde_wallet_password` can be populated.

`string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The tdeWalletPassword. |

### getTdeWalletPasswordBytes()

    public abstract ByteString getTdeWalletPasswordBytes()

Optional. The TDE wallet password for the database.
Note: Only one of `tde_wallet_password_secret_version` or
`tde_wallet_password` can be populated.

`string tde_wallet_password = 5 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for tdeWalletPassword. |

### getTdeWalletPasswordSecretVersion()

    public abstract String getTdeWalletPasswordSecretVersion()

Optional. The resource name of a secret version in Secret Manager which
contains the TDE wallet password for the database. Format:
projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
`tde_wallet_password_secret_version` or `tde_wallet_password` can be
populated.

`
string tde_wallet_password_secret_version = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The tdeWalletPasswordSecretVersion. |

### getTdeWalletPasswordSecretVersionBytes()

    public abstract ByteString getTdeWalletPasswordSecretVersionBytes()

Optional. The resource name of a secret version in Secret Manager which
contains the TDE wallet password for the database. Format:
projects/{project}/secrets/{secret}/versions/{version}. Note: Only one of
`tde_wallet_password_secret_version` or `tde_wallet_password` can be
populated.

`
string tde_wallet_password_secret_version = 18 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for tdeWalletPasswordSecretVersion. |

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. The date and time that the Database was created.

`.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the createTime field is set. |

### hasProperties()

    public abstract boolean hasProperties()

Optional. The properties of the Database.

`
.google.cloud.oracledatabase.v1.DatabaseProperties properties = 10 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the properties field is set. |