com.google.transit.realtime
Class GtfsRealtime.VehiclePosition

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite
      extended by com.google.protobuf.AbstractMessage
          extended by com.google.protobuf.GeneratedMessage
              extended by com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.VehiclePosition>
                  extended by com.google.transit.realtime.GtfsRealtime.VehiclePosition
All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.VehiclePosition>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GtfsRealtime.VehiclePositionOrBuilder, Serializable
Enclosing class:
GtfsRealtime

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

Protobuf type transit_realtime.VehiclePosition

 Realtime positioning information for a given vehicle.
 

See Also:
Serialized Form

Nested Class Summary
static class GtfsRealtime.VehiclePosition.Builder
          Protobuf type transit_realtime.VehiclePosition
static class GtfsRealtime.VehiclePosition.CongestionLevel
          Protobuf enum transit_realtime.VehiclePosition.CongestionLevel
static class GtfsRealtime.VehiclePosition.OccupancyStatus
          Protobuf enum transit_realtime.VehiclePosition.OccupancyStatus
static class GtfsRealtime.VehiclePosition.VehicleStopStatus
          Protobuf enum transit_realtime.VehiclePosition.VehicleStopStatus
 
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter
 
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
 
Field Summary
static int CONGESTION_LEVEL_FIELD_NUMBER
           
static int CURRENT_STATUS_FIELD_NUMBER
           
static int CURRENT_STOP_SEQUENCE_FIELD_NUMBER
           
static int OCCUPANCY_STATUS_FIELD_NUMBER
           
static com.google.protobuf.Parser<GtfsRealtime.VehiclePosition> PARSER
           
static int POSITION_FIELD_NUMBER
           
static int STOP_ID_FIELD_NUMBER
           
static int TIMESTAMP_FIELD_NUMBER
           
static int TRIP_FIELD_NUMBER
           
static int VEHICLE_FIELD_NUMBER
           
 
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders
 
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
 
Method Summary
 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;
static GtfsRealtime.VehiclePosition getDefaultInstance()
           
 GtfsRealtime.VehiclePosition getDefaultInstanceForType()
           
static com.google.protobuf.Descriptors.Descriptor getDescriptor()
           
 GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus()
          optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;
 com.google.protobuf.Parser<GtfsRealtime.VehiclePosition> getParserForType()
           
 GtfsRealtime.Position getPosition()
          optional .transit_realtime.Position position = 2;
 GtfsRealtime.PositionOrBuilder getPositionOrBuilder()
          optional .transit_realtime.Position position = 2;
 int getSerializedSize()
           
 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.TripDescriptorOrBuilder getTripOrBuilder()
          optional .transit_realtime.TripDescriptor trip = 1;
 com.google.protobuf.UnknownFieldSet getUnknownFields()
           
 GtfsRealtime.VehicleDescriptor getVehicle()
          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()
           
static GtfsRealtime.VehiclePosition.Builder newBuilder()
           
static GtfsRealtime.VehiclePosition.Builder newBuilder(GtfsRealtime.VehiclePosition prototype)
           
 GtfsRealtime.VehiclePosition.Builder newBuilderForType()
           
protected  GtfsRealtime.VehiclePosition.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
           
static GtfsRealtime.VehiclePosition parseDelimitedFrom(InputStream input)
           
static GtfsRealtime.VehiclePosition parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static GtfsRealtime.VehiclePosition parseFrom(byte[] data)
           
static GtfsRealtime.VehiclePosition parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.ByteString data)
           
static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.CodedInputStream input)
           
static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
static GtfsRealtime.VehiclePosition parseFrom(InputStream input)
           
static GtfsRealtime.VehiclePosition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
           
 GtfsRealtime.VehiclePosition.Builder toBuilder()
           
protected  Object writeReplace()
           
 void writeTo(com.google.protobuf.CodedOutputStream output)
           
 
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableMessage
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField
 
Methods inherited from class com.google.protobuf.GeneratedMessage
getDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension
 
Methods inherited from class com.google.protobuf.AbstractMessage
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
 
Methods inherited from class com.google.protobuf.AbstractMessageLite
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
 
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 

Field Detail

PARSER

public static com.google.protobuf.Parser<GtfsRealtime.VehiclePosition> PARSER

