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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getBinaryData

The device state data.

Returns
TypeDescription
string

setBinaryData

The device state data.

Parameter
NameDescription
var string
Returns
TypeDescription
$this