Enum CommuteMethod

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

    public enum CommuteMethod
    extends Enum<CommuteMethod>
    implements com.google.protobuf.ProtocolMessageEnum
     Method for commute. Walking, biking and wheelchair accessible transit is
     still in the Preview stage.
     
    Protobuf enum google.cloud.talent.v4.CommuteMethod
    • Enum Constant Detail

      • COMMUTE_METHOD_UNSPECIFIED

        public static final CommuteMethod COMMUTE_METHOD_UNSPECIFIED
         Commute method isn't specified.
         
        COMMUTE_METHOD_UNSPECIFIED = 0;
      • DRIVING

        public static final CommuteMethod DRIVING
         Commute time is calculated based on driving time.
         
        DRIVING = 1;
      • TRANSIT

        public static final CommuteMethod TRANSIT
         Commute time is calculated based on public transit including bus, metro,
         subway, and so on.
         
        TRANSIT = 2;
      • WALKING

        public static final CommuteMethod WALKING
         Commute time is calculated based on walking time.
         
        WALKING = 3;
      • CYCLING

        public static final CommuteMethod CYCLING
         Commute time is calculated based on biking time.
         
        CYCLING = 4;
      • TRANSIT_ACCESSIBLE

        public static final CommuteMethod TRANSIT_ACCESSIBLE
         Commute time is calculated based on public transit that is wheelchair
         accessible.
         
        TRANSIT_ACCESSIBLE = 5;
    • Field Detail

      • COMMUTE_METHOD_UNSPECIFIED_VALUE

        public static final int COMMUTE_METHOD_UNSPECIFIED_VALUE
         Commute method isn't specified.
         
        COMMUTE_METHOD_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • DRIVING_VALUE

        public static final int DRIVING_VALUE
         Commute time is calculated based on driving time.
         
        DRIVING = 1;
        See Also:
        Constant Field Values
      • TRANSIT_VALUE

        public static final int TRANSIT_VALUE
         Commute time is calculated based on public transit including bus, metro,
         subway, and so on.
         
        TRANSIT = 2;
        See Also:
        Constant Field Values
      • WALKING_VALUE

        public static final int WALKING_VALUE
         Commute time is calculated based on walking time.
         
        WALKING = 3;
        See Also:
        Constant Field Values
      • CYCLING_VALUE

        public static final int CYCLING_VALUE
         Commute time is calculated based on biking time.
         
        CYCLING = 4;
        See Also:
        Constant Field Values
      • TRANSIT_ACCESSIBLE_VALUE

        public static final int TRANSIT_ACCESSIBLE_VALUE
         Commute time is calculated based on public transit that is wheelchair
         accessible.
         
        TRANSIT_ACCESSIBLE = 5;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static CommuteMethod[] 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 (CommuteMethod c : CommuteMethod.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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