# Google Cloud Security Center Management V1 Client - Class SimulatedResult (1.4.0)

1.4.0 (latest) 1.3.3 1.2.1 1.1.3 1.0.0 0.3.2 0.2.7 0.1.0 Reference documentation and code samples for the Google Cloud Security Center Management V1 Client class SimulatedResult.

Possible test result.

Generated from protobuf message `google.cloud.securitycentermanagement.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult`

## Namespace

Google \\ Cloud \\ SecurityCenterManagement \\ V1 \\ SimulateSecurityHealthAnalyticsCustomModuleResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ finding` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SimulatedFinding` Finding that would be published for the test case if a violation is detected. |
| `↳ no_violation` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/GPBEmpty` Indicates that the test case does not trigger any violation. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Error encountered during the test. |

### getFinding

Finding that would be published for the test case if a violation is
detected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SimulatedFinding|null` |   |

### hasFinding

### setFinding

Finding that would be published for the test case if a violation is
detected.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycentermanagement/latest/V1.SimulatedFinding` |

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

### getNoViolation

Indicates that the test case does not trigger any violation.

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

### hasNoViolation

### setNoViolation

Indicates that the test case does not trigger any violation.

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

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

### getError

Error encountered during the test.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasError

### setError

Error encountered during the test.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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

### getResult

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