public Optional<GtfsReader.TripWithStopTimes> getTripUpdate(GTFSFeed staticFeed, GtfsRealtime.TripDescriptor tripDescriptor, Label.Transition boardEdge, Instant boardTime) { logger.trace("getTripUpdate {}", tripDescriptor); if (!isThisRealtimeUpdateAboutThisLineRun(boardEdge.edge.edgeIteratorState, boardTime)) { return Optional.empty(); } else { GtfsRealtime.TripDescriptor normalizedTripDescriptor = normalize(tripDescriptor); return feedMessages.values().stream().flatMap(feedMessage -> feedMessage.getEntityList().stream() .filter(e -> e.hasTripUpdate()) .map(e -> e.getTripUpdate()) .filter(tu -> normalize(tu.getTrip()).equals(normalizedTripDescriptor)) .map(tu -> toTripWithStopTimes(staticFeed, tu))) .findFirst(); } }
if (feedEntity.hasTripUpdate()) updates.add(feedEntity.getTripUpdate());
if (feedEntity.hasTripUpdate()) updates.add(feedEntity.getTripUpdate());
if (entity.hasTripUpdate()) { GtfsRealtime.TripUpdate tripUpdate = entity.getTripUpdate(); long tripUpdateTimestamp = tripUpdate.getTimestamp();
if (entity.hasTripUpdate()) { GtfsRealtime.TripUpdate tripUpdate = entity.getTripUpdate(); checkE041(entity, tripUpdate, e041List);
if (entity.hasTripUpdate()) { GtfsRealtime.TripUpdate tripUpdate = entity.getTripUpdate(); if (!tripUpdate.getTrip().hasTripId()) {
if (entity.hasTripUpdate() && hasTripId(entity.getTripUpdate())) { tripUpdateCount++; String tripId = entity.getTripUpdate().getTrip().getTripId();
if (!fe.hasTripUpdate()) { continue;
if (entity.hasTripUpdate()) { GtfsRealtime.TripUpdate tripUpdate = entity.getTripUpdate();
if (entity.hasTripUpdate()) { GtfsRealtime.TripUpdate tripUpdate = entity.getTripUpdate();
for (FeedEntity entity : feed.getEntityList()) if (entity.hasTripUpdate())
if (entity.hasTripUpdate()) { GtfsRealtime.TripUpdate tripUpdate = entity.getTripUpdate();
if (entity.hasTripUpdate()) { GtfsRealtime.TripUpdate tripUpdate = entity.getTripUpdate(); List<GtfsRealtime.TripUpdate.StopTimeUpdate> stopTimeUpdateList = tripUpdate.getStopTimeUpdateList();
@Override public TripUpdateModel readFeedEntity(FeedEntity entity, long timestamp) { if (entity.hasTripUpdate()) { TripUpdateModel tu = new TripUpdateModel(); TripDescriptor t = entity.getTripUpdate().getTrip();
boolean foundSa = false; for (GtfsRealtime.FeedEntity entity : message.getEntityList()) { if (entity.hasTripUpdate() && !foundTu) { foundTu = true; countEntityTypes++;
return false; if (hasTripUpdate()) { if (!getTripUpdate().isInitialized()) { memoizedIsInitialized = 0;
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedEntity other) { if (other == com.google.transit.realtime.GtfsRealtime.FeedEntity.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasIsDeleted()) { setIsDeleted(other.getIsDeleted()); } if (other.hasTripUpdate()) { mergeTripUpdate(other.getTripUpdate()); } if (other.hasVehicle()) { mergeVehicle(other.getVehicle()); } if (other.hasAlert()) { mergeAlert(other.getAlert()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }
if (feedEntity.hasTripUpdate()) { updates.add(feedEntity.getTripUpdate());
return false; if (hasTripUpdate()) { if (!getTripUpdate().isInitialized()) { memoizedIsInitialized = 0;
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.FeedEntity other) { if (other == com.google.transit.realtime.GtfsRealtime.FeedEntity.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasIsDeleted()) { setIsDeleted(other.getIsDeleted()); } if (other.hasTripUpdate()) { mergeTripUpdate(other.getTripUpdate()); } if (other.hasVehicle()) { mergeVehicle(other.getVehicle()); } if (other.hasAlert()) { mergeAlert(other.getAlert()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }