Cloud Spanner V1 Client - Class UpdateInstancePartitionRequest (1.76.1)

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

The request for UpdateInstancePartition.

Generated from protobuf message google.spanner.admin.instance.v1.UpdateInstancePartitionRequest

Namespace

Google \ Cloud \ Spanner \ Admin \ Instance \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ instance_partition Google\Cloud\Spanner\Admin\Instance\V1\InstancePartition

Required. The instance partition to update, which must always include the instance partition name. Otherwise, only fields mentioned in field_mask need be included.

↳ field_mask Google\Protobuf\FieldMask

Required. A mask specifying which fields in InstancePartition should be updated. The field mask must always be specified; this prevents any future fields in InstancePartition from being erased accidentally by clients that do not know about them.

getInstancePartition

Required. The instance partition to update, which must always include the instance partition name. Otherwise, only fields mentioned in field_mask need be included.

Returns
Type Description
Google\Cloud\Spanner\Admin\Instance\V1\InstancePartition|null

hasInstancePartition

clearInstancePartition

setInstancePartition

Required. The instance partition to update, which must always include the instance partition name. Otherwise, only fields mentioned in field_mask need be included.

Parameter
Name Description
var Google\Cloud\Spanner\Admin\Instance\V1\InstancePartition
Returns
Type Description
$this

getFieldMask

Required. A mask specifying which fields in InstancePartition should be updated. The field mask must always be specified; this prevents any future fields in InstancePartition from being erased accidentally by clients that do not know about them.

Returns
Type Description
Google\Protobuf\FieldMask|null

hasFieldMask

clearFieldMask

setFieldMask

Required. A mask specifying which fields in InstancePartition should be updated. The field mask must always be specified; this prevents any future fields in InstancePartition from being erased accidentally by clients that do not know about them.

Parameter
Name Description
var Google\Protobuf\FieldMask
Returns
Type Description
$this

static::build

Parameters
Name Description
instancePartition Google\Cloud\Spanner\Admin\Instance\V1\InstancePartition

Required. The instance partition to update, which must always include the instance partition name. Otherwise, only fields mentioned in field_mask need be included.

fieldMask Google\Protobuf\FieldMask

Required. A mask specifying which fields in InstancePartition should be updated. The field mask must always be specified; this prevents any future fields in InstancePartition from being erased accidentally by clients that do not know about them.

Returns
Type Description
Google\Cloud\Spanner\Admin\Instance\V1\UpdateInstancePartitionRequest