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

MITRE ATT\&CK tactics and techniques related to this finding.

See: <https://attack.mitre.org>

Generated from protobuf message `google.cloud.securitycenter.v2.MitreAttack`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ primary_tactic` | `int` The MITRE ATT\&CK tactic most closely represented by this finding, if any. |
| `↳ primary_techniques` | `int[]` The MITRE ATT\&CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT\&CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique and its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`). |
| `↳ additional_tactics` | `int[]` Additional MITRE ATT\&CK tactics related to this finding, if any. |
| `↳ additional_techniques` | `int[]` Additional MITRE ATT\&CK techniques related to this finding, if any, along with any of their respective parent techniques. |
| `↳ version` | `string` The MITRE ATT\&CK version referenced by the above fields. E.g. "8". |

### getPrimaryTactic

The MITRE ATT\&CK tactic most closely represented by this finding, if any.

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

### setPrimaryTactic

The MITRE ATT\&CK tactic most closely represented by this finding, if any.

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

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

### getPrimaryTechniques

The MITRE ATT\&CK technique most closely represented by this finding, if
any. primary_techniques is a repeated field because there are multiple
levels of MITRE ATT\&CK techniques. If the technique most closely
represented by this finding is a sub-technique (e.g. `SCANNING_IP_BLOCKS`),
both the sub-technique and its parent technique(s) will be listed (e.g.

`SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).

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

### setPrimaryTechniques

The MITRE ATT\&CK technique most closely represented by this finding, if
any. primary_techniques is a repeated field because there are multiple
levels of MITRE ATT\&CK techniques. If the technique most closely
represented by this finding is a sub-technique (e.g. `SCANNING_IP_BLOCKS`),
both the sub-technique and its parent technique(s) will be listed (e.g.

`SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).

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

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

### getAdditionalTactics

Additional MITRE ATT\&CK tactics related to this finding, if any.

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

### setAdditionalTactics

Additional MITRE ATT\&CK tactics related to this finding, if any.

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

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

### getAdditionalTechniques

Additional MITRE ATT\&CK techniques related to this finding, if any, along
with any of their respective parent techniques.

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

### setAdditionalTechniques

Additional MITRE ATT\&CK techniques related to this finding, if any, along
with any of their respective parent techniques.

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

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

### getVersion

The MITRE ATT\&CK version referenced by the above fields. E.g. "8".

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

### setVersion

The MITRE ATT\&CK version referenced by the above fields. E.g. "8".

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

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