Google Cloud IoT Core V1 Client - Class DeviceState (1.7.4)

Reference documentation and code samples for the Google Cloud IoT Core V1 Client class DeviceState.

The device state, as reported by the device.

Generated from protobuf message google.cloud.iot.v1.DeviceState

Namespace

Google \ Cloud \ Iot \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ update_time Google\Protobuf\Timestamp

[Output only] The time at which this state version was updated in Cloud IoT Core.

↳ binary_data string

The device state data.

getUpdateTime

[Output only] The time at which this state version was updated in Cloud IoT Core.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

[Output only] The time at which this state version was updated in Cloud IoT Core.

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

getBinaryData

The device state data.

Returns
Type Description
string

setBinaryData

The device state data.

Parameter
Name Description
var string
Returns
Type Description
$this