public Builder clear() { super.clear(); if (tripBuilder_ == null) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); } else { tripBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (vehicleBuilder_ == null) { vehicle_ = com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance(); } else { vehicleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (stopTimeUpdateBuilder_ == null) { stopTimeUpdate_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { stopTimeUpdateBuilder_.clear(); } timestamp_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); delay_ = 0; bitField0_ = (bitField0_ & ~0x00000010); return this; }
private void initFields() { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); vehicle_ = com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance(); stopTimeUpdate_ = java.util.Collections.emptyList(); timestamp_ = 0L; delay_ = 0; } private byte memoizedIsInitialized = -1;
/** * <code>optional .transit_realtime.TripDescriptor trip = 4;</code> */ public Builder clearTrip() { if (tripBuilder_ == null) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); onChanged(); } else { tripBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /**
private void initFields() { agencyId_ = ""; routeId_ = ""; routeType_ = 0; trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); stopId_ = ""; } private byte memoizedIsInitialized = -1;
private void initFields() { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); vehicle_ = com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance(); stopTimeUpdate_ = java.util.Collections.emptyList(); timestamp_ = 0L; delay_ = 0; } private byte memoizedIsInitialized = -1;
/** * <code>optional string start_time = 2;</code> * * <pre> * The initially scheduled start time of this trip instance. * When the trip_id corresponds to a non-frequency-based trip, this field * should either be omitted or be equal to the value in the GTFS feed. When * the trip_id correponds to a frequency-based trip, the start_time must be * specified for trip updates and vehicle positions. If the trip corresponds * to exact_times=1 GTFS record, then start_time must be some multiple * (including zero) of headway_secs later than frequencies.txt start_time for * the corresponding time period. If the trip corresponds to exact_times=0, * then its start_time may be arbitrary, and is initially expected to be the * first departure of the trip. Once established, the start_time of this * frequency-based trip should be considered immutable, even if the first * departure time changes -- that time change may instead be reflected in a * StopTimeUpdate. * Format and semantics of the field is same as that of * GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35. * </pre> */ public Builder clearStartTime() { bitField0_ = (bitField0_ & ~0x00000008); startTime_ = getDefaultInstance().getStartTime(); onChanged(); return this; } /**
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripDescriptor other) { if (other == com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) return this; if (other.hasTripId()) { bitField0_ |= 0x00000001;
public Builder clear() { super.clear(); if (tripBuilder_ == null) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); } else { tripBuilder_.clear();
/** * <code>required .transit_realtime.TripDescriptor trip = 1;</code> * * <pre> * The Trip that this message applies to. There can be at most one * TripUpdate entity for each actual trip instance. * If there is none, that means there is no prediction information available. * It does *not* mean that the trip is progressing according to schedule. * </pre> */ public Builder mergeTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { if (tripBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && trip_ != com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.newBuilder(trip_).mergeFrom(value).buildPartial(); } else { trip_ = value; } onChanged(); } else { tripBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .transit_realtime.TripDescriptor trip = 1;</code> * * <pre> * The Trip that this vehicle is serving. * Can be empty or partial if the vehicle can not be identified with a given * trip instance. * </pre> */ public Builder mergeTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { if (tripBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && trip_ != com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.newBuilder(trip_).mergeFrom(value).buildPartial(); } else { trip_ = value; } onChanged(); } else { tripBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional string start_date = 3;</code> * * <pre> * The scheduled start date of this trip instance. * Must be provided to disambiguate trips that are so late as to collide with * a scheduled trip on a next day. For example, for a train that departs 8:00 * and 20:00 every day, and is 12 hours late, there would be two distinct * trips on the same time. * This field can be provided but is not mandatory for schedules in which such * collisions are impossible - for example, a service running on hourly * schedule where a vehicle that is one hour late is not considered to be * related to schedule anymore. * In YYYYMMDD format. * </pre> */ public Builder clearStartDate() { bitField0_ = (bitField0_ & ~0x00000010); startDate_ = getDefaultInstance().getStartDate(); onChanged(); return this; } /**
/** * <code>optional .transit_realtime.TripDescriptor trip = 1;</code> * * <pre> * The Trip that this vehicle is serving. * Can be empty or partial if the vehicle can not be identified with a given * trip instance. * </pre> */ public Builder clearTrip() { if (tripBuilder_ == null) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); onChanged(); } else { tripBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /**
/** * <code>required .transit_realtime.TripDescriptor trip = 1;</code> * * <pre> * The Trip that this message applies to. There can be at most one * TripUpdate entity for each actual trip instance. * If there is none, that means there is no prediction information available. * It does *not* mean that the trip is progressing according to schedule. * </pre> */ public Builder clearTrip() { if (tripBuilder_ == null) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); onChanged(); } else { tripBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /**
/** * <code>optional .transit_realtime.TripDescriptor trip = 4;</code> */ public Builder mergeTrip(com.google.transit.realtime.GtfsRealtime.TripDescriptor value) { if (tripBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && trip_ != com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance()) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.newBuilder(trip_).mergeFrom(value).buildPartial(); } else { trip_ = value; } onChanged(); } else { tripBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /**
public Builder clear() { super.clear(); agencyId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); routeId_ = ""; bitField0_ = (bitField0_ & ~0x00000002); routeType_ = 0; bitField0_ = (bitField0_ & ~0x00000004); if (tripBuilder_ == null) { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); } else { tripBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); stopId_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; }
/** * <code>optional string trip_id = 1;</code> * * <pre> * The trip_id from the GTFS feed that this selector refers to. * For non frequency-based trips, this field is enough to uniquely identify * the trip. For frequency-based trip, start_time and start_date might also be * necessary. * </pre> */ public Builder clearTripId() { bitField0_ = (bitField0_ & ~0x00000001); tripId_ = getDefaultInstance().getTripId(); onChanged(); return this; } /**
/** * <code>optional string route_id = 5;</code> * * <pre> * The route_id from the GTFS that this selector refers to. * </pre> */ public Builder clearRouteId() { bitField0_ = (bitField0_ & ~0x00000002); routeId_ = getDefaultInstance().getRouteId(); onChanged(); return this; } /**
public com.google.transit.realtime.GtfsRealtime.TripDescriptor getDefaultInstanceForType() { return com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); }
private void initFields() { agencyId_ = ""; routeId_ = ""; routeType_ = 0; trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); stopId_ = ""; } private byte memoizedIsInitialized = -1;
private void initFields() { trip_ = com.google.transit.realtime.GtfsRealtime.TripDescriptor.getDefaultInstance(); vehicle_ = com.google.transit.realtime.GtfsRealtime.VehicleDescriptor.getDefaultInstance(); position_ = com.google.transit.realtime.GtfsRealtime.Position.getDefaultInstance(); currentStopSequence_ = 0; stopId_ = ""; currentStatus_ = com.google.transit.realtime.GtfsRealtime.VehiclePosition.VehicleStopStatus.IN_TRANSIT_TO; timestamp_ = 0L; congestionLevel_ = com.google.transit.realtime.GtfsRealtime.VehiclePosition.CongestionLevel.UNKNOWN_CONGESTION_LEVEL; occupancyStatus_ = com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus.EMPTY; } private byte memoizedIsInitialized = -1;