public static enum GtfsRealtime.VehiclePosition.CongestionLevel extends Enum<GtfsRealtime.VehiclePosition.CongestionLevel> implements com.google.protobuf.ProtocolMessageEnum
transit_realtime.VehiclePosition.CongestionLevel
Congestion level that is affecting this vehicle.
Enum Constant and Description |
---|
CONGESTION
CONGESTION = 3; |
RUNNING_SMOOTHLY
RUNNING_SMOOTHLY = 1; |
SEVERE_CONGESTION
SEVERE_CONGESTION = 4; |
STOP_AND_GO
STOP_AND_GO = 2; |
UNKNOWN_CONGESTION_LEVEL
UNKNOWN_CONGESTION_LEVEL = 0; |
Modifier and Type | Field and Description |
---|---|
static int |
CONGESTION_VALUE
CONGESTION = 3; |
static int |
RUNNING_SMOOTHLY_VALUE
RUNNING_SMOOTHLY = 1; |
static int |
SEVERE_CONGESTION_VALUE
SEVERE_CONGESTION = 4; |
static int |
STOP_AND_GO_VALUE
STOP_AND_GO = 2; |
static int |
UNKNOWN_CONGESTION_LEVEL_VALUE
UNKNOWN_CONGESTION_LEVEL = 0; |
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.CongestionLevel> |
internalGetValueMap() |
static GtfsRealtime.VehiclePosition.CongestionLevel |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static GtfsRealtime.VehiclePosition.CongestionLevel |
valueOf(int value) |
static GtfsRealtime.VehiclePosition.CongestionLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GtfsRealtime.VehiclePosition.CongestionLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GtfsRealtime.VehiclePosition.CongestionLevel UNKNOWN_CONGESTION_LEVEL
UNKNOWN_CONGESTION_LEVEL = 0;
public static final GtfsRealtime.VehiclePosition.CongestionLevel RUNNING_SMOOTHLY
RUNNING_SMOOTHLY = 1;
public static final GtfsRealtime.VehiclePosition.CongestionLevel STOP_AND_GO
STOP_AND_GO = 2;
public static final GtfsRealtime.VehiclePosition.CongestionLevel CONGESTION
CONGESTION = 3;
public static final GtfsRealtime.VehiclePosition.CongestionLevel SEVERE_CONGESTION
SEVERE_CONGESTION = 4;
People leaving their cars.
public static final int UNKNOWN_CONGESTION_LEVEL_VALUE
UNKNOWN_CONGESTION_LEVEL = 0;
public static final int RUNNING_SMOOTHLY_VALUE
RUNNING_SMOOTHLY = 1;
public static final int STOP_AND_GO_VALUE
STOP_AND_GO = 2;
public static final int CONGESTION_VALUE
CONGESTION = 3;
public static final int SEVERE_CONGESTION_VALUE
SEVERE_CONGESTION = 4;
People leaving their cars.
public static GtfsRealtime.VehiclePosition.CongestionLevel[] values()
for (GtfsRealtime.VehiclePosition.CongestionLevel c : GtfsRealtime.VehiclePosition.CongestionLevel.values()) System.out.println(c);
public static GtfsRealtime.VehiclePosition.CongestionLevel 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.CongestionLevel valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<GtfsRealtime.VehiclePosition.CongestionLevel> 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.CongestionLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018. All rights reserved.