/**
  * Sets the value of the query document to the new value.
  *
  * @param query The new value for the query document.
  * @return This builder for chaining method calls.
  */
 public Builder setQuery(final DocumentAssignable query) {
   myQuery = query.asDocument();
   return this;
 }
 /**
  * Creates a new Builder.
  *
  * @param query The query document.
  */
 public Builder(final DocumentAssignable query) {
   this();
   myQuery = query.asDocument();
 }