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.v4beta1.Location.LocationType
    • 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;
      • 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;
    • 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 name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        NullPointerException - if the argument is null