Enum Verdict.Granularity
- java.lang.Object
-
- java.lang.Enum<Verdict.Granularity>
-
- com.google.maps.addressvalidation.v1.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 enumgoogle.maps.addressvalidation.v1.Verdict.Granularity
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK
The address or geocode indicates a block.GRANULARITY_UNSPECIFIED
Default value.OTHER
All other granularities, which are bucketed together since they are not deliverable.PREMISE
Building-level result.PREMISE_PROXIMITY
A geocode that should be very close to the building-level location of the address.ROUTE
The geocode or address is granular to route, such as a street, road, or highway.SUB_PREMISE
Below-building level result, such as an apartment.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
BLOCK_VALUE
The address or geocode indicates a block.static int
GRANULARITY_UNSPECIFIED_VALUE
Default value.static int
OTHER_VALUE
All other granularities, which are bucketed together since they are not deliverable.static int
PREMISE_PROXIMITY_VALUE
A geocode that should be very close to the building-level location of the address.static int
PREMISE_VALUE
Building-level result.static int
ROUTE_VALUE
The geocode or address is granular to route, such as a street, road, or highway.static int
SUB_PREMISE_VALUE
Below-building level result, such as an apartment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Verdict.Granularity
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<Verdict.Granularity>
internalGetValueMap()
static Verdict.Granularity
valueOf(int value)
Deprecated.static Verdict.Granularity
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Verdict.Granularity
valueOf(String name)
Returns the enum constant of this type with the specified name.static Verdict.Granularity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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
public static final Verdict.Granularity PREMISE
Building-level result.
PREMISE = 2;
-
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;
-
UNRECOGNIZED
public static final Verdict.Granularity UNRECOGNIZED
-
-
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 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 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 nameNullPointerException
- 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 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 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 nameNullPointerException
- if the argument is null
-
-