# Google Cloud Security Command Center V2 Client - Class AttackPathNode (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 V2 Client class AttackPathNode.

Represents one point that an attacker passes through in this attack path.

Generated from protobuf message `google.cloud.securitycenter.v2.AttackPath.AttackPathNode`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V2 \\ AttackPath

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource` | `string` The name of the resource at this point in the attack path. The format of the name follows the Cloud Asset Inventory [resource name format](https://cloud.google.com/asset-inventory/docs/resource-name-format) |
| `↳ resource_type` | `string` The [supported resource type](https://cloud.google.com/asset-inventory/docs/supported-asset-types) |
| `↳ display_name` | `string` Human-readable name of this resource. |
| `↳ associated_findings` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.AttackPath.AttackPathNode.PathNodeAssociatedFinding>` The findings associated with this node in the attack path. |
| `↳ uuid` | `string` Unique id of the attack path node. |
| `↳ attack_steps` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.AttackPath.AttackPathNode.AttackStepNode>` A list of attack step nodes that exist in this attack path node. |

### getResource

The name of the resource at this point in the attack path.

The format of the name follows the Cloud Asset Inventory [resource
name
format](https://cloud.google.com/asset-inventory/docs/resource-name-format)

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

### setResource

The name of the resource at this point in the attack path.

The format of the name follows the Cloud Asset Inventory [resource
name
format](https://cloud.google.com/asset-inventory/docs/resource-name-format)

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

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

### getResourceType

The [supported resource
type](https://cloud.google.com/asset-inventory/docs/supported-asset-types)

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

### setResourceType

The [supported resource
type](https://cloud.google.com/asset-inventory/docs/supported-asset-types)

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

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

### getDisplayName

Human-readable name of this resource.

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

### setDisplayName

Human-readable name of this resource.

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

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

### getAssociatedFindings

The findings associated with this node in the attack path.

| **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/V2.AttackPath.AttackPathNode.PathNodeAssociatedFinding>` |   |

### setAssociatedFindings

The findings associated with this node in the attack path.

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

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

### getUuid

Unique id of the attack path node.

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

### setUuid

Unique id of the attack path node.

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

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

### getAttackSteps

A list of attack step nodes that exist in this attack path node.

| **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/V2.AttackPath.AttackPathNode.AttackStepNode>` |   |

### setAttackSteps

A list of attack step nodes that exist in this attack path node.

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

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