Iot/src/V1/ListDeviceStatesResponse.php
public function setDeviceStates($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iot\V1\DeviceState::class);
        $this->device_states = $arr;

        return $this;
    }
public function setDeviceStates($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iot\V1\DeviceState::class);
        $this->device_states = $arr;

        return $this;
    }
public function setDeviceStates ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Iot \ V1 \ DeviceState :: class ) ; $ this -> device_states = $ arr ; return $ this ; }
The last few device states. States are listed in descending order of server
update time, starting from the most recent one.

Generated from protobuf field <code>repeated .google.cloud.iot.v1.DeviceState device_states = 1;</code>
@param \Google\Cloud\Iot\V1\DeviceState[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The last few device states . States are listed in descending order of server update time starting from the most recent one .