Class TransactionData.Address (3.27.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
TypeDescription
int

ADMINISTRATIVE_AREA_FIELD_NUMBER

public static final int ADMINISTRATIVE_AREA_FIELD_NUMBER
Field Value
TypeDescription
int

LOCALITY_FIELD_NUMBER

public static final int LOCALITY_FIELD_NUMBER
Field Value
TypeDescription
int

POSTAL_CODE_FIELD_NUMBER

public static final int POSTAL_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

RECIPIENT_FIELD_NUMBER

public static final int RECIPIENT_FIELD_NUMBER
Field Value
TypeDescription
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TransactionData.Address getDefaultInstance()
Returns
TypeDescription
TransactionData.Address

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TransactionData.Address.Builder newBuilder()
Returns
TypeDescription
TransactionData.Address.Builder

newBuilder(TransactionData.Address prototype)

public static TransactionData.Address.Builder newBuilder(TransactionData.Address prototype)
Parameter
NameDescription
prototypeTransactionData.Address
Returns
TypeDescription
TransactionData.Address.Builder

parseDelimitedFrom(InputStream input)

public static TransactionData.Address parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TransactionData.Address parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TransactionData.Address parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TransactionData.Address parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TransactionData.Address parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TransactionData.Address parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Address parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Address
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The administrativeArea.

getAdministrativeAreaBytes()

public ByteString getAdministrativeAreaBytes()

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

string administrative_area = 4;

Returns
TypeDescription
ByteString

The bytes for administrativeArea.

getDefaultInstanceForType()

public TransactionData.Address getDefaultInstanceForType()
Returns
TypeDescription
TransactionData.Address

getLocality()

public String getLocality()

The town/city of the address.

string locality = 3;

Returns
TypeDescription
String

The locality.

getLocalityBytes()

public ByteString getLocalityBytes()

The town/city of the address.

string locality = 3;

Returns
TypeDescription
ByteString

The bytes for locality.

getParserForType()

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

getPostalCode()

public String getPostalCode()

The postal or ZIP code of the address.

string postal_code = 6;

Returns
TypeDescription
String

The postalCode.

getPostalCodeBytes()

public ByteString getPostalCodeBytes()

The postal or ZIP code of the address.

string postal_code = 6;

Returns
TypeDescription
ByteString

The bytes for postalCode.

getRecipient()

public String getRecipient()

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

string recipient = 1;

Returns
TypeDescription
String

The recipient.

getRecipientBytes()

public ByteString getRecipientBytes()

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

string recipient = 1;

Returns
TypeDescription
ByteString

The bytes for recipient.

getRegionCode()

public String getRegionCode()

The CLDR country/region of the address.

string region_code = 5;

Returns
TypeDescription
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

The CLDR country/region of the address.

string region_code = 5;

Returns
TypeDescription
ByteString

The bytes for regionCode.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TransactionData.Address.Builder newBuilderForType()
Returns
TypeDescription
TransactionData.Address.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TransactionData.Address.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TransactionData.Address.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TransactionData.Address.Builder toBuilder()
Returns
TypeDescription
TransactionData.Address.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException