Class TransactionData.Address.Builder (3.30.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
TypeDescription
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
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)

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

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

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

Optional. The town/city of the address.

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

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

Optional. The postal or ZIP code of the address.

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

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

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

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

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

Optional. The town/city of the address.

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

Returns
TypeDescription
String

The locality.

getLocalityBytes()

public ByteString getLocalityBytes()

Optional. The town/city of the address.

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

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

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

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

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

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)

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

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

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)

Optional. The town/city of the address.

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

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)

Optional. The town/city of the address.

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

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)

Optional. The postal or ZIP code of the address.

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

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)

Optional. The postal or ZIP code of the address.

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

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)

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

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

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)

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

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

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)

Optional. The CLDR country/region of the address.

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

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)

Optional. The CLDR country/region of the address.

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

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