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 enum
google.maps.routing.v2.TransitVehicle.TransitVehicleType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBus.A vehicle that operates on a cable, usually on the ground.Commuter rail.Ferry.A vehicle that is pulled up a steep incline by a cable.An aerial cable car.Heavy rail.High speed train.Intercity bus.Long distance train.Light rail transit.Monorail.All other vehicles.Rail.Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.Underground light rail.Above ground light rail.Unused.Trolleybus. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBus.static final intA vehicle that operates on a cable, usually on the ground.static final intCommuter rail.static final intFerry.static final intA vehicle that is pulled up a steep incline by a cable.static final intAn aerial cable car.static final intHeavy rail.static final intHigh speed train.static final intIntercity bus.static final intLong distance train.static final intLight rail transit.static final intMonorail.static final intAll other vehicles.static final intRail.static final intShare taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.static final intUnderground light rail.static final intAbove ground light rail.static final intUnused.static final intTrolleybus. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<TransitVehicle.TransitVehicleType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified 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 Details
-
TRANSIT_VEHICLE_TYPE_UNSPECIFIED
Unused.
TRANSIT_VEHICLE_TYPE_UNSPECIFIED = 0; -
BUS
Bus.
BUS = 1; -
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
Commuter rail.
COMMUTER_TRAIN = 3; -
FERRY
Ferry.
FERRY = 4; -
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
An aerial cable car.
GONDOLA_LIFT = 6; -
HEAVY_RAIL
Heavy rail.
HEAVY_RAIL = 7; -
HIGH_SPEED_TRAIN
High speed train.
HIGH_SPEED_TRAIN = 8; -
INTERCITY_BUS
Intercity bus.
INTERCITY_BUS = 9; -
LONG_DISTANCE_TRAIN
Long distance train.
LONG_DISTANCE_TRAIN = 10; -
METRO_RAIL
Light rail transit.
METRO_RAIL = 11; -
MONORAIL
Monorail.
MONORAIL = 12; -
OTHER
All other vehicles.
OTHER = 13; -
RAIL
Rail.
RAIL = 14; -
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
Underground light rail.
SUBWAY = 16; -
TRAM
Above ground light rail.
TRAM = 17; -
TROLLEYBUS
Trolleybus.
TROLLEYBUS = 18; -
UNRECOGNIZED
-
-
Field Details
-
TRANSIT_VEHICLE_TYPE_UNSPECIFIED_VALUE
public static final int TRANSIT_VEHICLE_TYPE_UNSPECIFIED_VALUEUnused.
TRANSIT_VEHICLE_TYPE_UNSPECIFIED = 0;- See Also:
-
BUS_VALUE
public static final int BUS_VALUEBus.
BUS = 1;- See Also:
-
CABLE_CAR_VALUE
public static final int CABLE_CAR_VALUEA 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:
-
COMMUTER_TRAIN_VALUE
public static final int COMMUTER_TRAIN_VALUECommuter rail.
COMMUTER_TRAIN = 3;- See Also:
-
FERRY_VALUE
public static final int FERRY_VALUEFerry.
FERRY = 4;- See Also:
-
FUNICULAR_VALUE
public static final int FUNICULAR_VALUEA 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:
-
GONDOLA_LIFT_VALUE
public static final int GONDOLA_LIFT_VALUEAn aerial cable car.
GONDOLA_LIFT = 6;- See Also:
-
HEAVY_RAIL_VALUE
public static final int HEAVY_RAIL_VALUEHeavy rail.
HEAVY_RAIL = 7;- See Also:
-
HIGH_SPEED_TRAIN_VALUE
public static final int HIGH_SPEED_TRAIN_VALUEHigh speed train.
HIGH_SPEED_TRAIN = 8;- See Also:
-
INTERCITY_BUS_VALUE
public static final int INTERCITY_BUS_VALUEIntercity bus.
INTERCITY_BUS = 9;- See Also:
-
LONG_DISTANCE_TRAIN_VALUE
public static final int LONG_DISTANCE_TRAIN_VALUELong distance train.
LONG_DISTANCE_TRAIN = 10;- See Also:
-
METRO_RAIL_VALUE
public static final int METRO_RAIL_VALUELight rail transit.
METRO_RAIL = 11;- See Also:
-
MONORAIL_VALUE
public static final int MONORAIL_VALUEMonorail.
MONORAIL = 12;- See Also:
-
OTHER_VALUE
public static final int OTHER_VALUEAll other vehicles.
OTHER = 13;- See Also:
-
RAIL_VALUE
public static final int RAIL_VALUERail.
RAIL = 14;- See Also:
-
SHARE_TAXI_VALUE
public static final int SHARE_TAXI_VALUEShare 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:
-
SUBWAY_VALUE
public static final int SUBWAY_VALUEUnderground light rail.
SUBWAY = 16;- See Also:
-
TRAM_VALUE
public static final int TRAM_VALUEAbove ground light rail.
TRAM = 17;- See Also:
-
TROLLEYBUS_VALUE
public static final int TROLLEYBUS_VALUETrolleybus.
TROLLEYBUS = 18;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- 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 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
-