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

An error encountered while validating the uploaded configuration of an
Event Threat Detection Custom Module.

Generated from protobuf message `google.cloud.securitycenter.v1.CustomModuleValidationError`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ description` | `string` A description of the error, suitable for human consumption. Required. |
| `↳ field_path` | `string` The path, in RFC 8901 JSON Pointer format, to the field that failed validation. This may be left empty if no specific field is affected. |
| `↳ start` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Position` The initial position of the error in the uploaded text version of the module. This field may be omitted if no specific position applies, or if one could not be computed. |
| `↳ end` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Position` The end position of the error in the uploaded text version of the module. This field may be omitted if no specific position applies, or if one could not be computed.. |

### getDescription

A description of the error, suitable for human consumption. Required.

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

### setDescription

A description of the error, suitable for human consumption. Required.

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

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

### getFieldPath

The path, in RFC 8901 JSON Pointer format, to the field that failed
validation. This may be left empty if no specific field is affected.

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

### setFieldPath

The path, in RFC 8901 JSON Pointer format, to the field that failed
validation. This may be left empty if no specific field is affected.

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

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

### getStart

The initial position of the error in the uploaded text version of the
module. This field may be omitted if no specific position applies, or if
one could not be computed.

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

### hasStart

### clearStart

### setStart

The initial position of the error in the uploaded text version of the
module. This field may be omitted if no specific position applies, or if
one could not be computed.

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

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

### getEnd

The end position of the error in the uploaded text version of the
module. This field may be omitted if no specific position applies, or if
one could not be computed..

Generated from protobuf field `optional .google.cloud.securitycenter.v1.Position end = 4;`

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

### hasEnd

### clearEnd

### setEnd

The end position of the error in the uploaded text version of the
module. This field may be omitted if no specific position applies, or if
one could not be computed..

Generated from protobuf field `optional .google.cloud.securitycenter.v1.Position end = 4;`

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

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