com.google.transit.realtime
Class GtfsRealtime.TripUpdate.Builder

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
      extended by com.google.protobuf.AbstractMessage.Builder<BuilderType>
          extended by com.google.protobuf.GeneratedMessage.Builder<BuilderType>
              extended by com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>
                  extended by com.google.transit.realtime.GtfsRealtime.TripUpdate.Builder
All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.TripUpdate>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GtfsRealtime.TripUpdateOrBuilder, Cloneable
Enclosing class:
GtfsRealtime.TripUpdate

public static final class GtfsRealtime.TripUpdate.Builder
extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>
implements GtfsRealtime.TripUpdateOrBuilder

Protobuf type transit_realtime.TripUpdate

 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.
 


Method Summary
 GtfsRealtime.TripUpdate.Builder addAllStopTimeUpdate(Iterable<? extends GtfsRealtime.TripUpdate.StopTimeUpdate> values)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(GtfsRealtime.TripUpdate.StopTimeUpdate value)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(int index, GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(int index, GtfsRealtime.TripUpdate.StopTimeUpdate value)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder()
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder(int index)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate build()
           
 GtfsRealtime.TripUpdate buildPartial()
           
 GtfsRealtime.TripUpdate.Builder clear()
           
 GtfsRealtime.TripUpdate.Builder clearDelay()
          optional int32 delay = 5;
 GtfsRealtime.TripUpdate.Builder clearStopTimeUpdate()
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.Builder clearTimestamp()
          optional uint64 timestamp = 4;
 GtfsRealtime.TripUpdate.Builder clearTrip()
          required .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.TripUpdate.Builder clearVehicle()
          optional .transit_realtime.VehicleDescriptor vehicle = 3;
 GtfsRealtime.TripUpdate.Builder clone()
           
 GtfsRealtime.TripUpdate getDefaultInstanceForType()
           
 int getDelay()
          optional int32 delay = 5;
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 GtfsRealtime.TripUpdate.StopTimeUpdate getStopTimeUpdate(int index)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.StopTimeUpdate.Builder getStopTimeUpdateBuilder(int index)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 List<GtfsRealtime.TripUpdate.StopTimeUpdate.Builder> getStopTimeUpdateBuilderList()
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 int getStopTimeUpdateCount()
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 List<GtfsRealtime.TripUpdate.StopTimeUpdate> getStopTimeUpdateList()
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder getStopTimeUpdateOrBuilder(int index)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 List<? extends GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder> getStopTimeUpdateOrBuilderList()
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 long getTimestamp()
          optional uint64 timestamp = 4;
 GtfsRealtime.TripDescriptor getTrip()
          required .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.TripDescriptor.Builder getTripBuilder()
          required .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder()
          required .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.VehicleDescriptor getVehicle()
          optional .transit_realtime.VehicleDescriptor vehicle = 3;
 GtfsRealtime.VehicleDescriptor.Builder getVehicleBuilder()
          optional .transit_realtime.VehicleDescriptor vehicle = 3;
 GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder()
          optional .transit_realtime.VehicleDescriptor vehicle = 3;
 boolean hasDelay()
          optional int32 delay = 5;
 boolean hasTimestamp()
          optional uint64 timestamp = 4;
 boolean hasTrip()
          required .transit_realtime.TripDescriptor trip = 1;
 boolean hasVehicle()
          optional .transit_realtime.VehicleDescriptor vehicle = 3;
protected  com.google.protobuf.GeneratedMessage.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)
          required .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.TripUpdate.Builder mergeVehicle(GtfsRealtime.VehicleDescriptor value)
          optional .transit_realtime.VehicleDescriptor vehicle = 3;
 GtfsRealtime.TripUpdate.Builder removeStopTimeUpdate(int index)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.Builder setDelay(int value)
          optional int32 delay = 5;
 GtfsRealtime.TripUpdate.Builder setStopTimeUpdate(int index, GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.Builder setStopTimeUpdate(int index, GtfsRealtime.TripUpdate.StopTimeUpdate value)
          repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 GtfsRealtime.TripUpdate.Builder setTimestamp(long value)
          optional uint64 timestamp = 4;
 GtfsRealtime.TripUpdate.Builder setTrip(GtfsRealtime.TripDescriptor.Builder builderForValue)
          required .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.TripUpdate.Builder setTrip(GtfsRealtime.TripDescriptor value)
          required .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.TripUpdate.Builder setVehicle(GtfsRealtime.VehicleDescriptor.Builder builderForValue)
          optional .transit_realtime.VehicleDescriptor vehicle = 3;
 GtfsRealtime.TripUpdate.Builder setVehicle(GtfsRealtime.VehicleDescriptor value)
          optional .transit_realtime.VehicleDescriptor vehicle = 3;
 
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, addRepeatedField, clearExtension, clearField, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, parseUnknownField, setExtension, setExtension, setField, setRepeatedField
 
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
clearOneof, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, setUnknownFields
 
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, newUninitializedMessageException
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder
getExtension, getExtension, getExtensionCount, hasExtension
 
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
 

Method Detail

getDescriptor

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()

internalGetFieldAccessorTable

protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Specified by:
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.TripUpdate.Builder>

clear

public GtfsRealtime.TripUpdate.Builder clear()
Specified by:
clear in interface com.google.protobuf.Message.Builder
Specified by:
clear in interface com.google.protobuf.MessageLite.Builder
Overrides:
clear in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>

clone

public GtfsRealtime.TripUpdate.Builder clone()
Specified by:
clone in interface com.google.protobuf.Message.Builder
Specified by:
clone in interface com.google.protobuf.MessageLite.Builder
Overrides:
clone in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>

getDescriptorForType

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.Message.Builder
Specified by:
getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
Overrides:
getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<GtfsRealtime.TripUpdate.Builder>

getDefaultInstanceForType

public GtfsRealtime.TripUpdate getDefaultInstanceForType()
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.TripUpdate>
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
Specified by:
getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder

build

public GtfsRealtime.TripUpdate build()
Specified by:
build in interface com.google.protobuf.Message.Builder
Specified by:
build in interface com.google.protobuf.MessageLite.Builder

buildPartial

public GtfsRealtime.TripUpdate buildPartial()
Specified by:
buildPartial in interface com.google.protobuf.Message.Builder
Specified by:
buildPartial in interface com.google.protobuf.MessageLite.Builder

mergeFrom

public GtfsRealtime.TripUpdate.Builder mergeFrom(com.google.protobuf.Message other)
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TripUpdate.Builder>

mergeFrom

public GtfsRealtime.TripUpdate.Builder mergeFrom(GtfsRealtime.TripUpdate other)

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<GtfsRealtime.TripUpdate,GtfsRealtime.TripUpdate.Builder>

mergeFrom

public GtfsRealtime.TripUpdate.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
Specified by:
mergeFrom in interface com.google.protobuf.Message.Builder
Specified by:
mergeFrom in interface com.google.protobuf.MessageLite.Builder
Overrides:
mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GtfsRealtime.TripUpdate.Builder>
Throws:
IOException

hasTrip

public boolean hasTrip()
required .transit_realtime.TripDescriptor trip = 1;
 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.
 

Specified by:
hasTrip in interface GtfsRealtime.TripUpdateOrBuilder

getTrip

public GtfsRealtime.TripDescriptor getTrip()
required .transit_realtime.TripDescriptor trip = 1;
 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.
 

Specified by:
getTrip in interface GtfsRealtime.TripUpdateOrBuilder

setTrip

public GtfsRealtime.TripUpdate.Builder setTrip(GtfsRealtime.TripDescriptor value)
required .transit_realtime.TripDescriptor trip = 1;
 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.
 


setTrip

public GtfsRealtime.TripUpdate.Builder setTrip(GtfsRealtime.TripDescriptor.Builder builderForValue)
required .transit_realtime.TripDescriptor trip = 1;
 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.
 


mergeTrip

public GtfsRealtime.TripUpdate.Builder mergeTrip(GtfsRealtime.TripDescriptor value)
required .transit_realtime.TripDescriptor trip = 1;
 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.
 


clearTrip

public GtfsRealtime.TripUpdate.Builder clearTrip()
required .transit_realtime.TripDescriptor trip = 1;
 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.
 


getTripBuilder

public GtfsRealtime.TripDescriptor.Builder getTripBuilder()
required .transit_realtime.TripDescriptor trip = 1;
 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.
 


getTripOrBuilder

public GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder()
required .transit_realtime.TripDescriptor trip = 1;
 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.
 

Specified by:
getTripOrBuilder in interface GtfsRealtime.TripUpdateOrBuilder

hasVehicle

public boolean hasVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
 Additional information on the vehicle that is serving this trip.
 

Specified by:
hasVehicle in interface GtfsRealtime.TripUpdateOrBuilder

getVehicle

public GtfsRealtime.VehicleDescriptor getVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
 Additional information on the vehicle that is serving this trip.
 

Specified by:
getVehicle in interface GtfsRealtime.TripUpdateOrBuilder

setVehicle

public GtfsRealtime.TripUpdate.Builder setVehicle(GtfsRealtime.VehicleDescriptor value)
optional .transit_realtime.VehicleDescriptor vehicle = 3;
 Additional information on the vehicle that is serving this trip.
 


setVehicle

public GtfsRealtime.TripUpdate.Builder setVehicle(GtfsRealtime.VehicleDescriptor.Builder builderForValue)
optional .transit_realtime.VehicleDescriptor vehicle = 3;
 Additional information on the vehicle that is serving this trip.
 


mergeVehicle

public GtfsRealtime.TripUpdate.Builder mergeVehicle(GtfsRealtime.VehicleDescriptor value)
optional .transit_realtime.VehicleDescriptor vehicle = 3;
 Additional information on the vehicle that is serving this trip.
 


clearVehicle

public GtfsRealtime.TripUpdate.Builder clearVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
 Additional information on the vehicle that is serving this trip.
 


getVehicleBuilder

public GtfsRealtime.VehicleDescriptor.Builder getVehicleBuilder()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
 Additional information on the vehicle that is serving this trip.
 


getVehicleOrBuilder

public GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder()
optional .transit_realtime.VehicleDescriptor vehicle = 3;
 Additional information on the vehicle that is serving this trip.
 

Specified by:
getVehicleOrBuilder in interface GtfsRealtime.TripUpdateOrBuilder

getStopTimeUpdateList

public List<GtfsRealtime.TripUpdate.StopTimeUpdate> getStopTimeUpdateList()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 

Specified by:
getStopTimeUpdateList in interface GtfsRealtime.TripUpdateOrBuilder

getStopTimeUpdateCount

public int getStopTimeUpdateCount()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 

Specified by:
getStopTimeUpdateCount in interface GtfsRealtime.TripUpdateOrBuilder

getStopTimeUpdate

public GtfsRealtime.TripUpdate.StopTimeUpdate getStopTimeUpdate(int index)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 

Specified by:
getStopTimeUpdate in interface GtfsRealtime.TripUpdateOrBuilder

setStopTimeUpdate

public GtfsRealtime.TripUpdate.Builder setStopTimeUpdate(int index,
                                                         GtfsRealtime.TripUpdate.StopTimeUpdate value)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


setStopTimeUpdate

public GtfsRealtime.TripUpdate.Builder setStopTimeUpdate(int index,
                                                         GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


addStopTimeUpdate

public GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(GtfsRealtime.TripUpdate.StopTimeUpdate value)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


addStopTimeUpdate

public GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(int index,
                                                         GtfsRealtime.TripUpdate.StopTimeUpdate value)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


addStopTimeUpdate

public GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


addStopTimeUpdate

public GtfsRealtime.TripUpdate.Builder addStopTimeUpdate(int index,
                                                         GtfsRealtime.TripUpdate.StopTimeUpdate.Builder builderForValue)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


addAllStopTimeUpdate

public GtfsRealtime.TripUpdate.Builder addAllStopTimeUpdate(Iterable<? extends GtfsRealtime.TripUpdate.StopTimeUpdate> values)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


clearStopTimeUpdate

public GtfsRealtime.TripUpdate.Builder clearStopTimeUpdate()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


removeStopTimeUpdate

public GtfsRealtime.TripUpdate.Builder removeStopTimeUpdate(int index)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


getStopTimeUpdateBuilder

public GtfsRealtime.TripUpdate.StopTimeUpdate.Builder getStopTimeUpdateBuilder(int index)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


getStopTimeUpdateOrBuilder

public GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder getStopTimeUpdateOrBuilder(int index)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 

Specified by:
getStopTimeUpdateOrBuilder in interface GtfsRealtime.TripUpdateOrBuilder

getStopTimeUpdateOrBuilderList

public List<? extends GtfsRealtime.TripUpdate.StopTimeUpdateOrBuilder> getStopTimeUpdateOrBuilderList()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 

Specified by:
getStopTimeUpdateOrBuilderList in interface GtfsRealtime.TripUpdateOrBuilder

addStopTimeUpdateBuilder

public GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


addStopTimeUpdateBuilder

public GtfsRealtime.TripUpdate.StopTimeUpdate.Builder addStopTimeUpdateBuilder(int index)
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


getStopTimeUpdateBuilderList

public List<GtfsRealtime.TripUpdate.StopTimeUpdate.Builder> getStopTimeUpdateBuilderList()
repeated .transit_realtime.TripUpdate.StopTimeUpdate stop_time_update = 2;
 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.
 


hasTimestamp

public boolean hasTimestamp()
optional uint64 timestamp = 4;
 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).
 

Specified by:
hasTimestamp in interface GtfsRealtime.TripUpdateOrBuilder

getTimestamp

public long getTimestamp()
optional uint64 timestamp = 4;
 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).
 

Specified by:
getTimestamp in interface GtfsRealtime.TripUpdateOrBuilder

setTimestamp

public GtfsRealtime.TripUpdate.Builder setTimestamp(long value)
optional uint64 timestamp = 4;
 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).
 


clearTimestamp

public GtfsRealtime.TripUpdate.Builder clearTimestamp()
optional uint64 timestamp = 4;
 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).
 


hasDelay

public boolean hasDelay()
optional int32 delay = 5;
 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.
 

Specified by:
hasDelay in interface GtfsRealtime.TripUpdateOrBuilder

getDelay

public int getDelay()
optional int32 delay = 5;
 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.
 

Specified by:
getDelay in interface GtfsRealtime.TripUpdateOrBuilder

setDelay

public GtfsRealtime.TripUpdate.Builder setDelay(int value)
optional int32 delay = 5;
 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.
 


clearDelay

public GtfsRealtime.TripUpdate.Builder clearDelay()
optional int32 delay = 5;
 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.
 



Copyright © 2015. All Rights Reserved.