Class Verdict
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.maps.addressvalidation.v1.Verdict
-
- All Implemented Interfaces:
VerdictOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Verdict extends com.google.protobuf.GeneratedMessageV3 implements VerdictOrBuilder
High level overview of the address validation result and geocode.
Protobuf typegoogle.maps.addressvalidation.v1.Verdict- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVerdict.BuilderHigh level overview of the address validation result and geocode.static classVerdict.GranularityThe various granularities that an address or a geocode can have.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intADDRESS_COMPLETE_FIELD_NUMBERstatic intGEOCODE_GRANULARITY_FIELD_NUMBERstatic intHAS_INFERRED_COMPONENTS_FIELD_NUMBERstatic intHAS_REPLACED_COMPONENTS_FIELD_NUMBERstatic intHAS_UNCONFIRMED_COMPONENTS_FIELD_NUMBERstatic intINPUT_GRANULARITY_FIELD_NUMBERstatic intVALIDATION_GRANULARITY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetAddressComplete()The address is considered complete if there are no unresolved tokens, no unexpected or missing address components.static VerdictgetDefaultInstance()VerdictgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Verdict.GranularitygetGeocodeGranularity()Information about the granularity of the [`geocode`][google.maps.addressvalidation.v1.ValidationResult.geocode].intgetGeocodeGranularityValue()Information about the granularity of the [`geocode`][google.maps.addressvalidation.v1.ValidationResult.geocode].booleangetHasInferredComponents()At least one address component was inferred (added) that wasn't in the input, see [google.maps.addressvalidation.v1.Address.address_components] for details.booleangetHasReplacedComponents()At least one address component was replaced, see [google.maps.addressvalidation.v1.Address.address_components] for details.booleangetHasUnconfirmedComponents()At least one address component cannot be categorized or validated, see [google.maps.addressvalidation.v1.Address.address_components] for details.Verdict.GranularitygetInputGranularity()The granularity of the **input** address.intgetInputGranularityValue()The granularity of the **input** address.com.google.protobuf.Parser<Verdict>getParserForType()intgetSerializedSize()Verdict.GranularitygetValidationGranularity()The granularity level that the API can fully **validate** the address to.intgetValidationGranularityValue()The granularity level that the API can fully **validate** the address to.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Verdict.BuildernewBuilder()static Verdict.BuildernewBuilder(Verdict prototype)Verdict.BuildernewBuilderForType()protected Verdict.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static VerdictparseDelimitedFrom(InputStream input)static VerdictparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VerdictparseFrom(byte[] data)static VerdictparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VerdictparseFrom(com.google.protobuf.ByteString data)static VerdictparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VerdictparseFrom(com.google.protobuf.CodedInputStream input)static VerdictparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VerdictparseFrom(InputStream input)static VerdictparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VerdictparseFrom(ByteBuffer data)static VerdictparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Verdict>parser()Verdict.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
INPUT_GRANULARITY_FIELD_NUMBER
public static final int INPUT_GRANULARITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALIDATION_GRANULARITY_FIELD_NUMBER
public static final int VALIDATION_GRANULARITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GEOCODE_GRANULARITY_FIELD_NUMBER
public static final int GEOCODE_GRANULARITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ADDRESS_COMPLETE_FIELD_NUMBER
public static final int ADDRESS_COMPLETE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HAS_UNCONFIRMED_COMPONENTS_FIELD_NUMBER
public static final int HAS_UNCONFIRMED_COMPONENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HAS_INFERRED_COMPONENTS_FIELD_NUMBER
public static final int HAS_INFERRED_COMPONENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HAS_REPLACED_COMPONENTS_FIELD_NUMBER
public static final int HAS_REPLACED_COMPONENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getInputGranularityValue
public 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;- Specified by:
getInputGranularityValuein interfaceVerdictOrBuilder- Returns:
- The enum numeric value on the wire for inputGranularity.
-
getInputGranularity
public 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;- Specified by:
getInputGranularityin interfaceVerdictOrBuilder- Returns:
- The inputGranularity.
-
getValidationGranularityValue
public 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;- Specified by:
getValidationGranularityValuein interfaceVerdictOrBuilder- Returns:
- The enum numeric value on the wire for validationGranularity.
-
getValidationGranularity
public 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;- Specified by:
getValidationGranularityin interfaceVerdictOrBuilder- Returns:
- The validationGranularity.
-
getGeocodeGranularityValue
public 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;- Specified by:
getGeocodeGranularityValuein interfaceVerdictOrBuilder- Returns:
- The enum numeric value on the wire for geocodeGranularity.
-
getGeocodeGranularity
public 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;- Specified by:
getGeocodeGranularityin interfaceVerdictOrBuilder- Returns:
- The geocodeGranularity.
-
getAddressComplete
public 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;- Specified by:
getAddressCompletein interfaceVerdictOrBuilder- Returns:
- The addressComplete.
-
getHasUnconfirmedComponents
public 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;- Specified by:
getHasUnconfirmedComponentsin interfaceVerdictOrBuilder- Returns:
- The hasUnconfirmedComponents.
-
getHasInferredComponents
public 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;- Specified by:
getHasInferredComponentsin interfaceVerdictOrBuilder- Returns:
- The hasInferredComponents.
-
getHasReplacedComponents
public boolean getHasReplacedComponents()
At least one address component was replaced, see [google.maps.addressvalidation.v1.Address.address_components] for details.
bool has_replaced_components = 7;- Specified by:
getHasReplacedComponentsin interfaceVerdictOrBuilder- Returns:
- The hasReplacedComponents.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Verdict parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Verdict parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Verdict parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Verdict parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Verdict parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Verdict parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Verdict parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Verdict parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Verdict parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Verdict parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Verdict parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Verdict parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Verdict.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Verdict.Builder newBuilder()
-
newBuilder
public static Verdict.Builder newBuilder(Verdict prototype)
-
toBuilder
public Verdict.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Verdict.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Verdict getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Verdict> parser()
-
getParserForType
public com.google.protobuf.Parser<Verdict> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Verdict getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-