com.google.transit.realtime
Enum GtfsRealtime.VehiclePosition.OccupancyStatus

java.lang.Object
  extended by java.lang.Enum<GtfsRealtime.VehiclePosition.OccupancyStatus>
      extended by com.google.transit.realtime.GtfsRealtime.VehiclePosition.OccupancyStatus
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<GtfsRealtime.VehiclePosition.OccupancyStatus>
Enclosing class:
GtfsRealtime.VehiclePosition

public static enum GtfsRealtime.VehiclePosition.OccupancyStatus
extends Enum<GtfsRealtime.VehiclePosition.OccupancyStatus>
implements com.google.protobuf.ProtocolMessageEnum

Protobuf enum 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 Summary
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;
 
Field Summary
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;
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EMPTY

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.
 


MANY_SEATS_AVAILABLE

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.
 


FEW_SEATS_AVAILABLE

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.
 


STANDING_ROOM_ONLY

public static final GtfsRealtime.VehiclePosition.OccupancyStatus STANDING_ROOM_ONLY
STANDING_ROOM_ONLY = 3;
 The vehicle can currently accommodate only standing passengers.
 


CRUSHED_STANDING_ROOM_ONLY

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.
 


FULL

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.
 


NOT_ACCEPTING_PASSENGERS

public static final GtfsRealtime.VehiclePosition.OccupancyStatus NOT_ACCEPTING_PASSENGERS
NOT_ACCEPTING_PASSENGERS = 6;
 The vehicle is not accepting additional passengers.
 

Field Detail

EMPTY_VALUE

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.
 

See Also:
Constant Field Values

MANY_SEATS_AVAILABLE_VALUE

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.
 

See Also:
Constant Field Values

FEW_SEATS_AVAILABLE_VALUE

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.
 

See Also:
Constant Field Values

STANDING_ROOM_ONLY_VALUE

public static final int STANDING_ROOM_ONLY_VALUE
STANDING_ROOM_ONLY = 3;
 The vehicle can currently accommodate only standing passengers.
 

See Also:
Constant Field Values

CRUSHED_STANDING_ROOM_ONLY_VALUE

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.
 

See Also:
Constant Field Values

FULL_VALUE

public static final int FULL_VALUE
FULL = 5;
 The vehicle is considered full by most measures, but may still be
 allowing passengers to board.
 

See Also:
Constant Field Values

NOT_ACCEPTING_PASSENGERS_VALUE

public static final int NOT_ACCEPTING_PASSENGERS_VALUE
NOT_ACCEPTING_PASSENGERS = 6;
 The vehicle is not accepting additional passengers.
 

See Also:
Constant Field Values
Method Detail

values

public static GtfsRealtime.VehiclePosition.OccupancyStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GtfsRealtime.VehiclePosition.OccupancyStatus c : GtfsRealtime.VehiclePosition.OccupancyStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GtfsRealtime.VehiclePosition.OccupancyStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getNumber

public final int getNumber()
Specified by:
getNumber in interface com.google.protobuf.Internal.EnumLite
Specified by:
getNumber in interface com.google.protobuf.ProtocolMessageEnum

valueOf

public static GtfsRealtime.VehiclePosition.OccupancyStatus valueOf(int value)

internalGetValueMap

public static com.google.protobuf.Internal.EnumLiteMap<GtfsRealtime.VehiclePosition.OccupancyStatus> internalGetValueMap()

getValueDescriptor

public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
Specified by:
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum

getDescriptorForType

public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
Specified by:
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum

getDescriptor

public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()

valueOf

public static GtfsRealtime.VehiclePosition.OccupancyStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)


Copyright © 2015. All Rights Reserved.