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_AREAA state or equivalent level location.COUNTRYA country level location.LOCALITYA city or equivalent level location.LOCATION_TYPE_UNSPECIFIEDDefault value if the type isn't specified.NEIGHBORHOODA neighborhood level location.POSTAL_CODEA postal code level location.STREET_ADDRESSA street address level location.SUB_ADMINISTRATIVE_AREAA county or equivalent level location.SUB_LOCALITYA sublocality is a subdivision of a locality, for example a city borough, ward, or arrondissement.SUB_LOCALITY_1A district or equivalent level location.SUB_LOCALITY_2A smaller district or equivalent level display.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intADMINISTRATIVE_AREA_VALUEA state or equivalent level location.static intCOUNTRY_VALUEA country level location.static intLOCALITY_VALUEA city or equivalent level location.static intLOCATION_TYPE_UNSPECIFIED_VALUEDefault value if the type isn't specified.static intNEIGHBORHOOD_VALUEA neighborhood level location.static intPOSTAL_CODE_VALUEA postal code level location.static intSTREET_ADDRESS_VALUEA street address level location.static intSUB_ADMINISTRATIVE_AREA_VALUEA county or equivalent level location.static intSUB_LOCALITY_1_VALUEA district or equivalent level location.static intSUB_LOCALITY_2_VALUEA smaller district or equivalent level display.static intSUB_LOCALITY_VALUEA 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.LocationTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Location.LocationType>internalGetValueMap()static Location.LocationTypevalueOf(int value)Deprecated.static Location.LocationTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Location.LocationTypevalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein 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
-
-