Package com.google.cloud.talent.v4beta1
Enum CommuteMethod
- java.lang.Object
-
- java.lang.Enum<CommuteMethod>
-
- com.google.cloud.talent.v4beta1.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.
Protobuf enumgoogle.cloud.talent.v4beta1.CommuteMethod
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMUTE_METHOD_UNSPECIFIED
Commute method isn't specified.CYCLING
Commute time is calculated based on biking time.DRIVING
Commute time is calculated based on driving time.TRANSIT
Commute time is calculated based on public transit including bus, metro, subway, and so on.UNRECOGNIZED
WALKING
Commute time is calculated based on walking time.
-
Field Summary
Fields Modifier and Type Field Description static int
COMMUTE_METHOD_UNSPECIFIED_VALUE
Commute method isn't specified.static int
CYCLING_VALUE
Commute time is calculated based on biking time.static int
DRIVING_VALUE
Commute time is calculated based on driving time.static int
TRANSIT_VALUE
Commute time is calculated based on public transit including bus, metro, subway, and so on.static int
WALKING_VALUE
Commute time is calculated based on walking time.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CommuteMethod
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<CommuteMethod>
internalGetValueMap()
static CommuteMethod
valueOf(int value)
Deprecated.static CommuteMethod
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static CommuteMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommuteMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
UNRECOGNIZED
public static final CommuteMethod UNRECOGNIZED
-
-
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
-
-
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.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 nameNullPointerException
- 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 interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.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 nameNullPointerException
- if the argument is null
-
-