def get_device_specification(self) -> v2.device_pb2.DeviceSpecification | None:
        """Returns a device specification proto for use in determining
        information about the device.

        Returns:
            Device specification proto if present.
        """
        device_spec = self._inner_processor().device_spec
        if device_spec and device_spec.type_url:
            return util.unpack_any(device_spec, v2.device_pb2.DeviceSpecification())
        else:
            return None
Returns a device specification proto for use in determining
        information about the device.

        Returns:
            Device specification proto if present.
        
cirq-google/cirq_google/engine/engine_processor.py