Class TransactionData.Address.Builder (3.50.0)

public static final class TransactionData.Address.Builder extends GeneratedMessageV3.Builder<TransactionData.Address.Builder> implements TransactionData.AddressOrBuilder

Structured address format for billing and shipping addresses.

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

Static Methods

getDescriptor()

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

Methods

addAddress(String value)

public TransactionData.Address.Builder addAddress(String value)

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
value String

The address to add.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

addAddressBytes(ByteString value)

public TransactionData.Address.Builder addAddressBytes(ByteString value)

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
value ByteString

The bytes of the address to add.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

addAllAddress(Iterable<String> values)

public TransactionData.Address.Builder addAllAddress(Iterable<String> values)

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
values Iterable<String>

The address to add.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransactionData.Address.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransactionData.Address.Builder
Overrides

build()

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

buildPartial()

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

clear()

public TransactionData.Address.Builder clear()
Returns
Type Description
TransactionData.Address.Builder
Overrides

clearAddress()

public TransactionData.Address.Builder clearAddress()

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
TransactionData.Address.Builder

This builder for chaining.

clearAdministrativeArea()

public TransactionData.Address.Builder clearAdministrativeArea()

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

string administrative_area = 4;

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TransactionData.Address.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TransactionData.Address.Builder
Overrides

clearLocality()

public TransactionData.Address.Builder clearLocality()

The town/city of the address.

string locality = 3;

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TransactionData.Address.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TransactionData.Address.Builder
Overrides

clearPostalCode()

public TransactionData.Address.Builder clearPostalCode()

The postal or ZIP code of the address.

string postal_code = 6;

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

clearRecipient()

public TransactionData.Address.Builder clearRecipient()

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

string recipient = 1;

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

clearRegionCode()

public TransactionData.Address.Builder clearRegionCode()

The CLDR country/region of the address.

string region_code = 5;

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

clone()

public TransactionData.Address.Builder clone()
Returns
Type Description
TransactionData.Address.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TransactionData.Address.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransactionData.Address.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TransactionData.Address.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TransactionData.Address.Builder
Overrides

mergeFrom(TransactionData.Address other)

public TransactionData.Address.Builder mergeFrom(TransactionData.Address other)
Parameter
Name Description
other TransactionData.Address
Returns
Type Description
TransactionData.Address.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransactionData.Address.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransactionData.Address.Builder
Overrides

setAddress(int index, String value)

public TransactionData.Address.Builder setAddress(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The address to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setAdministrativeArea(String value)

public TransactionData.Address.Builder setAdministrativeArea(String value)

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

string administrative_area = 4;

Parameter
Name Description
value String

The administrativeArea to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setAdministrativeAreaBytes(ByteString value)

public TransactionData.Address.Builder setAdministrativeAreaBytes(ByteString value)

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

string administrative_area = 4;

Parameter
Name Description
value ByteString

The bytes for administrativeArea to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TransactionData.Address.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransactionData.Address.Builder
Overrides

setLocality(String value)

public TransactionData.Address.Builder setLocality(String value)

The town/city of the address.

string locality = 3;

Parameter
Name Description
value String

The locality to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setLocalityBytes(ByteString value)

public TransactionData.Address.Builder setLocalityBytes(ByteString value)

The town/city of the address.

string locality = 3;

Parameter
Name Description
value ByteString

The bytes for locality to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setPostalCode(String value)

public TransactionData.Address.Builder setPostalCode(String value)

The postal or ZIP code of the address.

string postal_code = 6;

Parameter
Name Description
value String

The postalCode to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setPostalCodeBytes(ByteString value)

public TransactionData.Address.Builder setPostalCodeBytes(ByteString value)

The postal or ZIP code of the address.

string postal_code = 6;

Parameter
Name Description
value ByteString

The bytes for postalCode to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setRecipient(String value)

public TransactionData.Address.Builder setRecipient(String value)

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

string recipient = 1;

Parameter
Name Description
value String

The recipient to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setRecipientBytes(ByteString value)

public TransactionData.Address.Builder setRecipientBytes(ByteString value)

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

string recipient = 1;

Parameter
Name Description
value ByteString

The bytes for recipient to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setRegionCode(String value)

public TransactionData.Address.Builder setRegionCode(String value)

The CLDR country/region of the address.

string region_code = 5;

Parameter
Name Description
value String

The regionCode to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setRegionCodeBytes(ByteString value)

public TransactionData.Address.Builder setRegionCodeBytes(ByteString value)

The CLDR country/region of the address.

string region_code = 5;

Parameter
Name Description
value ByteString

The bytes for regionCode to set.

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TransactionData.Address.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TransactionData.Address.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TransactionData.Address.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransactionData.Address.Builder
Overrides