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

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

Namespace

Google \ Cloud \ Iot \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var array<Google\Cloud\Iot\V1\DeviceState>
Returns
Type Description
$this