subBuilder.mergeFrom(tripUpdate_); tripUpdate_ = subBuilder.buildPartial();
com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue) { if (stopTimeUpdateBuilder_ == null) { ensureStopTimeUpdateIsMutable(); stopTimeUpdate_.add(builderForValue.build()); onChanged(); } else { stopTimeUpdateBuilder_.addMessage(builderForValue.build());
subBuilder.mergeFrom(tripUpdate_); tripUpdate_ = subBuilder.buildPartial();
public Builder mergeFrom(com.google.transit.realtime.GtfsRealtime.TripUpdate other) { if (other == com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance()) return this; if (other.hasTrip()) { mergeTrip(other.getTrip()); mergeVehicle(other.getVehicle()); bitField0_ = (bitField0_ & ~0x00000004); } else { ensureStopTimeUpdateIsMutable(); stopTimeUpdate_.addAll(other.stopTimeUpdate_); onChanged(); stopTimeUpdateBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getStopTimeUpdateFieldBuilder() : null; } else { stopTimeUpdateBuilder_.addAllMessages(other.stopTimeUpdate_); setTimestamp(other.getTimestamp()); setDelay(other.getDelay()); this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this;
java.lang.Iterable<? extends com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate> values) { if (stopTimeUpdateBuilder_ == null) { ensureStopTimeUpdateIsMutable(); super.addAll(values, stopTimeUpdate_); onChanged(); } else { stopTimeUpdateBuilder_.addAllMessages(values);
throw new NullPointerException(); ensureStopTimeUpdateIsMutable(); stopTimeUpdate_.add(index, value); onChanged(); } else { stopTimeUpdateBuilder_.addMessage(index, value);
throw new NullPointerException(); ensureStopTimeUpdateIsMutable(); stopTimeUpdate_.add(value); onChanged(); } else { stopTimeUpdateBuilder_.addMessage(value);
com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue) { if (stopTimeUpdateBuilder_ == null) { ensureStopTimeUpdateIsMutable(); stopTimeUpdate_.add(builderForValue.build()); onChanged(); } else { stopTimeUpdateBuilder_.addMessage(builderForValue.build());
int index, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue) { if (stopTimeUpdateBuilder_ == null) { ensureStopTimeUpdateIsMutable(); stopTimeUpdate_.set(index, builderForValue.build()); onChanged(); } else { stopTimeUpdateBuilder_.setMessage(index, builderForValue.build());
throw new NullPointerException(); ensureStopTimeUpdateIsMutable(); stopTimeUpdate_.set(index, value); onChanged(); } else { stopTimeUpdateBuilder_.setMessage(index, value);
ensureStopTimeUpdateIsMutable(); stopTimeUpdate_.remove(index); onChanged(); } else { stopTimeUpdateBuilder_.remove(index);
int index, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue) { if (stopTimeUpdateBuilder_ == null) { ensureStopTimeUpdateIsMutable(); stopTimeUpdate_.add(index, builderForValue.build()); onChanged(); } else { stopTimeUpdateBuilder_.addMessage(index, builderForValue.build());
/** * <code>repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;</code> * * <pre> * Updates to StopTimes for the trip (both future, i.e., predictions, and in * some cases, past ones, i.e., those that already happened). * The updates must be sorted by stop_sequence, and apply for all the * following stops of the trip up to the next specified one. * * Example 1: * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure * delay of 0 for stop_sequence of the current stop means that the trip is * exactly on time. * * Example 2: * For the same trip instance, 3 StopTimeUpdates are provided: * - delay of 5 min for stop_sequence 3 * - delay of 1 min for stop_sequence 8 * - delay of unspecified duration for stop_sequence 10 * This will be interpreted as: * - stop_sequences 3,4,5,6,7 have delay of 5 min. * - stop_sequences 8,9 have delay of 1 min. * - stop_sequences 10,... have unknown delay. * </pre> */ public java.util.List<com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder> getStopTimeUpdateBuilderList() { return getStopTimeUpdateFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder<
/** * <code>repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;</code> * * <pre> * Updates to StopTimes for the trip (both future, i.e., predictions, and in * some cases, past ones, i.e., those that already happened). * The updates must be sorted by stop_sequence, and apply for all the * following stops of the trip up to the next specified one. * * Example 1: * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure * delay of 0 for stop_sequence of the current stop means that the trip is * exactly on time. * * Example 2: * For the same trip instance, 3 StopTimeUpdates are provided: * - delay of 5 min for stop_sequence 3 * - delay of 1 min for stop_sequence 8 * - delay of unspecified duration for stop_sequence 10 * This will be interpreted as: * - stop_sequences 3,4,5,6,7 have delay of 5 min. * - stop_sequences 8,9 have delay of 1 min. * - stop_sequences 10,... have unknown delay. * </pre> */ public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder getStopTimeUpdateBuilder( int index) { return getStopTimeUpdateFieldBuilder().getBuilder(index); } /**
/** * <code>repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;</code> * * <pre> * Updates to StopTimes for the trip (both future, i.e., predictions, and in * some cases, past ones, i.e., those that already happened). * The updates must be sorted by stop_sequence, and apply for all the * following stops of the trip up to the next specified one. * * Example 1: * For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure * delay of 0 for stop_sequence of the current stop means that the trip is * exactly on time. * * Example 2: * For the same trip instance, 3 StopTimeUpdates are provided: * - delay of 5 min for stop_sequence 3 * - delay of 1 min for stop_sequence 8 * - delay of unspecified duration for stop_sequence 10 * This will be interpreted as: * - stop_sequences 3,4,5,6,7 have delay of 5 min. * - stop_sequences 8,9 have delay of 1 min. * - stop_sequences 10,... have unknown delay. * </pre> */ public com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder() { return getStopTimeUpdateFieldBuilder().addBuilder( com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDefaultInstance()); } /**
return getStopTimeUpdateFieldBuilder().addBuilder( index, com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate.getDefaultInstance());
/** * <code>optional .transit_realtime.TripUpdate trip_update = 3;</code> * * <pre> * Data about the entity itself. Exactly one of the following fields must be * present (unless the entity is being deleted). * </pre> */ public Builder mergeTripUpdate(com.google.transit.realtime.GtfsRealtime.TripUpdate value) { if (tripUpdateBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && tripUpdate_ != com.google.transit.realtime.GtfsRealtime.TripUpdate.getDefaultInstance()) { tripUpdate_ = com.google.transit.realtime.GtfsRealtime.TripUpdate.newBuilder(tripUpdate_).mergeFrom(value).buildPartial(); } else { tripUpdate_ = value; } onChanged(); } else { tripUpdateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; 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> */ private com.google.protobuf.SingleFieldBuilder< com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder> getTripFieldBuilder() { if (tripBuilder_ == null) { tripBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.transit.realtime.GtfsRealtime.TripDescriptor, com.google.transit.realtime.GtfsRealtime.TripDescriptor.Builder, com.google.transit.realtime.GtfsRealtime.TripDescriptorOrBuilder>( trip_, getParentForChildren(), isClean()); trip_ = null; } return tripBuilder_; }
/** * <code>optional .transit_realtime.TripUpdate trip_update = 3;</code> * * <pre> * Data about the entity itself. Exactly one of the following fields must be * present (unless the entity is being deleted). * </pre> */ public Builder setTripUpdate( com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder builderForValue) { if (tripUpdateBuilder_ == null) { tripUpdate_ = builderForValue.build(); onChanged(); } else { tripUpdateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /**