def _reservation_to_time_slot(
        self, reservation: quantum.QuantumReservation
    ) -> quantum.QuantumTimeSlot:
        """Changes a reservation object into a time slot object."""
        return quantum.QuantumTimeSlot(
            processor_name=self._processor_id,
            start_time=reservation.start_time,
            end_time=reservation.end_time,
            time_slot_type=quantum.QuantumTimeSlot.TimeSlotType.RESERVATION,
        )
Changes a reservation object into a time slot object.
cirq-google/cirq_google/engine/abstract_local_processor.py