RouteOptions extends DirectionsJsonObject { @Nullable public List<String> waypointNamesList() { return ParseUtils.parseToStrings(waypointNames()); }  static Builder builder(); @NonNull abstract String baseUrl(); @NonNull abstract String user(); @NonNull abstract String profile(); @NonNull abstract List<Point> coordinates(); @Nullable abstract Boolean alternatives(); @Nullable abstract String language(); @Nullable abstract String radiuses(); @Nullable List<Double> radiusesList(); @Nullable abstract String bearings(); @Nullable List<List<Double>> bearingsList(); @SerializedName("continue_straight") @Nullable abstract Boolean continueStraight(); @SerializedName("roundabout_exits") @Nullable abstract Boolean roundaboutExits(); @Nullable abstract String geometries(); @Nullable abstract String overview(); @Nullable abstract Boolean steps(); @Nullable abstract String annotations(); @Nullable List<String> annotationsList(); @Nullable abstract String exclude(); @SerializedName("voice_instructions") @Nullable abstract Boolean voiceInstructions(); @SerializedName("banner_instructions") @Nullable abstract Boolean bannerInstructions(); @SerializedName("voice_units") @Nullable abstract String voiceUnits(); @SerializedName("access_token") @NonNull abstract String accessToken(); @SerializedName("uuid") @NonNull abstract String requestUuid(); @Nullable abstract String approaches(); @Nullable List<String> approachesList(); @SerializedName("waypoints") @Nullable abstract String waypointIndices(); @Nullable List<Integer> waypointIndicesList(); @SerializedName("waypoint_names") @Nullable abstract String waypointNames(); @Nullable List<String> waypointNamesList(); @SerializedName("waypoint_targets") @Nullable abstract String waypointTargets(); @Nullable List<Point> waypointTargetsList(); @Nullable abstract WalkingOptions walkingOptions(); static TypeAdapter<RouteOptions> typeAdapter(Gson gson); @NonNull static RouteOptions fromJson(String json); @NonNull abstract Builder toBuilder();  }
@Test public void waypointNamesList() { List<String> names = new ArrayList<>(); names.add(null); names.add(null); names.add("abc"); names.add(null); names.add("def"); names.add(null); names.add(null); RouteOptions routeOptions = routeOptions() .toBuilder() .waypointNamesList(names) .build(); assertEquals(names, routeOptions.waypointNamesList()); assertEquals(";;abc;;def;;", routeOptions.waypointNames()); }