public enum CommuteMethod extends Enum<CommuteMethod> implements 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 and 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.
|
TRANSIT_ACCESSIBLE
Commute time is calculated based on public transit that is wheelchair
accessible.
|
UNRECOGNIZED |
WALKING
Commute time is calculated based on walking time.
|
Modifier and Type | Field and 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_ACCESSIBLE_VALUE
Commute time is calculated based on public transit that is wheelchair
accessible.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static CommuteMethod |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<CommuteMethod> |
internalGetValueMap() |
static CommuteMethod |
valueOf(Descriptors.EnumValueDescriptor desc) |
static CommuteMethod |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final CommuteMethod COMMUTE_METHOD_UNSPECIFIED
Commute method isn't specified.
COMMUTE_METHOD_UNSPECIFIED = 0;
public static final CommuteMethod DRIVING
Commute time is calculated based on driving time.
DRIVING = 1;
public static final CommuteMethod TRANSIT
Commute time is calculated based on public transit including bus, metro, subway, and so on.
TRANSIT = 2;
public static final CommuteMethod WALKING
Commute time is calculated based on walking time.
WALKING = 3;
public static final CommuteMethod CYCLING
Commute time is calculated based on biking time.
CYCLING = 4;
public static final CommuteMethod TRANSIT_ACCESSIBLE
Commute time is calculated based on public transit that is wheelchair accessible.
TRANSIT_ACCESSIBLE = 5;
public static final CommuteMethod UNRECOGNIZED
public static final int COMMUTE_METHOD_UNSPECIFIED_VALUE
Commute method isn't specified.
COMMUTE_METHOD_UNSPECIFIED = 0;
public static final int DRIVING_VALUE
Commute time is calculated based on driving time.
DRIVING = 1;
public static final int TRANSIT_VALUE
Commute time is calculated based on public transit including bus, metro, subway, and so on.
TRANSIT = 2;
public static final int WALKING_VALUE
Commute time is calculated based on walking time.
WALKING = 3;
public static final int CYCLING_VALUE
Commute time is calculated based on biking time.
CYCLING = 4;
public static final int TRANSIT_ACCESSIBLE_VALUE
Commute time is calculated based on public transit that is wheelchair accessible.
TRANSIT_ACCESSIBLE = 5;
public static CommuteMethod[] values()
for (CommuteMethod c : CommuteMethod.values()) System.out.println(c);
public static CommuteMethod 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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static CommuteMethod valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static CommuteMethod forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<CommuteMethod> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static CommuteMethod valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.