public final class Address extends com.google.protobuf.GeneratedMessageV3 implements AddressOrBuilder
Details of the post-processed address. Post-processing includes correcting misspelled parts of the address, replacing incorrect parts, and inferring missing parts.Protobuf type
google.maps.addressvalidation.v1.Address| Modifier and Type | Class and Description |
|---|---|
static class |
Address.Builder
Details of the post-processed address.
|
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_COMPONENTS_FIELD_NUMBER |
static int |
FORMATTED_ADDRESS_FIELD_NUMBER |
static int |
MISSING_COMPONENT_TYPES_FIELD_NUMBER |
static int |
POSTAL_ADDRESS_FIELD_NUMBER |
static int |
UNCONFIRMED_COMPONENT_TYPES_FIELD_NUMBER |
static int |
UNRESOLVED_TOKENS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AddressComponent |
getAddressComponents(int index)
Unordered list.
|
int |
getAddressComponentsCount()
Unordered list.
|
List<AddressComponent> |
getAddressComponentsList()
Unordered list.
|
AddressComponentOrBuilder |
getAddressComponentsOrBuilder(int index)
Unordered list.
|
List<? extends AddressComponentOrBuilder> |
getAddressComponentsOrBuilderList()
Unordered list.
|
static Address |
getDefaultInstance() |
Address |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFormattedAddress()
The post-processed address, formatted as a single-line address following
the address formatting rules of the region where the address is located.
|
com.google.protobuf.ByteString |
getFormattedAddressBytes()
The post-processed address, formatted as a single-line address following
the address formatting rules of the region where the address is located.
|
String |
getMissingComponentTypes(int index)
The types of components that were expected to be present in a correctly
formatted mailing address but were not found in the input AND could
not be inferred.
|
com.google.protobuf.ByteString |
getMissingComponentTypesBytes(int index)
The types of components that were expected to be present in a correctly
formatted mailing address but were not found in the input AND could
not be inferred.
|
int |
getMissingComponentTypesCount()
The types of components that were expected to be present in a correctly
formatted mailing address but were not found in the input AND could
not be inferred.
|
com.google.protobuf.ProtocolStringList |
getMissingComponentTypesList()
The types of components that were expected to be present in a correctly
formatted mailing address but were not found in the input AND could
not be inferred.
|
com.google.protobuf.Parser<Address> |
getParserForType() |
com.google.type.PostalAddress |
getPostalAddress()
The post-processed address represented as a postal address.
|
com.google.type.PostalAddressOrBuilder |
getPostalAddressOrBuilder()
The post-processed address represented as a postal address.
|
int |
getSerializedSize() |
String |
getUnconfirmedComponentTypes(int index)
The types of the components that are present in the `address_components`
but could not be confirmed to be correct.
|
com.google.protobuf.ByteString |
getUnconfirmedComponentTypesBytes(int index)
The types of the components that are present in the `address_components`
but could not be confirmed to be correct.
|
int |
getUnconfirmedComponentTypesCount()
The types of the components that are present in the `address_components`
but could not be confirmed to be correct.
|
com.google.protobuf.ProtocolStringList |
getUnconfirmedComponentTypesList()
The types of the components that are present in the `address_components`
but could not be confirmed to be correct.
|
String |
getUnresolvedTokens(int index)
Any tokens in the input that could not be resolved.
|
com.google.protobuf.ByteString |
getUnresolvedTokensBytes(int index)
Any tokens in the input that could not be resolved.
|
int |
getUnresolvedTokensCount()
Any tokens in the input that could not be resolved.
|
com.google.protobuf.ProtocolStringList |
getUnresolvedTokensList()
Any tokens in the input that could not be resolved.
|
int |
hashCode() |
boolean |
hasPostalAddress()
The post-processed address represented as a postal address.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Address.Builder |
newBuilder() |
static Address.Builder |
newBuilder(Address prototype) |
Address.Builder |
newBuilderForType() |
protected Address.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Address |
parseDelimitedFrom(InputStream input) |
static Address |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Address |
parseFrom(byte[] data) |
static Address |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Address |
parseFrom(ByteBuffer data) |
static Address |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Address |
parseFrom(com.google.protobuf.ByteString data) |
static Address |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Address |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Address |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Address |
parseFrom(InputStream input) |
static Address |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Address> |
parser() |
Address.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 FORMATTED_ADDRESS_FIELD_NUMBER
public static final int POSTAL_ADDRESS_FIELD_NUMBER
public static final int ADDRESS_COMPONENTS_FIELD_NUMBER
public static final int MISSING_COMPONENT_TYPES_FIELD_NUMBER
public static final int UNCONFIRMED_COMPONENT_TYPES_FIELD_NUMBER
public static final int UNRESOLVED_TOKENS_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 String getFormattedAddress()
The post-processed address, formatted as a single-line address following the address formatting rules of the region where the address is located.
string formatted_address = 2;getFormattedAddress in interface AddressOrBuilderpublic com.google.protobuf.ByteString getFormattedAddressBytes()
The post-processed address, formatted as a single-line address following the address formatting rules of the region where the address is located.
string formatted_address = 2;getFormattedAddressBytes in interface AddressOrBuilderpublic boolean hasPostalAddress()
The post-processed address represented as a postal address.
.google.type.PostalAddress postal_address = 3;hasPostalAddress in interface AddressOrBuilderpublic com.google.type.PostalAddress getPostalAddress()
The post-processed address represented as a postal address.
.google.type.PostalAddress postal_address = 3;getPostalAddress in interface AddressOrBuilderpublic com.google.type.PostalAddressOrBuilder getPostalAddressOrBuilder()
The post-processed address represented as a postal address.
.google.type.PostalAddress postal_address = 3;getPostalAddressOrBuilder in interface AddressOrBuilderpublic List<AddressComponent> getAddressComponentsList()
Unordered list. The individual address components of the formatted and corrected address, along with validation information. This provides information on the validation status of the individual components. Address components are not ordered in a particular way. Do not make any assumptions on the ordering of the address components in the list.
repeated .google.maps.addressvalidation.v1.AddressComponent address_components = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
getAddressComponentsList in interface AddressOrBuilderpublic List<? extends AddressComponentOrBuilder> getAddressComponentsOrBuilderList()
Unordered list. The individual address components of the formatted and corrected address, along with validation information. This provides information on the validation status of the individual components. Address components are not ordered in a particular way. Do not make any assumptions on the ordering of the address components in the list.
repeated .google.maps.addressvalidation.v1.AddressComponent address_components = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
getAddressComponentsOrBuilderList in interface AddressOrBuilderpublic int getAddressComponentsCount()
Unordered list. The individual address components of the formatted and corrected address, along with validation information. This provides information on the validation status of the individual components. Address components are not ordered in a particular way. Do not make any assumptions on the ordering of the address components in the list.
repeated .google.maps.addressvalidation.v1.AddressComponent address_components = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
getAddressComponentsCount in interface AddressOrBuilderpublic AddressComponent getAddressComponents(int index)
Unordered list. The individual address components of the formatted and corrected address, along with validation information. This provides information on the validation status of the individual components. Address components are not ordered in a particular way. Do not make any assumptions on the ordering of the address components in the list.
repeated .google.maps.addressvalidation.v1.AddressComponent address_components = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
getAddressComponents in interface AddressOrBuilderpublic AddressComponentOrBuilder getAddressComponentsOrBuilder(int index)
Unordered list. The individual address components of the formatted and corrected address, along with validation information. This provides information on the validation status of the individual components. Address components are not ordered in a particular way. Do not make any assumptions on the ordering of the address components in the list.
repeated .google.maps.addressvalidation.v1.AddressComponent address_components = 4 [(.google.api.field_behavior) = UNORDERED_LIST];
getAddressComponentsOrBuilder in interface AddressOrBuilderpublic com.google.protobuf.ProtocolStringList getMissingComponentTypesList()
The types of components that were expected to be present in a correctly formatted mailing address but were not found in the input AND could not be inferred. Components of this type are not present in `formatted_address`, `postal_address`, or `address_components`. An example might be `['street_number', 'route']` for an input like "Boulder, Colorado, 80301, USA". The list of possible types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string missing_component_types = 5;getMissingComponentTypesList in interface AddressOrBuilderpublic int getMissingComponentTypesCount()
The types of components that were expected to be present in a correctly formatted mailing address but were not found in the input AND could not be inferred. Components of this type are not present in `formatted_address`, `postal_address`, or `address_components`. An example might be `['street_number', 'route']` for an input like "Boulder, Colorado, 80301, USA". The list of possible types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string missing_component_types = 5;getMissingComponentTypesCount in interface AddressOrBuilderpublic String getMissingComponentTypes(int index)
The types of components that were expected to be present in a correctly formatted mailing address but were not found in the input AND could not be inferred. Components of this type are not present in `formatted_address`, `postal_address`, or `address_components`. An example might be `['street_number', 'route']` for an input like "Boulder, Colorado, 80301, USA". The list of possible types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string missing_component_types = 5;getMissingComponentTypes in interface AddressOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getMissingComponentTypesBytes(int index)
The types of components that were expected to be present in a correctly formatted mailing address but were not found in the input AND could not be inferred. Components of this type are not present in `formatted_address`, `postal_address`, or `address_components`. An example might be `['street_number', 'route']` for an input like "Boulder, Colorado, 80301, USA". The list of possible types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string missing_component_types = 5;getMissingComponentTypesBytes in interface AddressOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getUnconfirmedComponentTypesList()
The types of the components that are present in the `address_components` but could not be confirmed to be correct. This field is provided for the sake of convenience: its contents are equivalent to iterating through the `address_components` to find the types of all the components where the [confirmation_level][google.maps.addressvalidation.v1.AddressComponent.confirmation_level] is not [CONFIRMED][google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel.CONFIRMED] or the [inferred][google.maps.addressvalidation.v1.AddressComponent.inferred] flag is not set to `true`. The list of possible types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string unconfirmed_component_types = 6;getUnconfirmedComponentTypesList in interface AddressOrBuilderpublic int getUnconfirmedComponentTypesCount()
The types of the components that are present in the `address_components` but could not be confirmed to be correct. This field is provided for the sake of convenience: its contents are equivalent to iterating through the `address_components` to find the types of all the components where the [confirmation_level][google.maps.addressvalidation.v1.AddressComponent.confirmation_level] is not [CONFIRMED][google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel.CONFIRMED] or the [inferred][google.maps.addressvalidation.v1.AddressComponent.inferred] flag is not set to `true`. The list of possible types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string unconfirmed_component_types = 6;getUnconfirmedComponentTypesCount in interface AddressOrBuilderpublic String getUnconfirmedComponentTypes(int index)
The types of the components that are present in the `address_components` but could not be confirmed to be correct. This field is provided for the sake of convenience: its contents are equivalent to iterating through the `address_components` to find the types of all the components where the [confirmation_level][google.maps.addressvalidation.v1.AddressComponent.confirmation_level] is not [CONFIRMED][google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel.CONFIRMED] or the [inferred][google.maps.addressvalidation.v1.AddressComponent.inferred] flag is not set to `true`. The list of possible types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string unconfirmed_component_types = 6;getUnconfirmedComponentTypes in interface AddressOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getUnconfirmedComponentTypesBytes(int index)
The types of the components that are present in the `address_components` but could not be confirmed to be correct. This field is provided for the sake of convenience: its contents are equivalent to iterating through the `address_components` to find the types of all the components where the [confirmation_level][google.maps.addressvalidation.v1.AddressComponent.confirmation_level] is not [CONFIRMED][google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel.CONFIRMED] or the [inferred][google.maps.addressvalidation.v1.AddressComponent.inferred] flag is not set to `true`. The list of possible types can be found [here](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
repeated string unconfirmed_component_types = 6;getUnconfirmedComponentTypesBytes in interface AddressOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getUnresolvedTokensList()
Any tokens in the input that could not be resolved. This might be an input that was not recognized as a valid part of an address (for example in an input like "123235253253 Main St, San Francisco, CA, 94105", the unresolved tokens may look like `["123235253253"]` since that does not look like a valid street number.
repeated string unresolved_tokens = 7;getUnresolvedTokensList in interface AddressOrBuilderpublic int getUnresolvedTokensCount()
Any tokens in the input that could not be resolved. This might be an input that was not recognized as a valid part of an address (for example in an input like "123235253253 Main St, San Francisco, CA, 94105", the unresolved tokens may look like `["123235253253"]` since that does not look like a valid street number.
repeated string unresolved_tokens = 7;getUnresolvedTokensCount in interface AddressOrBuilderpublic String getUnresolvedTokens(int index)
Any tokens in the input that could not be resolved. This might be an input that was not recognized as a valid part of an address (for example in an input like "123235253253 Main St, San Francisco, CA, 94105", the unresolved tokens may look like `["123235253253"]` since that does not look like a valid street number.
repeated string unresolved_tokens = 7;getUnresolvedTokens in interface AddressOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getUnresolvedTokensBytes(int index)
Any tokens in the input that could not be resolved. This might be an input that was not recognized as a valid part of an address (for example in an input like "123235253253 Main St, San Francisco, CA, 94105", the unresolved tokens may look like `["123235253253"]` since that does not look like a valid street number.
repeated string unresolved_tokens = 7;getUnresolvedTokensBytes in interface AddressOrBuilderindex - The index of the value to return.public 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 Address parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(InputStream input) throws IOException
IOExceptionpublic static Address parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Address parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Address parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Address parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Address parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Address.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Address.Builder newBuilder()
public static Address.Builder newBuilder(Address prototype)
public Address.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Address.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Address getDefaultInstance()
public static com.google.protobuf.Parser<Address> parser()
public com.google.protobuf.Parser<Address> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Address getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.