All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.ext.legacygraphqlapi.generated.LegacyGraphQLDataFetchers Maven / Gradle / Ivy

//THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
package org.opentripplanner.ext.legacygraphqlapi.generated;

import org.opentripplanner.model.Agency;
import org.opentripplanner.ext.legacygraphqlapi.model.LegacyGraphQLRouteTypeModel;
import org.opentripplanner.routing.alertpatch.TransitAlert;
import org.opentripplanner.routing.vehicle_parking.VehicleParking;
import org.opentripplanner.routing.vehicle_rental.VehicleRentalPlace;
import org.opentripplanner.routing.vehicle_rental.VehicleRentalStationUris;
import org.opentripplanner.routing.vehicle_rental.VehicleRentalStation;
import org.opentripplanner.routing.vehicle_rental.VehicleRentalVehicle;
import org.opentripplanner.routing.vehicle_rental.VehicleRentalStationUris;
import org.opentripplanner.routing.vehicle_parking.VehicleParking;
import org.locationtech.jts.geom.Coordinate;
import org.opentripplanner.api.resource.DebugOutput;
import org.opentripplanner.routing.graphfinder.PatternAtStop;
import org.opentripplanner.common.model.P2;
import java.util.Map;
import org.opentripplanner.routing.core.FareComponent;
import org.locationtech.jts.geom.Geometry;
import org.opentripplanner.model.plan.Itinerary;
import org.opentripplanner.model.plan.Leg;
import org.opentripplanner.model.TripPattern;
import org.opentripplanner.model.plan.StopArrival;
import org.opentripplanner.routing.graphfinder.PlaceAtDistance;
import graphql.relay.Connection;
import graphql.relay.Edge;
import org.opentripplanner.model.Route;
import org.opentripplanner.model.plan.WalkStep;
import org.opentripplanner.routing.graphfinder.NearbyStop;
import graphql.relay.Connection;
import graphql.relay.Edge;
import org.opentripplanner.ext.legacygraphqlapi.model.LegacyGraphQLStopOnRouteModel;
import org.opentripplanner.ext.legacygraphqlapi.model.LegacyGraphQLStopOnTripModel;
import org.opentripplanner.model.TripTimeOnDate;
import org.opentripplanner.model.StopTimesInPattern;
import org.opentripplanner.routing.core.FareRuleSet;
import java.util.Map;
import org.opentripplanner.model.Trip;
import org.opentripplanner.ext.legacygraphqlapi.model.LegacyGraphQLUnknownModel;
import org.opentripplanner.routing.vehicle_parking.VehicleParking;
import org.opentripplanner.routing.vehicle_parking.VehicleParkingSpaces;
import org.opentripplanner.routing.vehicle_parking.VehicleParkingState;
import org.opentripplanner.model.SystemNotice;
import graphql.schema.TypeResolver;
import graphql.schema.DataFetcher;

public class LegacyGraphQLDataFetchers {

    /**
     * A public transport agency
     */
    public interface LegacyGraphQLAgency {

        public DataFetcher> alerts();

        public DataFetcher fareUrl();

        public DataFetcher gtfsId();

        public DataFetcher id();

        public DataFetcher lang();

        public DataFetcher name();

        public DataFetcher phone();

        public DataFetcher> routes();

        public DataFetcher timezone();

        public DataFetcher url();
    }

    /**
     * Alert of a current or upcoming disruption in public transportation
     */
    public interface LegacyGraphQLAlert {

        public DataFetcher agency();

        public DataFetcher alertCause();

        public DataFetcher alertDescriptionText();

        public DataFetcher>> alertDescriptionTextTranslations();

        public DataFetcher alertEffect();

        public DataFetcher alertHash();

        public DataFetcher alertHeaderText();

        public DataFetcher>> alertHeaderTextTranslations();

        public DataFetcher alertSeverityLevel();

        public DataFetcher alertUrl();

        public DataFetcher>> alertUrlTranslations();

        public DataFetcher effectiveEndDate();

        public DataFetcher effectiveStartDate();

        public DataFetcher> entities();

        public DataFetcher feed();

        public DataFetcher id();

        public DataFetcher> patterns();

        public DataFetcher route();

        public DataFetcher stop();

        public DataFetcher trip();
    }

    /**
     * Entity related to an alert
     */
    public interface LegacyGraphQLAlertEntity extends TypeResolver {
    }

    /**
     * Bike park represents a location where bicycles can be parked.
     */
    public interface LegacyGraphQLBikePark {

        public DataFetcher bikeParkId();

        public DataFetcher id();

        public DataFetcher lat();

        public DataFetcher lon();

        public DataFetcher name();

        public DataFetcher> openingHours();

        public DataFetcher realtime();

        public DataFetcher spacesAvailable();

        public DataFetcher> tags();
    }

    /**
     * Bike rental station represents a location where users can rent bicycles for a fee.
     */
    public interface LegacyGraphQLBikeRentalStation {

        public DataFetcher allowDropoff();

        public DataFetcher allowDropoffNow();

        public DataFetcher allowOverloading();

        public DataFetcher allowPickup();

        public DataFetcher allowPickupNow();

        public DataFetcher bikesAvailable();

        public DataFetcher capacity();

        public DataFetcher id();

        public DataFetcher lat();

        public DataFetcher lon();

        public DataFetcher name();

        public DataFetcher> networks();

        public DataFetcher operative();

        public DataFetcher realtime();

        public DataFetcher rentalUris();

        public DataFetcher spacesAvailable();

        public DataFetcher state();

        public DataFetcher stationId();
    }

    public interface LegacyGraphQLBikeRentalStationUris {

        public DataFetcher android();

        public DataFetcher ios();

        public DataFetcher web();
    }

    public interface LegacyGraphQLBookingInfo {

        public DataFetcher contactInfo();

        public DataFetcher dropOffMessage();

        public DataFetcher earliestBookingTime();

        public DataFetcher latestBookingTime();

        public DataFetcher maximumBookingNoticeSeconds();

        public DataFetcher message();

        public DataFetcher minimumBookingNoticeSeconds();

        public DataFetcher pickupMessage();
    }

    public interface LegacyGraphQLBookingTime {

        public DataFetcher daysPrior();

        public DataFetcher time();
    }

    /**
     * Car park represents a location where cars can be parked.
     */
    public interface LegacyGraphQLCarPark {

        public DataFetcher carParkId();

        public DataFetcher id();

        public DataFetcher lat();

        public DataFetcher lon();

        public DataFetcher maxCapacity();

        public DataFetcher name();

        public DataFetcher> openingHours();

        public DataFetcher realtime();

        public DataFetcher spacesAvailable();

        public DataFetcher> tags();
    }

    /**
     * Cluster is a list of stops grouped by name and proximity
     */
    public interface LegacyGraphQLCluster {

        public DataFetcher gtfsId();

        public DataFetcher id();

        public DataFetcher lat();

        public DataFetcher lon();

        public DataFetcher name();

        public DataFetcher> stops();
    }

    public interface LegacyGraphQLContactInfo {

        public DataFetcher additionalDetails();

        public DataFetcher bookingUrl();

        public DataFetcher contactPerson();

        public DataFetcher eMail();

        public DataFetcher faxNumber();

        public DataFetcher infoUrl();

        public DataFetcher phoneNumber();
    }

    public interface LegacyGraphQLCoordinates {

        public DataFetcher lat();

        public DataFetcher lon();
    }

    /**
     * Departure row is a location, which lists departures of a certain pattern from a stop.
     * Departure rows are identified with the pattern, so querying departure rows will return only
     * departures from one stop per pattern
     */
    public interface LegacyGraphQLDepartureRow {

        public DataFetcher id();

        public DataFetcher lat();

        public DataFetcher lon();

        public DataFetcher pattern();

        public DataFetcher stop();

        public DataFetcher> stoptimes();
    }

    /**
     * A feed provides routing data (stops, routes, timetables, etc.) from one or more public
     * transport agencies.
     */
    public interface LegacyGraphQLFeed {

        public DataFetcher> agencies();

        public DataFetcher> alerts();

        public DataFetcher feedId();
    }

    public interface LegacyGraphQLGeometry {

        public DataFetcher length();

