Package com.google.maps.routing.v2
Enum TransitVehicle.TransitVehicleType
- java.lang.Object
-
- java.lang.Enum<TransitVehicle.TransitVehicleType>
-
- com.google.maps.routing.v2.TransitVehicle.TransitVehicleType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<TransitVehicle.TransitVehicleType>
- Enclosing class:
- TransitVehicle
public static enum TransitVehicle.TransitVehicleType extends Enum<TransitVehicle.TransitVehicleType> implements com.google.protobuf.ProtocolMessageEnum
The type of vehicles for transit routes.
Protobuf enumgoogle.maps.routing.v2.TransitVehicle.TransitVehicleType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUSBus.CABLE_CARA vehicle that operates on a cable, usually on the ground.COMMUTER_TRAINCommuter rail.FERRYFerry.FUNICULARA vehicle that is pulled up a steep incline by a cable.GONDOLA_LIFTAn aerial cable car.HEAVY_RAILHeavy rail.HIGH_SPEED_TRAINHigh speed train.INTERCITY_BUSIntercity bus.LONG_DISTANCE_TRAINLong distance train.METRO_RAILLight rail transit.MONORAILMonorail.OTHERAll other vehicles.RAILRail.SHARE_TAXIShare taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.SUBWAYUnderground light rail.TRAMAbove ground light rail.TRANSIT_VEHICLE_TYPE_UNSPECIFIEDUnused.TROLLEYBUSTrolleybus.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intBUS_VALUEBus.static intCABLE_CAR_VALUEA vehicle that operates on a cable, usually on the ground.static intCOMMUTER_TRAIN_VALUECommuter rail.static intFERRY_VALUEFerry.static intFUNICULAR_VALUEA vehicle that is pulled up a steep incline by a cable.static intGONDOLA_LIFT_VALUEAn aerial cable car.static intHEAVY_RAIL_VALUEHeavy rail.static intHIGH_SPEED_TRAIN_VALUEHigh speed train.static intINTERCITY_BUS_VALUEIntercity bus.static intLONG_DISTANCE_TRAIN_VALUELong distance train.static intMETRO_RAIL_VALUELight rail transit.static intMONORAIL_VALUEMonorail.static intOTHER_VALUEAll other vehicles.static intRAIL_VALUERail.static intSHARE_TAXI_VALUEShare taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.static intSUBWAY_VALUEUnderground light rail.static intTRAM_VALUEAbove ground light rail.static intTRANSIT_VEHICLE_TYPE_UNSPECIFIED_VALUEUnused.static intTROLLEYBUS_VALUETrolleybus.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TransitVehicle.TransitVehicleTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<TransitVehicle.TransitVehicleType>internalGetValueMap()static TransitVehicle.TransitVehicleTypevalueOf(int value)Deprecated.static TransitVehicle.TransitVehicleTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static TransitVehicle.TransitVehicleTypevalueOf(String name)Returns the enum constant of this type with the specified name.static TransitVehicle.TransitVehicleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSIT_VEHICLE_TYPE_UNSPECIFIED
public static final TransitVehicle.TransitVehicleType TRANSIT_VEHICLE_TYPE_UNSPECIFIED
Unused.
TRANSIT_VEHICLE_TYPE_UNSPECIFIED = 0;
-
BUS
public static final TransitVehicle.TransitVehicleType BUS
Bus.
BUS = 1;
-
CABLE_CAR
public static final TransitVehicle.TransitVehicleType CABLE_CAR
A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the type `GONDOLA_LIFT`.
CABLE_CAR = 2;
-
COMMUTER_TRAIN
public static final TransitVehicle.TransitVehicleType COMMUTER_TRAIN
Commuter rail.
COMMUTER_TRAIN = 3;
-
FERRY
public static final TransitVehicle.TransitVehicleType FERRY
Ferry.
FERRY = 4;
-
FUNICULAR
public static final TransitVehicle.TransitVehicleType FUNICULAR
A vehicle that is pulled up a steep incline by a cable. A Funicular typically consists of two cars, with each car acting as a counterweight for the other.
FUNICULAR = 5;
-
GONDOLA_LIFT
public static final TransitVehicle.TransitVehicleType GONDOLA_LIFT
An aerial cable car.
GONDOLA_LIFT = 6;
-
HEAVY_RAIL
public static final TransitVehicle.TransitVehicleType HEAVY_RAIL
Heavy rail.
HEAVY_RAIL = 7;
-
HIGH_SPEED_TRAIN
public static final TransitVehicle.TransitVehicleType HIGH_SPEED_TRAIN
High speed train.
HIGH_SPEED_TRAIN = 8;
-
INTERCITY_BUS
public static final TransitVehicle.TransitVehicleType INTERCITY_BUS
Intercity bus.
INTERCITY_BUS = 9;
-
LONG_DISTANCE_TRAIN
public static final TransitVehicle.TransitVehicleType LONG_DISTANCE_TRAIN
Long distance train.
LONG_DISTANCE_TRAIN = 10;
-
METRO_RAIL
public static final TransitVehicle.TransitVehicleType METRO_RAIL
Light rail transit.
METRO_RAIL = 11;
-
MONORAIL
public static final TransitVehicle.TransitVehicleType MONORAIL
Monorail.
MONORAIL = 12;
-
OTHER
public static final TransitVehicle.TransitVehicleType OTHER
All other vehicles.
OTHER = 13;
-
RAIL
public static final TransitVehicle.TransitVehicleType RAIL
Rail.
RAIL = 14;
-
SHARE_TAXI
public static final TransitVehicle.TransitVehicleType SHARE_TAXI
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.
SHARE_TAXI = 15;
-
SUBWAY
public static final TransitVehicle.TransitVehicleType SUBWAY
Underground light rail.
SUBWAY = 16;
-
TRAM
public static final TransitVehicle.TransitVehicleType TRAM
Above ground light rail.
TRAM = 17;
-
TROLLEYBUS
public static final TransitVehicle.TransitVehicleType TROLLEYBUS
Trolleybus.
TROLLEYBUS = 18;
-
UNRECOGNIZED
public static final TransitVehicle.TransitVehicleType UNRECOGNIZED
-
-
Field Detail
-
TRANSIT_VEHICLE_TYPE_UNSPECIFIED_VALUE
public static final int TRANSIT_VEHICLE_TYPE_UNSPECIFIED_VALUE
Unused.
TRANSIT_VEHICLE_TYPE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
BUS_VALUE
public static final int BUS_VALUE
Bus.
BUS = 1;- See Also:
- Constant Field Values
-
CABLE_CAR_VALUE
public static final int CABLE_CAR_VALUE
A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the type `GONDOLA_LIFT`.
CABLE_CAR = 2;- See Also:
- Constant Field Values
-
COMMUTER_TRAIN_VALUE
public static final int COMMUTER_TRAIN_VALUE
Commuter rail.
COMMUTER_TRAIN = 3;- See Also:
- Constant Field Values
-
FERRY_VALUE
public static final int FERRY_VALUE
Ferry.
FERRY = 4;- See Also:
- Constant Field Values
-
FUNICULAR_VALUE
public static final int FUNICULAR_VALUE
A vehicle that is pulled up a steep incline by a cable. A Funicular typically consists of two cars, with each car acting as a counterweight for the other.
FUNICULAR = 5;- See Also:
- Constant Field Values
-
GONDOLA_LIFT_VALUE
public static final int GONDOLA_LIFT_VALUE
An aerial cable car.
GONDOLA_LIFT = 6;- See Also:
- Constant Field Values
-
HEAVY_RAIL_VALUE
public static final int HEAVY_RAIL_VALUE
Heavy rail.
HEAVY_RAIL = 7;- See Also:
- Constant Field Values
-
HIGH_SPEED_TRAIN_VALUE
public static final int HIGH_SPEED_TRAIN_VALUE
High speed train.
HIGH_SPEED_TRAIN = 8;- See Also:
- Constant Field Values
-
INTERCITY_BUS_VALUE
public static final int INTERCITY_BUS_VALUE
Intercity bus.
INTERCITY_BUS = 9;- See Also:
- Constant Field Values
-
LONG_DISTANCE_TRAIN_VALUE
public static final int LONG_DISTANCE_TRAIN_VALUE
Long distance train.
LONG_DISTANCE_TRAIN = 10;- See Also:
- Constant Field Values
-
METRO_RAIL_VALUE
public static final int METRO_RAIL_VALUE
Light rail transit.
METRO_RAIL = 11;- See Also:
- Constant Field Values
-
MONORAIL_VALUE
public static final int MONORAIL_VALUE
Monorail.
MONORAIL = 12;- See Also:
- Constant Field Values
-
OTHER_VALUE
public static final int OTHER_VALUE
All other vehicles.
OTHER = 13;- See Also:
- Constant Field Values
-
RAIL_VALUE
public static final int RAIL_VALUE
Rail.
RAIL = 14;- See Also:
- Constant Field Values
-
SHARE_TAXI_VALUE
public static final int SHARE_TAXI_VALUE
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.
SHARE_TAXI = 15;- See Also:
- Constant Field Values
-
SUBWAY_VALUE
public static final int SUBWAY_VALUE
Underground light rail.
SUBWAY = 16;- See Also:
- Constant Field Values
-
TRAM_VALUE
public static final int TRAM_VALUE
Above ground light rail.
TRAM = 17;- See Also:
- Constant Field Values
-
TROLLEYBUS_VALUE
public static final int TROLLEYBUS_VALUE
Trolleybus.
TROLLEYBUS = 18;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static TransitVehicle.TransitVehicleType[] 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 (TransitVehicle.TransitVehicleType c : TransitVehicle.TransitVehicleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransitVehicle.TransitVehicleType 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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static TransitVehicle.TransitVehicleType valueOf(int value)
Deprecated.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:
value- 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 nameNullPointerException- if the argument is null
-
forNumber
public static TransitVehicle.TransitVehicleType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<TransitVehicle.TransitVehicleType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static TransitVehicle.TransitVehicleType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc- 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 nameNullPointerException- if the argument is null
-
-