# Google Cloud Secure Source Manager V1 Client - Class UpdateBranchRuleRequest (1.8.0)

1.8.0 (latest) 1.7.0 1.6.3 1.5.0 1.4.1 1.3.3 1.2.0 1.1.0 1.0.0 0.2.5 0.1.0 Reference documentation and code samples for the Google Cloud Secure Source Manager V1 Client class UpdateBranchRuleRequest.

UpdateBranchRuleRequest is the request to update a branchRule.

Generated from protobuf message `google.cloud.securesourcemanager.v1.UpdateBranchRuleRequest`

## Namespace

Google \\ Cloud \\ SecureSourceManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ branch_rule` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.BranchRule` |
| `↳ validate_only` | `bool` Optional. If set, validate the request and preview the review, but do not actually post it. (<https://google.aip.dev/163>, for declarative friendly) |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "\*" means full replacement. |

### getBranchRule

Generated from protobuf field `.google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.BranchRule|null` |   |

### hasBranchRule

### clearBranchRule

### setBranchRule

Generated from protobuf field `.google.cloud.securesourcemanager.v1.BranchRule branch_rule = 1 [(.google.api.field_behavior) = REQUIRED];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.BranchRule` |

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

### getValidateOnly

Optional. If set, validate the request and preview the review, but do not
actually post it. (<https://google.aip.dev/163>, for declarative friendly)

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

### setValidateOnly

Optional. If set, validate the request and preview the review, but do not
actually post it. (<https://google.aip.dev/163>, for declarative friendly)

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

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

### getUpdateMask

Optional. Field mask is used to specify the fields to be overwritten in the
branchRule resource by the update.

The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask.
The special value "\*" means full replacement.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. Field mask is used to specify the fields to be overwritten in the
branchRule resource by the update.

The fields specified in the update_mask are relative to the resource, not
the full request. A field will be overwritten if it is in the mask.
The special value "\*" means full replacement.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `branchRule` | `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.BranchRule` |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. Field mask is used to specify the fields to be overwritten in the branchRule resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. The special value "\*" means full replacement. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securesourcemanager/latest/V1.UpdateBranchRuleRequest` |   |