Iot/src/V1/CreateDeviceRegistryRequest.php
public function setDeviceRegistry($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Iot\V1\DeviceRegistry::class);
        $this->device_registry = $var;

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

        return $this;
    }
public function setDeviceRegistry ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Iot \ V1 \ DeviceRegistry :: class ) ; $ this -> device_registry = $ var ; return $ this ; }
The device registry. The field `name` must be empty. The server will
generate that field from the device registry `id` provided and the
`parent` field.

Generated from protobuf field <code>.google.cloud.iot.v1.DeviceRegistry device_registry = 2;</code>
@param \Google\Cloud\Iot\V1\DeviceRegistry $var
@return $this
The device registry . The field name must be empty . The server will generate that field from the device registry id provided and the parent field .