public final Database getDatabase(String name) {

    GetDatabaseRequest request = GetDatabaseRequest.newBuilder().setName(name).build();
    return getDatabase(request);
  }
public final Database getDatabase ( String name ) { GetDatabaseRequest request = GetDatabaseRequest . newBuilder ( ) . setName ( name ) . build ( ) ; return getDatabase ( request ) ; }
Gets the state of a Cloud Spanner database.

<p>Sample code:

<pre><code>
try (DatabaseAdminClient databaseAdminClient = DatabaseAdminClient.create()) {
DatabaseName name = DatabaseName.of("[PROJECT]", "[INSTANCE]", "[DATABASE]");
Database response = databaseAdminClient.getDatabase(name.toString());
}
</code></pre>

@param name Required. The name of the requested database. Values are of the form
`projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database&gt;`.
@throws com.google.api.gax.rpc.ApiException if the remote call fails