public void update(FeedMessage message) { alertPatchService.expire(patchIds); patchIds.clear(); for (FeedEntity entity : message.getEntityList()) { if (!entity.hasAlert()) { continue; } GtfsRealtime.Alert alert = entity.getAlert(); String id = entity.getId(); handleAlert(id, alert); } }
checkW009(entity, trip, errorListW009); if (entity.hasAlert()) { GtfsRealtime.Alert alert = entity.getAlert(); List<GtfsRealtime.EntitySelector> entitySelectors = alert.getInformedEntityList();
if (entity.hasAlert()) { checkAlertE001(entity, e001List);
if (entity.hasAlert()) { List<GtfsRealtime.EntitySelector> informedEntityList = entity.getAlert().getInformedEntityList(); for (GtfsRealtime.EntitySelector entitySelector : informedEntityList) {
@Override public AlertModel readFeedEntity(FeedEntity entity, long timestamp) { if (entity.hasAlert()) { AlertModel alrt = new AlertModel(); alrt.setTimestamp(new Date(timestamp));
countEntityTypes++; if (entity.hasAlert() && !foundSa) { foundSa = true; countEntityTypes++;
if (e.hasAlert()) { GtfsRealtime.Alert a = e.getAlert(); if (a.hasEffect() && a.getEffect().equals(GtfsRealtime.Alert.Effect.DETOUR)) {
if (hasAlert()) { if (!getAlert().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 (hasAlert()) { if (!getAlert().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; }