Class AddressMetadata.Builder

  • All Implemented Interfaces:
    AddressMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    AddressMetadata

    public static final class AddressMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AddressMetadata.Builder>
    implements AddressMetadataOrBuilder
     The metadata for the address. `metadata` is not guaranteed to be fully
     populated for every address sent to the Address Validation API.
     
    Protobuf type google.maps.addressvalidation.v1.AddressMetadata
    • 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<AddressMetadata.Builder>
      • clear

        public AddressMetadata.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<AddressMetadata.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<AddressMetadata.Builder>
      • getDefaultInstanceForType

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

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

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

        public AddressMetadata.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<AddressMetadata.Builder>
      • setField

        public AddressMetadata.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<AddressMetadata.Builder>
      • clearField

        public AddressMetadata.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<AddressMetadata.Builder>
      • clearOneof

        public AddressMetadata.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<AddressMetadata.Builder>
      • setRepeatedField

        public AddressMetadata.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<AddressMetadata.Builder>
      • addRepeatedField

        public AddressMetadata.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<AddressMetadata.Builder>
      • mergeFrom

        public AddressMetadata.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<AddressMetadata.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AddressMetadata.Builder>
      • mergeFrom

        public AddressMetadata.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<AddressMetadata.Builder>
        Throws:
        IOException
      • hasBusiness

        public boolean hasBusiness()
         Indicates that this is the address of a business.
         If unset, indicates that the value is unknown.
         
        optional bool business = 2;
        Specified by:
        hasBusiness in interface AddressMetadataOrBuilder
        Returns:
        Whether the business field is set.
      • getBusiness

        public boolean getBusiness()
         Indicates that this is the address of a business.
         If unset, indicates that the value is unknown.
         
        optional bool business = 2;
        Specified by:
        getBusiness in interface AddressMetadataOrBuilder
        Returns:
        The business.
      • setBusiness

        public AddressMetadata.Builder setBusiness​(boolean value)
         Indicates that this is the address of a business.
         If unset, indicates that the value is unknown.
         
        optional bool business = 2;
        Parameters:
        value - The business to set.
        Returns:
        This builder for chaining.
      • clearBusiness

        public AddressMetadata.Builder clearBusiness()
         Indicates that this is the address of a business.
         If unset, indicates that the value is unknown.
         
        optional bool business = 2;
        Returns:
        This builder for chaining.
      • hasPoBox

        public boolean hasPoBox()
         Indicates that the address of a PO box.
         If unset, indicates that the value is unknown.
         
        optional bool po_box = 3;
        Specified by:
        hasPoBox in interface AddressMetadataOrBuilder
        Returns:
        Whether the poBox field is set.
      • getPoBox

        public boolean getPoBox()
         Indicates that the address of a PO box.
         If unset, indicates that the value is unknown.
         
        optional bool po_box = 3;
        Specified by:
        getPoBox in interface AddressMetadataOrBuilder
        Returns:
        The poBox.
      • setPoBox

        public AddressMetadata.Builder setPoBox​(boolean value)
         Indicates that the address of a PO box.
         If unset, indicates that the value is unknown.
         
        optional bool po_box = 3;
        Parameters:
        value - The poBox to set.
        Returns:
        This builder for chaining.
      • clearPoBox

        public AddressMetadata.Builder clearPoBox()
         Indicates that the address of a PO box.
         If unset, indicates that the value is unknown.
         
        optional bool po_box = 3;
        Returns:
        This builder for chaining.
      • hasResidential

        public boolean hasResidential()
         Indicates that this is the address of a residence.
         If unset, indicates that the value is unknown.
         
        optional bool residential = 6;
        Specified by:
        hasResidential in interface AddressMetadataOrBuilder
        Returns:
        Whether the residential field is set.
      • getResidential

        public boolean getResidential()
         Indicates that this is the address of a residence.
         If unset, indicates that the value is unknown.
         
        optional bool residential = 6;
        Specified by:
        getResidential in interface AddressMetadataOrBuilder
        Returns:
        The residential.
      • setResidential

        public AddressMetadata.Builder setResidential​(boolean value)
         Indicates that this is the address of a residence.
         If unset, indicates that the value is unknown.
         
        optional bool residential = 6;
        Parameters:
        value - The residential to set.
        Returns:
        This builder for chaining.
      • clearResidential

        public AddressMetadata.Builder clearResidential()
         Indicates that this is the address of a residence.
         If unset, indicates that the value is unknown.
         
        optional bool residential = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AddressMetadata.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<AddressMetadata.Builder>
      • mergeUnknownFields

        public final AddressMetadata.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<AddressMetadata.Builder>