Class TransactionData.Address

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransactionData.AddressOrBuilder, Serializable
    Enclosing class:
    TransactionData

    public static final class TransactionData.Address
    extends com.google.protobuf.GeneratedMessageV3
    implements TransactionData.AddressOrBuilder
     Structured address format for billing and shipping addresses.
     
    Protobuf type google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address
    See Also:
    Serialized Form
    • 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
      • getRecipientBytes

        public com.google.protobuf.ByteString getRecipientBytes()
         The recipient name, potentially including information such as "care of".
         
        string recipient = 1;
        Specified by:
        getRecipientBytes in interface TransactionData.AddressOrBuilder
        Returns:
        The bytes for recipient.
      • getAddressList

        public com.google.protobuf.ProtocolStringList getAddressList()
         The first lines of the address. The first line generally contains the
         street name and number, and further lines may include information such as
         an apartment number.
         
        repeated string address = 2;
        Specified by:
        getAddressList in interface TransactionData.AddressOrBuilder
        Returns:
        A list containing the address.
      • getAddressCount

        public int getAddressCount()
         The first lines of the address. The first line generally contains the
         street name and number, and further lines may include information such as
         an apartment number.
         
        repeated string address = 2;
        Specified by:
        getAddressCount in interface TransactionData.AddressOrBuilder
        Returns:
        The count of address.
      • getAddress

        public String getAddress​(int index)
         The first lines of the address. The first line generally contains the
         street name and number, and further lines may include information such as
         an apartment number.
         
        repeated string address = 2;
        Specified by:
        getAddress in interface TransactionData.AddressOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The address at the given index.
      • getAddressBytes

        public com.google.protobuf.ByteString getAddressBytes​(int index)
         The first lines of the address. The first line generally contains the
         street name and number, and further lines may include information such as
         an apartment number.
         
        repeated string address = 2;
        Specified by:
        getAddressBytes in interface TransactionData.AddressOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the address at the given index.
      • getLocalityBytes

        public com.google.protobuf.ByteString getLocalityBytes()
         The town/city of the address.
         
        string locality = 3;
        Specified by:
        getLocalityBytes in interface TransactionData.AddressOrBuilder
        Returns:
        The bytes for locality.
      • getAdministrativeAreaBytes

        public com.google.protobuf.ByteString getAdministrativeAreaBytes()
         The state, province, or otherwise administrative area of the address.
         
        string administrative_area = 4;
        Specified by:
        getAdministrativeAreaBytes in interface TransactionData.AddressOrBuilder
        Returns:
        The bytes for administrativeArea.
      • getRegionCodeBytes

        public com.google.protobuf.ByteString getRegionCodeBytes()
         The CLDR country/region of the address.
         
        string region_code = 5;
        Specified by:
        getRegionCodeBytes in interface TransactionData.AddressOrBuilder
        Returns:
        The bytes for regionCode.
      • getPostalCodeBytes

        public com.google.protobuf.ByteString getPostalCodeBytes()
         The postal or ZIP code of the address.
         
        string postal_code = 6;
        Specified by:
        getPostalCodeBytes in interface TransactionData.AddressOrBuilder
        Returns:
        The bytes for postalCode.
      • 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 TransactionData.Address parseFrom​(ByteBuffer data)
                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

        protected TransactionData.Address.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<TransactionData.Address> 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 TransactionData.Address getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder