public static enum Location.LocationType extends Enum<Location.LocationType> implements com.google.protobuf.ProtocolMessageEnum
An enum which represents the type of a location.Protobuf enum
google.cloud.talent.v4beta1.Location.LocationType| Enum Constant and Description |
|---|
ADMINISTRATIVE_AREA
A state or equivalent level location.
|
COUNTRY
A country level location.
|
LOCALITY
A city or equivalent level location.
|
LOCATION_TYPE_UNSPECIFIED
Default value if the type isn't specified.
|
NEIGHBORHOOD
A neighborhood level location.
|
POSTAL_CODE
A postal code level location.
|
STREET_ADDRESS
A street address level location.
|
SUB_ADMINISTRATIVE_AREA
A county or equivalent level location.
|
SUB_LOCALITY
A sublocality is a subdivision of a locality, for example a city borough,
ward, or arrondissement.
|
SUB_LOCALITY_1
A district or equivalent level location.
|
SUB_LOCALITY_2
A smaller district or equivalent level display.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ADMINISTRATIVE_AREA_VALUE
A state or equivalent level location.
|
static int |
COUNTRY_VALUE
A country level location.
|
static int |
LOCALITY_VALUE
A city or equivalent level location.
|
static int |
LOCATION_TYPE_UNSPECIFIED_VALUE
Default value if the type isn't specified.
|
static int |
NEIGHBORHOOD_VALUE
A neighborhood level location.
|
static int |
POSTAL_CODE_VALUE
A postal code level location.
|
static int |
STREET_ADDRESS_VALUE
A street address level location.
|
static int |
SUB_ADMINISTRATIVE_AREA_VALUE
A county or equivalent level location.
|
static int |
SUB_LOCALITY_1_VALUE
A district or equivalent level location.
|
static int |
SUB_LOCALITY_2_VALUE
A smaller district or equivalent level display.
|
static int |
SUB_LOCALITY_VALUE
A sublocality is a subdivision of a locality, for example a city borough,
ward, or arrondissement.
|
| Modifier and Type | Method and Description |
|---|---|
static Location.LocationType |
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<Location.LocationType> |
internalGetValueMap() |
static Location.LocationType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Location.LocationType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Location.LocationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Location.LocationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Location.LocationType LOCATION_TYPE_UNSPECIFIED
Default value if the type isn't specified.
LOCATION_TYPE_UNSPECIFIED = 0;public static final Location.LocationType COUNTRY
A country level location.
COUNTRY = 1;public static final Location.LocationType ADMINISTRATIVE_AREA
A state or equivalent level location.
ADMINISTRATIVE_AREA = 2;public static final Location.LocationType SUB_ADMINISTRATIVE_AREA
A county or equivalent level location.
SUB_ADMINISTRATIVE_AREA = 3;public static final Location.LocationType LOCALITY
A city or equivalent level location.
LOCALITY = 4;public static final Location.LocationType POSTAL_CODE
A postal code level location.
POSTAL_CODE = 5;public static final Location.LocationType SUB_LOCALITY
A sublocality is a subdivision of a locality, for example a city borough, ward, or arrondissement. Sublocalities are usually recognized by a local political authority. For example, Manhattan and Brooklyn are recognized as boroughs by the City of New York, and are therefore modeled as sublocalities.
SUB_LOCALITY = 6;public static final Location.LocationType SUB_LOCALITY_1
A district or equivalent level location.
SUB_LOCALITY_1 = 7;public static final Location.LocationType SUB_LOCALITY_2
A smaller district or equivalent level display.
SUB_LOCALITY_2 = 8;public static final Location.LocationType NEIGHBORHOOD
A neighborhood level location.
NEIGHBORHOOD = 9;public static final Location.LocationType STREET_ADDRESS
A street address level location.
STREET_ADDRESS = 10;public static final Location.LocationType UNRECOGNIZED
public static final int LOCATION_TYPE_UNSPECIFIED_VALUE
Default value if the type isn't specified.
LOCATION_TYPE_UNSPECIFIED = 0;public static final int COUNTRY_VALUE
A country level location.
COUNTRY = 1;public static final int ADMINISTRATIVE_AREA_VALUE
A state or equivalent level location.
ADMINISTRATIVE_AREA = 2;public static final int SUB_ADMINISTRATIVE_AREA_VALUE
A county or equivalent level location.
SUB_ADMINISTRATIVE_AREA = 3;public static final int LOCALITY_VALUE
A city or equivalent level location.
LOCALITY = 4;public static final int POSTAL_CODE_VALUE
A postal code level location.
POSTAL_CODE = 5;public static final int SUB_LOCALITY_VALUE
A sublocality is a subdivision of a locality, for example a city borough, ward, or arrondissement. Sublocalities are usually recognized by a local political authority. For example, Manhattan and Brooklyn are recognized as boroughs by the City of New York, and are therefore modeled as sublocalities.
SUB_LOCALITY = 6;public static final int SUB_LOCALITY_1_VALUE
A district or equivalent level location.
SUB_LOCALITY_1 = 7;public static final int SUB_LOCALITY_2_VALUE
A smaller district or equivalent level display.
SUB_LOCALITY_2 = 8;public static final int NEIGHBORHOOD_VALUE
A neighborhood level location.
NEIGHBORHOOD = 9;public static final int STREET_ADDRESS_VALUE
A street address level location.
STREET_ADDRESS = 10;public static Location.LocationType[] values()
for (Location.LocationType c : Location.LocationType.values()) System.out.println(c);
public static Location.LocationType 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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Location.LocationType valueOf(int value)
forNumber(int) instead.public static Location.LocationType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Location.LocationType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Location.LocationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Google LLC. All rights reserved.