com.google.transit.realtime
Class GtfsRealtime.VehiclePosition.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.VehiclePosition,GtfsRealtime.VehiclePosition.Builder>
                  extended by com.google.transit.realtime.GtfsRealtime.VehiclePosition.Builder
All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.VehiclePosition>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GtfsRealtime.VehiclePositionOrBuilder, Cloneable
Enclosing class:
GtfsRealtime.VehiclePosition

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

Protobuf type transit_realtime.VehiclePosition

 Realtime positioning information for a given vehicle.
 


Method Summary
 GtfsRealtime.VehiclePosition build()
           
 GtfsRealtime.VehiclePosition buildPartial()
           
 GtfsRealtime.VehiclePosition.Builder clear()
           
 GtfsRealtime.VehiclePosition.Builder clearCongestionLevel()
          optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;
 GtfsRealtime.VehiclePosition.Builder clearCurrentStatus()
          optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO];
 GtfsRealtime.VehiclePosition.Builder clearCurrentStopSequence()
          optional uint32 current_stop_sequence = 3;
 GtfsRealtime.VehiclePosition.Builder clearOccupancyStatus()
          optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;
 GtfsRealtime.VehiclePosition.Builder clearPosition()
          optional .transit_realtime.Position position = 2;
 GtfsRealtime.VehiclePosition.Builder clearStopId()
          optional string stop_id = 7;
 GtfsRealtime.VehiclePosition.Builder clearTimestamp()
          optional uint64 timestamp = 5;
 GtfsRealtime.VehiclePosition.Builder clearTrip()
          optional .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.VehiclePosition.Builder clearVehicle()
          optional .transit_realtime.VehicleDescriptor vehicle = 8;
 GtfsRealtime.VehiclePosition.Builder clone()
           
 GtfsRealtime.VehiclePosition.CongestionLevel getCongestionLevel()
          optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;
 GtfsRealtime.VehiclePosition.VehicleStopStatus getCurrentStatus()
          optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO];
 int getCurrentStopSequence()
          optional uint32 current_stop_sequence = 3;
 GtfsRealtime.VehiclePosition getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
           
 GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus()
          optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;
 GtfsRealtime.Position getPosition()
          optional .transit_realtime.Position position = 2;
 GtfsRealtime.Position.Builder getPositionBuilder()
          optional .transit_realtime.Position position = 2;
 GtfsRealtime.PositionOrBuilder getPositionOrBuilder()
          optional .transit_realtime.Position position = 2;
 String getStopId()
          optional string stop_id = 7;
 com.google.protobuf.ByteString getStopIdBytes()
          optional string stop_id = 7;
 long getTimestamp()
          optional uint64 timestamp = 5;
 GtfsRealtime.TripDescriptor getTrip()
          optional .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.TripDescriptor.Builder getTripBuilder()
          optional .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder()
          optional .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.VehicleDescriptor getVehicle()
          optional .transit_realtime.VehicleDescriptor vehicle = 8;
 GtfsRealtime.VehicleDescriptor.Builder getVehicleBuilder()
          optional .transit_realtime.VehicleDescriptor vehicle = 8;
 GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder()
          optional .transit_realtime.VehicleDescriptor vehicle = 8;
 boolean hasCongestionLevel()
          optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;
 boolean hasCurrentStatus()
          optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO];
 boolean hasCurrentStopSequence()
          optional uint32 current_stop_sequence = 3;
 boolean hasOccupancyStatus()
          optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;
 boolean hasPosition()
          optional .transit_realtime.Position position = 2;
 boolean hasStopId()
          optional string stop_id = 7;
 boolean hasTimestamp()
          optional uint64 timestamp = 5;
 boolean hasTrip()
          optional .transit_realtime.TripDescriptor trip = 1;
 boolean hasVehicle()
          optional .transit_realtime.VehicleDescriptor vehicle = 8;
