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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ message |
string
Output only. The diagnostic message. |
↳ position |
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 |
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 |
CompilationPosition
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSeverity
Output only. The severity of a rule's compilation diagnostic.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Severity. |
setSeverity
Output only. The severity of a rule's compilation diagnostic.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type 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 |
|