Class TransactionData.Address (3.48.0)

public static final class TransactionData.Address extends GeneratedMessageV3 implements TransactionData.AddressOrBuilder

Structured address format for billing and shipping addresses.

Protobuf type google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address

Static Fields

ADDRESS_FIELD_NUMBER

public static final int ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

ADMINISTRATIVE_AREA_FIELD_NUMBER

public static final int ADMINISTRATIVE_AREA_FIELD_NUMBER
Field Value
Type Description
int

LOCALITY_FIELD_NUMBER

public static final int LOCALITY_FIELD_NUMBER
Field Value
Type Description
int

POSTAL_CODE_FIELD_NUMBER

public static final int POSTAL_CODE_FIELD_NUMBER
Field Value
Type Description
int

RECIPIENT_FIELD_NUMBER

public static final int RECIPIENT_FIELD_NUMBER
Field Value
Type Description
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TransactionData.Address getDefaultInstance()
Returns
Type Description
TransactionData.Address

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static TransactionData.Address.Builder newBuilder()
Returns
Type Description
TransactionData.Address.Builder

newBuilder(TransactionData.Address prototype)

public static TransactionData.Address.Builder newBuilder(TransactionData.Address prototype)
Parameter
Name Description
prototype TransactionData.Address
Returns
Type Description
TransactionData.Address.Builder

parseDelimitedFrom(InputStream input)

public static TransactionData.Address parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TransactionData.Address parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TransactionData.Address parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TransactionData.Address parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TransactionData.Address parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TransactionData.Address parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransactionData.Address
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TransactionData.Address> parser()
Returns
Type Description
Parser<Address>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAddress(int index)

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;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The address at the given index.

getAddressBytes(int index)

public 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;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the address at the given index.

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;

Returns
Type Description
int

The count of address.

getAddressList()

public 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;

Returns
Type Description
ProtocolStringList

A list containing the address.

getAdministrativeArea()

public String getAdministrativeArea()

The state, province, or otherwise administrative area of the address.

string administrative_area = 4;

Returns
Type Description
String

The administrativeArea.

getAdministrativeAreaBytes()

public ByteString getAdministrativeAreaBytes()

The state, province, or otherwise administrative area of the address.

string administrative_area = 4;

Returns
Type Description
ByteString

The bytes for administrativeArea.

getDefaultInstanceForType()

public TransactionData.Address getDefaultInstanceForType()
Returns
Type Description
TransactionData.Address

getLocality()

public String getLocality()

The town/city of the address.

string locality = 3;

Returns
Type Description
String

The locality.

getLocalityBytes()

public ByteString getLocalityBytes()

The town/city of the address.

string locality = 3;

Returns
Type Description
ByteString

The bytes for locality.

getParserForType()

public Parser<TransactionData.Address> getParserForType()
Returns
Type Description
Parser<Address>
Overrides

getPostalCode()

public String getPostalCode()

The postal or ZIP code of the address.

string postal_code = 6;

Returns
Type Description
String

The postalCode.

getPostalCodeBytes()

public ByteString getPostalCodeBytes()

The postal or ZIP code of the address.

string postal_code = 6;

Returns
Type Description
ByteString

The bytes for postalCode.

getRecipient()

public String getRecipient()

The recipient name, potentially including information such as "care of".

string recipient = 1;

Returns
Type Description
String

The recipient.

getRecipientBytes()

public ByteString getRecipientBytes()

The recipient name, potentially including information such as "care of".

string recipient = 1;

Returns
Type Description
ByteString

The bytes for recipient.

getRegionCode()

public String getRegionCode()

The CLDR country/region of the address.

string region_code = 5;

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

The CLDR country/region of the address.

string region_code = 5;

Returns
Type Description
ByteString

The bytes for regionCode.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TransactionData.Address.Builder newBuilderForType()
Returns
Type Description
TransactionData.Address.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TransactionData.Address.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TransactionData.Address.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TransactionData.Address.Builder toBuilder()
Returns
Type Description
TransactionData.Address.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException