public final class Verdict extends com.google.protobuf.GeneratedMessageV3 implements VerdictOrBuilder
High level overview of the address validation result and geocode.Protobuf type
google.maps.addressvalidation.v1.Verdict| Modifier and Type | Class and Description |
|---|---|
static class |
Verdict.Builder
High level overview of the address validation result and geocode.
|
static class |
Verdict.Granularity
The various granularities that an address or a geocode can have.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADDRESS_COMPLETE_FIELD_NUMBER |
static int |
GEOCODE_GRANULARITY_FIELD_NUMBER |
static int |
HAS_INFERRED_COMPONENTS_FIELD_NUMBER |
static int |
HAS_REPLACED_COMPONENTS_FIELD_NUMBER |
static int |
HAS_UNCONFIRMED_COMPONENTS_FIELD_NUMBER |
static int |
INPUT_GRANULARITY_FIELD_NUMBER |
static int |
VALIDATION_GRANULARITY_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAddressComplete()
The address is considered complete if there are no unresolved tokens, no
unexpected or missing address components.
|
static Verdict |
getDefaultInstance() |
Verdict |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Verdict.Granularity |
getGeocodeGranularity()
Information about the granularity of the
[`geocode`][google.maps.addressvalidation.v1.ValidationResult.geocode].
|
int |
getGeocodeGranularityValue()
Information about the granularity of the
[`geocode`][google.maps.addressvalidation.v1.ValidationResult.geocode].
|
boolean |
getHasInferredComponents()
At least one address component was inferred (added) that wasn't in the
input, see
[google.maps.addressvalidation.v1.Address.address_components] for
details.
|
boolean |
getHasReplacedComponents()
At least one address component was replaced, see
[google.maps.addressvalidation.v1.Address.address_components] for
details.
|
boolean |
getHasUnconfirmedComponents()
At least one address component cannot be categorized or validated, see
[google.maps.addressvalidation.v1.Address.address_components] for
details.
|
Verdict.Granularity |
getInputGranularity()
The granularity of the **input** address.
|
int |
getInputGranularityValue()
The granularity of the **input** address.
|
com.google.protobuf.Parser<Verdict> |
getParserForType() |
int |
getSerializedSize() |
Verdict.Granularity |
getValidationGranularity()
The granularity level that the API can fully **validate** the address to.
|
int |
getValidationGranularityValue()
The granularity level that the API can fully **validate** the address to.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Verdict.Builder |
newBuilder() |
static Verdict.Builder |
newBuilder(Verdict prototype) |
Verdict.Builder |
newBuilderForType() |
protected Verdict.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Verdict |
parseDelimitedFrom(InputStream input) |
static Verdict |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Verdict |
parseFrom(byte[] data) |
static Verdict |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Verdict |
parseFrom(ByteBuffer data) |
static Verdict |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Verdict |
parseFrom(com.google.protobuf.ByteString data) |
static Verdict |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Verdict |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Verdict |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Verdict |
parseFrom(InputStream input) |
static Verdict |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Verdict> |
parser() |
Verdict.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int INPUT_GRANULARITY_FIELD_NUMBER
public static final int VALIDATION_GRANULARITY_FIELD_NUMBER
public static final int GEOCODE_GRANULARITY_FIELD_NUMBER
public static final int ADDRESS_COMPLETE_FIELD_NUMBER
public static final int HAS_UNCONFIRMED_COMPONENTS_FIELD_NUMBER
public static final int HAS_INFERRED_COMPONENTS_FIELD_NUMBER
public static final int HAS_REPLACED_COMPONENTS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getInputGranularityValue()
The granularity of the **input** address. This is the result of parsing the input address and does not give any validation signals. For validation signals, refer to `validation_granularity` below. For example, if the input address includes a specific apartment number, then the `input_granularity` here will be `SUB_PREMISE`. If we cannot match the apartment number in the databases or the apartment number is invalid, the `validation_granularity` will likely be `PREMISE` or below.
.google.maps.addressvalidation.v1.Verdict.Granularity input_granularity = 1;getInputGranularityValue in interface VerdictOrBuilderpublic Verdict.Granularity getInputGranularity()
The granularity of the **input** address. This is the result of parsing the input address and does not give any validation signals. For validation signals, refer to `validation_granularity` below. For example, if the input address includes a specific apartment number, then the `input_granularity` here will be `SUB_PREMISE`. If we cannot match the apartment number in the databases or the apartment number is invalid, the `validation_granularity` will likely be `PREMISE` or below.
.google.maps.addressvalidation.v1.Verdict.Granularity input_granularity = 1;getInputGranularity in interface VerdictOrBuilderpublic int getValidationGranularityValue()
The granularity level that the API can fully **validate** the address to. For example, an `validation_granularity` of `PREMISE` indicates all address components at the level of `PREMISE` or more coarse can be validated. Per address component validation result can be found in [google.maps.addressvalidation.v1.Address.address_components].
.google.maps.addressvalidation.v1.Verdict.Granularity validation_granularity = 2;getValidationGranularityValue in interface VerdictOrBuilderpublic Verdict.Granularity getValidationGranularity()
The granularity level that the API can fully **validate** the address to. For example, an `validation_granularity` of `PREMISE` indicates all address components at the level of `PREMISE` or more coarse can be validated. Per address component validation result can be found in [google.maps.addressvalidation.v1.Address.address_components].
.google.maps.addressvalidation.v1.Verdict.Granularity validation_granularity = 2;getValidationGranularity in interface VerdictOrBuilderpublic int getGeocodeGranularityValue()
Information about the granularity of the [`geocode`][google.maps.addressvalidation.v1.ValidationResult.geocode]. This can be understood as the semantic meaning of how coarse or fine the geocoded location is. This can differ from the `validation_granularity` above occasionally. For example, our database might record the existence of an apartment number but do not have a precise location for the apartment within a big apartment complex. In that case, the `validation_granularity` will be `SUB_PREMISE` but the `geocode_granularity` will be `PREMISE`.
.google.maps.addressvalidation.v1.Verdict.Granularity geocode_granularity = 3;getGeocodeGranularityValue in interface VerdictOrBuilderpublic Verdict.Granularity getGeocodeGranularity()
Information about the granularity of the [`geocode`][google.maps.addressvalidation.v1.ValidationResult.geocode]. This can be understood as the semantic meaning of how coarse or fine the geocoded location is. This can differ from the `validation_granularity` above occasionally. For example, our database might record the existence of an apartment number but do not have a precise location for the apartment within a big apartment complex. In that case, the `validation_granularity` will be `SUB_PREMISE` but the `geocode_granularity` will be `PREMISE`.
.google.maps.addressvalidation.v1.Verdict.Granularity geocode_granularity = 3;getGeocodeGranularity in interface VerdictOrBuilderpublic boolean getAddressComplete()
The address is considered complete if there are no unresolved tokens, no unexpected or missing address components. See [`missing_component_types`][google.maps.addressvalidation.v1.Address.missing_component_types], [`unresolved_tokens`][google.maps.addressvalidation.v1.Address.unresolved_tokens] or [`unexpected`][google.maps.addressvalidation.v1.AddressComponent.unexpected] fields for more details.
bool address_complete = 4;getAddressComplete in interface VerdictOrBuilderpublic boolean getHasUnconfirmedComponents()
At least one address component cannot be categorized or validated, see [google.maps.addressvalidation.v1.Address.address_components] for details.
bool has_unconfirmed_components = 5;getHasUnconfirmedComponents in interface VerdictOrBuilderpublic boolean getHasInferredComponents()
At least one address component was inferred (added) that wasn't in the input, see [google.maps.addressvalidation.v1.Address.address_components] for details.
bool has_inferred_components = 6;getHasInferredComponents in interface VerdictOrBuilderpublic boolean getHasReplacedComponents()
At least one address component was replaced, see [google.maps.addressvalidation.v1.Address.address_components] for details.
bool has_replaced_components = 7;getHasReplacedComponents in interface VerdictOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Verdict parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Verdict parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Verdict parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Verdict parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Verdict parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Verdict parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Verdict parseFrom(InputStream input) throws IOException
IOExceptionpublic static Verdict parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Verdict parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Verdict parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Verdict parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Verdict parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Verdict.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Verdict.Builder newBuilder()
public static Verdict.Builder newBuilder(Verdict prototype)
public Verdict.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Verdict.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Verdict getDefaultInstance()
public static com.google.protobuf.Parser<Verdict> parser()
public com.google.protobuf.Parser<Verdict> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Verdict getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.