org.opentripplanner.ext.legacygraphqlapi.generated.LegacyGraphQLTypes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
package org.opentripplanner.ext.legacygraphqlapi.generated;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.stream.Collectors;
public class LegacyGraphQLTypes {
/** Cause of a alert */
public enum LegacyGraphQLAlertCauseType {
UnknownCause("UNKNOWN_CAUSE"),
OtherCause("OTHER_CAUSE"),
TechnicalProblem("TECHNICAL_PROBLEM"),
Strike("STRIKE"),
Demonstration("DEMONSTRATION"),
Accident("ACCIDENT"),
Holiday("HOLIDAY"),
Weather("WEATHER"),
Maintenance("MAINTENANCE"),
Construction("CONSTRUCTION"),
PoliceActivity("POLICE_ACTIVITY"),
MedicalEmergency("MEDICAL_EMERGENCY");
public final String label;
LegacyGraphQLAlertCauseType(String label) {
this.label = label;
}
private static final Map BY_LABEL = new HashMap<>();
static {
for (LegacyGraphQLAlertCauseType e : values()) {
BY_LABEL.put(e.label, e);
}
}
public static LegacyGraphQLAlertCauseType valueOfLabel(String label) {
return BY_LABEL.get(label);
}
}
/** Effect of a alert */
public enum LegacyGraphQLAlertEffectType {
NoService("NO_SERVICE"),
ReducedService("REDUCED_SERVICE"),
SignificantDelays("SIGNIFICANT_DELAYS"),
Detour("DETOUR"),
AdditionalService("ADDITIONAL_SERVICE"),
ModifiedService("MODIFIED_SERVICE"),
OtherEffect("OTHER_EFFECT"),
UnknownEffect("UNKNOWN_EFFECT"),
StopMoved("STOP_MOVED"),
NoEffect("NO_EFFECT");
public final String label;
LegacyGraphQLAlertEffectType(String label) {
this.label = label;
}
private static final Map BY_LABEL = new HashMap<>();
static {
for (LegacyGraphQLAlertEffectType e : values()) {
BY_LABEL.put(e.label, e);
}
}
public static LegacyGraphQLAlertEffectType valueOfLabel(String label) {
return BY_LABEL.get(label);
}
}
/** Severity level of a alert */
public enum LegacyGraphQLAlertSeverityLevelType {
UnknownSeverity("UNKNOWN_SEVERITY"),
Info("INFO"),
Warning("WARNING"),
Severe("SEVERE");
public final String label;
LegacyGraphQLAlertSeverityLevelType(String label) {
this.label = label;
}
private static final Map BY_LABEL = new HashMap<>();
static {
for (LegacyGraphQLAlertSeverityLevelType e : values()) {
BY_LABEL.put(e.label, e);
}
}
public static LegacyGraphQLAlertSeverityLevelType valueOfLabel(String label) {
return BY_LABEL.get(label);
}
}
public enum LegacyGraphQLBikesAllowed {
NoInformation("NO_INFORMATION"),
Allowed("ALLOWED"),
NotAllowed("NOT_ALLOWED");
public final String label;
LegacyGraphQLBikesAllowed(String label) {
this.label = label;
}
private static final Map BY_LABEL = new HashMap<>();
static {
for (LegacyGraphQLBikesAllowed e : values()) {
BY_LABEL.put(e.label, e);
}
}
public static LegacyGraphQLBikesAllowed valueOfLabel(String label) {
return BY_LABEL.get(label);
}
}
public static class LegacyGraphQLDepartureRowStoptimesArgs {
private Long _startTime;
private Integer _timeRange;
private Integer _numberOfDepartures;
private Boolean _omitNonPickups;
private Boolean _omitCanceled;
public LegacyGraphQLDepartureRowStoptimesArgs(Map args) {
if (args != null) {
this._startTime = (Long) args.get("startTime");
this._timeRange = (Integer) args.get("timeRange");
this._numberOfDepartures = (Integer) args.get("numberOfDepartures");
this._omitNonPickups = (Boolean) args.get("omitNonPickups");
this._omitCanceled = (Boolean) args.get("omitCanceled");
}
}
public Long getLegacyGraphQLStartTime() { return this._startTime; }
public Integer getLegacyGraphQLTimeRange() { return this._timeRange; }
public Integer getLegacyGraphQLNumberOfDepartures() { return this._numberOfDepartures; }
public Boolean getLegacyGraphQLOmitNonPickups() { return this._omitNonPickups; }
public Boolean getLegacyGraphQLOmitCanceled() { return this._omitCanceled; }
}
public enum LegacyGraphQLFilterPlaceType {
Stop("STOP"),
DepartureRow("DEPARTURE_ROW"),
BicycleRent("BICYCLE_RENT"),
BikePark("BIKE_PARK"),
CarPark("CAR_PARK");
public final String label;
LegacyGraphQLFilterPlaceType(String label) {
this.label = label;
}
private static final Map BY_LABEL = new HashMap<>();
static {
for (LegacyGraphQLFilterPlaceType e : values()) {
BY_LABEL.put(e.label, e);
}
}
public static LegacyGraphQLFilterPlaceType valueOfLabel(String label) {
return BY_LABEL.get(label);
}
}
public static class LegacyGraphQLInputBannedInput {
private String _routes;
private String _agencies;
private String _trips;
private String _stops;
private String _stopsHard;
public LegacyGraphQLInputBannedInput(Map args) {
if (args != null) {
this._routes = (String) args.get("routes");
this._agencies = (String) args.get("agencies");
this._trips = (String) args.get("trips");
this._stops = (String) args.get("stops");
this._stopsHard = (String) args.get("stopsHard");
}
}
public String getLegacyGraphQLRoutes() { return this._routes; }
public String getLegacyGraphQLAgencies() { return this._agencies; }
public String getLegacyGraphQLTrips() { return this._trips; }
public String getLegacyGraphQLStops() { return this._stops; }
public String getLegacyGraphQLStopsHard() { return this._stopsHard; }
}
public static class LegacyGraphQLInputCoordinatesInput {
private Double _lat;
private Double _lon;
private String _address;
private Integer _locationSlack;
public LegacyGraphQLInputCoordinatesInput(Map args) {
if (args != null) {
this._lat = (Double) args.get("lat");
this._lon = (Double) args.get("lon");
this._address = (String) args.get("address");
this._locationSlack = (Integer) args.get("locationSlack");
}
}
public Double getLegacyGraphQLLat() { return this._lat; }
public Double getLegacyGraphQLLon() { return this._lon; }
public String getLegacyGraphQLAddress() { return this._address; }
public Integer getLegacyGraphQLLocationSlack() { return this._locationSlack; }
}
public static class LegacyGraphQLInputFiltersInput {
private Iterable _stops;
private Iterable _routes;
private Iterable _bikeRentalStations;
private Iterable _bikeParks;
private Iterable _carParks;
public LegacyGraphQLInputFiltersInput(Map args) {
if (args != null) {
this._stops = (Iterable) args.get("stops");
this._routes = (Iterable) args.get("routes");
this._bikeRentalStations = (Iterable) args.get("bikeRentalStations");
this._bikeParks = (Iterable) args.get("bikeParks");
this._carParks = (Iterable) args.get("carParks");
}
}
public Iterable getLegacyGraphQLStops() { return this._stops; }
public Iterable getLegacyGraphQLRoutes() { return this._routes; }
public Iterable getLegacyGraphQLBikeRentalStations() { return this._bikeRentalStations; }
public Iterable getLegacyGraphQLBikeParks() { return this._bikeParks; }
public Iterable getLegacyGraphQLCarParks() { return this._carParks; }
}
public static class LegacyGraphQLInputModeWeightInput {
private Double _TRAM;
private Double _SUBWAY;
private Double _RAIL;
private Double _BUS;
private Double _FERRY;
private Double _CABLE_CAR;
private Double _GONDOLA;
private Double _FUNICULAR;
private Double _AIRPLANE;
public LegacyGraphQLInputModeWeightInput(Map args) {
if (args != null) {
this._TRAM = (Double) args.get("TRAM");
this._SUBWAY = (Double) args.get("SUBWAY");
this._RAIL = (Double) args.get("RAIL");
this._BUS = (Double) args.get("BUS");
this._FERRY = (Double) args.get("FERRY");
this._CABLE_CAR = (Double) args.get("CABLE_CAR");
this._GONDOLA = (Double) args.get("GONDOLA");
this._FUNICULAR = (Double) args.get("FUNICULAR");
this._AIRPLANE = (Double) args.get("AIRPLANE");
}
}
public Double getLegacyGraphQLTram() { return this._TRAM; }
public Double getLegacyGraphQLSubway() { return this._SUBWAY; }
public Double getLegacyGraphQLRail() { return this._RAIL; }
public Double getLegacyGraphQLBus() { return this._BUS; }
public Double getLegacyGraphQLFerry() { return this._FERRY; }
public Double getLegacyGraphQLCable_Car() { return this._CABLE_CAR; }
public Double getLegacyGraphQLGondola() { return this._GONDOLA; }
public Double getLegacyGraphQLFunicular() { return this._FUNICULAR; }
public Double getLegacyGraphQLAirplane() { return this._AIRPLANE; }
}
public static class LegacyGraphQLInputPreferredInput {
private String _routes;
private String _agencies;
private Integer _otherThanPreferredRoutesPenalty;
public LegacyGraphQLInputPreferredInput(Map args) {
if (args != null) {
this._routes = (String) args.get("routes");
this._agencies = (String) args.get("agencies");
this._otherThanPreferredRoutesPenalty = (Integer) args.get("otherThanPreferredRoutesPenalty");
}
}
public String getLegacyGraphQLRoutes() { return this._routes; }
public String getLegacyGraphQLAgencies() { return this._agencies; }
public Integer getLegacyGraphQLOtherThanPreferredRoutesPenalty() { return this._otherThanPreferredRoutesPenalty; }
}
public static class LegacyGraphQLInputTriangleInput {
private Double _safetyFactor;
private Double _slopeFactor;
private Double _timeFactor;
public LegacyGraphQLInputTriangleInput(Map args) {
if (args != null) {
this._safetyFactor = (Double) args.get("safetyFactor");
this._slopeFactor = (Double) args.get("slopeFactor");
this._timeFactor = (Double) args.get("timeFactor");
}
}
public Double getLegacyGraphQLSafetyFactor() { return this._safetyFactor; }
public Double getLegacyGraphQLSlopeFactor() { return this._slopeFactor; }
public Double getLegacyGraphQLTimeFactor() { return this._timeFactor; }
}
public static class LegacyGraphQLInputUnpreferredInput {
private String _routes;
private String _agencies;
private Integer _useUnpreferredRoutesPenalty;
public LegacyGraphQLInputUnpreferredInput(Map args) {
if (args != null) {
this._routes = (String) args.get("routes");
this._agencies = (String) args.get("agencies");
this._useUnpreferredRoutesPenalty = (Integer) args.get("useUnpreferredRoutesPenalty");
}
}
public String getLegacyGraphQLRoutes() { return this._routes; }
public String getLegacyGraphQLAgencies() { return this._agencies; }
public Integer getLegacyGraphQLUseUnpreferredRoutesPenalty() { return this._useUnpreferredRoutesPenalty; }
}
/** Identifies whether this stop represents a stop or station. */
public enum LegacyGraphQLLocationType {
Stop("STOP"),
Station("STATION"),
Entrance("ENTRANCE");
public final String label;
LegacyGraphQLLocationType(String label) {
this.label = label;
}
private static final Map BY_LABEL = new HashMap<>();
static {
for (LegacyGraphQLLocationType e : values()) {
BY_LABEL.put(e.label, e);
}
}
public static LegacyGraphQLLocationType valueOfLabel(String label) {
return BY_LABEL.get(label);
}
}
public enum LegacyGraphQLMode {
Airplane("AIRPLANE"),
Bicycle("BICYCLE"),
Bus("BUS"),
CableCar("CABLE_CAR"),
Car("CAR"),
Ferry("FERRY"),
Funicular("FUNICULAR"),
Gondola("GONDOLA"),
LegSwitch("LEG_SWITCH"),
Rail("RAIL"),
Subway("SUBWAY"),
Tram("TRAM"),
Transit("TRANSIT"),
Walk("WALK");
public final String label;
LegacyGraphQLMode(String label) {
this.label = label;
}
private static final Map BY_LABEL = new HashMap<>();
static {
for (LegacyGraphQLMode e : values()) {
BY_LABEL.put(e.label, e);
}
}
public static LegacyGraphQLMode valueOfLabel(String label) {
return BY_LABEL.get(label);
}
}
/** Optimization type for bicycling legs */
public enum LegacyGraphQLOptimizeType {
Quick("QUICK"),
Safe("SAFE"),
Flat("FLAT"),
Greenways("GREENWAYS"),
Triangle("TRIANGLE");
public final String label;
LegacyGraphQLOptimizeType(String label) {
this.label = label;
}
private static final Map BY_LABEL = new HashMap<>();
static {
for (LegacyGraphQLOptimizeType e : values()) {
BY_LABEL.put(e.label, e);
}
}
public static LegacyGraphQLOptimizeType valueOfLabel(String label) {
return BY_LABEL.get(label);
}
}
public static class LegacyGraphQLPatternTripsForDateArgs {
private String _serviceDate;
public LegacyGraphQLPatternTripsForDateArgs(Map args) {
if (args != null) {
this._serviceDate = (String) args.get("serviceDate");
}
}
public String getLegacyGraphQLServiceDate() { return this._serviceDate; }
}
public enum LegacyGraphQLPickupDropoffType {
Scheduled("SCHEDULED"),
None("NONE"),
CallAgency("CALL_AGENCY"),
CoordinateWithDriver("COORDINATE_WITH_DRIVER");
public final String label;
LegacyGraphQLPickupDropoffType(String label) {
this.label = label;
}
private static final Map BY_LABEL = new HashMap<>();
static {
for (LegacyGraphQLPickupDropoffType e : values()) {
BY_LABEL.put(e.label, e);
}
}
public static LegacyGraphQLPickupDropoffType valueOfLabel(String label) {
return BY_LABEL.get(label);
}
}
/**
* Additional qualifier for a transport mode.
* Note that qualifiers can only be used with certain transport modes.
*/
public enum LegacyGraphQLQualifier {
Rent("RENT"),
Have("HAVE"),
Park("PARK"),
Keep("KEEP"),
Pickup("PICKUP");
public final String label;
LegacyGraphQLQualifier(String label) {
this.label = label;
}
private static final Map BY_LABEL = new HashMap<>();
static {
for (LegacyGraphQLQualifier e : values()) {
BY_LABEL.put(e.label, e);
}
}
public static LegacyGraphQLQualifier valueOfLabel(String label) {
return BY_LABEL.get(label);
}
}
public static class LegacyGraphQLQueryTypeNodeArgs {
private graphql.relay.Relay.ResolvedGlobalId _id;
public LegacyGraphQLQueryTypeNodeArgs(Map args) {
if (args != null) {
this._id = (graphql.relay.Relay.ResolvedGlobalId) args.get("id");
}
}
public graphql.relay.Relay.ResolvedGlobalId getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeAgencyArgs {
private String _id;
public LegacyGraphQLQueryTypeAgencyArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeStopsArgs {
private Iterable _ids;
private String _name;
public LegacyGraphQLQueryTypeStopsArgs(Map args) {
if (args != null) {
this._ids = (Iterable) args.get("ids");
this._name = (String) args.get("name");
}
}
public Iterable getLegacyGraphQLIds() { return this._ids; }
public String getLegacyGraphQLName() { return this._name; }
}
public static class LegacyGraphQLQueryTypeStopsByBboxArgs {
private Double _minLat;
private Double _minLon;
private Double _maxLat;
private Double _maxLon;
private Iterable _feeds;
public LegacyGraphQLQueryTypeStopsByBboxArgs(Map args) {
if (args != null) {
this._minLat = (Double) args.get("minLat");
this._minLon = (Double) args.get("minLon");
this._maxLat = (Double) args.get("maxLat");
this._maxLon = (Double) args.get("maxLon");
this._feeds = (Iterable) args.get("feeds");
}
}
public Double getLegacyGraphQLMinLat() { return this._minLat; }
public Double getLegacyGraphQLMinLon() { return this._minLon; }
public Double getLegacyGraphQLMaxLat() { return this._maxLat; }
public Double getLegacyGraphQLMaxLon() { return this._maxLon; }
public Iterable getLegacyGraphQLFeeds() { return this._feeds; }
}
public static class LegacyGraphQLQueryTypeStopsByRadiusArgs {
private Double _lat;
private Double _lon;
private Integer _radius;
private Iterable _feeds;
private String _before;
private String _after;
private Integer _first;
private Integer _last;
public LegacyGraphQLQueryTypeStopsByRadiusArgs(Map args) {
if (args != null) {
this._lat = (Double) args.get("lat");
this._lon = (Double) args.get("lon");
this._radius = (Integer) args.get("radius");
this._feeds = (Iterable) args.get("feeds");
this._before = (String) args.get("before");
this._after = (String) args.get("after");
this._first = (Integer) args.get("first");
this._last = (Integer) args.get("last");
}
}
public Double getLegacyGraphQLLat() { return this._lat; }
public Double getLegacyGraphQLLon() { return this._lon; }
public Integer getLegacyGraphQLRadius() { return this._radius; }
public Iterable getLegacyGraphQLFeeds() { return this._feeds; }
public String getLegacyGraphQLBefore() { return this._before; }
public String getLegacyGraphQLAfter() { return this._after; }
public Integer getLegacyGraphQLFirst() { return this._first; }
public Integer getLegacyGraphQLLast() { return this._last; }
}
public static class LegacyGraphQLQueryTypeNearestArgs {
private Double _lat;
private Double _lon;
private Integer _maxDistance;
private Integer _maxResults;
private Iterable _filterByPlaceTypes;
private Iterable _filterByModes;
private LegacyGraphQLInputFiltersInput _filterByIds;
private String _before;
private String _after;
private Integer _first;
private Integer _last;
public LegacyGraphQLQueryTypeNearestArgs(Map args) {
if (args != null) {
this._lat = (Double) args.get("lat");
this._lon = (Double) args.get("lon");
this._maxDistance = (Integer) args.get("maxDistance");
this._maxResults = (Integer) args.get("maxResults");
if (args.get("filterByPlaceTypes") != null) {
this._filterByPlaceTypes = ((List) args.get("filterByPlaceTypes")).stream().map(LegacyGraphQLFilterPlaceType::valueOfLabel).collect(Collectors.toList());
}
if (args.get("filterByModes") != null) {
this._filterByModes = ((List) args.get("filterByModes")).stream().map(LegacyGraphQLMode::valueOfLabel).collect(Collectors.toList());
}
this._filterByIds = new LegacyGraphQLInputFiltersInput((Map) args.get("filterByIds"));
this._before = (String) args.get("before");
this._after = (String) args.get("after");
this._first = (Integer) args.get("first");
this._last = (Integer) args.get("last");
}
}
public Double getLegacyGraphQLLat() { return this._lat; }
public Double getLegacyGraphQLLon() { return this._lon; }
public Integer getLegacyGraphQLMaxDistance() { return this._maxDistance; }
public Integer getLegacyGraphQLMaxResults() { return this._maxResults; }
public Iterable getLegacyGraphQLFilterByPlaceTypes() { return this._filterByPlaceTypes; }
public Iterable getLegacyGraphQLFilterByModes() { return this._filterByModes; }
public LegacyGraphQLInputFiltersInput getLegacyGraphQLFilterByIds() { return this._filterByIds; }
public String getLegacyGraphQLBefore() { return this._before; }
public String getLegacyGraphQLAfter() { return this._after; }
public Integer getLegacyGraphQLFirst() { return this._first; }
public Integer getLegacyGraphQLLast() { return this._last; }
}
public static class LegacyGraphQLQueryTypeDepartureRowArgs {
private String _id;
public LegacyGraphQLQueryTypeDepartureRowArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeStopArgs {
private String _id;
public LegacyGraphQLQueryTypeStopArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeStationArgs {
private String _id;
public LegacyGraphQLQueryTypeStationArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeStationsArgs {
private Iterable _ids;
private String _name;
public LegacyGraphQLQueryTypeStationsArgs(Map args) {
if (args != null) {
this._ids = (Iterable) args.get("ids");
this._name = (String) args.get("name");
}
}
public Iterable getLegacyGraphQLIds() { return this._ids; }
public String getLegacyGraphQLName() { return this._name; }
}
public static class LegacyGraphQLQueryTypeRoutesArgs {
private Iterable _ids;
private Iterable _feeds;
private String _name;
private Iterable _transportModes;
public LegacyGraphQLQueryTypeRoutesArgs(Map args) {
if (args != null) {
this._ids = (Iterable) args.get("ids");
this._feeds = (Iterable) args.get("feeds");
this._name = (String) args.get("name");
if (args.get("transportModes") != null) {
this._transportModes = ((List) args.get("transportModes")).stream().map(LegacyGraphQLMode::valueOfLabel).collect(Collectors.toList());
}
}
}
public Iterable getLegacyGraphQLIds() { return this._ids; }
public Iterable getLegacyGraphQLFeeds() { return this._feeds; }
public String getLegacyGraphQLName() { return this._name; }
public Iterable getLegacyGraphQLTransportModes() { return this._transportModes; }
}
public static class LegacyGraphQLQueryTypeRouteArgs {
private String _id;
public LegacyGraphQLQueryTypeRouteArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeTripsArgs {
private Iterable _feeds;
public LegacyGraphQLQueryTypeTripsArgs(Map args) {
if (args != null) {
this._feeds = (Iterable) args.get("feeds");
}
}
public Iterable getLegacyGraphQLFeeds() { return this._feeds; }
}
public static class LegacyGraphQLQueryTypeTripArgs {
private String _id;
public LegacyGraphQLQueryTypeTripArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeFuzzyTripArgs {
private String _route;
private Integer _direction;
private String _date;
private Integer _time;
public LegacyGraphQLQueryTypeFuzzyTripArgs(Map args) {
if (args != null) {
this._route = (String) args.get("route");
this._direction = (Integer) args.get("direction");
this._date = (String) args.get("date");
this._time = (Integer) args.get("time");
}
}
public String getLegacyGraphQLRoute() { return this._route; }
public Integer getLegacyGraphQLDirection() { return this._direction; }
public String getLegacyGraphQLDate() { return this._date; }
public Integer getLegacyGraphQLTime() { return this._time; }
}
public static class LegacyGraphQLQueryTypeCancelledTripTimesArgs {
private Iterable _feeds;
private Iterable _routes;
private Iterable _patterns;
private Iterable _trips;
private String _minDate;
private String _maxDate;
private Integer _minDepartureTime;
private Integer _maxDepartureTime;
private Integer _minArrivalTime;
private Integer _maxArrivalTime;
public LegacyGraphQLQueryTypeCancelledTripTimesArgs(Map args) {
if (args != null) {
this._feeds = (Iterable) args.get("feeds");
this._routes = (Iterable) args.get("routes");
this._patterns = (Iterable) args.get("patterns");
this._trips = (Iterable) args.get("trips");
this._minDate = (String) args.get("minDate");
this._maxDate = (String) args.get("maxDate");
this._minDepartureTime = (Integer) args.get("minDepartureTime");
this._maxDepartureTime = (Integer) args.get("maxDepartureTime");
this._minArrivalTime = (Integer) args.get("minArrivalTime");
this._maxArrivalTime = (Integer) args.get("maxArrivalTime");
}
}
public Iterable getLegacyGraphQLFeeds() { return this._feeds; }
public Iterable getLegacyGraphQLRoutes() { return this._routes; }
public Iterable getLegacyGraphQLPatterns() { return this._patterns; }
public Iterable getLegacyGraphQLTrips() { return this._trips; }
public String getLegacyGraphQLMinDate() { return this._minDate; }
public String getLegacyGraphQLMaxDate() { return this._maxDate; }
public Integer getLegacyGraphQLMinDepartureTime() { return this._minDepartureTime; }
public Integer getLegacyGraphQLMaxDepartureTime() { return this._maxDepartureTime; }
public Integer getLegacyGraphQLMinArrivalTime() { return this._minArrivalTime; }
public Integer getLegacyGraphQLMaxArrivalTime() { return this._maxArrivalTime; }
}
public static class LegacyGraphQLQueryTypePatternArgs {
private String _id;
public LegacyGraphQLQueryTypePatternArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeClusterArgs {
private String _id;
public LegacyGraphQLQueryTypeClusterArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeAlertsArgs {
private Iterable _feeds;
private Iterable _severityLevel;
private Iterable _effect;
private Iterable _cause;
public LegacyGraphQLQueryTypeAlertsArgs(Map args) {
if (args != null) {
this._feeds = (Iterable) args.get("feeds");
if (args.get("severityLevel") != null) {
this._severityLevel = ((List) args.get("severityLevel")).stream().map(LegacyGraphQLAlertSeverityLevelType::valueOfLabel).collect(Collectors.toList());
}
if (args.get("effect") != null) {
this._effect = ((List) args.get("effect")).stream().map(LegacyGraphQLAlertEffectType::valueOfLabel).collect(Collectors.toList());
}
if (args.get("cause") != null) {
this._cause = ((List) args.get("cause")).stream().map(LegacyGraphQLAlertCauseType::valueOfLabel).collect(Collectors.toList());
}
}
}
public Iterable getLegacyGraphQLFeeds() { return this._feeds; }
public Iterable getLegacyGraphQLSeverityLevel() { return this._severityLevel; }
public Iterable getLegacyGraphQLEffect() { return this._effect; }
public Iterable getLegacyGraphQLCause() { return this._cause; }
}
public static class LegacyGraphQLQueryTypeBikeRentalStationArgs {
private String _id;
public LegacyGraphQLQueryTypeBikeRentalStationArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeBikeParkArgs {
private String _id;
public LegacyGraphQLQueryTypeBikeParkArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypeCarParksArgs {
private Iterable _ids;
public LegacyGraphQLQueryTypeCarParksArgs(Map args) {
if (args != null) {
this._ids = (Iterable) args.get("ids");
}
}
public Iterable getLegacyGraphQLIds() { return this._ids; }
}
public static class LegacyGraphQLQueryTypeCarParkArgs {
private String _id;
public LegacyGraphQLQueryTypeCarParkArgs(Map args) {
if (args != null) {
this._id = (String) args.get("id");
}
}
public String getLegacyGraphQLId() { return this._id; }
}
public static class LegacyGraphQLQueryTypePlanArgs {
private String _date;
private String _time;
private LegacyGraphQLInputCoordinatesInput _from;
private LegacyGraphQLInputCoordinatesInput _to;
private String _fromPlace;
private String _toPlace;
private Boolean _wheelchair;
private Integer _numItineraries;
private Long _searchWindow;
private Double _maxWalkDistance;
private Integer _maxPreTransitTime;
private Double _carParkCarLegWeight;
private Double _itineraryFiltering;
private Double _walkReluctance;
private Double _walkOnStreetReluctance;
private Double _waitReluctance;
private Double _waitAtBeginningFactor;
private Double _walkSpeed;
private Double _bikeSpeed;
private Integer _bikeSwitchTime;
private Integer _bikeSwitchCost;
private LegacyGraphQLOptimizeType _optimize;
private LegacyGraphQLInputTriangleInput _triangle;
private Boolean _arriveBy;
private Iterable _intermediatePlaces;
private LegacyGraphQLInputPreferredInput _preferred;
private LegacyGraphQLInputUnpreferredInput _unpreferred;
private Integer _walkBoardCost;
private Integer _bikeBoardCost;
private LegacyGraphQLInputBannedInput _banned;
private Integer _transferPenalty;
private Boolean _batch;
private Iterable _transportModes;
private LegacyGraphQLInputModeWeightInput _modeWeight;
private Boolean _allowBikeRental;
private Integer _boardSlack;
private Integer _alightSlack;
private Integer _minTransferTime;
private Integer _nonpreferredTransferPenalty;
private Integer _maxTransfers;
private String _startTransitStopId;
private String _startTransitTripId;
private Long _claimInitialWait;
private Boolean _reverseOptimizeOnTheFly;
private Boolean _omitCanceled;
private Boolean _ignoreRealtimeUpdates;
private Boolean _disableRemainingWeightHeuristic;
private String _locale;
private Iterable _allowedTicketTypes;
private Integer _heuristicStepsPerMainStep;
private Boolean _compactLegsByReversedSearch;
private Iterable _allowedBikeRentalNetworks;
public LegacyGraphQLQueryTypePlanArgs(Map args) {
if (args != null) {
this._date = (String) args.get("date");
this._time = (String) args.get("time");
this._from = new LegacyGraphQLInputCoordinatesInput((Map) args.get("from"));
this._to = new LegacyGraphQLInputCoordinatesInput((Map) args.get("to"));
this._fromPlace = (String) args.get("fromPlace");
this._toPlace = (String) args.get("toPlace");
this._wheelchair = (Boolean) args.get("wheelchair");
this._numItineraries = (Integer) args.get("numItineraries");
this._searchWindow = (Long) args.get("searchWindow");
this._maxWalkDistance = (Double) args.get("maxWalkDistance");
this._maxPreTransitTime = (Integer) args.get("maxPreTransitTime");
this._carParkCarLegWeight = (Double) args.get("carParkCarLegWeight");
this._itineraryFiltering = (Double) args.get("itineraryFiltering");
this._walkReluctance = (Double) args.get("walkReluctance");
this._walkOnStreetReluctance = (Double) args.get("walkOnStreetReluctance");
this._waitReluctance = (Double) args.get("waitReluctance");
this._waitAtBeginningFactor = (Double) args.get("waitAtBeginningFactor");
this._walkSpeed = (Double) args.get("walkSpeed");
this._bikeSpeed = (Double) args.get("bikeSpeed");
this._bikeSwitchTime = (Integer) args.get("bikeSwitchTime");
this._bikeSwitchCost = (Integer) args.get("bikeSwitchCost");
if (args.get("optimize") instanceof LegacyGraphQLOptimizeType) {
this._optimize = (LegacyGraphQLOptimizeType) args.get("optimize");
} else {
this._optimize = LegacyGraphQLOptimizeType.valueOfLabel((String) args.get("optimize"));
}
this._triangle = new LegacyGraphQLInputTriangleInput((Map) args.get("triangle"));
this._arriveBy = (Boolean) args.get("arriveBy");
if (args.get("intermediatePlaces") != null) {
this._intermediatePlaces = ((List