        public DataFetcher points();
    }

    public interface LegacyGraphQLItinerary {

        public DataFetcher arrivedAtDestinationWithRentedBicycle();

        public DataFetcher duration();

        public DataFetcher elevationGained();

        public DataFetcher elevationLost();

        public DataFetcher endTime();

        public DataFetcher>> fares();

        public DataFetcher generalizedCost();

        public DataFetcher> legs();

        public DataFetcher startTime();

        public DataFetcher> systemNotices();

        public DataFetcher waitingTime();

        public DataFetcher walkDistance();

        public DataFetcher walkTime();
    }

    public interface LegacyGraphQLLeg {

        public DataFetcher agency();

        public DataFetcher arrivalDelay();

        public DataFetcher departureDelay();

        public DataFetcher distance();

        public DataFetcher dropOffBookingInfo();

        public DataFetcher dropoffType();

        public DataFetcher duration();

        public DataFetcher endTime();

        public DataFetcher from();

        public DataFetcher generalizedCost();

        public DataFetcher interlineWithPreviousLeg();

        public DataFetcher intermediatePlace();

        public DataFetcher> intermediatePlaces();

        public DataFetcher> intermediateStops();

        public DataFetcher legGeometry();

        public DataFetcher mode();

        public DataFetcher pickupBookingInfo();

        public DataFetcher pickupType();

        public DataFetcher realTime();

        public DataFetcher realtimeState();

        public DataFetcher rentedBike();

        public DataFetcher route();

        public DataFetcher serviceDate();

        public DataFetcher startTime();

        public DataFetcher> steps();

        public DataFetcher to();

        public DataFetcher transitLeg();

        public DataFetcher trip();

        public DataFetcher walkingBike();
    }

    /**
     * A span of time.
     */
    public interface LegacyGraphQLLocalTimeSpan {

        public DataFetcher from();

        public DataFetcher to();
    }

    /**
     * A date using the local timezone of the object that can contain timespans.
     */
    public interface LegacyGraphQLLocalTimeSpanDate {

        public DataFetcher date();

        public DataFetcher> timeSpans();
    }

    /**
     * An object with an ID
     */
    public interface LegacyGraphQLNode extends TypeResolver {

        default public DataFetcher id() {return null;}
    }

    /**
     * Information about pagination in a connection.
     */
    public interface LegacyGraphQLPageInfo {

        public DataFetcher endCursor();

        public DataFetcher hasNextPage();

        public DataFetcher hasPreviousPage();

        public DataFetcher startCursor();
    }

    /**
     * Pattern is sequence of stops used by trips on a specific direction and variant of a route.
     * Most routes have only two patterns: one for outbound trips and one for inbound trips
     */
    public interface LegacyGraphQLPattern {

        public DataFetcher> alerts();

        public DataFetcher code();

        public DataFetcher directionId();

        public DataFetcher> geometry();

        public DataFetcher headsign();

        public DataFetcher id();

        public DataFetcher name();

        public DataFetcher patternGeometry();

        public DataFetcher route();

        public DataFetcher semanticHash();

        public DataFetcher> stops();

        public DataFetcher> trips();

        public DataFetcher> tripsForDate();
    }

    public interface LegacyGraphQLPlace {

        public DataFetcher arrivalTime();

        public DataFetcher bikePark();

        public DataFetcher bikeRentalStation();

        public DataFetcher carPark();

        public DataFetcher departureTime();

        public DataFetcher lat();

        public DataFetcher lon();

        public DataFetcher name();

        public DataFetcher rentalVehicle();

        public DataFetcher stop();

        public DataFetcher vehicleParking();

        public DataFetcher vehicleRentalStation();

        public DataFetcher vertexType();
    }

    /**
     * Interface for places, e.g. stops, stations, parking areas..
     */
    public interface LegacyGraphQLPlaceInterface extends TypeResolver {

        default public DataFetcher id() {return null;}

        default public DataFetcher lat() {return null;}

        default public DataFetcher lon() {return null;}
    }

    public interface LegacyGraphQLPlan {

        public DataFetcher date();

        public DataFetcher debugOutput();

        public DataFetcher from();

        public DataFetcher> itineraries();

