com.google.transit.realtime
Enum GtfsRealtime.Alert.Cause

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

public static enum GtfsRealtime.Alert.Cause
extends Enum<GtfsRealtime.Alert.Cause>
implements com.google.protobuf.ProtocolMessageEnum

Protobuf enum transit_realtime.Alert.Cause

 Cause of this alert.
 


Enum Constant Summary
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;
 
Field Summary
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;
 
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.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.
 
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

UNKNOWN_CAUSE

public static final GtfsRealtime.Alert.Cause UNKNOWN_CAUSE
UNKNOWN_CAUSE = 1;


OTHER_CAUSE

public static final GtfsRealtime.Alert.Cause OTHER_CAUSE
OTHER_CAUSE = 2;
 Not machine-representable.
 


TECHNICAL_PROBLEM

public static final GtfsRealtime.Alert.Cause TECHNICAL_PROBLEM
TECHNICAL_PROBLEM = 3;


STRIKE

public static final GtfsRealtime.Alert.Cause STRIKE
STRIKE = 4;
 Public transit agency employees stopped working.
 


DEMONSTRATION

public static final GtfsRealtime.Alert.Cause DEMONSTRATION
DEMONSTRATION = 5;
 People are blocking the streets.
 


ACCIDENT

public static final GtfsRealtime.Alert.Cause ACCIDENT
ACCIDENT = 6;


HOLIDAY

public static final GtfsRealtime.Alert.Cause HOLIDAY
HOLIDAY = 7;


WEATHER

public static final GtfsRealtime.Alert.Cause WEATHER
WEATHER = 8;


MAINTENANCE

public static final GtfsRealtime.Alert.Cause MAINTENANCE
MAINTENANCE = 9;


CONSTRUCTION

public static final GtfsRealtime.Alert.Cause CONSTRUCTION
CONSTRUCTION = 10;


POLICE_ACTIVITY

public static final GtfsRealtime.Alert.Cause POLICE_ACTIVITY
POLICE_ACTIVITY = 11;


MEDICAL_EMERGENCY

public static final GtfsRealtime.Alert.Cause MEDICAL_EMERGENCY
MEDICAL_EMERGENCY = 12;

Field Detail

UNKNOWN_CAUSE_VALUE

public static final int UNKNOWN_CAUSE_VALUE
UNKNOWN_CAUSE = 1;

See Also:
Constant Field Values

OTHER_CAUSE_VALUE

public static final int OTHER_CAUSE_VALUE
OTHER_CAUSE = 2;
 Not machine-representable.
 

See Also:
Constant Field Values

TECHNICAL_PROBLEM_VALUE

public static final int TECHNICAL_PROBLEM_VALUE
TECHNICAL_PROBLEM = 3;

See Also:
Constant Field Values

STRIKE_VALUE

public static final int STRIKE_VALUE
STRIKE = 4;
 Public transit agency employees stopped working.
 

See Also:
Constant Field Values

DEMONSTRATION_VALUE

public static final int DEMONSTRATION_VALUE
DEMONSTRATION = 5;
 People are blocking the streets.
 

See Also:
Constant Field Values

ACCIDENT_VALUE

public static final int ACCIDENT_VALUE
ACCIDENT = 6;

See Also:
Constant Field Values

HOLIDAY_VALUE

public static final int HOLIDAY_VALUE
HOLIDAY = 7;

See Also:
Constant Field Values

WEATHER_VALUE

public static final int WEATHER_VALUE
WEATHER = 8;

See Also:
Constant Field Values

MAINTENANCE_VALUE

public static final int MAINTENANCE_VALUE
MAINTENANCE = 9;

See Also:
Constant Field Values

CONSTRUCTION_VALUE

public static final int CONSTRUCTION_VALUE
CONSTRUCTION = 10;

See Also:
Constant Field Values

POLICE_ACTIVITY_VALUE

public static final int POLICE_ACTIVITY_VALUE
POLICE_ACTIVITY = 11;

See Also:
Constant Field Values

MEDICAL_EMERGENCY_VALUE

public static final int MEDICAL_EMERGENCY_VALUE
MEDICAL_EMERGENCY = 12;

See Also:
Constant Field Values
Method Detail

values

public static GtfsRealtime.Alert.Cause[] 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.Alert.Cause c : GtfsRealtime.Alert.Cause.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.Alert.Cause 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.Alert.Cause valueOf(int value)

internalGetValueMap

public static com.google.protobuf.Internal.EnumLiteMap<GtfsRealtime.Alert.Cause> 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.Alert.Cause valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)


Copyright © 2015. All Rights Reserved.