Enum RouteLabel

java.lang.Object
java.lang.Enum<RouteLabel>
com.google.maps.routing.v2.RouteLabel
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<RouteLabel>

@Generated public enum RouteLabel extends Enum<RouteLabel> implements com.google.protobuf.ProtocolMessageEnum
 Labels for the [`Route`][google.maps.routing.v2.Route] that are useful to
 identify specific properties of the route to compare against others.
 
Protobuf enum google.maps.routing.v2.RouteLabel
  • Enum Constant Details

    • ROUTE_LABEL_UNSPECIFIED

      public static final RouteLabel ROUTE_LABEL_UNSPECIFIED
       Default - not used.
       
      ROUTE_LABEL_UNSPECIFIED = 0;
    • DEFAULT_ROUTE

      public static final RouteLabel DEFAULT_ROUTE
       The default "best" route returned for the route computation.
       
      DEFAULT_ROUTE = 1;
    • DEFAULT_ROUTE_ALTERNATE

      public static final RouteLabel DEFAULT_ROUTE_ALTERNATE
       An alternative to the default "best" route. Routes like this will be
       returned when
       [`compute_alternative_routes`][google.maps.routing.v2.ComputeRoutesRequest.compute_alternative_routes]
       is specified.
       
      DEFAULT_ROUTE_ALTERNATE = 2;
    • FUEL_EFFICIENT

      public static final RouteLabel FUEL_EFFICIENT
       Fuel efficient route. Routes labeled with this value are determined to be
       optimized for Eco parameters such as fuel consumption.
       
      FUEL_EFFICIENT = 3;
    • SHORTER_DISTANCE

      public static final RouteLabel SHORTER_DISTANCE
       Shorter travel distance route. This is an experimental feature.
       
      SHORTER_DISTANCE = 4;
    • UNRECOGNIZED

      public static final RouteLabel UNRECOGNIZED
  • Field Details

    • ROUTE_LABEL_UNSPECIFIED_VALUE

      public static final int ROUTE_LABEL_UNSPECIFIED_VALUE
       Default - not used.
       
      ROUTE_LABEL_UNSPECIFIED = 0;
      See Also:
    • DEFAULT_ROUTE_VALUE

      public static final int DEFAULT_ROUTE_VALUE
       The default "best" route returned for the route computation.
       
      DEFAULT_ROUTE = 1;
      See Also:
    • DEFAULT_ROUTE_ALTERNATE_VALUE

      public static final int DEFAULT_ROUTE_ALTERNATE_VALUE
       An alternative to the default "best" route. Routes like this will be
       returned when
       [`compute_alternative_routes`][google.maps.routing.v2.ComputeRoutesRequest.compute_alternative_routes]
       is specified.
       
      DEFAULT_ROUTE_ALTERNATE = 2;
      See Also:
    • FUEL_EFFICIENT_VALUE

      public static final int FUEL_EFFICIENT_VALUE
       Fuel efficient route. Routes labeled with this value are determined to be
       optimized for Eco parameters such as fuel consumption.
       
      FUEL_EFFICIENT = 3;
      See Also:
    • SHORTER_DISTANCE_VALUE

      public static final int SHORTER_DISTANCE_VALUE
       Shorter travel distance route. This is an experimental feature.
       
      SHORTER_DISTANCE = 4;
      See Also:
  • Method Details

    • values

      public static RouteLabel[] 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

      public static RouteLabel 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

      @Deprecated public static RouteLabel 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 name
      NullPointerException - if the argument is null
    • forNumber

      public static RouteLabel 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<RouteLabel> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static RouteLabel 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 name
      NullPointerException - if the argument is null