# Google Cloud Secure Source Manager V1 Client - Class PushOption (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 PushOption.

Generated from protobuf message `google.cloud.securesourcemanager.v1.Hook.PushOption`

## Namespace

Google \\ Cloud \\ SecureSourceManager \\ V1 \\ Hook

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ branch_filter` | `string` Optional. Trigger hook for matching branches only. Specified as glob pattern. If empty or *, events for all branches are reported. Examples: main, {main,release* }. See <https://pkg.go.dev/github.com/gobwas/glob> documentation. |

### getBranchFilter

Optional. Trigger hook for matching branches only.

Specified as glob pattern. If empty or *, events for all branches are
reported. Examples: main, {main,release* }.
See <https://pkg.go.dev/github.com/gobwas/glob> documentation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBranchFilter

Optional. Trigger hook for matching branches only.

Specified as glob pattern. If empty or *, events for all branches are
reported. Examples: main, {main,release* }.
See <https://pkg.go.dev/github.com/gobwas/glob> documentation.

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

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