Iot/src/V1/Device.php
public function setConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Iot\V1\DeviceConfig::class);
        $this->config = $var;

        return $this;
    }
public function setConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Iot\V1\DeviceConfig::class);
        $this->config = $var;

        return $this;
    }
public function setConfig ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Iot \ V1 \ DeviceConfig :: class ) ; $ this -> config = $ var ; return $ this ; }
The most recent device configuration, which is eventually sent from
Cloud IoT Core to the device. If not present on creation, the
configuration will be initialized with an empty payload and version value
of `1`. To update this field after creation, use the
`DeviceManager.ModifyCloudToDeviceConfig` method.

Generated from protobuf field <code>.google.cloud.iot.v1.DeviceConfig config = 13;</code>
@param \Google\Cloud\Iot\V1\DeviceConfig $var
@return $this
The most recent device configuration which is eventually sent from Cloud IoT Core to the device . If not present on creation the configuration will be initialized with an empty payload and version value of 1 . To update this field after creation use the DeviceManager . ModifyCloudToDeviceConfig method .