Package com.google.cloud.talent.v4
Enum Location.LocationType
- java.lang.Object
-
- java.lang.Enum<Location.LocationType>
-
- com.google.cloud.talent.v4.Location.LocationType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Location.LocationType>
- Enclosing class:
- Location
public static enum Location.LocationType extends Enum<Location.LocationType> implements com.google.protobuf.ProtocolMessageEnum
An enum which represents the type of a location.
Protobuf enumgoogle.cloud.talent.v4.Location.LocationType
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(int value)
Deprecated.static Location.LocationType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.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.
-
-
-
Enum Constant Detail
-
LOCATION_TYPE_UNSPECIFIED
public static final Location.LocationType LOCATION_TYPE_UNSPECIFIED
Default value if the type isn't specified.
LOCATION_TYPE_UNSPECIFIED = 0;
-
COUNTRY
public static final Location.LocationType COUNTRY
A country level location.
COUNTRY = 1;
-
ADMINISTRATIVE_AREA
public static final Location.LocationType ADMINISTRATIVE_AREA
A state or equivalent level location.
ADMINISTRATIVE_AREA = 2;
-
SUB_ADMINISTRATIVE_AREA
public static final Location.LocationType SUB_ADMINISTRATIVE_AREA
A county or equivalent level location.
SUB_ADMINISTRATIVE_AREA = 3;
-
LOCALITY
public static final Location.LocationType LOCALITY
A city or equivalent level location.
LOCALITY = 4;
-
POSTAL_CODE
public static final Location.LocationType POSTAL_CODE
A postal code level location.
POSTAL_CODE = 5;
-
SUB_LOCALITY
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;
-
SUB_LOCALITY_1
public static final Location.LocationType SUB_LOCALITY_1
A district or equivalent level location.
SUB_LOCALITY_1 = 7;
-
SUB_LOCALITY_2
public static final Location.LocationType SUB_LOCALITY_2
A smaller district or equivalent level display.
SUB_LOCALITY_2 = 8;
-
NEIGHBORHOOD
public static final Location.LocationType NEIGHBORHOOD
A neighborhood level location.
NEIGHBORHOOD = 9;
-
STREET_ADDRESS
public static final Location.LocationType STREET_ADDRESS
A street address level location.
STREET_ADDRESS = 10;
-
UNRECOGNIZED
public static final Location.LocationType UNRECOGNIZED
-
-
Field Detail
-
LOCATION_TYPE_UNSPECIFIED_VALUE
public static final int LOCATION_TYPE_UNSPECIFIED_VALUE
Default value if the type isn't specified.
LOCATION_TYPE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
COUNTRY_VALUE
public static final int COUNTRY_VALUE
A country level location.
COUNTRY = 1;
- See Also:
- Constant Field Values
-
ADMINISTRATIVE_AREA_VALUE
public static final int ADMINISTRATIVE_AREA_VALUE
A state or equivalent level location.
ADMINISTRATIVE_AREA = 2;
- See Also:
- Constant Field Values
-
SUB_ADMINISTRATIVE_AREA_VALUE
public static final int SUB_ADMINISTRATIVE_AREA_VALUE
A county or equivalent level location.
SUB_ADMINISTRATIVE_AREA = 3;
- See Also:
- Constant Field Values
-
LOCALITY_VALUE
public static final int LOCALITY_VALUE
A city or equivalent level location.
LOCALITY = 4;
- See Also:
- Constant Field Values
-
POSTAL_CODE_VALUE
public static final int POSTAL_CODE_VALUE
A postal code level location.
POSTAL_CODE = 5;
- See Also:
- Constant Field Values
-
SUB_LOCALITY_VALUE
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;
- See Also:
- Constant Field Values
-
SUB_LOCALITY_1_VALUE
public static final int SUB_LOCALITY_1_VALUE
A district or equivalent level location.
SUB_LOCALITY_1 = 7;
- See Also:
- Constant Field Values
-
SUB_LOCALITY_2_VALUE
public static final int SUB_LOCALITY_2_VALUE
A smaller district or equivalent level display.
SUB_LOCALITY_2 = 8;
- See Also:
- Constant Field Values
-
NEIGHBORHOOD_VALUE
public static final int NEIGHBORHOOD_VALUE
A neighborhood level location.
NEIGHBORHOOD = 9;
- See Also:
- Constant Field Values
-
STREET_ADDRESS_VALUE
public static final int STREET_ADDRESS_VALUE
A street address level location.
STREET_ADDRESS = 10;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Location.LocationType[] 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 (Location.LocationType c : Location.LocationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Location.LocationType 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 Location.LocationType 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 Location.LocationType 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<Location.LocationType> 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 Location.LocationType 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
-
-