/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3;</code> */ public Builder setDeparture(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { if (departureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } departure_ = value; onChanged(); } else { departureBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2;</code> */ public Builder setArrival(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { if (arrivalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } arrival_ = value; onChanged(); } else { arrivalBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED];</code> */ public Builder setScheduleRelationship(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; scheduleRelationship_ = value; onChanged(); return this; } /**
/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3;</code> */ public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder getDepartureBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDepartureFieldBuilder().getBuilder(); } /**
/** * <code>optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED];</code> */ public Builder setScheduleRelationship(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; scheduleRelationship_ = value; onChanged(); return this; } /**
/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3;</code> */ public Builder mergeDeparture(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { if (departureBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && departure_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance()) { departure_ = com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.newBuilder(departure_).mergeFrom(value).buildPartial(); } else { departure_ = value; } onChanged(); } else { departureBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /**
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate other) { if (other == com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDefaultInstance()) return this; if (other.hasStopSequence()) { setStopSequence(other.getStopSequence()); } if (other.hasStopId()) { bitField0_ |= 0x00000002; stopId_ = other.stopId_; onChanged(); } if (other.hasArrival()) { mergeArrival(other.getArrival()); } if (other.hasDeparture()) { mergeDeparture(other.getDeparture()); } if (other.hasScheduleRelationship()) { setScheduleRelationship(other.getScheduleRelationship()); } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2;</code> */ public Builder mergeArrival(com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent value) { if (arrivalBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && arrival_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance()) { arrival_ = com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.newBuilder(arrival_).mergeFrom(value).buildPartial(); } else { arrival_ = value; } onChanged(); } else { arrivalBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>optional string stop_id = 4;</code> * * <pre> * Must be the same as in stops.txt in the corresponding GTFS feed. * </pre> */ public Builder setStopId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; stopId_ = value; onChanged(); return this; } /**
/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2;</code> */ public Builder clearArrival() { if (arrivalBuilder_ == null) { arrival_ = com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance(); onChanged(); } else { arrivalBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /**
/** * <code>optional uint32 stop_sequence = 1;</code> * * <pre> * Must be the same as in stop_times.txt in the corresponding GTFS feed. * </pre> */ public Builder setStopSequence(int value) { bitField0_ |= 0x00000001; stopSequence_ = value; onChanged(); return this; } /**
/** * <code>optional string stop_id = 4;</code> * * <pre> * Must be the same as in stops.txt in the corresponding GTFS feed. * </pre> */ public Builder setStopIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; stopId_ = value; onChanged(); return this; }
/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2;</code> */ public Builder setArrival( com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder builderForValue) { if (arrivalBuilder_ == null) { arrival_ = builderForValue.build(); onChanged(); } else { arrivalBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**
/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3;</code> */ public Builder clearDeparture() { if (departureBuilder_ == null) { departure_ = com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.getDefaultInstance(); onChanged(); } else { departureBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /**
/** * <code>optional string stop_id = 4;</code> * * <pre> * Must be the same as in stops.txt in the corresponding GTFS feed. * </pre> */ public Builder clearStopId() { bitField0_ = (bitField0_ & ~0x00000002); stopId_ = getDefaultInstance().getStopId(); onChanged(); return this; } /**
/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3;</code> */ public Builder setDeparture( com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder builderForValue) { if (departureBuilder_ == null) { departure_ = builderForValue.build(); onChanged(); } else { departureBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional .transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship schedule_relationship = 5 [default = SCHEDULED];</code> */ public Builder clearScheduleRelationship() { bitField0_ = (bitField0_ & ~0x00000010); scheduleRelationship_ = com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.ScheduleRelationship.SCHEDULED; onChanged(); return this; }
/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent arrival = 2;</code> */ public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder getArrivalBuilder() { bitField0_ |= 0x00000004; onChanged(); return getArrivalFieldBuilder().getBuilder(); } /**
/** * <code>optional uint32 stop_sequence = 1;</code> * * <pre> * Must be the same as in stop_times.txt in the corresponding GTFS feed. * </pre> */ public Builder clearStopSequence() { bitField0_ = (bitField0_ & ~0x00000001); stopSequence_ = 0; onChanged(); return this; }
/** * <code>optional .transit_realtime.TripUpdate.StopTimeEvent departure = 3;</code> */ public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeEvent.Builder getDepartureBuilder() { bitField0_ |= 0x00000008; onChanged(); return getDepartureFieldBuilder().getBuilder(); } /**