protected  com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
           
 boolean isInitialized()
           
 GtfsRealtime.VehiclePosition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 GtfsRealtime.VehiclePosition.Builder mergeFrom(GtfsRealtime.VehiclePosition other)
           
 GtfsRealtime.VehiclePosition.Builder mergeFrom(com.google.protobuf.Message other)
           
 GtfsRealtime.VehiclePosition.Builder mergePosition(GtfsRealtime.Position value)
          optional .transit_realtime.Position position = 2;
 GtfsRealtime.VehiclePosition.Builder mergeTrip(GtfsRealtime.TripDescriptor value)
          optional .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.VehiclePosition.Builder mergeVehicle(GtfsRealtime.VehicleDescriptor value)
          optional .transit_realtime.VehicleDescriptor vehicle = 8;
 GtfsRealtime.VehiclePosition.Builder setCongestionLevel(GtfsRealtime.VehiclePosition.CongestionLevel value)
          optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;
 GtfsRealtime.VehiclePosition.Builder setCurrentStatus(GtfsRealtime.VehiclePosition.VehicleStopStatus value)
          optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO];
 GtfsRealtime.VehiclePosition.Builder setCurrentStopSequence(int value)
          optional uint32 current_stop_sequence = 3;
 GtfsRealtime.VehiclePosition.Builder setOccupancyStatus(GtfsRealtime.VehiclePosition.OccupancyStatus value)
          optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;
 GtfsRealtime.VehiclePosition.Builder setPosition(GtfsRealtime.Position.Builder builderForValue)
          optional .transit_realtime.Position position = 2;
 GtfsRealtime.VehiclePosition.Builder setPosition(GtfsRealtime.Position value)
          optional .transit_realtime.Position position = 2;
 GtfsRealtime.VehiclePosition.Builder setStopId(String value)
          optional string stop_id = 7;
 GtfsRealtime.VehiclePosition.Builder setStopIdBytes(com.google.protobuf.ByteString value)
          optional string stop_id = 7;
 GtfsRealtime.VehiclePosition.Builder setTimestamp(long value)
          optional uint64 timestamp = 5;
 GtfsRealtime.VehiclePosition.Builder setTrip(GtfsRealtime.TripDescriptor.Builder builderForValue)
          optional .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.VehiclePosition.Builder setTrip(GtfsRealtime.TripDescriptor value)
          optional .transit_realtime.TripDescriptor trip = 1;
 GtfsRealtime.VehiclePosition.Builder setVehicle(GtfsRealtime.VehicleDescriptor.Builder builderForValue)
          optional .transit_realtime.VehicleDescriptor vehicle = 8;
 GtfsRealtime.VehiclePosition.Builder setVehicle(GtfsRealtime.VehicleDescriptor value)
          optional .transit_realtime.VehicleDescriptor vehicle = 8;
 
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.VehiclePosition.Builder>

clear

public GtfsRealtime.VehiclePosition.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.VehiclePosition,GtfsRealtime.VehiclePosition.Builder>

clone

public GtfsRealtime.VehiclePosition.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.VehiclePosition,GtfsRealtime.VehiclePosition.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.VehiclePosition.Builder>

getDefaultInstanceForType

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

build

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

buildPartial

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

mergeFrom

public GtfsRealtime.VehiclePosition.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.VehiclePosition.Builder>

mergeFrom

