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 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.-
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 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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(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 Verdict
parseFrom(ByteBuffer data)
static Verdict
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Verdict>
parser()
Verdict.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getInputGranularityValue
in 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:
getInputGranularity
in 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:
getValidationGranularityValue
in 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:
getValidationGranularity
in 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:
getGeocodeGranularityValue
in 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:
getGeocodeGranularity
in 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:
getAddressComplete
in 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:
getHasUnconfirmedComponents
in 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:
getHasInferredComponents
in 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:
getHasReplacedComponents
in interfaceVerdictOrBuilder
- Returns:
- The hasReplacedComponents.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Verdict.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Verdict getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-