Package com.google.maps.routing.v2
Enum VehicleEmissionType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<VehicleEmissionType>
@Generated
public enum VehicleEmissionType
extends Enum<VehicleEmissionType>
implements com.google.protobuf.ProtocolMessageEnum
A set of values describing the vehicle's emission type. Applies only to the `DRIVE` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].Protobuf enum
google.maps.routing.v2.VehicleEmissionType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDiesel fueled vehicle.Electricity powered vehicle.Gasoline/petrol fueled vehicle.Hybrid fuel (such as gasoline + electric) vehicle.No emission type specified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDiesel fueled vehicle.static final intElectricity powered vehicle.static final intGasoline/petrol fueled vehicle.static final intHybrid fuel (such as gasoline + electric) vehicle.static final intNo emission type specified. -
Method Summary
Modifier and TypeMethodDescriptionstatic VehicleEmissionTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<VehicleEmissionType>static VehicleEmissionTypevalueOf(int value) Deprecated.static VehicleEmissionTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static VehicleEmissionTypeReturns the enum constant of this type with the specified name.static VehicleEmissionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VEHICLE_EMISSION_TYPE_UNSPECIFIED
No emission type specified. Default to `GASOLINE`.
VEHICLE_EMISSION_TYPE_UNSPECIFIED = 0; -
GASOLINE
Gasoline/petrol fueled vehicle.
GASOLINE = 1; -
ELECTRIC
Electricity powered vehicle.
ELECTRIC = 2; -
HYBRID
Hybrid fuel (such as gasoline + electric) vehicle.
HYBRID = 3; -
DIESEL
Diesel fueled vehicle.
DIESEL = 4; -
UNRECOGNIZED
-
-
Field Details
-
VEHICLE_EMISSION_TYPE_UNSPECIFIED_VALUE
public static final int VEHICLE_EMISSION_TYPE_UNSPECIFIED_VALUENo emission type specified. Default to `GASOLINE`.
VEHICLE_EMISSION_TYPE_UNSPECIFIED = 0;- See Also:
-
GASOLINE_VALUE
public static final int GASOLINE_VALUEGasoline/petrol fueled vehicle.
GASOLINE = 1;- See Also:
-
ELECTRIC_VALUE
public static final int ELECTRIC_VALUEElectricity powered vehicle.
ELECTRIC = 2;- See Also:
-
HYBRID_VALUE
public static final int HYBRID_VALUEHybrid fuel (such as gasoline + electric) vehicle.
HYBRID = 3;- See Also:
-
DIESEL_VALUE
public static final int DIESEL_VALUEDiesel fueled vehicle.
DIESEL = 4;- 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
-
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
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
-