Recommender V1 Client - Class Impact (1.7.8)

Reference documentation and code samples for the Recommender V1 Client class Impact.

Contains the impact a recommendation can have for a given category.

Generated from protobuf message google.cloud.recommender.v1.Impact

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ category int

Category that is being targeted.

↳ cost_projection Google\Cloud\Recommender\V1\CostProjection

Use with CategoryType.COST

↳ security_projection Google\Cloud\Recommender\V1\SecurityProjection

Use with CategoryType.SECURITY

getCategory

Category that is being targeted.

Returns
Type Description
int

setCategory

Category that is being targeted.

Parameter
Name Description
var int
Returns
Type Description
$this

getCostProjection

Use with CategoryType.COST

Returns
Type Description
Google\Cloud\Recommender\V1\CostProjection|null

hasCostProjection

setCostProjection

Use with CategoryType.COST

Parameter
Name Description
var Google\Cloud\Recommender\V1\CostProjection
Returns
Type Description
$this

getSecurityProjection

Use with CategoryType.SECURITY

Returns
Type Description
Google\Cloud\Recommender\V1\SecurityProjection|null

hasSecurityProjection

setSecurityProjection

Use with CategoryType.SECURITY

Parameter
Name Description
var Google\Cloud\Recommender\V1\SecurityProjection
Returns
Type Description
$this

getProjection

Returns
Type Description
string