Google Cloud Capacity Planner V1beta Client - Class ResourceAttribute (0.1.0)

Reference documentation and code samples for the Google Cloud Capacity Planner V1beta Client class ResourceAttribute.

An attribute of a Google Cloud Platform resource.

Generated from protobuf message google.cloud.capacityplanner.v1beta.ResourceAttribute

Namespace

Google \ Cloud \ CapacityPlanner \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ key string
↳ value ResourceValue

getKey

Generated from protobuf field string key = 1;

Returns
Type Description
string

setKey

Generated from protobuf field string key = 1;

Parameter
Name Description
var string
Returns
Type Description
$this

getValue

Generated from protobuf field .google.cloud.capacityplanner.v1beta.ResourceValue value = 2;

Returns
Type Description
ResourceValue|null

hasValue

clearValue

setValue

Generated from protobuf field .google.cloud.capacityplanner.v1beta.ResourceValue value = 2;

Parameter
Name Description
var ResourceValue
Returns
Type Description
$this