public static enum GtfsRealtime.VehiclePosition.OccupancyStatus extends Enum<GtfsRealtime.VehiclePosition.OccupancyStatus> implements com.google.protobuf.ProtocolMessageEnum
transit_realtime.VehiclePosition.OccupancyStatus
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.
Enum Constant and Description |
---|
CRUSHED_STANDING_ROOM_ONLY
CRUSHED_STANDING_ROOM_ONLY = 4; |
EMPTY
EMPTY = 0; |
FEW_SEATS_AVAILABLE
FEW_SEATS_AVAILABLE = 2; |
FULL
FULL = 5; |
MANY_SEATS_AVAILABLE
MANY_SEATS_AVAILABLE = 1; |
NOT_ACCEPTING_PASSENGERS
NOT_ACCEPTING_PASSENGERS = 6; |
STANDING_ROOM_ONLY
STANDING_ROOM_ONLY = 3; |
Modifier and Type | Field and Description |
---|---|
static int |
CRUSHED_STANDING_ROOM_ONLY_VALUE
CRUSHED_STANDING_ROOM_ONLY = 4; |
static int |
EMPTY_VALUE
EMPTY = 0; |
static int |
FEW_SEATS_AVAILABLE_VALUE
FEW_SEATS_AVAILABLE = 2; |
static int |
FULL_VALUE
FULL = 5; |
static int |
MANY_SEATS_AVAILABLE_VALUE
MANY_SEATS_AVAILABLE = 1; |
static int |
NOT_ACCEPTING_PASSENGERS_VALUE
NOT_ACCEPTING_PASSENGERS = 6; |
static int |
STANDING_ROOM_ONLY_VALUE
STANDING_ROOM_ONLY = 3; |
Modifier and Type | Method and Description |
---|---|
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) |
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
EMPTY = 0;
The vehicle is considered empty by most measures, and has few or no passengers onboard, but is still accepting passengers.
public static final GtfsRealtime.VehiclePosition.OccupancyStatus MANY_SEATS_AVAILABLE
MANY_SEATS_AVAILABLE = 1;
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.
public static final GtfsRealtime.VehiclePosition.OccupancyStatus FEW_SEATS_AVAILABLE
FEW_SEATS_AVAILABLE = 2;
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.
public static final GtfsRealtime.VehiclePosition.OccupancyStatus STANDING_ROOM_ONLY
STANDING_ROOM_ONLY = 3;
The vehicle can currently accommodate only standing passengers.
public static final GtfsRealtime.VehiclePosition.OccupancyStatus CRUSHED_STANDING_ROOM_ONLY
CRUSHED_STANDING_ROOM_ONLY = 4;
The vehicle can currently accommodate only standing passengers and has limited space for them.
public static final GtfsRealtime.VehiclePosition.OccupancyStatus FULL
FULL = 5;
The vehicle is considered full by most measures, but may still be allowing passengers to board.
public static final GtfsRealtime.VehiclePosition.OccupancyStatus NOT_ACCEPTING_PASSENGERS
NOT_ACCEPTING_PASSENGERS = 6;
The vehicle is not accepting additional passengers.
public static final int EMPTY_VALUE
EMPTY = 0;
The vehicle is considered empty by most measures, and has few or no passengers onboard, but is still accepting passengers.
public static final int MANY_SEATS_AVAILABLE_VALUE
MANY_SEATS_AVAILABLE = 1;
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.
public static final int FEW_SEATS_AVAILABLE_VALUE
FEW_SEATS_AVAILABLE = 2;
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.
public static final int STANDING_ROOM_ONLY_VALUE
STANDING_ROOM_ONLY = 3;
The vehicle can currently accommodate only standing passengers.
public static final int CRUSHED_STANDING_ROOM_ONLY_VALUE
CRUSHED_STANDING_ROOM_ONLY = 4;
The vehicle can currently accommodate only standing passengers and has limited space for them.
public static final int FULL_VALUE
FULL = 5;
The vehicle is considered full by most measures, but may still be allowing passengers to board.
public static final int NOT_ACCEPTING_PASSENGERS_VALUE
NOT_ACCEPTING_PASSENGERS = 6;
The vehicle is not accepting additional passengers.
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.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static GtfsRealtime.VehiclePosition.OccupancyStatus valueOf(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.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public 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.