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

Indicates what signature matched this process.

Generated from protobuf message `google.cloud.securitycenter.v2.Indicator.ProcessSignature`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V2 \\ Indicator

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ memory_hash_signature` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.Indicator.ProcessSignature.MemoryHashSignature` Signature indicating that a binary family was matched. |
| `↳ yara_rule_signature` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.Indicator.ProcessSignature.YaraRuleSignature` Signature indicating that a YARA rule was matched. |
| `↳ signature_type` | `int` Describes the type of resource associated with the signature. |

### getMemoryHashSignature

Signature indicating that a binary family was matched.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.Indicator.ProcessSignature.MemoryHashSignature|null` |   |

### hasMemoryHashSignature

### setMemoryHashSignature

Signature indicating that a binary family was matched.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.Indicator.ProcessSignature.MemoryHashSignature` |

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

### getYaraRuleSignature

Signature indicating that a YARA rule was matched.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.Indicator.ProcessSignature.YaraRuleSignature|null` |   |

### hasYaraRuleSignature

### setYaraRuleSignature

Signature indicating that a YARA rule was matched.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.Indicator.ProcessSignature.YaraRuleSignature` |

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

### getSignatureType

Describes the type of resource associated with the signature.

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

### setSignatureType

Describes the type of resource associated with the signature.

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

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

### getSignature

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