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 and 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 |
| Modifier and Type | Field and 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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Verdict.Granularity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final Verdict.Granularity GRANULARITY_UNSPECIFIED
Default value. This value is unused.
GRANULARITY_UNSPECIFIED = 0;public static final Verdict.Granularity SUB_PREMISE
Below-building level result, such as an apartment.
SUB_PREMISE = 1;public static final Verdict.Granularity PREMISE
Building-level result.
PREMISE = 2;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;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;public static final Verdict.Granularity ROUTE
The geocode or address is granular to route, such as a street, road, or highway.
ROUTE = 5;public static final Verdict.Granularity OTHER
All other granularities, which are bucketed together since they are not deliverable.
OTHER = 6;public static final Verdict.Granularity UNRECOGNIZED
public static final int GRANULARITY_UNSPECIFIED_VALUE
Default value. This value is unused.
GRANULARITY_UNSPECIFIED = 0;public static final int SUB_PREMISE_VALUE
Below-building level result, such as an apartment.
SUB_PREMISE = 1;public static final int PREMISE_VALUE
Building-level result.
PREMISE = 2;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;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;public static final int ROUTE_VALUE
The geocode or address is granular to route, such as a street, road, or highway.
ROUTE = 5;public static final int OTHER_VALUE
All other granularities, which are bucketed together since they are not deliverable.
OTHER = 6;public static Verdict.Granularity[] values()
for (Verdict.Granularity c : Verdict.Granularity.values()) System.out.println(c);
public static Verdict.Granularity valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Verdict.Granularity valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Verdict.Granularity forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Verdict.Granularity> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Verdict.Granularity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.