# Google Cloud Security Command Center V1 Client - Class ResourceValueConfig (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class ResourceValueConfig.

A resource value configuration (RVC) is a mapping configuration of user's
resources to resource values. Used in Attack path simulations.

Generated from protobuf message `google.cloud.securitycenter.v1.ResourceValueConfig`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Name for the resource value configuration |
| `↳ resource_value` | `int` Required. Resource value level this expression represents |
| `↳ tag_values` | `string[]` Required. Tag values combined with `AND` to check against. Values in the form "tagValues/123" Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]` <https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing> |
| `↳ resource_type` | `string` Apply resource_value only to resources that match resource_type. resource_type will be checked with `AND` of other resources. For example, "storage.googleapis.com/Bucket" with resource_value "HIGH" will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources. |
| `↳ scope` | `string` Project or folder to scope this configuration to. For example, "project/456" would apply this configuration only to resources in "project/456" scope will be checked with `AND` of other resources. |
| `↳ resource_labels_selector` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` List of resource labels to search for, evaluated with `AND`. For example, `"resource_labels_selector": {"key": "value", "env": "prod"}` will match resources with labels "key": "value" `AND` "env": "prod" <https://cloud.google.com/resource-manager/docs/creating-managing-labels> |
| `↳ description` | `string` Description of the resource value configuration. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp this resource value configuration was created. |
| `↳ update_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Timestamp this resource value configuration was last updated. |
| `↳ cloud_provider` | `int` Cloud provider this configuration applies to |
| `↳ sensitive_data_protection_mapping` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourceValueConfig.SensitiveDataProtectionMapping` A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. "bigquery.googleapis.com/Dataset". |

### getName

Name for the resource value configuration

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

### setName

Name for the resource value configuration

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

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

### getResourceValue

Required. Resource value level this expression represents

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ResourceValue](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourceValue). |

### setResourceValue

Required. Resource value level this expression represents

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ResourceValue](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourceValue). |

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

### getTagValues

Required. Tag values combined with `AND` to check against.

Values in the form "tagValues/123"
Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
<https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing>

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

### setTagValues

Required. Tag values combined with `AND` to check against.

Values in the form "tagValues/123"
Example: `[ "tagValues/123", "tagValues/456", "tagValues/789" ]`
<https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing>

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

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

### getResourceType

Apply resource_value only to resources that match resource_type.

resource_type will be checked with `AND` of other resources.
For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.

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

### setResourceType

Apply resource_value only to resources that match resource_type.

resource_type will be checked with `AND` of other resources.
For example, "storage.googleapis.com/Bucket" with resource_value "HIGH"
will apply "HIGH" value only to "storage.googleapis.com/Bucket" resources.

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

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

### getScope

Project or folder to scope this configuration to.

For example, "project/456" would apply this configuration only to resources
in "project/456" scope will be checked with `AND` of other
resources.

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

### setScope

Project or folder to scope this configuration to.

For example, "project/456" would apply this configuration only to resources
in "project/456" scope will be checked with `AND` of other
resources.

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

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

### getResourceLabelsSelector

List of resource labels to search for, evaluated with `AND`.

For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
will match resources with labels "key": "value" `AND` "env":
"prod"
<https://cloud.google.com/resource-manager/docs/creating-managing-labels>

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

### setResourceLabelsSelector

List of resource labels to search for, evaluated with `AND`.

For example, `"resource_labels_selector": {"key": "value", "env": "prod"}`
will match resources with labels "key": "value" `AND` "env":
"prod"
<https://cloud.google.com/resource-manager/docs/creating-managing-labels>

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

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

### getDescription

Description of the resource value configuration.

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

### setDescription

Description of the resource value configuration.

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

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

### getCreateTime

Output only. Timestamp this resource value configuration was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Timestamp this resource value configuration was created.

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

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

### getUpdateTime

Output only. Timestamp this resource value configuration was last updated.

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

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Timestamp this resource value configuration was last updated.

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

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

### getCloudProvider

Cloud provider this configuration applies to

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [CloudProvider](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.CloudProvider). |

### setCloudProvider

Cloud provider this configuration applies to

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [CloudProvider](https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.CloudProvider). |

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

### getSensitiveDataProtectionMapping

A mapping of the sensitivity on Sensitive Data Protection finding to
resource values. This mapping can only be used in combination with a
resource_type that is related to BigQuery, e.g.

"bigquery.googleapis.com/Dataset".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourceValueConfig.SensitiveDataProtectionMapping|null` |   |

### hasSensitiveDataProtectionMapping

### clearSensitiveDataProtectionMapping

### setSensitiveDataProtectionMapping

A mapping of the sensitivity on Sensitive Data Protection finding to
resource values. This mapping can only be used in combination with a
resource_type that is related to BigQuery, e.g.

"bigquery.googleapis.com/Dataset".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.ResourceValueConfig.SensitiveDataProtectionMapping` |

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