TRIP_FIELD_NUMBER

public static final int TRIP_FIELD_NUMBER
See Also:
Constant Field Values

VEHICLE_FIELD_NUMBER

public static final int VEHICLE_FIELD_NUMBER
See Also:
Constant Field Values

POSITION_FIELD_NUMBER

public static final int POSITION_FIELD_NUMBER
See Also:
Constant Field Values

CURRENT_STOP_SEQUENCE_FIELD_NUMBER

public static final int CURRENT_STOP_SEQUENCE_FIELD_NUMBER
See Also:
Constant Field Values

STOP_ID_FIELD_NUMBER

public static final int STOP_ID_FIELD_NUMBER
See Also:
Constant Field Values

CURRENT_STATUS_FIELD_NUMBER

public static final int CURRENT_STATUS_FIELD_NUMBER
See Also:
Constant Field Values

TIMESTAMP_FIELD_NUMBER

public static final int TIMESTAMP_FIELD_NUMBER
See Also:
Constant Field Values

CONGESTION_LEVEL_FIELD_NUMBER

public static final int CONGESTION_LEVEL_FIELD_NUMBER
See Also:
Constant Field Values

OCCUPANCY_STATUS_FIELD_NUMBER

public static final int OCCUPANCY_STATUS_FIELD_NUMBER
See Also:
Constant Field Values
Method Detail

getDefaultInstance

public static GtfsRealtime.VehiclePosition getDefaultInstance()

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

getUnknownFields

public final com.google.protobuf.UnknownFieldSet getUnknownFields()
Specified by:
getUnknownFields in interface com.google.protobuf.MessageOrBuilder
Overrides:
getUnknownFields in class com.google.protobuf.GeneratedMessage

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

getParserForType

public com.google.protobuf.Parser<GtfsRealtime.VehiclePosition> getParserForType()
Specified by:
getParserForType in interface com.google.protobuf.Message
Specified by:
getParserForType in interface com.google.protobuf.MessageLite
Overrides:
getParserForType in class com.google.protobuf.GeneratedMessage

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

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

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

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

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

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

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

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

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

isInitialized

public final boolean isInitialized()
Specified by:
isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
Overrides:
isInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.VehiclePosition>

writeTo

public void writeTo(com.google.protobuf.CodedOutputStream output)
             throws IOException
Specified by:
writeTo in interface com.google.protobuf.MessageLite
Overrides:
writeTo in class com.google.protobuf.AbstractMessage
Throws:
IOException

getSerializedSize

public int getSerializedSize()
Specified by:
getSerializedSize in interface com.google.protobuf.MessageLite
Overrides:
getSerializedSize in class com.google.protobuf.AbstractMessage

writeReplace

protected Object writeReplace()
                       throws ObjectStreamException
Overrides:
writeReplace in class com.google.protobuf.GeneratedMessage
Throws:
ObjectStreamException

parseFrom

public static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static GtfsRealtime.VehiclePosition parseFrom(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static GtfsRealtime.VehiclePosition parseFrom(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
Throws:
com.google.protobuf.InvalidProtocolBufferException

parseFrom

public static GtfsRealtime.VehiclePosition parseFrom(InputStream input)
                                              throws IOException
Throws:
IOException

parseFrom

public static GtfsRealtime.VehiclePosition parseFrom(InputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws IOException
Throws:
IOException

parseDelimitedFrom

public static GtfsRealtime.VehiclePosition parseDelimitedFrom(InputStream input)
                                                       throws IOException
Throws:
IOException

parseDelimitedFrom

public static GtfsRealtime.VehiclePosition parseDelimitedFrom(InputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws IOException
Throws:
IOException

parseFrom

public static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.CodedInputStream input)
                                              throws IOException
Throws:
IOException

parseFrom

public static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws IOException
Throws:
IOException

newBuilder

public static GtfsRealtime.VehiclePosition.Builder newBuilder()

newBuilderForType

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

newBuilder

public static GtfsRealtime.VehiclePosition.Builder newBuilder(GtfsRealtime.VehiclePosition prototype)

toBuilder

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

newBuilderForType

protected GtfsRealtime.VehiclePosition.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
Specified by:
newBuilderForType in class com.google.protobuf.GeneratedMessage


Copyright © 2015. All Rights Reserved.