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 \ V1Methods
__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 |
array
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 |
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\Internal\RepeatedField |
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 |
setSeverity
Required. Severity level of the rule violation.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getRange
Required. Object describing where in the file the issue was found.
Returns | |
---|---|
Type | Description |
Range|null |
hasRange
clearRange
setRange
Required. Object describing where in the file the issue was found.
Parameter | |
---|---|
Name | Description |
var |
Range
|
Returns | |
---|---|
Type | Description |
$this |