Google Cloud Api Hub V1 Client - Class LintResponse (0.1.1)

Reference documentation and code samples for the Google Cloud Api Hub V1 Client class LintResponse.

LintResponse contains the response from the linter.

Generated from protobuf message google.cloud.apihub.v1.LintResponse

Namespace

Google \ Cloud \ ApiHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ issues array<Google\Cloud\ApiHub\V1\Issue>

Optional. Array of issues found in the analyzed document.

↳ summary array<Google\Cloud\ApiHub\V1\LintResponse\SummaryEntry>

Optional. Summary of all issue types and counts for each severity level.

↳ state int

Required. Lint state represents success or failure for linting.

↳ source string

Required. Name of the linting application.

↳ linter int

Required. Name of the linter used.

↳ create_time Google\Protobuf\Timestamp

Required. Timestamp when the linting response was generated.

getIssues

Optional. Array of issues found in the analyzed document.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setIssues

Optional. Array of issues found in the analyzed document.

Parameter
Name Description
var array<Google\Cloud\ApiHub\V1\Issue>
Returns
Type Description
$this

getSummary

Optional. Summary of all issue types and counts for each severity level.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSummary

Optional. Summary of all issue types and counts for each severity level.

Parameter
Name Description
var array<Google\Cloud\ApiHub\V1\LintResponse\SummaryEntry>
Returns
Type Description
$this

getState

Required. Lint state represents success or failure for linting.

Returns
Type Description
int

setState

Required. Lint state represents success or failure for linting.

Parameter
Name Description
var int
Returns
Type Description
$this

getSource

Required. Name of the linting application.

Returns
Type Description
string

setSource

Required. Name of the linting application.

Parameter
Name Description
var string
Returns
Type Description
$this

getLinter

Required. Name of the linter used.

Returns
Type Description
int

setLinter

Required. Name of the linter used.

Parameter
Name Description
var int
Returns
Type Description
$this

getCreateTime

Required. Timestamp when the linting response was generated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Required. Timestamp when the linting response was generated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this