# Interface CompilationDiagnosticOrBuilder (0.31.0)

0.31.0 (latest) 0.29.0 0.26.0 0.25.0 0.23.0 0.21.0 0.20.0 0.19.0 0.18.0 0.16.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.6.0 0.5.0 0.2.0 0.1.0

    public interface CompilationDiagnosticOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getMessage()

    public abstract String getMessage()

Output only. The diagnostic message.

`string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The message. |

### getMessageBytes()

    public abstract ByteString getMessageBytes()

Output only. The diagnostic message.

`string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for message. |

### getPosition()

    public abstract CompilationPosition getPosition()

Output only. The approximate position in the rule text associated with the
compilation diagnostic.
Compilation Position may be empty.

`
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.CompilationPosition` | The position. |

### getPositionOrBuilder()

    public abstract CompilationPositionOrBuilder getPositionOrBuilder()

Output only. The approximate position in the rule text associated with the
compilation diagnostic.
Compilation Position may be empty.

`
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.CompilationPositionOrBuilder` |   |

### getSeverity()

    public abstract CompilationDiagnostic.Severity getSeverity()

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

`
.google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.CompilationDiagnostic.Severity` | The severity. |

### getSeverityValue()

    public abstract int getSeverityValue()

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

`
.google.cloud.chronicle.v1.CompilationDiagnostic.Severity severity = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for severity. |

### getUri()

    public abstract String getUri()

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

`string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The uri. |

### getUriBytes()

    public abstract ByteString getUriBytes()

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

`string uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for uri. |

### hasPosition()

    public abstract boolean hasPosition()

Output only. The approximate position in the rule text associated with the
compilation diagnostic.
Compilation Position may be empty.

`
.google.cloud.chronicle.v1.CompilationPosition position = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the position field is set. |