# Google Cloud Security Command Center V1 Client - Class SecurityCenterProperties (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 SecurityCenterProperties.

Security Command Center managed properties. These properties are managed by
Security Command Center and cannot be modified by the user.

Generated from protobuf message `google.cloud.securitycenter.v1.Asset.SecurityCenterProperties`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1 \\ Asset

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_name` | `string` The full resource name of the Google Cloud resource this asset represents. This field is immutable after create time. See: <https://cloud.google.com/apis/design/resource_names#full_resource_name> |
| `↳ resource_type` | `string` The type of the Google Cloud resource. Examples include: APPLICATION, PROJECT, and ORGANIZATION. This is a case insensitive field defined by Security Command Center and/or the producer of the resource and is immutable after create time. |
| `↳ resource_parent` | `string` The full resource name of the immediate parent of the resource. See: <https://cloud.google.com/apis/design/resource_names#full_resource_name> |
| `↳ resource_project` | `string` The full resource name of the project the resource belongs to. See: <https://cloud.google.com/apis/design/resource_names#full_resource_name> |
| `↳ resource_owners` | `string[]` Owners of the Google Cloud resource. |
| `↳ resource_display_name` | `string` The user defined display name for this resource. |
| `↳ resource_parent_display_name` | `string` The user defined display name for the parent of this resource. |
| `↳ resource_project_display_name` | `string` The user defined display name for the project of this resource. |
| `↳ folders` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Folder>` Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization. |

### getResourceName

The full resource name of the Google Cloud resource this asset
represents. This field is immutable after create time. See:
<https://cloud.google.com/apis/design/resource_names#full_resource_name>

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

### setResourceName

The full resource name of the Google Cloud resource this asset
represents. This field is immutable after create time. See:
<https://cloud.google.com/apis/design/resource_names#full_resource_name>

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

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

### getResourceType

The type of the Google Cloud resource. Examples include: APPLICATION,
PROJECT, and ORGANIZATION. This is a case insensitive field defined by
Security Command Center and/or the producer of the resource and is
immutable after create time.

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

### setResourceType

The type of the Google Cloud resource. Examples include: APPLICATION,
PROJECT, and ORGANIZATION. This is a case insensitive field defined by
Security Command Center and/or the producer of the resource and is
immutable after create time.

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

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

### getResourceParent

The full resource name of the immediate parent of the resource. See:
<https://cloud.google.com/apis/design/resource_names#full_resource_name>

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

### setResourceParent

The full resource name of the immediate parent of the resource. See:
<https://cloud.google.com/apis/design/resource_names#full_resource_name>

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

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

### getResourceProject

The full resource name of the project the resource belongs to. See:
<https://cloud.google.com/apis/design/resource_names#full_resource_name>

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

### setResourceProject

The full resource name of the project the resource belongs to. See:
<https://cloud.google.com/apis/design/resource_names#full_resource_name>

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

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

### getResourceOwners

Owners of the Google Cloud resource.

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

### setResourceOwners

Owners of the Google Cloud resource.

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

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

### getResourceDisplayName

The user defined display name for this resource.

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

### setResourceDisplayName

The user defined display name for this resource.

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

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

### getResourceParentDisplayName

The user defined display name for the parent of this resource.

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

### setResourceParentDisplayName

The user defined display name for the parent of this resource.

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

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

### getResourceProjectDisplayName

The user defined display name for the project of this resource.

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

### setResourceProjectDisplayName

The user defined display name for the project of this resource.

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

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

### getFolders

Contains a Folder message for each folder in the assets ancestry.

The first folder is the deepest nested folder, and the last folder is the
folder directly under the Organization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Folder>` |   |

### setFolders

Contains a Folder message for each folder in the assets ancestry.

The first folder is the deepest nested folder, and the last folder is the
folder directly under the Organization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Folder>` |

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