Compute V1 Client - Class CapacityAdviceResponseRecommendation (2.14.1)

Reference documentation and code samples for the Compute V1 Client class CapacityAdviceResponseRecommendation.

Recommendation.

Generated from protobuf message google.cloud.compute.v1.CapacityAdviceResponseRecommendation

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ scores CapacityAdviceResponseRecommendationScores

Scores for the recommendation.

↳ shards array<CapacityAdviceResponseRecommendationShard>

Shards represent blocks of uniform capacity in recommendations.

getScores

Scores for the recommendation.

Returns
Type Description
CapacityAdviceResponseRecommendationScores|null

hasScores

clearScores

setScores

Scores for the recommendation.

Parameter
Name Description
var CapacityAdviceResponseRecommendationScores
Returns
Type Description
$this

getShards

Shards represent blocks of uniform capacity in recommendations.

Returns
Type Description
Google\Protobuf\RepeatedField<CapacityAdviceResponseRecommendationShard>

setShards

Shards represent blocks of uniform capacity in recommendations.

Parameter
Name Description
var array<CapacityAdviceResponseRecommendationShard>
Returns
Type Description
$this