# Google Cloud Chronicle V1 Client - Class CompilationDiagnostic (0.4.0)

0.4.0 (latest) 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle V1 Client class CompilationDiagnostic.

CompilationDiagnostic represents a compilation diagnostic generated
during a rule's compilation, such as a compilation error or a compilation
warning.

Generated from protobuf message `google.cloud.chronicle.v1.CompilationDiagnostic`

## Namespace

Google \\ Cloud \\ Chronicle \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ message` | `string` Output only. The diagnostic message. |
| `↳ position` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.CompilationPosition` Output only. The approximate position in the rule text associated with the compilation diagnostic. Compilation Position may be empty. |
| `↳ severity` | `int` Output only. The severity of a rule's compilation diagnostic. |
| `↳ uri` | `string` Output only. Link to documentation that describes a diagnostic in more detail. |

### getMessage

Output only. The diagnostic message.

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

### setMessage

Output only. The diagnostic message.

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

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

### getPosition

Output only. The approximate position in the rule text associated with the
compilation diagnostic.

Compilation Position may be empty.

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

### hasPosition

### clearPosition

### setPosition

Output only. The approximate position in the rule text associated with the
compilation diagnostic.

Compilation Position may be empty.

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

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

### getSeverity

Output only. The severity of a rule's compilation diagnostic.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Severity](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.CompilationDiagnostic.Severity). |

### setSeverity

Output only. The severity of a rule's compilation diagnostic.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Severity](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.CompilationDiagnostic.Severity). |

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

### getUri

Output only. Link to documentation that describes a diagnostic in more
detail.

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

### setUri

Output only. Link to documentation that describes a diagnostic in more
detail.

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

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