Cloud Spanner V1 Client - Class GetDatabaseRequest (1.63.2)

Reference documentation and code samples for the Cloud Spanner V1 Client class GetDatabaseRequest.

The request for GetDatabase.

Generated from protobuf message google.spanner.admin.database.v1.GetDatabaseRequest

Namespace

Google \ Cloud \ Spanner \ Admin \ Database \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the requested database. Values are of the form projects/<project>/instances/<instance>/databases/<database>.

getName

Required. The name of the requested database. Values are of the form projects/<project>/instances/<instance>/databases/<database>.

Returns
TypeDescription
string

setName

Required. The name of the requested database. Values are of the form projects/<project>/instances/<instance>/databases/<database>.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
name string

Required. The name of the requested database. Values are of the form projects/<project>/instances/<instance>/databases/<database>. Please see Google\Cloud\Spanner\Admin\Database\V1\DatabaseAdminClient::databaseName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\Spanner\Admin\Database\V1\GetDatabaseRequest