LocationRequestOptions implements JsonSerializable, Parcelable { @NonNull public static Builder newBuilder() { return new Builder(); } private  LocationRequestOptions(@NonNull Builder builder); private  LocationRequestOptions(@NonNull Parcel in); private  LocationRequestOptions(int priority, long minTime, float minDistance); @Override int describeContents(); @Override void writeToParcel(@NonNull Parcel dest, int flags); @NonNull static LocationRequestOptions createDefaultOptions(); int getPriority(); long getMinTime(); float getMinDistance(); @NonNull @Override String toString(); @Override boolean equals(@Nullable Object o); @NonNull @Override JsonValue toJsonValue(); @NonNull static LocationRequestOptions fromJson(@NonNull JsonValue value); @NonNull static Builder newBuilder(); @NonNull
    static final String MIN_DISTANCE_KEY; @NonNull
    static final String MIN_TIME_KEY; @NonNull
    static final String PRIORITY_KEY; static final float DEFAULT_UPDATE_INTERVAL_METERS; static final long DEFAULT_UPDATE_INTERVAL_MILLISECONDS; static final int DEFAULT_REQUEST_PRIORITY; static final int PRIORITY_HIGH_ACCURACY; static final int PRIORITY_BALANCED_POWER_ACCURACY; static final int PRIORITY_LOW_POWER; static final int PRIORITY_NO_POWER; @NonNull
    static final Parcelable.Creator<LocationRequestOptions> CREATOR; }
@Test public void testLocationRequestOptionInvalidMinTime() { exception.expect(IllegalArgumentException.class); exception.expectMessage("minTime must be greater or equal to 0"); LocationRequestOptions.newBuilder().setMinTime(-1, TimeUnit.MILLISECONDS); }
@Test public void testLocationRequestOptionInvalidMinDistance() { exception.expect(IllegalArgumentException.class); exception.expectMessage("minDistance must be greater or equal to 0"); LocationRequestOptions.newBuilder().setMinDistance(-1); }
@Test public void testLocationRequestOptionInvalidPriority() { exception.expect(IllegalArgumentException.class); exception.expectMessage("Priority can only be either " + "PRIORITY_HIGH_ACCURACY, PRIORITY_BALANCED_POWER_ACCURACY, " + "PRIORITY_LOW_POWER, or PRIORITY_NO_POWER"); LocationRequestOptions.newBuilder().setPriority(-1); }