near(nearOptional);
protected static QueryOptions watchParams(final BigInteger index, final int blockSeconds, QueryOptions queryOptions) { checkArgument(!queryOptions.getIndex().isPresent() && !queryOptions.getWait().isPresent(), "Index and wait cannot be overridden"); ImmutableQueryOptions.Builder builder = ImmutableQueryOptions.builder() .from(watchDefaultParams(index, blockSeconds)) .token(queryOptions.getToken()) .consistencyMode(queryOptions.getConsistencyMode()) .near(queryOptions.getNear()) .datacenter(queryOptions.getDatacenter()); for (String tag : queryOptions.getTag()) { builder.addTag(tag); } return builder.build(); }