Class TransactionData.Address.Builder (3.28.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
TypeDescription
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
NameDescription
valueString

The address to add.

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

The bytes of the address to add.

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

The address to add.

Returns
TypeDescription
TransactionData.Address.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransactionData.Address.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransactionData.Address.Builder
Overrides

build()

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

buildPartial()

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

clear()

public TransactionData.Address.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TransactionData.Address.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TransactionData.Address.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TransactionData.Address.Builder
Overrides

clearLocality()

public TransactionData.Address.Builder clearLocality()

The town/city of the address.

string locality = 3;

Returns
TypeDescription
TransactionData.Address.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TransactionData.Address.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TransactionData.Address.Builder
Overrides

clearPostalCode()

public TransactionData.Address.Builder clearPostalCode()

The postal or ZIP code of the address.

string postal_code = 6;

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

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TransactionData.Address.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Address.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TransactionData.Address.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TransactionData.Address.Builder
Overrides

mergeFrom(TransactionData.Address other)

public TransactionData.Address.Builder mergeFrom(TransactionData.Address other)
Parameter
NameDescription
otherTransactionData.Address
Returns
TypeDescription
TransactionData.Address.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransactionData.Address.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The address to set.

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

The administrativeArea to set.

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

The bytes for administrativeArea to set.

Returns
TypeDescription
TransactionData.Address.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TransactionData.Address.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TransactionData.Address.Builder
Overrides

setLocality(String value)

public TransactionData.Address.Builder setLocality(String value)

The town/city of the address.

string locality = 3;

Parameter
NameDescription
valueString

The locality to set.

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

The bytes for locality to set.

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

The postalCode to set.

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

The bytes for postalCode to set.

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

The recipient to set.

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

The bytes for recipient to set.

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

The regionCode to set.

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

The bytes for regionCode to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TransactionData.Address.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TransactionData.Address.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TransactionData.Address.Builder
Overrides