def cancel_quantum_job(
        self,
    ) -> Callable[[engine.CancelQuantumJobRequest], Awaitable[empty_pb2.Empty]]:
        r"""Return a callable for the cancel quantum job method over gRPC.

        -

        Returns:
            Callable[[~.CancelQuantumJobRequest],
                    Awaitable[~.Empty]]:
                A function that, when called, will call the underlying RPC
                on the server.
        """
        # Generate a "stub function" on-the-fly which will actually make
        # the request.
        # gRPC handles serialization and deserialization, so we just need
        # to pass in the functions for each.
        if 'cancel_quantum_job' not in self._stubs:
            self._stubs['cancel_quantum_job'] = self.grpc_channel.unary_unary(
                '/google.cloud.quantum.v1alpha1.QuantumEngineService/CancelQuantumJob',
                request_serializer=engine.CancelQuantumJobRequest.serialize,
                response_deserializer=empty_pb2.Empty.FromString,
            )
        return self._stubs['cancel_quantum_job']
Return a callable for the cancel quantum job method over gRPC.

        -

        Returns:
            Callable[[~.CancelQuantumJobRequest],
                    Awaitable[~.Empty]]:
                A function that, when called, will call the underlying RPC
                on the server.
        
cirq-google/cirq_google/cloud/quantum_v1alpha1/services/quantum_engine_service/transports/grpc_asyncio.py