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.ExtensionWriter
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>
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, parseUnknownField
getDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtensionCount, hasExtension
public 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.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<GtfsRealtime.VehiclePosition> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
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.
hasTrip
in interface GtfsRealtime.VehiclePositionOrBuilder
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.
getTrip
in interface GtfsRealtime.VehiclePositionOrBuilder
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.
getTripOrBuilder
in interface GtfsRealtime.VehiclePositionOrBuilder
public boolean hasVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 8;
Additional information on the vehicle that is serving this trip.
hasVehicle
in interface GtfsRealtime.VehiclePositionOrBuilder
public GtfsRealtime.VehicleDescriptor getVehicle()
optional .transit_realtime.VehicleDescriptor vehicle = 8;
Additional information on the vehicle that is serving this trip.
getVehicle
in interface GtfsRealtime.VehiclePositionOrBuilder
public GtfsRealtime.VehicleDescriptorOrBuilder getVehicleOrBuilder()
optional .transit_realtime.VehicleDescriptor vehicle = 8;
Additional information on the vehicle that is serving this trip.
getVehicleOrBuilder
in interface GtfsRealtime.VehiclePositionOrBuilder
public boolean hasPosition()
optional .transit_realtime.Position position = 2;
Current position of this vehicle.
hasPosition
in interface GtfsRealtime.VehiclePositionOrBuilder
public GtfsRealtime.Position getPosition()
optional .transit_realtime.Position position = 2;
Current position of this vehicle.
getPosition
in interface GtfsRealtime.VehiclePositionOrBuilder
public GtfsRealtime.PositionOrBuilder getPositionOrBuilder()
optional .transit_realtime.Position position = 2;
Current position of this vehicle.
getPositionOrBuilder
in interface GtfsRealtime.VehiclePositionOrBuilder
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.
hasCurrentStopSequence
in interface GtfsRealtime.VehiclePositionOrBuilder
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.
getCurrentStopSequence
in interface GtfsRealtime.VehiclePositionOrBuilder
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.
hasStopId
in interface GtfsRealtime.VehiclePositionOrBuilder
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.
getStopId
in interface GtfsRealtime.VehiclePositionOrBuilder
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.
getStopIdBytes
in interface GtfsRealtime.VehiclePositionOrBuilder
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.
hasCurrentStatus
in interface GtfsRealtime.VehiclePositionOrBuilder
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.
getCurrentStatus
in interface GtfsRealtime.VehiclePositionOrBuilder
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).
hasTimestamp
in interface GtfsRealtime.VehiclePositionOrBuilder
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).
getTimestamp
in interface GtfsRealtime.VehiclePositionOrBuilder
public boolean hasCongestionLevel()
optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;
hasCongestionLevel
in interface GtfsRealtime.VehiclePositionOrBuilder
public GtfsRealtime.VehiclePosition.CongestionLevel getCongestionLevel()
optional .transit_realtime.VehiclePosition.CongestionLevel congestion_level = 6;
getCongestionLevel
in interface GtfsRealtime.VehiclePositionOrBuilder
public boolean hasOccupancyStatus()
optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;
hasOccupancyStatus
in interface GtfsRealtime.VehiclePositionOrBuilder
public GtfsRealtime.VehiclePosition.OccupancyStatus getOccupancyStatus()
optional .transit_realtime.VehiclePosition.OccupancyStatus occupancy_status = 9;
getOccupancyStatus
in interface GtfsRealtime.VehiclePositionOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
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.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.VehiclePosition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.VehiclePosition parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static GtfsRealtime.VehiclePosition parseFrom(InputStream input) throws IOException
IOException
public static GtfsRealtime.VehiclePosition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.VehiclePosition parseDelimitedFrom(InputStream input) throws IOException
IOException
public static GtfsRealtime.VehiclePosition parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static GtfsRealtime.VehiclePosition parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GtfsRealtime.VehiclePosition.Builder newBuilder()
public GtfsRealtime.VehiclePosition.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static GtfsRealtime.VehiclePosition.Builder newBuilder(GtfsRealtime.VehiclePosition prototype)
public GtfsRealtime.VehiclePosition.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected GtfsRealtime.VehiclePosition.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2019. All rights reserved.