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

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

Response for ListDeviceStates.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ device_states array<Google\Cloud\Iot\V1\DeviceState>

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

getDeviceStates

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDeviceStates

The last few device states. States are listed in descending order of server update time, starting from the most recent one.

Parameter
NameDescription
var array<Google\Cloud\Iot\V1\DeviceState>
Returns
TypeDescription
$this