public static final class GtfsRealtime.VehiclePosition extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<GtfsRealtime.VehiclePosition> implements GtfsRealtime.VehiclePositionOrBuilder
Realtime positioning information for a given vehicle.Protobuf type
transit_realtime.VehiclePosition| Modifier and Type | Class and Description |
|---|---|
static class |
GtfsRealtime.VehiclePosition.Builder
Realtime positioning information for a given vehicle.
|
static class |
GtfsRealtime.VehiclePosition.CongestionLevel
Congestion level that is affecting this vehicle.
|
static class |
GtfsRealtime.VehiclePosition.OccupancyStatus
The degree of passenger occupancy of the vehicle.
|
static class |
GtfsRealtime.VehiclePosition.VehicleStopStatus
Protobuf enum
transit_realtime.VehiclePosition.VehicleStopStatus |
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWritercom.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 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
Deprecated.
|
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 |
|---|---|
boolean |
equals(Object obj) |
GtfsRealtime.VehiclePosition.CongestionLevel |
getCongestionLevel()
optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; |
GtfsRealtime.VehiclePosition.VehicleStopStatus |
getCurrentStatus()
The exact status of the vehicle with respect to the current stop.
|
int |
getCurrentStopSequence()
The stop sequence index of the current stop.
|
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()
Current position of this vehicle.
|
GtfsRealtime.PositionOrBuilder |
getPositionOrBuilder()
Current position of this vehicle.
|
int |
getSerializedSize() |
String |
getStopId()
Identifies the current stop.
|
com.google.protobuf.ByteString |
getStopIdBytes()
Identifies the current stop.
|
long |
getTimestamp()
Moment at which the vehicle's position was measured.
|
GtfsRealtime.TripDescriptor |
getTrip()
The Trip that this vehicle is serving.
|
GtfsRealtime.TripDescriptorOrBuilder |
getTripOrBuilder()
The Trip that this vehicle is serving.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
GtfsRealtime.VehicleDescriptor |
getVehicle()
Additional information on the vehicle that is serving this trip.
|
GtfsRealtime.VehicleDescriptorOrBuilder |
getVehicleOrBuilder()
Additional information on the vehicle that is serving this trip.
|
boolean |
hasCongestionLevel()
optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6; |
boolean |
hasCurrentStatus()
The exact status of the vehicle with respect to the current stop.
|
boolean |
hasCurrentStopSequence()
The stop sequence index of the current stop.
|
int |
hashCode() |
boolean |
hasOccupancyStatus()
optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9; |
boolean |
hasPosition()
Current position of this vehicle.
|
boolean |
hasStopId()
Identifies the current stop.
|
boolean |
hasTimestamp()
Moment at which the vehicle's position was measured.
|
boolean |
hasTrip()
The Trip that this vehicle is serving.
|
boolean |
hasVehicle()
Additional information on the vehicle that is serving this trip.
|
protected com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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(ByteBuffer data) |
static GtfsRealtime.VehiclePosition |
parseFrom(ByteBuffer 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) |
static com.google.protobuf.Parser<GtfsRealtime.VehiclePosition> |
parser() |
GtfsRealtime.VehiclePosition.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3canUseUnsafe, computeStringSize, computeStringSizeNoTag, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionpublic 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
@Deprecated public static final com.google.protobuf.Parser<GtfsRealtime.VehiclePosition> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasTrip()
The Trip that this vehicle is serving. Can be empty or partial if the vehicle can not be identified with a given trip instance.
optional .transit_realtime.TripDescriptor trip = 1;hasTrip in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.TripDescriptor getTrip()
The Trip that this vehicle is serving. Can be empty or partial if the vehicle can not be identified with a given trip instance.
optional .transit_realtime.TripDescriptor trip = 1;getTrip in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.TripDescriptorOrBuilder getTripOrBuilder()
The Trip that this vehicle is serving. Can be empty or partial if the vehicle can not be identified with a given trip instance.
optional .transit_realtime.TripDescriptor trip = 1;getTripOrBuilder in interface GtfsRealtime.VehiclePositionOrBuilderpublic boolean hasVehicle()
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 8;hasVehicle in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.VehicleDescriptor getVehicle()
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 8;getVehicle in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder()
Additional information on the vehicle that is serving this trip.
optional .transit_realtime.VehicleDescriptor vehicle = 8;getVehicleOrBuilder in interface GtfsRealtime.VehiclePositionOrBuilderpublic boolean hasPosition()
Current position of this vehicle.
optional .transit_realtime.Position position = 2;hasPosition in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.Position getPosition()
Current position of this vehicle.
optional .transit_realtime.Position position = 2;getPosition in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.PositionOrBuilder getPositionOrBuilder()
Current position of this vehicle.
optional .transit_realtime.Position position = 2;getPositionOrBuilder in interface GtfsRealtime.VehiclePositionOrBuilderpublic boolean hasCurrentStopSequence()
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.
optional uint32 current_stop_sequence = 3;hasCurrentStopSequence in interface GtfsRealtime.VehiclePositionOrBuilderpublic int getCurrentStopSequence()
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.
optional uint32 current_stop_sequence = 3;getCurrentStopSequence in interface GtfsRealtime.VehiclePositionOrBuilderpublic boolean hasStopId()
Identifies the current stop. The value must be the same as in stops.txt in the corresponding GTFS feed.
optional string stop_id = 7;hasStopId in interface GtfsRealtime.VehiclePositionOrBuilderpublic String getStopId()
Identifies the current stop. The value must be the same as in stops.txt in the corresponding GTFS feed.
optional string stop_id = 7;getStopId in interface GtfsRealtime.VehiclePositionOrBuilderpublic com.google.protobuf.ByteString getStopIdBytes()
Identifies the current stop. The value must be the same as in stops.txt in the corresponding GTFS feed.
optional string stop_id = 7;getStopIdBytes in interface GtfsRealtime.VehiclePositionOrBuilderpublic boolean hasCurrentStatus()
The exact status of the vehicle with respect to the current stop. Ignored if current_stop_sequence is missing.
optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO];hasCurrentStatus in interface GtfsRealtime.VehiclePositionOrBuilderpublic GtfsRealtime.VehiclePosition.VehicleStopStatus getCurrentStatus()
The exact status of the vehicle with respect to the current stop. Ignored if current_stop_sequence is missing.
optional .transit_realtime.VehiclePosition.VehicleStopStatus current_status = 4 [default = IN_TRANSIT_TO];getCurrentStatus in interface GtfsRealtime.VehiclePositionOrBuilderpublic boolean hasTimestamp()
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).
optional uint64 timestamp = 5;hasTimestamp in interface GtfsRealtime.VehiclePositionOrBuilderpublic long getTimestamp()
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).
optional uint64 timestamp = 5;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.GeneratedMessageV3.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.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static GtfsRealtime.VehiclePosition parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GtfsRealtime.VehiclePosition parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic 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 GtfsRealtime.VehiclePosition.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GtfsRealtime.VehiclePosition.Builder newBuilder()
public 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.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GtfsRealtime.VehiclePosition getDefaultInstance()
public static com.google.protobuf.Parser<GtfsRealtime.VehiclePosition> parser()
public 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.GeneratedMessageV3public GtfsRealtime.VehiclePosition getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<GtfsRealtime.VehiclePosition>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.