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.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 value)
The name for this component.AddressComponent.Builder
setComponentName(ComponentName.Builder builderForValue)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
clear
public AddressComponent.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
getDefaultInstanceForType
public AddressComponent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AddressComponent build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AddressComponent buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AddressComponent.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
setField
public AddressComponent.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
clearField
public AddressComponent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
clearOneof
public AddressComponent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
setRepeatedField
public AddressComponent.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
addRepeatedField
public AddressComponent.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
mergeFrom
public AddressComponent.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AddressComponent.Builder>
-
mergeFrom
public AddressComponent.Builder mergeFrom(AddressComponent other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasComponentName
in 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:
getComponentName
in 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:
getComponentNameOrBuilder
in 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:
getComponentType
in 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:
getComponentTypeBytes
in 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:
getConfirmationLevelValue
in 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:
getConfirmationLevel
in 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:
getInferred
in 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:
getSpellCorrected
in 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:
getReplaced
in 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:
getUnexpected
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
mergeUnknownFields
public final AddressComponent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
-
-