        public DataFetcher> messageEnums();

        public DataFetcher> messageStrings();

        public DataFetcher nextDateTime();

        public DataFetcher nextPageCursor();

        public DataFetcher prevDateTime();

        public DataFetcher previousPageCursor();

        public DataFetcher searchWindowUsed();

        public DataFetcher to();
    }

    public interface LegacyGraphQLQueryType {

        public DataFetcher> agencies();

        public DataFetcher agency();

        public DataFetcher> alerts();

        public DataFetcher bikePark();

        public DataFetcher> bikeParks();

        public DataFetcher bikeRentalStation();

        public DataFetcher> bikeRentalStations();

        public DataFetcher> cancelledTripTimes();

        public DataFetcher carPark();

        public DataFetcher> carParks();

        public DataFetcher cluster();

        public DataFetcher> clusters();

        public DataFetcher departureRow();

        public DataFetcher> feeds();

        public DataFetcher fuzzyTrip();

        public DataFetcher> nearest();

        public DataFetcher node();

        public DataFetcher pattern();

        public DataFetcher> patterns();

        public DataFetcher> plan();

        public DataFetcher rentalVehicle();

        public DataFetcher> rentalVehicles();

        public DataFetcher route();

        public DataFetcher> routes();

        public DataFetcher serviceTimeRange();

        public DataFetcher station();

        public DataFetcher> stations();

        public DataFetcher stop();

        public DataFetcher> stops();

        public DataFetcher> stopsByBbox();

        public DataFetcher> stopsByRadius();

        public DataFetcher> ticketTypes();

        public DataFetcher trip();

        public DataFetcher> trips();

        public DataFetcher vehicleParking();

        public DataFetcher> vehicleParkings();

        public DataFetcher vehicleRentalStation();

        public DataFetcher> vehicleRentalStations();

        public DataFetcher viewer();
    }

    /**
     * Rental vehicle represents a vehicle that belongs to a rental network.
     */
    public interface LegacyGraphQLRentalVehicle {

        public DataFetcher allowPickupNow();

        public DataFetcher id();

        public DataFetcher lat();

        public DataFetcher lon();

        public DataFetcher name();

        public DataFetcher network();

        public DataFetcher operative();

        public DataFetcher rentalUris();

        public DataFetcher vehicleId();
    }

    /**
     * Route represents a public transportation service, usually from point A to point B and *back*,
     * shown to customers under a single name, e.g. bus 550. Routes contain patterns (see field
     * `patterns`), which describe different variants of the route, e.g. outbound pattern from point
     * A to point B and inbound pattern from point B to point A.
     */
    public interface LegacyGraphQLRoute {

        public DataFetcher agency();

        public DataFetcher> alerts();

        public DataFetcher bikesAllowed();

        public DataFetcher color();

        public DataFetcher desc();

        public DataFetcher gtfsId();

        public DataFetcher id();

        public DataFetcher longName();

        public DataFetcher mode();

        public DataFetcher> patterns();

        public DataFetcher shortName();

        public DataFetcher> stops();

        public DataFetcher textColor();

        public DataFetcher> trips();

        public DataFetcher type();

        public DataFetcher url();
    }

    /**
     * Route type entity which covers all agencies if agency is null, otherwise only relevant for
     * one agency.
     */
    public interface LegacyGraphQLRouteType {

        public DataFetcher agency();

        public DataFetcher routeType();

        public DataFetcher> routes();
    }

    /**
     * Stop can represent either a single public transport stop, where passengers can board and/or
     * disembark vehicles, or a station, which contains multiple stops. See field `locationType`.
     */
    public interface LegacyGraphQLStop {

        public DataFetcher> alerts();

        public DataFetcher cluster();

        public DataFetcher code();

        public DataFetcher desc();

        public DataFetcher direction();

        public DataFetcher geometries();

        public DataFetcher gtfsId();

        public DataFetcher id();

        public DataFetcher lat();

        public DataFetcher locationType();

        public DataFetcher lon();

        public DataFetcher name();

        public DataFetcher parentStation();

        public DataFetcher> patterns();

        public DataFetcher platformCode();

        public DataFetcher> routes();

