public static final class GtfsRealtime.VehiclePosition extends com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.VehiclePosition> implements GtfsRealtime.VehiclePositionOrBuilder
transit_realtime.VehiclePosition
Realtime positioning information for a given vehicle.
| Modifier and Type | Class and Description |
|---|---|
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 |
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWritercom.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>| Modifier and Type | Field and Description |
|---|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
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) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownFieldgetDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtensionCount, hasExtensionpublic static com.google.protobuf.Parser<GtfsRealtime.VehiclePosition> PARSER
public static final int TRIP_FIELD_NUMBER
public static final int VEHICLE_FIELD_NUMBER
public static final int POSITION_FIELD_NUMBER
public static final int CURRENT_STOP_SEQUENCE_FIELD_NUMBER
public static final int STOP_ID_FIELD_NUMBER
public static final int CURRENT_STATUS_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public static final int CONGESTION_LEVEL_FIELD_NUMBER
public static final int OCCUPANCY_STATUS_FIELD_NUMBER
public static GtfsRealtime.VehiclePosition getDefaultInstance()
public GtfsRealtime.VehiclePosition getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<GtfsRealtime.VehiclePosition>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<GtfsRealtime.VehiclePosition> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic 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.
hasTrip in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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.
getTrip in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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.
getTripOrBuilder in interface GtfsRealtime.VehiclePositionOrBuilderpublic boolean hasVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 8;
Additional information on the vehicle that is serving this trip.
hasVehicle in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.VehicleDescriptor getVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 8;
Additional information on the vehicle that is serving this trip.
getVehicle in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder()
optional .transit_realtime.VehicleDescriptor vehicle = 8;
Additional information on the vehicle that is serving this trip.
getVehicleOrBuilder in interface GtfsRealtime.VehiclePositionOrBuilderpublic boolean hasPosition()
optional .transit_realtime.Position position = 2;
Current position of this vehicle.
hasPosition in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.Position getPosition()
optional .transit_realtime.Position position = 2;
Current position of this vehicle.
getPosition in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.PositionOrBuilder getPositionOrBuilder()
optional .transit_realtime.Position position = 2;
Current position of this vehicle.
getPositionOrBuilder in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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.
hasCurrentStopSequence in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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.
getCurrentStopSequence in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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.
hasStopId in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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.
getStopId in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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.
getStopIdBytes in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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.
hasCurrentStatus in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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.
getCurrentStatus in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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).
hasTimestamp in interface GtfsRealtime.VehiclePositionOrBuilderpublic 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).
getTimestamp in interface GtfsRealtime.VehiclePositionOrBuilderpublic boolean hasCongestionLevel()
optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;hasCongestionLevel in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.VehiclePosition.CongestionLevel getCongestionLevel()
optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;getCongestionLevel in interface GtfsRealtime.VehiclePositionOrBuilderpublic boolean hasOccupancyStatus()
optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;hasOccupancyStatus in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus()
optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;getOccupancyStatus in interface GtfsRealtime.VehiclePositionOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<GtfsRealtime.VehiclePosition>public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.VehiclePosition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.VehiclePosition parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.VehiclePosition parseFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.VehiclePosition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.VehiclePosition parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.VehiclePosition parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GtfsRealtime.VehiclePosition.Builder newBuilder()
public GtfsRealtime.VehiclePosition.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GtfsRealtime.VehiclePosition.Builder newBuilder(GtfsRealtime.VehiclePosition prototype)
public GtfsRealtime.VehiclePosition.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GtfsRealtime.VehiclePosition.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2018. All rights reserved.