# Google Cloud Iam V3 Client - Class UpdatePolicyBindingRequest (1.3.0)

1.3.0 (latest) 1.2.2 1.1.1 1.0.3 0.5.5 0.4.2 0.3.1 0.2.0 0.1.7 Reference documentation and code samples for the Google Cloud Iam V3 Client class UpdatePolicyBindingRequest.

Request message for UpdatePolicyBinding method.

Generated from protobuf message `google.iam.v3.UpdatePolicyBindingRequest`

## Namespace

Google \\ Cloud \\ Iam \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ policy_binding` | `https://docs.cloud.google.com/php/docs/reference/cloud-iam/latest/V3.PolicyBinding` Required. The policy binding to update. The policy binding's `name` field is used to identify the policy binding to update. |
| `↳ validate_only` | `bool` Optional. If set, validate the request and preview the update, but do not actually post it. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The list of fields to update |

### getPolicyBinding

Required. The policy binding to update.

The policy binding's `name` field is used to identify the policy binding to
update.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-iam/latest/V3.PolicyBinding|null` |   |

### hasPolicyBinding

### clearPolicyBinding

### setPolicyBinding

Required. The policy binding to update.

The policy binding's `name` field is used to identify the policy binding to
update.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-iam/latest/V3.PolicyBinding` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getValidateOnly

Optional. If set, validate the request and preview the update, but do not
actually post it.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setValidateOnly

Optional. If set, validate the request and preview the update, but do not
actually post it.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpdateMask

Optional. The list of fields to update

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. The list of fields to update

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `policyBinding` | `https://docs.cloud.google.com/php/docs/reference/cloud-iam/latest/V3.PolicyBinding` Required. The policy binding to update. The policy binding's `name` field is used to identify the policy binding to update. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The list of fields to update |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-iam/latest/V3.UpdatePolicyBindingRequest` |   |