# Google Cloud Security Center Management V1 Client - Class ResourceSelector (1.4.0)

1.4.0 (latest) 1.3.3 1.2.1 1.1.3 1.0.0 0.3.2 0.2.7 0.1.0 Reference documentation and code samples for the Google Cloud Security Center Management V1 Client class ResourceSelector.

Resource for selecting resource type.

Generated from protobuf message `google.cloud.securitycentermanagement.v1.CustomConfig.ResourceSelector`

## Namespace

Google \\ Cloud \\ SecurityCenterManagement \\ V1 \\ CustomConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_types` | `string[]` Optional. The resource types to run the detector on. |

### getResourceTypes

Optional. The resource types to run the detector on.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setResourceTypes

Optional. The resource types to run the detector on.

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

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