Enum RouteLabel

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<RouteLabel>

    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 Detail

      • 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;
      • UNRECOGNIZED

        public static final RouteLabel UNRECOGNIZED
    • Field Detail

      • ROUTE_LABEL_UNSPECIFIED_VALUE

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

        public static final int DEFAULT_ROUTE_VALUE
         The default "best" route returned for the route computation.
         
        DEFAULT_ROUTE = 1;
        See Also:
        Constant Field Values
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
    • Method Detail

      • values

        public static RouteLabel[] 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 (RouteLabel c : RouteLabel.values())
            System.out.println(c);
        
        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 final 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