Enum Verdict.Granularity

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<Verdict.Granularity>
    Enclosing class:
    Verdict

    public static enum Verdict.Granularity
    extends Enum<Verdict.Granularity>
    implements com.google.protobuf.ProtocolMessageEnum
     The various granularities that an address or a geocode can have.
     When used to indicate granularity for an *address*, these values indicate
     with how fine a granularity the address identifies a mailing destination.
     For example, an address such as "123 Main Street, Redwood City, CA, 94061"
     identifies a `PREMISE` while something like "Redwood City, CA, 94061"
     identifies a `LOCALITY`. However, if we are unable to find a geocode for
     "123 Main Street" in Redwood City, the geocode returned might be of
     `LOCALITY` granularity even though the address is more granular.
     
    Protobuf enum google.maps.addressvalidation.v1.Verdict.Granularity
    • Enum Constant Detail

      • GRANULARITY_UNSPECIFIED

        public static final Verdict.Granularity GRANULARITY_UNSPECIFIED
         Default value. This value is unused.
         
        GRANULARITY_UNSPECIFIED = 0;
      • SUB_PREMISE

        public static final Verdict.Granularity SUB_PREMISE
         Below-building level result, such as an apartment.
         
        SUB_PREMISE = 1;
      • PREMISE_PROXIMITY

        public static final Verdict.Granularity PREMISE_PROXIMITY
         A geocode that should be very close to the building-level location of
         the address.
         
        PREMISE_PROXIMITY = 3;
      • BLOCK

        public static final Verdict.Granularity BLOCK
         The address or geocode indicates a block. Only used in regions which
         have block-level addressing, such as Japan.
         
        BLOCK = 4;
      • ROUTE

        public static final Verdict.Granularity ROUTE
         The geocode or address is granular to route, such as a street, road, or
         highway.
         
        ROUTE = 5;
      • OTHER

        public static final Verdict.Granularity OTHER
         All other granularities, which are bucketed together since they are not
         deliverable.
         
        OTHER = 6;
    • Field Detail

      • GRANULARITY_UNSPECIFIED_VALUE

        public static final int GRANULARITY_UNSPECIFIED_VALUE
         Default value. This value is unused.
         
        GRANULARITY_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • SUB_PREMISE_VALUE

        public static final int SUB_PREMISE_VALUE
         Below-building level result, such as an apartment.
         
        SUB_PREMISE = 1;
        See Also:
        Constant Field Values
      • PREMISE_VALUE

        public static final int PREMISE_VALUE
         Building-level result.
         
        PREMISE = 2;
        See Also:
        Constant Field Values
      • PREMISE_PROXIMITY_VALUE

        public static final int PREMISE_PROXIMITY_VALUE
         A geocode that should be very close to the building-level location of
         the address.
         
        PREMISE_PROXIMITY = 3;
        See Also:
        Constant Field Values
      • BLOCK_VALUE

        public static final int BLOCK_VALUE
         The address or geocode indicates a block. Only used in regions which
         have block-level addressing, such as Japan.
         
        BLOCK = 4;
        See Also:
        Constant Field Values
      • ROUTE_VALUE

        public static final int ROUTE_VALUE
         The geocode or address is granular to route, such as a street, road, or
         highway.
         
        ROUTE = 5;
        See Also:
        Constant Field Values
      • OTHER_VALUE

        public static final int OTHER_VALUE
         All other granularities, which are bucketed together since they are not
         deliverable.
         
        OTHER = 6;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static Verdict.Granularity[] 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 (Verdict.Granularity c : Verdict.Granularity.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Verdict.Granularity 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 Verdict.Granularity 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 Verdict.Granularity 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<Verdict.Granularity> 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 Verdict.Granularity 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