public static final class AddressComponent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder> implements AddressComponentOrBuilder
Represents an address component, such as a street, city, or state.Protobuf type
google.maps.addressvalidation.v1.AddressComponent| Modifier and Type | Method and Description |
|---|---|
AddressComponent.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AddressComponent |
build() |
AddressComponent |
buildPartial() |
AddressComponent.Builder |
clear() |
AddressComponent.Builder |
clearComponentName()
The name for this component.
|
AddressComponent.Builder |
clearComponentType()
The type of the address component.
|
AddressComponent.Builder |
clearConfirmationLevel()
Indicates the level of certainty that we have that the component
is correct.
|
AddressComponent.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AddressComponent.Builder |
clearInferred()
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.
|
AddressComponent.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AddressComponent.Builder |
clearReplaced()
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.
|
AddressComponent.Builder |
clearSpellCorrected()
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.
|
AddressComponent.Builder |
clearUnexpected()
Indicates an address component that is not expected to be present in a
postal address for the given region.
|
AddressComponent.Builder |
clone() |
ComponentName |
getComponentName()
The name for this component.
|
ComponentName.Builder |
getComponentNameBuilder()
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.
|
AddressComponent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
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.
|
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AddressComponent.Builder |
mergeComponentName(ComponentName value)
The name for this component.
|
AddressComponent.Builder |
mergeFrom(AddressComponent other) |
AddressComponent.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AddressComponent.Builder |
mergeFrom(com.google.protobuf.Message other) |
AddressComponent.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AddressComponent.Builder |
setComponentName(ComponentName.Builder builderForValue)
The name for this component.
|
AddressComponent.Builder |
setComponentName(ComponentName value)
The name for this component.
|
AddressComponent.Builder |
setComponentType(String value)
The type of the address component.
|
AddressComponent.Builder |
setComponentTypeBytes(com.google.protobuf.ByteString value)
The type of the address component.
|
AddressComponent.Builder |
setConfirmationLevel(AddressComponent.ConfirmationLevel value)
Indicates the level of certainty that we have that the component
is correct.
|
AddressComponent.Builder |
setConfirmationLevelValue(int value)
Indicates the level of certainty that we have that the component
is correct.
|
AddressComponent.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AddressComponent.Builder |
setInferred(boolean value)
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.
|
AddressComponent.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AddressComponent.Builder |
setReplaced(boolean value)
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.
|
AddressComponent.Builder |
setSpellCorrected(boolean value)
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.
|
AddressComponent.Builder |
setUnexpected(boolean value)
Indicates an address component that is not expected to be present in a
postal address for the given region.
|
AddressComponent.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public AddressComponent.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public AddressComponent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AddressComponent build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AddressComponent buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AddressComponent.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public AddressComponent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public AddressComponent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public AddressComponent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public AddressComponent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public AddressComponent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public AddressComponent.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AddressComponent.Builder>public AddressComponent.Builder mergeFrom(AddressComponent other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public AddressComponent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AddressComponent.Builder>IOExceptionpublic 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 AddressComponent.Builder setComponentName(ComponentName value)
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;public AddressComponent.Builder setComponentName(ComponentName.Builder builderForValue)
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;public AddressComponent.Builder mergeComponentName(ComponentName value)
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;public AddressComponent.Builder clearComponentName()
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;public ComponentName.Builder getComponentNameBuilder()
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;public 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 AddressComponent.Builder setComponentType(String value)
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;value - The componentType to set.public AddressComponent.Builder clearComponentType()
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;public AddressComponent.Builder setComponentTypeBytes(com.google.protobuf.ByteString value)
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;value - The bytes for componentType to set.public 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.Builder setConfirmationLevelValue(int value)
Indicates the level of certainty that we have that the component is correct.
.google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel confirmation_level = 3;
value - The enum numeric value on the wire for confirmationLevel to set.public 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 AddressComponent.Builder setConfirmationLevel(AddressComponent.ConfirmationLevel value)
Indicates the level of certainty that we have that the component is correct.
.google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel confirmation_level = 3;
value - The confirmationLevel to set.public AddressComponent.Builder clearConfirmationLevel()
Indicates the level of certainty that we have that the component is correct.
.google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel confirmation_level = 3;
public 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 AddressComponent.Builder setInferred(boolean value)
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;value - The inferred to set.public AddressComponent.Builder clearInferred()
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;public 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 AddressComponent.Builder setSpellCorrected(boolean value)
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;value - The spellCorrected to set.public AddressComponent.Builder clearSpellCorrected()
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;public 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 AddressComponent.Builder setReplaced(boolean value)
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;value - The replaced to set.public AddressComponent.Builder clearReplaced()
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;public 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 AddressComponent.Builder setUnexpected(boolean value)
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;value - The unexpected to set.public AddressComponent.Builder clearUnexpected()
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;public final AddressComponent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>public final AddressComponent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>Copyright © 2023 Google LLC. All rights reserved.