public static final class GtfsRealtime.TripUpdate.Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder> implements GtfsRealtime.TripUpdateOrBuilder
Realtime update of the progress of a vehicle along a trip. Depending on the value of ScheduleRelationship, a TripUpdate can specify: - A trip that proceeds along the schedule. - A trip that proceeds along a route but has no fixed schedule. - A trip that have been added or removed with regard to schedule. The updates can be for future, predicted arrival/departure events, or for past events that already occurred. Normally, updates should get more precise and more certain (see uncertainty below) as the events gets closer to current time. Even if that is not possible, the information for past events should be precise and certain. In particular, if an update points to time in the past but its update's uncertainty is not 0, the client should conclude that the update is a (wrong) prediction and that the trip has not completed yet. Note that the update can describe a trip that is already completed. To this end, it is enough to provide an update for the last stop of the trip. If the time of that is in the past, the client will conclude from that that the whole trip is in the past (it is possible, although inconsequential, to also provide updates for preceding stops). This option is most relevant for a trip that has completed ahead of schedule, but according to the schedule, the trip is still proceeding at the current time. Removing the updates for this trip could make the client assume that the trip is still proceeding. Note that the feed provider is allowed, but not required, to purge past updates - this is one case where this would be practically useful.Protobuf type
transit_realtime.TripUpdate| Modifier and Type | Method and Description |
|---|---|
GtfsRealtime.TripUpdate.Builder |
addAllStopTimeUpdate(Iterable<? extends GtfsRealtime.TripUpdate.StopTimeUpdate> values)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
<Type> GtfsRealtime.TripUpdate.Builder |
addExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate,List<Type>> extension,
Type value) |
GtfsRealtime.TripUpdate.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GtfsRealtime.TripUpdate.Builder |
addStopTimeUpdate(GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.Builder |
addStopTimeUpdate(GtfsRealtime.TripUpdate.StopTimeUpdate value)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.Builder |
addStopTimeUpdate(int index,
GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.Builder |
addStopTimeUpdate(int index,
GtfsRealtime.TripUpdate.StopTimeUpdate value)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.StopTimeUpdate.Builder |
addStopTimeUpdateBuilder()
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.StopTimeUpdate.Builder |
addStopTimeUpdateBuilder(int index)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate |
build() |
GtfsRealtime.TripUpdate |
buildPartial() |
GtfsRealtime.TripUpdate.Builder |
clear() |
GtfsRealtime.TripUpdate.Builder |
clearDelay()
The current schedule deviation for the trip.
|
<Type> GtfsRealtime.TripUpdate.Builder |
clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate,?> extension) |
GtfsRealtime.TripUpdate.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GtfsRealtime.TripUpdate.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GtfsRealtime.TripUpdate.Builder |
clearStopTimeUpdate()
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.Builder |
clearTimestamp()
Moment at which the vehicle's real-time progress was measured.
|
GtfsRealtime.TripUpdate.Builder |
clearTrip()
The Trip that this message applies to.
|
GtfsRealtime.TripUpdate.Builder |
clearVehicle()
Additional information on the vehicle that is serving this trip.
|
GtfsRealtime.TripUpdate.Builder |
clone() |
GtfsRealtime.TripUpdate |
getDefaultInstanceForType() |
int |
getDelay()
The current schedule deviation for the trip.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
GtfsRealtime.TripUpdate.StopTimeUpdate |
getStopTimeUpdate(int index)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.StopTimeUpdate.Builder |
getStopTimeUpdateBuilder(int index)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
List<GtfsRealtime.TripUpdate.StopTimeUpdate.Builder> |
getStopTimeUpdateBuilderList()
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
int |
getStopTimeUpdateCount()
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
List<GtfsRealtime.TripUpdate.StopTimeUpdate> |
getStopTimeUpdateList()
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder |
getStopTimeUpdateOrBuilder(int index)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
List<? extends GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder> |
getStopTimeUpdateOrBuilderList()
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
long |
getTimestamp()
Moment at which the vehicle's real-time progress was measured.
|
GtfsRealtime.TripDescriptor |
getTrip()
The Trip that this message applies to.
|
GtfsRealtime.TripDescriptor.Builder |
getTripBuilder()
The Trip that this message applies to.
|
GtfsRealtime.TripDescriptorOrBuilder |
getTripOrBuilder()
The Trip that this message applies to.
|
GtfsRealtime.VehicleDescriptor |
getVehicle()
Additional information on the vehicle that is serving this trip.
|
GtfsRealtime.VehicleDescriptor.Builder |
getVehicleBuilder()
Additional information on the vehicle that is serving this trip.
|
GtfsRealtime.VehicleDescriptorOrBuilder |
getVehicleOrBuilder()
Additional information on the vehicle that is serving this trip.
|
boolean |
hasDelay()
The current schedule deviation for the trip.
|
boolean |
hasTimestamp()
Moment at which the vehicle's real-time progress was measured.
|
boolean |
hasTrip()
The Trip that this message applies to.
|
boolean |
hasVehicle()
Additional information on the vehicle that is serving this trip.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GtfsRealtime.TripUpdate.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GtfsRealtime.TripUpdate.Builder |
mergeFrom(GtfsRealtime.TripUpdate other) |
GtfsRealtime.TripUpdate.Builder |
mergeFrom(com.google.protobuf.Message other) |
GtfsRealtime.TripUpdate.Builder |
mergeTrip(GtfsRealtime.TripDescriptor value)
The Trip that this message applies to.
|
GtfsRealtime.TripUpdate.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GtfsRealtime.TripUpdate.Builder |
mergeVehicle(GtfsRealtime.VehicleDescriptor value)
Additional information on the vehicle that is serving this trip.
|
GtfsRealtime.TripUpdate.Builder |
removeStopTimeUpdate(int index)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.Builder |
setDelay(int value)
The current schedule deviation for the trip.
|
<Type> GtfsRealtime.TripUpdate.Builder |
setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate,List<Type>> extension,
int index,
Type value) |
<Type> GtfsRealtime.TripUpdate.Builder |
setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate,Type> extension,
Type value) |
GtfsRealtime.TripUpdate.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GtfsRealtime.TripUpdate.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GtfsRealtime.TripUpdate.Builder |
setStopTimeUpdate(int index,
GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.Builder |
setStopTimeUpdate(int index,
GtfsRealtime.TripUpdate.StopTimeUpdate value)
Updates to StopTimes for the trip (both future, i.e., predictions, and in
some cases, past ones, i.e., those that already happened).
|
GtfsRealtime.TripUpdate.Builder |
setTimestamp(long value)
Moment at which the vehicle's real-time progress was measured.
|
GtfsRealtime.TripUpdate.Builder |
setTrip(GtfsRealtime.TripDescriptor.Builder builderForValue)
The Trip that this message applies to.
|
GtfsRealtime.TripUpdate.Builder |
setTrip(GtfsRealtime.TripDescriptor value)
The Trip that this message applies to.
|
GtfsRealtime.TripUpdate.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GtfsRealtime.TripUpdate.Builder |
setVehicle(GtfsRealtime.VehicleDescriptor.Builder builderForValue)
Additional information on the vehicle that is serving this trip.
|
GtfsRealtime.TripUpdate.Builder |
setVehicle(GtfsRealtime.VehicleDescriptor value)
Additional information on the vehicle that is serving this trip.
|
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, mergeExtensionFields, setExtension, setExtension, setExtension, setExtensiongetFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedFieldBuilder, getUnknownFields, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.Builder>public GtfsRealtime.TripUpdate.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.Builder>public GtfsRealtime.TripUpdate getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<GtfsRealtime.TripUpdate>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GtfsRealtime.TripUpdate build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GtfsRealtime.TripUpdate buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GtfsRealtime.TripUpdate.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.Builder>public GtfsRealtime.TripUpdate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>public GtfsRealtime.TripUpdate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>public GtfsRealtime.TripUpdate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.Builder>public GtfsRealtime.TripUpdate.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>public GtfsRealtime.TripUpdate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>public <Type> GtfsRealtime.TripUpdate.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate,Type> extension, Type value)
setExtension in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>public <Type> GtfsRealtime.TripUpdate.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate,List<Type>> extension, int index, Type value)
setExtension in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>public <Type> GtfsRealtime.TripUpdate.Builder addExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate,List<Type>> extension, Type value)
addExtension in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>public <Type> GtfsRealtime.TripUpdate.Builder clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<GtfsRealtime.TripUpdate,?> extension)
clearExtension in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>public GtfsRealtime.TripUpdate.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TripUpdate.Builder>public GtfsRealtime.TripUpdate.Builder mergeFrom(GtfsRealtime.TripUpdate other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>public GtfsRealtime.TripUpdate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TripUpdate.Builder>IOExceptionpublic boolean hasTrip()
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.
required .transit_realtime.TripDescriptor trip = 1;hasTrip in interface GtfsRealtime.TripUpdateOrBuilderpublic GtfsRealtime.TripDescriptor getTrip()
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.
required .transit_realtime.TripDescriptor trip = 1;getTrip in interface GtfsRealtime.TripUpdateOrBuilderpublic GtfsRealtime.TripUpdate.Builder setTrip(GtfsRealtime.TripDescriptor value)
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.
required .transit_realtime.TripDescriptor trip = 1;public GtfsRealtime.TripUpdate.Builder setTrip(GtfsRealtime.TripDescriptor.Builder builderForValue)
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.
required .transit_realtime.TripDescriptor trip = 1;public GtfsRealtime.TripUpdate.Builder mergeTrip(GtfsRealtime.TripDescriptor value)
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.
required .transit_realtime.TripDescriptor trip = 1;public GtfsRealtime.TripUpdate.Builder clearTrip()
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.
required .transit_realtime.TripDescriptor trip = 1;public GtfsRealtime.TripDescriptor.Builder getTripBuilder()
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.
required .transit_realtime.TripDescriptor trip = 1;public GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder()
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.
required .transit_realtime.TripDescriptor trip = 1;getTripOrBuilder in interface GtfsRealtime.TripUpdateOrBuilderpublic boolean hasVehicle()
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 3;hasVehicle in interface GtfsRealtime.TripUpdateOrBuilderpublic GtfsRealtime.VehicleDescriptor getVehicle()
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 3;getVehicle in interface GtfsRealtime.TripUpdateOrBuilderpublic GtfsRealtime.TripUpdate.Builder setVehicle(GtfsRealtime.VehicleDescriptor value)
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 3;public GtfsRealtime.TripUpdate.Builder setVehicle(GtfsRealtime.VehicleDescriptor.Builder builderForValue)
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 3;public GtfsRealtime.TripUpdate.Builder mergeVehicle(GtfsRealtime.VehicleDescriptor value)
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 3;public GtfsRealtime.TripUpdate.Builder clearVehicle()
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 3;public GtfsRealtime.VehicleDescriptor.Builder getVehicleBuilder()
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 3;public GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder()
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 3;getVehicleOrBuilder in interface GtfsRealtime.TripUpdateOrBuilderpublic List<GtfsRealtime.TripUpdate.StopTimeUpdate> getStopTimeUpdateList()
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;getStopTimeUpdateList in interface GtfsRealtime.TripUpdateOrBuilderpublic int getStopTimeUpdateCount()
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;getStopTimeUpdateCount in interface GtfsRealtime.TripUpdateOrBuilderpublic GtfsRealtime.TripUpdate.StopTimeUpdate getStopTimeUpdate(int index)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;getStopTimeUpdate in interface GtfsRealtime.TripUpdateOrBuilderpublic GtfsRealtime.TripUpdate.Builder setStopTimeUpdate(int index, GtfsRealtime.TripUpdate.StopTimeUpdate value)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.Builder setStopTimeUpdate(int index, GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(GtfsRealtime.TripUpdate.StopTimeUpdate value)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(int index, GtfsRealtime.TripUpdate.StopTimeUpdate value)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(int index, GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.Builder addAllStopTimeUpdate(Iterable<? extends GtfsRealtime.TripUpdate.StopTimeUpdate> values)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.Builder clearStopTimeUpdate()
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.Builder removeStopTimeUpdate(int index)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.StopTimeUpdate.Builder getStopTimeUpdateBuilder(int index)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder getStopTimeUpdateOrBuilder(int index)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;getStopTimeUpdateOrBuilder in interface GtfsRealtime.TripUpdateOrBuilderpublic List<? extends GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder> getStopTimeUpdateOrBuilderList()
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;getStopTimeUpdateOrBuilderList in interface GtfsRealtime.TripUpdateOrBuilderpublic GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder()
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder(int index)
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public List<GtfsRealtime.TripUpdate.StopTimeUpdate.Builder> getStopTimeUpdateBuilderList()
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.
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;public boolean hasTimestamp()
Moment at which the vehicle's real-time progress was measured. In POSIX time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
optional uint64 timestamp = 4;hasTimestamp in interface GtfsRealtime.TripUpdateOrBuilderpublic long getTimestamp()
Moment at which the vehicle's real-time progress was measured. In POSIX time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
optional uint64 timestamp = 4;getTimestamp in interface GtfsRealtime.TripUpdateOrBuilderpublic GtfsRealtime.TripUpdate.Builder setTimestamp(long value)
Moment at which the vehicle's real-time progress was measured. In POSIX time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
optional uint64 timestamp = 4;public GtfsRealtime.TripUpdate.Builder clearTimestamp()
Moment at which the vehicle's real-time progress was measured. In POSIX time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).
optional uint64 timestamp = 4;public boolean hasDelay()
The current schedule deviation for the trip. Delay should only be specified when the prediction is given relative to some existing schedule in GTFS. Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Delay information in StopTimeUpdates take precedent of trip-level delay information, such that trip-level delay is only propagated until the next stop along the trip with a StopTimeUpdate delay value specified. Feed providers are strongly encouraged to provide a TripUpdate.timestamp value indicating when the delay value was last updated, in order to evaluate the freshness of the data. NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
optional int32 delay = 5;hasDelay in interface GtfsRealtime.TripUpdateOrBuilderpublic int getDelay()
The current schedule deviation for the trip. Delay should only be specified when the prediction is given relative to some existing schedule in GTFS. Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Delay information in StopTimeUpdates take precedent of trip-level delay information, such that trip-level delay is only propagated until the next stop along the trip with a StopTimeUpdate delay value specified. Feed providers are strongly encouraged to provide a TripUpdate.timestamp value indicating when the delay value was last updated, in order to evaluate the freshness of the data. NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
optional int32 delay = 5;getDelay in interface GtfsRealtime.TripUpdateOrBuilderpublic GtfsRealtime.TripUpdate.Builder setDelay(int value)
The current schedule deviation for the trip. Delay should only be specified when the prediction is given relative to some existing schedule in GTFS. Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Delay information in StopTimeUpdates take precedent of trip-level delay information, such that trip-level delay is only propagated until the next stop along the trip with a StopTimeUpdate delay value specified. Feed providers are strongly encouraged to provide a TripUpdate.timestamp value indicating when the delay value was last updated, in order to evaluate the freshness of the data. NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
optional int32 delay = 5;public GtfsRealtime.TripUpdate.Builder clearDelay()
The current schedule deviation for the trip. Delay should only be specified when the prediction is given relative to some existing schedule in GTFS. Delay (in seconds) can be positive (meaning that the vehicle is late) or negative (meaning that the vehicle is ahead of schedule). Delay of 0 means that the vehicle is exactly on time. Delay information in StopTimeUpdates take precedent of trip-level delay information, such that trip-level delay is only propagated until the next stop along the trip with a StopTimeUpdate delay value specified. Feed providers are strongly encouraged to provide a TripUpdate.timestamp value indicating when the delay value was last updated, in order to evaluate the freshness of the data. NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.
optional int32 delay = 5;public final GtfsRealtime.TripUpdate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.Builder>public final GtfsRealtime.TripUpdate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GtfsRealtime.TripUpdate.Builder>Copyright © 2019. All rights reserved.