public GtfsRealtime.VehiclePosition.Builder mergeFrom(GtfsRealtime.VehiclePosition 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.VehiclePosition,GtfsRealtime.VehiclePosition.Builder>

mergeFrom

public GtfsRealtime.VehiclePosition.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.VehiclePosition.Builder>
Throws:
IOException

hasTrip

public boolean hasTrip()
optional .transit_realtime.TripDescriptor trip = 1;
 The Trip that this vehicle is serving.
 Can be empty or partial if the vehicle can not be identified with a given
 trip instance.
 

Specified by:
hasTrip in interface GtfsRealtime.VehiclePositionOrBuilder

getTrip

public GtfsRealtime.TripDescriptor getTrip()
optional .transit_realtime.TripDescriptor trip = 1;
 The Trip that this vehicle is serving.
 Can be empty or partial if the vehicle can not be identified with a given
 trip instance.
 

Specified by:
getTrip in interface GtfsRealtime.VehiclePositionOrBuilder

setTrip

public GtfsRealtime.VehiclePosition.Builder setTrip(GtfsRealtime.TripDescriptor value)
optional .transit_realtime.TripDescriptor trip = 1;
 The Trip that this vehicle is serving.
 Can be empty or partial if the vehicle can not be identified with a given
 trip instance.
 


setTrip

public GtfsRealtime.VehiclePosition.Builder setTrip(GtfsRealtime.TripDescriptor.Builder builderForValue)
optional .transit_realtime.TripDescriptor trip = 1;
 The Trip that this vehicle is serving.
 Can be empty or partial if the vehicle can not be identified with a given
 trip instance.
 


mergeTrip

public GtfsRealtime.VehiclePosition.Builder mergeTrip(GtfsRealtime.TripDescriptor value)
optional .transit_realtime.TripDescriptor trip = 1;
 The Trip that this vehicle is serving.
 Can be empty or partial if the vehicle can not be identified with a given
 trip instance.
 


clearTrip

public GtfsRealtime.VehiclePosition.Builder clearTrip()
optional .transit_realtime.TripDescriptor trip = 1;
 The Trip that this vehicle is serving.
 Can be empty or partial if the vehicle can not be identified with a given
 trip instance.
 


getTripBuilder

public GtfsRealtime.TripDescriptor.Builder getTripBuilder()
optional .transit_realtime.TripDescriptor trip = 1;
 The Trip that this vehicle is serving.
 Can be empty or partial if the vehicle can not be identified with a given
 trip instance.
 


getTripOrBuilder

public GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder()
optional .transit_realtime.TripDescriptor trip = 1;
 The Trip that this vehicle is serving.
 Can be empty or partial if the vehicle can not be identified with a given
 trip instance.
 

Specified by:
getTripOrBuilder in interface GtfsRealtime.VehiclePositionOrBuilder

hasVehicle

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

Specified by:
hasVehicle in interface GtfsRealtime.VehiclePositionOrBuilder

getVehicle

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

Specified by:
getVehicle in interface GtfsRealtime.VehiclePositionOrBuilder

setVehicle

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


setVehicle

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


mergeVehicle

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


clearVehicle

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


getVehicleBuilder

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


getVehicleOrBuilder

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

Specified by:
getVehicleOrBuilder in interface GtfsRealtime.VehiclePositionOrBuilder

hasPosition

public boolean hasPosition()
optional .transit_realtime.Position position = 2;
 Current position of this vehicle.
 

Specified by:
hasPosition in interface GtfsRealtime.VehiclePositionOrBuilder

getPosition

public GtfsRealtime.Position getPosition()
optional .transit_realtime.Position position = 2;
 Current position of this vehicle.
 

Specified by:
getPosition in interface GtfsRealtime.VehiclePositionOrBuilder

setPosition

public GtfsRealtime.VehiclePosition.Builder setPosition(GtfsRealtime.Position value)
optional .transit_realtime.Position position = 2;
 Current position of this vehicle.
 


setPosition

public GtfsRealtime.VehiclePosition.Builder setPosition(GtfsRealtime.Position.Builder builderForValue)
optional .transit_realtime.Position position = 2;
 Current position of this vehicle.
 


mergePosition

public GtfsRealtime.VehiclePosition.Builder mergePosition(GtfsRealtime.Position value)
optional .transit_realtime.Position position = 2;
 Current position of this vehicle.
 


clearPosition

public GtfsRealtime.VehiclePosition.Builder clearPosition()
optional .transit_realtime.Position position = 2;
 Current position of this vehicle.
 


getPositionBuilder

public GtfsRealtime.Position.Builder getPositionBuilder()
optional .transit_realtime.Position position = 2;
 Current position of this vehicle.
 


getPositionOrBuilder

public GtfsRealtime.PositionOrBuilder getPositionOrBuilder()
optional .transit_realtime.Position position = 2;
 Current position of this vehicle.
 

Specified by:
getPositionOrBuilder in interface GtfsRealtime.VehiclePositionOrBuilder

hasCurrentStopSequence

public boolean hasCurrentStopSequence()
optional uint32 current_stop_sequence = 3;
 The stop sequence index of the current stop. The meaning of
 current_stop_sequence (i.e., the stop that it refers to) is determined by
 current_status.
 If current_status is missing IN_TRANSIT_TO is assumed.
 

Specified by:
hasCurrentStopSequence in interface GtfsRealtime.VehiclePositionOrBuilder

getCurrentStopSequence

public int getCurrentStopSequence()
optional uint32 current_stop_sequence = 3;
 The stop sequence index of the current stop. The meaning of
 current_stop_sequence (i.e., the stop that it refers to) is determined by
 current_status.
 If current_status is missing IN_TRANSIT_TO is assumed.
 

Specified by:
getCurrentStopSequence in interface GtfsRealtime.VehiclePositionOrBuilder

setCurrentStopSequence

public GtfsRealtime.VehiclePosition.Builder setCurrentStopSequence(int value)
optional uint32 current_stop_sequence = 3;
 The stop sequence index of the current stop. The meaning of
 current_stop_sequence (i.e., the stop that it refers to) is determined by
 current_status.
 If current_status is missing IN_TRANSIT_TO is assumed.
 


clearCurrentStopSequence

public GtfsRealtime.VehiclePosition.Builder clearCurrentStopSequence()
optional uint32 current_stop_sequence = 3;
 The stop sequence index of the current stop. The meaning of
 current_stop_sequence (i.e., the stop that it refers to) is determined by
 current_status.
 If current_status is missing IN_TRANSIT_TO is assumed.
 


hasStopId

public boolean hasStopId()
optional string stop_id = 7;
 Identifies the current stop. The value must be the same as in stops.txt in
 the corresponding GTFS feed.
 

Specified by:
hasStopId in interface GtfsRealtime.VehiclePositionOrBuilder

getStopId

public String getStopId()
optional string stop_id = 7;
 Identifies the current stop. The value must be the same as in stops.txt in
 the corresponding GTFS feed.
 

Specified by:
getStopId in interface GtfsRealtime.VehiclePositionOrBuilder

getStopIdBytes

public com.google.protobuf.ByteString getStopIdBytes()
optional string stop_id = 7;
 Identifies the current stop. The value must be the same as in stops.txt in
 the corresponding GTFS feed.
 

Specified by:
getStopIdBytes in interface GtfsRealtime.VehiclePositionOrBuilder

setStopId

public GtfsRealtime.VehiclePosition.Builder setStopId(String value)
optional string stop_id = 7;
 Identifies the current stop. The value must be the same as in stops.txt in
 the corresponding GTFS feed.
 


clearStopId

public GtfsRealtime.VehiclePosition.Builder clearStopId()
optional string stop_id = 7;
 Identifies the current stop. The value must be the same as in stops.txt in
 the corresponding GTFS feed.
 


setStopIdBytes

public GtfsRealtime.VehiclePosition.Builder setStopIdBytes(com.google.protobuf.ByteString value)
optional string stop_id = 7;
 Identifies the current stop. The value must be the same as in stops.txt in
 the corresponding GTFS feed.
 


hasCurrentStatus

public boolean hasCurrentStatus()
optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO];
 The exact status of the vehicle with respect to the current stop.
 Ignored if current_stop_sequence is missing.
 

Specified by:
hasCurrentStatus in interface GtfsRealtime.VehiclePositionOrBuilder

getCurrentStatus

public GtfsRealtime.VehiclePosition.VehicleStopStatus getCurrentStatus()
optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO];
 The exact status of the vehicle with respect to the current stop.
 Ignored if current_stop_sequence is missing.
 

Specified by:
getCurrentStatus in interface GtfsRealtime.VehiclePositionOrBuilder

setCurrentStatus

public GtfsRealtime.VehiclePosition.Builder setCurrentStatus(GtfsRealtime.VehiclePosition.VehicleStopStatus value)
optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO];
 The exact status of the vehicle with respect to the current stop.
 Ignored if current_stop_sequence is missing.
 


clearCurrentStatus

public GtfsRealtime.VehiclePosition.Builder clearCurrentStatus()
optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO];
 The exact status of the vehicle with respect to the current stop.
 Ignored if current_stop_sequence is missing.
 


hasTimestamp

public boolean hasTimestamp()
optional uint64 timestamp = 5;
 Moment at which the vehicle's position was measured. In POSIX time
 (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
 

Specified by:
hasTimestamp in interface GtfsRealtime.VehiclePositionOrBuilder

getTimestamp

public long getTimestamp()
optional uint64 timestamp = 5;
 Moment at which the vehicle's position was measured. In POSIX time
 (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
 

Specified by:
getTimestamp in interface GtfsRealtime.VehiclePositionOrBuilder

setTimestamp

public GtfsRealtime.VehiclePosition.Builder setTimestamp(long value)
optional uint64 timestamp = 5;
 Moment at which the vehicle's position was measured. In POSIX time
 (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
 


clearTimestamp

public GtfsRealtime.VehiclePosition.Builder clearTimestamp()
optional uint64 timestamp = 5;
 Moment at which the vehicle's position was measured. In POSIX time
 (i.e., number of seconds since January 1st 1970 00:00:00 UTC).
 


hasCongestionLevel

public boolean hasCongestionLevel()
optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;

Specified by:
hasCongestionLevel in interface GtfsRealtime.VehiclePositionOrBuilder

getCongestionLevel

public GtfsRealtime.VehiclePosition.CongestionLevel getCongestionLevel()
optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;

Specified by:
getCongestionLevel in interface GtfsRealtime.VehiclePositionOrBuilder

setCongestionLevel

public GtfsRealtime.VehiclePosition.Builder setCongestionLevel(GtfsRealtime.VehiclePosition.CongestionLevel value)
optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;


clearCongestionLevel

public GtfsRealtime.VehiclePosition.Builder clearCongestionLevel()
optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;


hasOccupancyStatus

public boolean hasOccupancyStatus()
optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;

Specified by:
hasOccupancyStatus in interface GtfsRealtime.VehiclePositionOrBuilder

getOccupancyStatus

public GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus()
optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;

Specified by:
getOccupancyStatus in interface GtfsRealtime.VehiclePositionOrBuilder

setOccupancyStatus

public GtfsRealtime.VehiclePosition.Builder setOccupancyStatus(GtfsRealtime.VehiclePosition.OccupancyStatus value)
optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;


clearOccupancyStatus

public GtfsRealtime.VehiclePosition.Builder clearOccupancyStatus()
optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;



Copyright © 2015. All Rights Reserved.