public static enum GtfsRealtime.Alert.Cause extends Enum<GtfsRealtime.Alert.Cause> implements com.google.protobuf.ProtocolMessageEnum
transit_realtime.Alert.Cause
Cause of this alert.
Enum Constant and Description |
---|
ACCIDENT
ACCIDENT = 6; |
CONSTRUCTION
CONSTRUCTION = 10; |
DEMONSTRATION
DEMONSTRATION = 5; |
HOLIDAY
HOLIDAY = 7; |
MAINTENANCE
MAINTENANCE = 9; |
MEDICAL_EMERGENCY
MEDICAL_EMERGENCY = 12; |
OTHER_CAUSE
OTHER_CAUSE = 2; |
POLICE_ACTIVITY
POLICE_ACTIVITY = 11; |
STRIKE
STRIKE = 4; |
TECHNICAL_PROBLEM
TECHNICAL_PROBLEM = 3; |
UNKNOWN_CAUSE
UNKNOWN_CAUSE = 1; |
WEATHER
WEATHER = 8; |
Modifier and Type | Field and Description |
---|---|
static int |
ACCIDENT_VALUE
ACCIDENT = 6; |
static int |
CONSTRUCTION_VALUE
CONSTRUCTION = 10; |
static int |
DEMONSTRATION_VALUE
DEMONSTRATION = 5; |
static int |
HOLIDAY_VALUE
HOLIDAY = 7; |
static int |
MAINTENANCE_VALUE
MAINTENANCE = 9; |
static int |
MEDICAL_EMERGENCY_VALUE
MEDICAL_EMERGENCY = 12; |
static int |
OTHER_CAUSE_VALUE
OTHER_CAUSE = 2; |
static int |
POLICE_ACTIVITY_VALUE
POLICE_ACTIVITY = 11; |
static int |
STRIKE_VALUE
STRIKE = 4; |
static int |
TECHNICAL_PROBLEM_VALUE
TECHNICAL_PROBLEM = 3; |
static int |
UNKNOWN_CAUSE_VALUE
UNKNOWN_CAUSE = 1; |
static int |
WEATHER_VALUE
WEATHER = 8; |
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.Alert.Cause> |
internalGetValueMap() |
static GtfsRealtime.Alert.Cause |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static GtfsRealtime.Alert.Cause |
valueOf(int value) |
static GtfsRealtime.Alert.Cause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GtfsRealtime.Alert.Cause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GtfsRealtime.Alert.Cause UNKNOWN_CAUSE
UNKNOWN_CAUSE = 1;
public static final GtfsRealtime.Alert.Cause OTHER_CAUSE
OTHER_CAUSE = 2;
Not machine-representable.
public static final GtfsRealtime.Alert.Cause TECHNICAL_PROBLEM
TECHNICAL_PROBLEM = 3;
public static final GtfsRealtime.Alert.Cause STRIKE
STRIKE = 4;
Public transit agency employees stopped working.
public static final GtfsRealtime.Alert.Cause DEMONSTRATION
DEMONSTRATION = 5;
People are blocking the streets.
public static final GtfsRealtime.Alert.Cause ACCIDENT
ACCIDENT = 6;
public static final GtfsRealtime.Alert.Cause HOLIDAY
HOLIDAY = 7;
public static final GtfsRealtime.Alert.Cause WEATHER
WEATHER = 8;
public static final GtfsRealtime.Alert.Cause MAINTENANCE
MAINTENANCE = 9;
public static final GtfsRealtime.Alert.Cause CONSTRUCTION
CONSTRUCTION = 10;
public static final GtfsRealtime.Alert.Cause POLICE_ACTIVITY
POLICE_ACTIVITY = 11;
public static final GtfsRealtime.Alert.Cause MEDICAL_EMERGENCY
MEDICAL_EMERGENCY = 12;
public static final int UNKNOWN_CAUSE_VALUE
UNKNOWN_CAUSE = 1;
public static final int OTHER_CAUSE_VALUE
OTHER_CAUSE = 2;
Not machine-representable.
public static final int TECHNICAL_PROBLEM_VALUE
TECHNICAL_PROBLEM = 3;
public static final int STRIKE_VALUE
STRIKE = 4;
Public transit agency employees stopped working.
public static final int DEMONSTRATION_VALUE
DEMONSTRATION = 5;
People are blocking the streets.
public static final int ACCIDENT_VALUE
ACCIDENT = 6;
public static final int HOLIDAY_VALUE
HOLIDAY = 7;
public static final int WEATHER_VALUE
WEATHER = 8;
public static final int MAINTENANCE_VALUE
MAINTENANCE = 9;
public static final int CONSTRUCTION_VALUE
CONSTRUCTION = 10;
public static final int POLICE_ACTIVITY_VALUE
POLICE_ACTIVITY = 11;
public static final int MEDICAL_EMERGENCY_VALUE
MEDICAL_EMERGENCY = 12;
public static GtfsRealtime.Alert.Cause[] values()
for (GtfsRealtime.Alert.Cause c : GtfsRealtime.Alert.Cause.values()) System.out.println(c);
public static GtfsRealtime.Alert.Cause 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.Alert.Cause valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<GtfsRealtime.Alert.Cause> 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.Alert.Cause valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018. All rights reserved.