Class TransactionData.Address.Builder (3.51.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.v1.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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

clearAdministrativeArea()

public TransactionData.Address.Builder clearAdministrativeArea()

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

string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. The town/city of the address.

string locality = 3 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. The postal or ZIP code of the address.

string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

clearRecipient()

public TransactionData.Address.Builder clearRecipient()

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

string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.Address.Builder

This builder for chaining.

clearRegionCode()

public TransactionData.Address.Builder clearRegionCode()

Optional. The CLDR country/region of the address.

string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of address.

getAddressList()

public ProtocolStringList getAddressList()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the address.

getAdministrativeArea()

public String getAdministrativeArea()

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

string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The administrativeArea.

getAdministrativeAreaBytes()

public ByteString getAdministrativeAreaBytes()

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

string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. The town/city of the address.

string locality = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The locality.

getLocalityBytes()

public ByteString getLocalityBytes()

Optional. The town/city of the address.

string locality = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for locality.

getPostalCode()

public String getPostalCode()

Optional. The postal or ZIP code of the address.

string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The postalCode.

getPostalCodeBytes()

public ByteString getPostalCodeBytes()

Optional. The postal or ZIP code of the address.

string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for postalCode.

getRecipient()

public String getRecipient()

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

string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The recipient.

getRecipientBytes()

public ByteString getRecipientBytes()

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

string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for recipient.

getRegionCode()

public String getRegionCode()

Optional. The CLDR country/region of the address.

string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Optional. The CLDR country/region of the address.

string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

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)

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

string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];

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)

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

string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The town/city of the address.

string locality = 3 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The town/city of the address.

string locality = 3 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The postal or ZIP code of the address.

string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The postal or ZIP code of the address.

string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];

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)

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

string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

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

string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The CLDR country/region of the address.

string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The CLDR country/region of the address.

string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];

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