Class UspsAddress

  • All Implemented Interfaces:
    UspsAddressOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class UspsAddress
    extends com.google.protobuf.GeneratedMessageV3
    implements UspsAddressOrBuilder
     USPS representation of a US address.
     
    Protobuf type google.maps.addressvalidation.v1.UspsAddress
    See Also:
    Serialized Form
    • Field Detail

      • FIRST_ADDRESS_LINE_FIELD_NUMBER

        public static final int FIRST_ADDRESS_LINE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SECOND_ADDRESS_LINE_FIELD_NUMBER

        public static final int SECOND_ADDRESS_LINE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • URBANIZATION_FIELD_NUMBER

        public static final int URBANIZATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CITY_STATE_ZIP_ADDRESS_LINE_FIELD_NUMBER

        public static final int CITY_STATE_ZIP_ADDRESS_LINE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ZIP_CODE_EXTENSION_FIELD_NUMBER

        public static final int ZIP_CODE_EXTENSION_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • getFirstAddressLineBytes

        public com.google.protobuf.ByteString getFirstAddressLineBytes()
         First address line.
         
        string first_address_line = 1;
        Specified by:
        getFirstAddressLineBytes in interface UspsAddressOrBuilder
        Returns:
        The bytes for firstAddressLine.
      • getFirmBytes

        public com.google.protobuf.ByteString getFirmBytes()
         Firm name.
         
        string firm = 2;
        Specified by:
        getFirmBytes in interface UspsAddressOrBuilder
        Returns:
        The bytes for firm.
      • getSecondAddressLineBytes

        public com.google.protobuf.ByteString getSecondAddressLineBytes()
         Second address line.
         
        string second_address_line = 3;
        Specified by:
        getSecondAddressLineBytes in interface UspsAddressOrBuilder
        Returns:
        The bytes for secondAddressLine.
      • getUrbanizationBytes

        public com.google.protobuf.ByteString getUrbanizationBytes()
         Puerto Rican urbanization name.
         
        string urbanization = 4;
        Specified by:
        getUrbanizationBytes in interface UspsAddressOrBuilder
        Returns:
        The bytes for urbanization.
      • getCityStateZipAddressLineBytes

        public com.google.protobuf.ByteString getCityStateZipAddressLineBytes()
         City + state + postal code.
         
        string city_state_zip_address_line = 5;
        Specified by:
        getCityStateZipAddressLineBytes in interface UspsAddressOrBuilder
        Returns:
        The bytes for cityStateZipAddressLine.
      • getCityBytes

        public com.google.protobuf.ByteString getCityBytes()
         City name.
         
        string city = 6;
        Specified by:
        getCityBytes in interface UspsAddressOrBuilder
        Returns:
        The bytes for city.
      • getStateBytes

        public com.google.protobuf.ByteString getStateBytes()
         2 letter state code.
         
        string state = 7;
        Specified by:
        getStateBytes in interface UspsAddressOrBuilder
        Returns:
        The bytes for state.
      • getZipCodeBytes

        public com.google.protobuf.ByteString getZipCodeBytes()
         Postal code e.g. 10009.
         
        string zip_code = 8;
        Specified by:
        getZipCodeBytes in interface UspsAddressOrBuilder
        Returns:
        The bytes for zipCode.
      • getZipCodeExtension

        public String getZipCodeExtension()
         4-digit postal code extension e.g. 5023.
         
        string zip_code_extension = 9;
        Specified by:
        getZipCodeExtension in interface UspsAddressOrBuilder
        Returns:
        The zipCodeExtension.
      • getZipCodeExtensionBytes

        public com.google.protobuf.ByteString getZipCodeExtensionBytes()
         4-digit postal code extension e.g. 5023.
         
        string zip_code_extension = 9;
        Specified by:
        getZipCodeExtensionBytes in interface UspsAddressOrBuilder
        Returns:
        The bytes for zipCodeExtension.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static UspsAddress parseFrom​(ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static UspsAddress parseFrom​(ByteBuffer data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static UspsAddress parseFrom​(com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static UspsAddress parseFrom​(com.google.protobuf.ByteString data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static UspsAddress parseFrom​(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static UspsAddress parseFrom​(byte[] data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static UspsAddress parseFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Throws:
        IOException
      • newBuilderForType

        public UspsAddress.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public UspsAddress.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected UspsAddress.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static UspsAddress getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<UspsAddress> parser()
      • getParserForType

        public com.google.protobuf.Parser<UspsAddress> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public UspsAddress getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder