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 and Description |
|---|
DIESEL
Diesel fueled vehicle.
|
ELECTRIC
Electricity powered vehicle.
|
GASOLINE
Gasoline/petrol fueled vehicle.
|
HYBRID
Hybrid fuel (such as gasoline + electric) vehicle.
|
UNRECOGNIZED |
VEHICLE_EMISSION_TYPE_UNSPECIFIED
No emission type specified.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DIESEL_VALUE
Diesel fueled vehicle.
|
static int |
ELECTRIC_VALUE
Electricity powered vehicle.
|
static int |
GASOLINE_VALUE
Gasoline/petrol fueled vehicle.
|
static int |
HYBRID_VALUE
Hybrid fuel (such as gasoline + electric) vehicle.
|
static int |
VEHICLE_EMISSION_TYPE_UNSPECIFIED_VALUE
No emission type specified.
|
| Modifier and Type | Method and Description |
|---|---|
static VehicleEmissionType |
forNumber(int value) |
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<VehicleEmissionType> |
internalGetValueMap() |
static VehicleEmissionType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static VehicleEmissionType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static VehicleEmissionType |
valueOf(String name)
Returns 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.
|
public static final VehicleEmissionType VEHICLE_EMISSION_TYPE_UNSPECIFIED
No emission type specified. Default to `GASOLINE`.
VEHICLE_EMISSION_TYPE_UNSPECIFIED = 0;public static final VehicleEmissionType GASOLINE
Gasoline/petrol fueled vehicle.
GASOLINE = 1;public static final VehicleEmissionType ELECTRIC
Electricity powered vehicle.
ELECTRIC = 2;public static final VehicleEmissionType HYBRID
Hybrid fuel (such as gasoline + electric) vehicle.
HYBRID = 3;public static final VehicleEmissionType DIESEL
Diesel fueled vehicle.
DIESEL = 4;public static final VehicleEmissionType UNRECOGNIZED
public static final int VEHICLE_EMISSION_TYPE_UNSPECIFIED_VALUE
No emission type specified. Default to `GASOLINE`.
VEHICLE_EMISSION_TYPE_UNSPECIFIED = 0;public static final int GASOLINE_VALUE
Gasoline/petrol fueled vehicle.
GASOLINE = 1;public static final int ELECTRIC_VALUE
Electricity powered vehicle.
ELECTRIC = 2;public static final int HYBRID_VALUE
Hybrid fuel (such as gasoline + electric) vehicle.
HYBRID = 3;public static final int DIESEL_VALUE
Diesel fueled vehicle.
DIESEL = 4;public static VehicleEmissionType[] values()
for (VehicleEmissionType c : VehicleEmissionType.values()) System.out.println(c);
public static VehicleEmissionType 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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static VehicleEmissionType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static VehicleEmissionType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<VehicleEmissionType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static VehicleEmissionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.