0.4.4 (latest) 0.4.3 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class Issue.

Issue contains the details of a single issue found by the linter.

Generated from protobuf message `google.cloud.apihub.v1.Issue`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ code` | `string` Required. Rule code unique to each rule defined in linter. |
| `↳ path` | `string[]` Required. An array of strings indicating the location in the analyzed document where the rule was triggered. |
| `↳ message` | `string` Required. Human-readable message describing the issue found by the linter. |
| `↳ severity` | `int` Required. Severity level of the rule violation. |
| `↳ range` | `https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.Range` Required. Object describing where in the file the issue was found. |

### getCode

Required. Rule code unique to each rule defined in linter.

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

### setCode

Required. Rule code unique to each rule defined in linter.

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

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

### getPath

Required. An array of strings indicating the location in the analyzed
document where the rule was triggered.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setPath

Required. An array of strings indicating the location in the analyzed
document where the rule was triggered.

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

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

### getMessage

Required. Human-readable message describing the issue found by the linter.

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

### setMessage

Required. Human-readable message describing the issue found by the linter.

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

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

### getSeverity

Required. Severity level of the rule violation.

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

### setSeverity

Required. Severity level of the rule violation.

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

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

### getRange

Required. Object describing where in the file the issue was found.

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

### hasRange

### clearRange

### setRange

Required. Object describing where in the file the issue was found.

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

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