code: def cancelled(self):
          
          self._refresh_and_update()
          return (
              self._operation.HasField("error")
              and self._operation.error.code == code_pb2.CANCELLED
          )
docs: True if the operation was cancelled.