        public DataFetcher> stopTimesForPattern();

        public DataFetcher> stops();

        public DataFetcher> stoptimesForPatterns();

        public DataFetcher> stoptimesForServiceDate();

        public DataFetcher> stoptimesWithoutPatterns();

        public DataFetcher timezone();

        public DataFetcher> transfers();

        public DataFetcher url();

        public DataFetcher vehicleMode();

        public DataFetcher vehicleType();

        public DataFetcher wheelchairBoarding();

        public DataFetcher zoneId();
    }

    public interface LegacyGraphQLStopGeometries {

        public DataFetcher geoJson();

        public DataFetcher> googleEncoded();
    }

    /**
     * Stop that should (but not guaranteed) to exist on a route.
     */
    public interface LegacyGraphQLStopOnRoute {

        public DataFetcher route();

        public DataFetcher stop();
    }

    /**
     * Stop that should (but not guaranteed) to exist on a trip.
     */
    public interface LegacyGraphQLStopOnTrip {

        public DataFetcher stop();

        public DataFetcher trip();
    }

    /**
     * Stoptime represents the time when a specific trip arrives to or departs from a specific
     * stop.
     */
    public interface LegacyGraphQLStoptime {

        public DataFetcher arrivalDelay();

        public DataFetcher departureDelay();

        public DataFetcher dropoffType();

        public DataFetcher headsign();

        public DataFetcher pickupType();

        public DataFetcher realtime();

        public DataFetcher realtimeArrival();

        public DataFetcher realtimeDeparture();

        public DataFetcher realtimeState();

        public DataFetcher scheduledArrival();

        public DataFetcher scheduledDeparture();

        public DataFetcher serviceDay();

        public DataFetcher stop();

        public DataFetcher timepoint();

        public DataFetcher trip();
    }

    /**
     * Stoptimes grouped by pattern
     */
    public interface LegacyGraphQLStoptimesInPattern {

        public DataFetcher pattern();

        public DataFetcher> stoptimes();
    }

    /**
     * A system notice is used to tag elements with system information for debugging or other system
     * related purpose. One use-case is to run a routing search with 'debugItineraryFilter: true'.
     * This will then tag itineraries instead of removing them from the result. This make it
     * possible to inspect the itinerary-filter-chain. A SystemNotice only has english text, because
     * the primary user are technical staff, like testers and developers.
     */
    public interface LegacyGraphQLSystemNotice {

        public DataFetcher tag();

        public DataFetcher text();
    }

    /**
     * Describes ticket type
     */
    public interface LegacyGraphQLTicketType {

        public DataFetcher currency();

        public DataFetcher fareId();

        public DataFetcher id();

        public DataFetcher price();

        public DataFetcher> zones();
    }

    /**
     * Text with language
     */
    public interface LegacyGraphQLTranslatedString {

        public DataFetcher language();

        public DataFetcher text();
    }

    /**
     * Trip is a specific occurance of a pattern, usually identified by route, direction on the
     * route and exact departure time.
     */
    public interface LegacyGraphQLTrip {

        public DataFetcher> activeDates();

        public DataFetcher> alerts();

        public DataFetcher arrivalStoptime();

        public DataFetcher bikesAllowed();

        public DataFetcher blockId();

        public DataFetcher departureStoptime();

        public DataFetcher directionId();

        public DataFetcher>> geometry();

        public DataFetcher gtfsId();

        public DataFetcher id();

        public DataFetcher pattern();

        public DataFetcher route();

        public DataFetcher routeShortName();

        public DataFetcher semanticHash();

        public DataFetcher serviceId();

        public DataFetcher shapeId();

        public DataFetcher> stops();

        public DataFetcher> stoptimes();

        public DataFetcher> stoptimesForDate();

        public DataFetcher tripGeometry();

        public DataFetcher tripHeadsign();

        public DataFetcher tripShortName();

        public DataFetcher wheelchairAccessible();
    }

    /**
     * This is used for alert entities that we don't explicitly handle or they are missing.
     */
    public interface LegacyGraphQLUnknown {

        public DataFetcher description();
    }

    /**
     * Vehicle parking represents a location where bicycles or cars can be parked.
     */
    public interface LegacyGraphQLVehicleParking {

