Class AddressComponent.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
- com.google.maps.addressvalidation.v1.AddressComponent.Builder
-
- All Implemented Interfaces:
AddressComponentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AddressComponent
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 typegoogle.maps.addressvalidation.v1.AddressComponent
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressComponent.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AddressComponentbuild()AddressComponentbuildPartial()AddressComponent.Builderclear()AddressComponent.BuilderclearComponentName()The name for this component.AddressComponent.BuilderclearComponentType()The type of the address component.AddressComponent.BuilderclearConfirmationLevel()Indicates the level of certainty that we have that the component is correct.AddressComponent.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AddressComponent.BuilderclearInferred()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.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AddressComponent.BuilderclearReplaced()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.BuilderclearSpellCorrected()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.BuilderclearUnexpected()Indicates an address component that is not expected to be present in a postal address for the given region.AddressComponent.Builderclone()ComponentNamegetComponentName()The name for this component.ComponentName.BuildergetComponentNameBuilder()The name for this component.ComponentNameOrBuildergetComponentNameOrBuilder()The name for this component.StringgetComponentType()The type of the address component.com.google.protobuf.ByteStringgetComponentTypeBytes()The type of the address component.AddressComponent.ConfirmationLevelgetConfirmationLevel()Indicates the level of certainty that we have that the component is correct.intgetConfirmationLevelValue()Indicates the level of certainty that we have that the component is correct.AddressComponentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetInferred()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.booleangetReplaced()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.booleangetSpellCorrected()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.booleangetUnexpected()Indicates an address component that is not expected to be present in a postal address for the given region.booleanhasComponentName()The name for this component.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AddressComponent.BuildermergeComponentName(ComponentName value)The name for this component.AddressComponent.BuildermergeFrom(AddressComponent other)AddressComponent.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AddressComponent.BuildermergeFrom(com.google.protobuf.Message other)AddressComponent.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AddressComponent.BuildersetComponentName(ComponentName value)The name for this component.AddressComponent.BuildersetComponentName(ComponentName.Builder builderForValue)The name for this component.AddressComponent.BuildersetComponentType(String value)The type of the address component.AddressComponent.BuildersetComponentTypeBytes(com.google.protobuf.ByteString value)The type of the address component.AddressComponent.BuildersetConfirmationLevel(AddressComponent.ConfirmationLevel value)Indicates the level of certainty that we have that the component is correct.AddressComponent.BuildersetConfirmationLevelValue(int value)Indicates the level of certainty that we have that the component is correct.AddressComponent.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AddressComponent.BuildersetInferred(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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AddressComponent.BuildersetReplaced(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.BuildersetSpellCorrected(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.BuildersetUnexpected(boolean value)Indicates an address component that is not expected to be present in a postal address for the given region.AddressComponent.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<AddressComponent.Builder>
-
clear
public AddressComponent.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
getDefaultInstanceForType
public AddressComponent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AddressComponent build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AddressComponent buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AddressComponent.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
setField
public AddressComponent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
clearField
public AddressComponent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
clearOneof
public AddressComponent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
setRepeatedField
public AddressComponent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
addRepeatedField
public AddressComponent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
mergeFrom
public AddressComponent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AddressComponent.Builder>
-
mergeFrom
public AddressComponent.Builder mergeFrom(AddressComponent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
mergeFrom
public AddressComponent.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AddressComponent.Builder>- Throws:
IOException
-
hasComponentName
public boolean hasComponentName()
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;- Specified by:
hasComponentNamein interfaceAddressComponentOrBuilder- Returns:
- Whether the componentName field is set.
-
getComponentName
public ComponentName getComponentName()
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;- Specified by:
getComponentNamein interfaceAddressComponentOrBuilder- Returns:
- The componentName.
-
setComponentName
public AddressComponent.Builder setComponentName(ComponentName value)
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;
-
setComponentName
public AddressComponent.Builder setComponentName(ComponentName.Builder builderForValue)
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;
-
mergeComponentName
public AddressComponent.Builder mergeComponentName(ComponentName value)
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;
-
clearComponentName
public AddressComponent.Builder clearComponentName()
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;
-
getComponentNameBuilder
public ComponentName.Builder getComponentNameBuilder()
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;
-
getComponentNameOrBuilder
public ComponentNameOrBuilder getComponentNameOrBuilder()
The name for this component.
.google.maps.addressvalidation.v1.ComponentName component_name = 1;- Specified by:
getComponentNameOrBuilderin interfaceAddressComponentOrBuilder
-
getComponentType
public 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;- Specified by:
getComponentTypein interfaceAddressComponentOrBuilder- Returns:
- The componentType.
-
getComponentTypeBytes
public 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;- Specified by:
getComponentTypeBytesin interfaceAddressComponentOrBuilder- Returns:
- The bytes for componentType.
-
setComponentType
public 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;- Parameters:
value- The componentType to set.- Returns:
- This builder for chaining.
-
clearComponentType
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;- Returns:
- This builder for chaining.
-
setComponentTypeBytes
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;- Parameters:
value- The bytes for componentType to set.- Returns:
- This builder for chaining.
-
getConfirmationLevelValue
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;- Specified by:
getConfirmationLevelValuein interfaceAddressComponentOrBuilder- Returns:
- The enum numeric value on the wire for confirmationLevel.
-
setConfirmationLevelValue
public 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;- Parameters:
value- The enum numeric value on the wire for confirmationLevel to set.- Returns:
- This builder for chaining.
-
getConfirmationLevel
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;- Specified by:
getConfirmationLevelin interfaceAddressComponentOrBuilder- Returns:
- The confirmationLevel.
-
setConfirmationLevel
public 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;- Parameters:
value- The confirmationLevel to set.- Returns:
- This builder for chaining.
-
clearConfirmationLevel
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;- Returns:
- This builder for chaining.
-
getInferred
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;- Specified by:
getInferredin interfaceAddressComponentOrBuilder- Returns:
- The inferred.
-
setInferred
public 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;- Parameters:
value- The inferred to set.- Returns:
- This builder for chaining.
-
clearInferred
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;- Returns:
- This builder for chaining.
-
getSpellCorrected
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;- Specified by:
getSpellCorrectedin interfaceAddressComponentOrBuilder- Returns:
- The spellCorrected.
-
setSpellCorrected
public 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;- Parameters:
value- The spellCorrected to set.- Returns:
- This builder for chaining.
-
clearSpellCorrected
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;- Returns:
- This builder for chaining.
-
getReplaced
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;- Specified by:
getReplacedin interfaceAddressComponentOrBuilder- Returns:
- The replaced.
-
setReplaced
public 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;- Parameters:
value- The replaced to set.- Returns:
- This builder for chaining.
-
clearReplaced
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;- Returns:
- This builder for chaining.
-
getUnexpected
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;- Specified by:
getUnexpectedin interfaceAddressComponentOrBuilder- Returns:
- The unexpected.
-
setUnexpected
public 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;- Parameters:
value- The unexpected to set.- Returns:
- This builder for chaining.
-
clearUnexpected
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AddressComponent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
mergeUnknownFields
public final AddressComponent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
-