Class 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 type google.maps.addressvalidation.v1.AddressComponent
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
      • clear

        public AddressComponent.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
      • getDefaultInstanceForType

        public AddressComponent getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public AddressComponent build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public AddressComponent buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public AddressComponent.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
      • setField

        public AddressComponent.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
      • clearField

        public AddressComponent.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
      • clearOneof

        public AddressComponent.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
      • addRepeatedField

        public AddressComponent.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
      • mergeFrom

        public AddressComponent.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AddressComponent.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface AddressComponentOrBuilder
        Returns:
        Whether the componentName field is set.
      • setComponentName

        public AddressComponent.Builder setComponentName​(ComponentName value)
         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;
      • 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 interface AddressComponentOrBuilder
        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 interface AddressComponentOrBuilder
        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 interface AddressComponentOrBuilder
        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.
      • 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 interface AddressComponentOrBuilder
        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 interface AddressComponentOrBuilder
        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 interface AddressComponentOrBuilder
        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 interface AddressComponentOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>
      • mergeUnknownFields

        public final AddressComponent.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AddressComponent.Builder>