        public DataFetcher anyCarPlaces();

        public DataFetcher availability();

        public DataFetcher bicyclePlaces();

        public DataFetcher capacity();

        public DataFetcher carPlaces();

        public DataFetcher detailsUrl();

        public DataFetcher id();

        public DataFetcher imageUrl();

        public DataFetcher lat();

        public DataFetcher lon();

        public DataFetcher name();

        public DataFetcher note();

        public DataFetcher realtime();

        public DataFetcher state();

        public DataFetcher> tags();

        public DataFetcher vehicleParkingId();

        public DataFetcher wheelchairAccessibleCarPlaces();
    }

    /**
     * The number of spaces by type. null if unknown.
     */
    public interface LegacyGraphQLVehicleParkingSpaces {

        public DataFetcher bicycleSpaces();

        public DataFetcher carSpaces();

        public DataFetcher wheelchairAccessibleCarSpaces();
    }

    /**
     * Vehicle rental station represents a location where users can rent bicycles etc. for a fee.
     */
    public interface LegacyGraphQLVehicleRentalStation {

        public DataFetcher allowDropoff();

        public DataFetcher allowDropoffNow();

        public DataFetcher allowOverloading();

        public DataFetcher allowPickup();

        public DataFetcher allowPickupNow();

        public DataFetcher capacity();

        public DataFetcher id();

        public DataFetcher lat();

        public DataFetcher lon();

        public DataFetcher name();

        public DataFetcher network();

        public DataFetcher operative();

        public DataFetcher realtime();

        public DataFetcher rentalUris();

        public DataFetcher spacesAvailable();

        public DataFetcher stationId();

        public DataFetcher vehiclesAvailable();
    }

    public interface LegacyGraphQLVehicleRentalUris {

        public DataFetcher android();

        public DataFetcher ios();

        public DataFetcher web();
    }

    public interface LegacyGraphQLDebugOutput {

        public DataFetcher pathCalculationTime();

        public DataFetcher precalculationTime();

        public DataFetcher renderingTime();

        public DataFetcher timedOut();

        public DataFetcher totalTime();
    }

    public interface LegacyGraphQLElevationProfileComponent {

        public DataFetcher distance();

        public DataFetcher elevation();
    }

    public interface LegacyGraphQLFare {

        public DataFetcher cents();

        public DataFetcher> components();

        public DataFetcher currency();

        public DataFetcher type();
    }

    /**
     * Component of the fare (i.e. ticket) for a part of the itinerary
     */
    public interface LegacyGraphQLFareComponent {

        public DataFetcher cents();

        public DataFetcher currency();

        public DataFetcher fareId();

        public DataFetcher> routes();
    }

    public interface LegacyGraphQLPlaceAtDistance {

        public DataFetcher distance();

        public DataFetcher id();

        public DataFetcher place();
    }

    /**
     * A connection to a list of items.
     */
    public interface LegacyGraphQLPlaceAtDistanceConnection {

        public DataFetcher>> edges();

        public DataFetcher pageInfo();
    }

    /**
     * An edge in a connection.
     */
    public interface LegacyGraphQLPlaceAtDistanceEdge {

        public DataFetcher cursor();

        public DataFetcher node();
    }

    /**
     * Time range for which the API has data available
     */
    public interface LegacyGraphQLServiceTimeRange {

        public DataFetcher end();

        public DataFetcher start();
    }

    public interface LegacyGraphQLStep {

        public DataFetcher distance();

        public DataFetcher>> elevationProfile();

        public DataFetcher lat();

        public DataFetcher lon();
    }

    public interface LegacyGraphQLStopAtDistance {

        public DataFetcher distance();

        public DataFetcher id();

        public DataFetcher stop();
    }

    /**
     * A connection to a list of items.
     */
    public interface LegacyGraphQLStopAtDistanceConnection {

        public DataFetcher>> edges();

        public DataFetcher pageInfo();
    }

    /**
     * An edge in a connection.
     */
    public interface LegacyGraphQLStopAtDistanceEdge {

        public DataFetcher cursor();

        public DataFetcher node();
    }

}