if (entity.hasVehicle() && hasVehicleId(entity.getVehicle())) { vehiclePositionCount++; String vehicleId = entity.getVehicle().getVehicle().getId();
if (!fe.hasVehicle()) { continue;
continue; if (!entity.hasVehicle()) { continue;
if (entity.hasVehicle()) { GtfsRealtime.VehiclePosition vehiclePosition = entity.getVehicle(); long vehicleTimestamp = vehiclePosition.getTimestamp();
if (entity.hasVehicle() && entity.getVehicle().hasTrip()) { GtfsRealtime.TripDescriptor trip = entity.getVehicle().getTrip(); if (!trip.hasTripId()) {
if (!entity.hasVehicle()) continue;
if (entity.hasVehicle()) { GtfsRealtime.VehiclePosition v = entity.getVehicle();
if (entity.hasVehicle()) { GtfsRealtime.VehiclePosition vehiclePosition = entity.getVehicle();
if (entity.hasVehicle()) { GtfsRealtime.VehiclePosition vehiclePosition = entity.getVehicle(); if (vehiclePosition.hasTrip() &&
if (entity.hasVehicle()) { GtfsRealtime.VehiclePosition v = entity.getVehicle(); if (v.hasStopId()) {
return null; VehiclePositionModel vpm = new VehiclePositionModel(); if (entity.hasVehicle()) { if (entity.getVehicle().hasTimestamp()) { timestamp = entity.getVehicle().getTimestamp() * 1000;
countEntityTypes++; if (entity.hasVehicle() && !foundVp) { foundVp = true; countEntityTypes++;
if (hasVehicle()) { if (!getVehicle().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; }
private void cacheVehicleLocations(FeedMessage vehiclePositions) { for (FeedEntity entity : vehiclePositions.getEntityList()) { if (entity.hasVehicle()) { GtfsRealtime.VehiclePosition vehicle = entity.getVehicle(); _vehicleLocationListener.handleRawPosition( new AgencyAndId(getAgencyIds().get(0), vehicle.getVehicle().getId()), vehicle.getPosition().getLatitude(), vehicle.getPosition().getLongitude(), vehicle.getTimestamp()); } } }
if (hasVehicle()) { if (!getVehicle().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; }