Package com.google.cloud.talent.v4
Enum 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 enum
google.cloud.talent.v4.Location.LocationType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA state or equivalent level location.A country level location.A city or equivalent level location.Default value if the type isn't specified.A neighborhood level location.A postal code level location.A street address level location.A county or equivalent level location.A sublocality is a subdivision of a locality, for example a city borough, ward, or arrondissement.A district or equivalent level location.A smaller district or equivalent level display. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA state or equivalent level location.static final intA country level location.static final intA city or equivalent level location.static final intDefault value if the type isn't specified.static final intA neighborhood level location.static final intA postal code level location.static final intA street address level location.static final intA county or equivalent level location.static final intA district or equivalent level location.static final intA smaller district or equivalent level display.static final intA sublocality is a subdivision of a locality, for example a city borough, ward, or arrondissement. -
Method Summary
Modifier and TypeMethodDescriptionstatic Location.LocationTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Location.LocationType>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.LocationTypeReturns 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 Details
-
LOCATION_TYPE_UNSPECIFIED
Default value if the type isn't specified.
LOCATION_TYPE_UNSPECIFIED = 0; -
COUNTRY
A country level location.
COUNTRY = 1; -
ADMINISTRATIVE_AREA
A state or equivalent level location.
ADMINISTRATIVE_AREA = 2; -
SUB_ADMINISTRATIVE_AREA
A county or equivalent level location.
SUB_ADMINISTRATIVE_AREA = 3; -
LOCALITY
A city or equivalent level location.
LOCALITY = 4; -
POSTAL_CODE
A postal code level location.
POSTAL_CODE = 5; -
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
A district or equivalent level location.
SUB_LOCALITY_1 = 7; -
SUB_LOCALITY_2
A smaller district or equivalent level display.
SUB_LOCALITY_2 = 8; -
NEIGHBORHOOD
A neighborhood level location.
NEIGHBORHOOD = 9; -
STREET_ADDRESS
A street address level location.
STREET_ADDRESS = 10; -
UNRECOGNIZED
-
-
Field Details
-
LOCATION_TYPE_UNSPECIFIED_VALUE
public static final int LOCATION_TYPE_UNSPECIFIED_VALUEDefault value if the type isn't specified.
LOCATION_TYPE_UNSPECIFIED = 0;- See Also:
-
COUNTRY_VALUE
public static final int COUNTRY_VALUEA country level location.
COUNTRY = 1;- See Also:
-
ADMINISTRATIVE_AREA_VALUE
public static final int ADMINISTRATIVE_AREA_VALUEA state or equivalent level location.
ADMINISTRATIVE_AREA = 2;- See Also:
-
SUB_ADMINISTRATIVE_AREA_VALUE
public static final int SUB_ADMINISTRATIVE_AREA_VALUEA county or equivalent level location.
SUB_ADMINISTRATIVE_AREA = 3;- See Also:
-
LOCALITY_VALUE
public static final int LOCALITY_VALUEA city or equivalent level location.
LOCALITY = 4;- See Also:
-
POSTAL_CODE_VALUE
public static final int POSTAL_CODE_VALUEA postal code level location.
POSTAL_CODE = 5;- See Also:
-
SUB_LOCALITY_VALUE
public static final int SUB_LOCALITY_VALUEA 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:
-
SUB_LOCALITY_1_VALUE
public static final int SUB_LOCALITY_1_VALUEA district or equivalent level location.
SUB_LOCALITY_1 = 7;- See Also:
-
SUB_LOCALITY_2_VALUE
public static final int SUB_LOCALITY_2_VALUEA smaller district or equivalent level display.
SUB_LOCALITY_2 = 8;- See Also:
-
NEIGHBORHOOD_VALUE
public static final int NEIGHBORHOOD_VALUEA neighborhood level location.
NEIGHBORHOOD = 9;- See Also:
-
STREET_ADDRESS_VALUE
public static final int STREET_ADDRESS_VALUEA street address level location.
STREET_ADDRESS = 10;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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 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
-