# Google Cloud Database Center V1beta Client - Class SignalFilter (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.1 0.3.1 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class SignalFilter.

A filter for Signals.

If signal_type is left unset, all signals should be returned.
For example, the following filter returns all issues.
signal_filter: {
signal_status: SIGNAL_STATUS_ISSUE;
}
Another example, the following filter returns issues of the given type:
signal_filter: {
type: SIGNAL_TYPE_NO_PROMOTABLE_REPLICA
signal_status: ISSUE
}
If signal_status is left unset or set to SIGNAL_STATE_UNSPECIFIED, an error
should be returned.

Generated from protobuf message `google.cloud.databasecenter.v1beta.SignalFilter`

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ signal_type` | `int` Optional. Represents the type of the Signal for which the filter is for. |
| `↳ signal_status` | `int` Optional. Represents the status of the Signal for which the filter is for. |

### getSignalType

Optional. Represents the type of the Signal for which the filter is for.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SignalType](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.SignalType). |

### setSignalType

Optional. Represents the type of the Signal for which the filter is for.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SignalType](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.SignalType). |

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

### getSignalStatus

Optional. Represents the status of the Signal for which the filter is for.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SignalStatus](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.SignalStatus). |

### setSignalStatus

Optional. Represents the status of the Signal for which the filter is for.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SignalStatus](https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.SignalStatus). |

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