public static enum GtfsRealtime.VehiclePosition.OccupancyStatus extends Enum<GtfsRealtime.VehiclePosition.OccupancyStatus> implements com.google.protobuf.ProtocolMessageEnum
The degree of passenger occupancy of the vehicle. This field is still experimental, and subject to change. It may be formally adopted in the future.Protobuf enum
transit_realtime.VehiclePosition.OccupancyStatus| Enum Constant and Description |
|---|
CRUSHED_STANDING_ROOM_ONLY
The vehicle can currently accommodate only standing passengers
and has limited space for them.
|
EMPTY
The vehicle is considered empty by most measures, and has few or no
passengers onboard, but is still accepting passengers.
|
FEW_SEATS_AVAILABLE
The vehicle has a relatively small percentage of seats available.
|
FULL
The vehicle is considered full by most measures, but may still be
allowing passengers to board.
|
MANY_SEATS_AVAILABLE
The vehicle has a relatively large percentage of seats available.
|
NOT_ACCEPTING_PASSENGERS
The vehicle is not accepting additional passengers.
|
STANDING_ROOM_ONLY
The vehicle can currently accommodate only standing passengers.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CRUSHED_STANDING_ROOM_ONLY_VALUE
The vehicle can currently accommodate only standing passengers
and has limited space for them.
|
static int |
EMPTY_VALUE
The vehicle is considered empty by most measures, and has few or no
passengers onboard, but is still accepting passengers.
|
static int |
FEW_SEATS_AVAILABLE_VALUE
The vehicle has a relatively small percentage of seats available.
|
static int |
FULL_VALUE
The vehicle is considered full by most measures, but may still be
allowing passengers to board.
|
static int |
MANY_SEATS_AVAILABLE_VALUE
The vehicle has a relatively large percentage of seats available.
|
static int |
NOT_ACCEPTING_PASSENGERS_VALUE
The vehicle is not accepting additional passengers.
|
static int |
STANDING_ROOM_ONLY_VALUE
The vehicle can currently accommodate only standing passengers.
|
| Modifier and Type | Method and Description |
|---|---|
static GtfsRealtime.VehiclePosition.OccupancyStatus |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<GtfsRealtime.VehiclePosition.OccupancyStatus> |
internalGetValueMap() |
static GtfsRealtime.VehiclePosition.OccupancyStatus |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static GtfsRealtime.VehiclePosition.OccupancyStatus |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static GtfsRealtime.VehiclePosition.OccupancyStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GtfsRealtime.VehiclePosition.OccupancyStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GtfsRealtime.VehiclePosition.OccupancyStatus EMPTY
The vehicle is considered empty by most measures, and has few or no passengers onboard, but is still accepting passengers.
EMPTY = 0;public static final GtfsRealtime.VehiclePosition.OccupancyStatus MANY_SEATS_AVAILABLE
The vehicle has a relatively large percentage of seats available. What percentage of free seats out of the total seats available is to be considered large enough to fall into this category is determined at the discretion of the producer.
MANY_SEATS_AVAILABLE = 1;public static final GtfsRealtime.VehiclePosition.OccupancyStatus FEW_SEATS_AVAILABLE
The vehicle has a relatively small percentage of seats available. What percentage of free seats out of the total seats available is to be considered small enough to fall into this category is determined at the discretion of the feed producer.
FEW_SEATS_AVAILABLE = 2;public static final GtfsRealtime.VehiclePosition.OccupancyStatus STANDING_ROOM_ONLY
The vehicle can currently accommodate only standing passengers.
STANDING_ROOM_ONLY = 3;public static final GtfsRealtime.VehiclePosition.OccupancyStatus CRUSHED_STANDING_ROOM_ONLY
The vehicle can currently accommodate only standing passengers and has limited space for them.
CRUSHED_STANDING_ROOM_ONLY = 4;public static final GtfsRealtime.VehiclePosition.OccupancyStatus FULL
The vehicle is considered full by most measures, but may still be allowing passengers to board.
FULL = 5;public static final GtfsRealtime.VehiclePosition.OccupancyStatus NOT_ACCEPTING_PASSENGERS
The vehicle is not accepting additional passengers.
NOT_ACCEPTING_PASSENGERS = 6;public static final int EMPTY_VALUE
The vehicle is considered empty by most measures, and has few or no passengers onboard, but is still accepting passengers.
EMPTY = 0;public static final int MANY_SEATS_AVAILABLE_VALUE
The vehicle has a relatively large percentage of seats available. What percentage of free seats out of the total seats available is to be considered large enough to fall into this category is determined at the discretion of the producer.
MANY_SEATS_AVAILABLE = 1;public static final int FEW_SEATS_AVAILABLE_VALUE
The vehicle has a relatively small percentage of seats available. What percentage of free seats out of the total seats available is to be considered small enough to fall into this category is determined at the discretion of the feed producer.
FEW_SEATS_AVAILABLE = 2;public static final int STANDING_ROOM_ONLY_VALUE
The vehicle can currently accommodate only standing passengers.
STANDING_ROOM_ONLY = 3;public static final int CRUSHED_STANDING_ROOM_ONLY_VALUE
The vehicle can currently accommodate only standing passengers and has limited space for them.
CRUSHED_STANDING_ROOM_ONLY = 4;public static final int FULL_VALUE
The vehicle is considered full by most measures, but may still be allowing passengers to board.
FULL = 5;public static final int NOT_ACCEPTING_PASSENGERS_VALUE
The vehicle is not accepting additional passengers.
NOT_ACCEPTING_PASSENGERS = 6;public static GtfsRealtime.VehiclePosition.OccupancyStatus[] values()
for (GtfsRealtime.VehiclePosition.OccupancyStatus c : GtfsRealtime.VehiclePosition.OccupancyStatus.values()) System.out.println(c);
public static GtfsRealtime.VehiclePosition.OccupancyStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static GtfsRealtime.VehiclePosition.OccupancyStatus valueOf(int value)
forNumber(int) instead.public static GtfsRealtime.VehiclePosition.OccupancyStatus forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<GtfsRealtime.VehiclePosition.OccupancyStatus> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static GtfsRealtime.VehiclePosition.OccupancyStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019. All rights reserved.