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

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

Capacity demand value for a single time point.

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

Namespace

Google \ Cloud \ CapacityPlanner \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ time Google\Protobuf\Timestamp

Required. The time point. If this demand value is non-temporal, set time to -1.

↳ value float

Required. The demand value at the time point.

getTime

Required. The time point. If this demand value is non-temporal, set time to -1.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasTime

clearTime

setTime

Required. The time point. If this demand value is non-temporal, set time to -1.

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

getValue

Required. The demand value at the time point.

Returns
Type Description
float

hasValue

clearValue

setValue

Required. The demand value at the time point.

Parameter
Name Description
var float
Returns
Type Description
$this