public final class AddressComponent extends com.google.protobuf.GeneratedMessageV3 implements AddressComponentOrBuilder
Represents an address component, such as a street, city, or state.Protobuf type
google.maps.addressvalidation.v1.AddressComponent| Modifier and Type | Class and Description |
|---|---|
static class |
AddressComponent.Builder
Represents an address component, such as a street, city, or state.
|
static class |
AddressComponent.ConfirmationLevel
The different possible values for confirmation levels.
|
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 |
COMPONENT_NAME_FIELD_NUMBER |
static int |
COMPONENT_TYPE_FIELD_NUMBER |
static int |
CONFIRMATION_LEVEL_FIELD_NUMBER |
static int |
INFERRED_FIELD_NUMBER |
static int |
REPLACED_FIELD_NUMBER |
static int |
SPELL_CORRECTED_FIELD_NUMBER |
static int |
UNEXPECTED_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ComponentName |
getComponentName()
The name for this component.
|
ComponentNameOrBuilder |
getComponentNameOrBuilder()
The name for this component.
|
String |
getComponentType()
The type of the address component.
|
com.google.protobuf.ByteString |
getComponentTypeBytes()
The type of the address component.
|
AddressComponent.ConfirmationLevel |
getConfirmationLevel()
Indicates the level of certainty that we have that the component
is correct.
|
int |
getConfirmationLevelValue()
Indicates the level of certainty that we have that the component
is correct.
|
static AddressComponent |
getDefaultInstance() |
AddressComponent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getInferred()
Indicates that the component was not part of the input, but we
inferred it for the address location and believe it should be provided
for a complete address.
|
com.google.protobuf.Parser<AddressComponent> |
getParserForType() |
boolean |
getReplaced()
Indicates the name of the component was replaced with a completely
different one, for example a wrong postal code being replaced with one that
is correct for the address.
|
int |
getSerializedSize() |
boolean |
getSpellCorrected()
Indicates the spelling of the component name was corrected in a minor way,
for example by switching two characters that appeared in the wrong order.
|
boolean |
getUnexpected()
Indicates an address component that is not expected to be present in a
postal address for the given region.
|
boolean |
hasComponentName()
The name for this component.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AddressComponent.Builder |
newBuilder() |
static AddressComponent.Builder |
newBuilder(AddressComponent prototype) |
AddressComponent.Builder |
newBuilderForType() |
protected AddressComponent.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static AddressComponent |
parseDelimitedFrom(InputStream input) |
static AddressComponent |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AddressComponent |
parseFrom(byte[] data) |
static AddressComponent |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AddressComponent |
parseFrom(ByteBuffer data) |
static AddressComponent |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AddressComponent |
parseFrom(com.google.protobuf.ByteString data) |
static AddressComponent |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AddressComponent |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AddressComponent |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AddressComponent |
parseFrom(InputStream input) |
static AddressComponent |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AddressComponent> |
parser() |
AddressComponent.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 COMPONENT_NAME_FIELD_NUMBER
public static final int COMPONENT_TYPE_FIELD_NUMBER
public static final int CONFIRMATION_LEVEL_FIELD_NUMBER
public static final int INFERRED_FIELD_NUMBER
public static final int SPELL_CORRECTED_FIELD_NUMBER
public static final int REPLACED_FIELD_NUMBER
public static final int UNEXPECTED_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 boolean hasComponentName()
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;hasComponentName in interface AddressComponentOrBuilderpublic ComponentName getComponentName()
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;getComponentName in interface AddressComponentOrBuilderpublic ComponentNameOrBuilder getComponentNameOrBuilder()
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;getComponentNameOrBuilder in interface AddressComponentOrBuilderpublic String getComponentType()
The type of the address component. See [Table 2: Additional types returned by the Places service](https://developers.google.com/places/web-service/supported_types#table2) for a list of possible types.
string component_type = 2;getComponentType in interface AddressComponentOrBuilderpublic com.google.protobuf.ByteString getComponentTypeBytes()
The type of the address component. See [Table 2: Additional types returned by the Places service](https://developers.google.com/places/web-service/supported_types#table2) for a list of possible types.
string component_type = 2;getComponentTypeBytes in interface AddressComponentOrBuilderpublic int getConfirmationLevelValue()
Indicates the level of certainty that we have that the component is correct.
.google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel confirmation_level = 3;
getConfirmationLevelValue in interface AddressComponentOrBuilderpublic AddressComponent.ConfirmationLevel getConfirmationLevel()
Indicates the level of certainty that we have that the component is correct.
.google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel confirmation_level = 3;
getConfirmationLevel in interface AddressComponentOrBuilderpublic boolean getInferred()
Indicates that the component was not part of the input, but we inferred it for the address location and believe it should be provided for a complete address.
bool inferred = 4;getInferred in interface AddressComponentOrBuilderpublic boolean getSpellCorrected()
Indicates the spelling of the component name was corrected in a minor way, for example by switching two characters that appeared in the wrong order. This indicates a cosmetic change.
bool spell_corrected = 5;getSpellCorrected in interface AddressComponentOrBuilderpublic boolean getReplaced()
Indicates the name of the component was replaced with a completely different one, for example a wrong postal code being replaced with one that is correct for the address. This is not a cosmetic change, the input component has been changed to a different one.
bool replaced = 6;getReplaced in interface AddressComponentOrBuilderpublic boolean getUnexpected()
Indicates an address component that is not expected to be present in a postal address for the given region. We have retained it only because it was part of the input.
bool unexpected = 7;getUnexpected in interface AddressComponentOrBuilderpublic 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 AddressComponent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddressComponent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddressComponent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddressComponent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddressComponent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddressComponent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AddressComponent parseFrom(InputStream input) throws IOException
IOExceptionpublic static AddressComponent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AddressComponent parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AddressComponent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AddressComponent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AddressComponent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AddressComponent.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AddressComponent.Builder newBuilder()
public static AddressComponent.Builder newBuilder(AddressComponent prototype)
public AddressComponent.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AddressComponent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AddressComponent getDefaultInstance()
public static com.google.protobuf.Parser<AddressComponent> parser()
public com.google.protobuf.Parser<AddressComponent> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AddressComponent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.