title: Firestore: Get parameters from query
body: <p>I am using Java Admin SDK to run some queries to my Firestore db.</p>
  <p>It looks like this:</p>
  <pre><code>ApiFuture&lt;QuerySnapshot&gt; future = query.get();
  </code></pre>
  <p>I get this <a href="https://firebase.google.com/docs/reference/android/com/google/firebase/firestore/Query" rel="nofollow noreferrer">Query</a> <code>query</code> object from another method and I would like to check if a <code>limit</code> is set before executing it. I can't find a way to do that. In clientcode in dart there is a method called <code>parameters</code> that lists the set query-params. But I can't find an equivalent in Java. Anyone has an idea how to check if a limit is already set?</p>
  <p>Thanks!</p>