Class TransactionData.Builder (3.12.0)

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

Transaction data associated with a payment protected by reCAPTCHA Enterprise. All fields are optional.

Protobuf type google.cloud.recaptchaenterprise.v1.TransactionData

Static Methods

getDescriptor()

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

Methods

addAllItems(Iterable<? extends TransactionData.Item> values)

public TransactionData.Builder addAllItems(Iterable<? extends TransactionData.Item> values)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameter
NameDescription
valuesIterable<? extends com.google.recaptchaenterprise.v1.TransactionData.Item>
Returns
TypeDescription
TransactionData.Builder

addAllMerchants(Iterable<? extends TransactionData.User> values)

public TransactionData.Builder addAllMerchants(Iterable<? extends TransactionData.User> values)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameter
NameDescription
valuesIterable<? extends com.google.recaptchaenterprise.v1.TransactionData.User>
Returns
TypeDescription
TransactionData.Builder

addItems(TransactionData.Item value)

public TransactionData.Builder addItems(TransactionData.Item value)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameter
NameDescription
valueTransactionData.Item
Returns
TypeDescription
TransactionData.Builder

addItems(TransactionData.Item.Builder builderForValue)

public TransactionData.Builder addItems(TransactionData.Item.Builder builderForValue)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameter
NameDescription
builderForValueTransactionData.Item.Builder
Returns
TypeDescription
TransactionData.Builder

addItems(int index, TransactionData.Item value)

public TransactionData.Builder addItems(int index, TransactionData.Item value)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameters
NameDescription
indexint
valueTransactionData.Item
Returns
TypeDescription
TransactionData.Builder

addItems(int index, TransactionData.Item.Builder builderForValue)

public TransactionData.Builder addItems(int index, TransactionData.Item.Builder builderForValue)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameters
NameDescription
indexint
builderForValueTransactionData.Item.Builder
Returns
TypeDescription
TransactionData.Builder

addItemsBuilder()

public TransactionData.Item.Builder addItemsBuilder()

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Returns
TypeDescription
TransactionData.Item.Builder

addItemsBuilder(int index)

public TransactionData.Item.Builder addItemsBuilder(int index)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransactionData.Item.Builder

addMerchants(TransactionData.User value)

public TransactionData.Builder addMerchants(TransactionData.User value)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameter
NameDescription
valueTransactionData.User
Returns
TypeDescription
TransactionData.Builder

addMerchants(TransactionData.User.Builder builderForValue)

public TransactionData.Builder addMerchants(TransactionData.User.Builder builderForValue)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameter
NameDescription
builderForValueTransactionData.User.Builder
Returns
TypeDescription
TransactionData.Builder

addMerchants(int index, TransactionData.User value)

public TransactionData.Builder addMerchants(int index, TransactionData.User value)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameters
NameDescription
indexint
valueTransactionData.User
Returns
TypeDescription
TransactionData.Builder

addMerchants(int index, TransactionData.User.Builder builderForValue)

public TransactionData.Builder addMerchants(int index, TransactionData.User.Builder builderForValue)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameters
NameDescription
indexint
builderForValueTransactionData.User.Builder
Returns
TypeDescription
TransactionData.Builder

addMerchantsBuilder()

public TransactionData.User.Builder addMerchantsBuilder()

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Returns
TypeDescription
TransactionData.User.Builder

addMerchantsBuilder(int index)

public TransactionData.User.Builder addMerchantsBuilder(int index)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransactionData.User.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransactionData build()
Returns
TypeDescription
TransactionData

buildPartial()

public TransactionData buildPartial()
Returns
TypeDescription
TransactionData

clear()

public TransactionData.Builder clear()
Returns
TypeDescription
TransactionData.Builder
Overrides

clearBillingAddress()

public TransactionData.Builder clearBillingAddress()

Address associated with the payment method when applicable.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;

Returns
TypeDescription
TransactionData.Builder

clearCardBin()

public TransactionData.Builder clearCardBin()

The Bank Identification Number - generally the first 6 or 8 digits of the card.

string card_bin = 2;

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

clearCardLastFour()

public TransactionData.Builder clearCardLastFour()

The last four digits of the card.

string card_last_four = 3;

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

clearCurrencyCode()

public TransactionData.Builder clearCurrencyCode()

The currency code in ISO-4217 format.

string currency_code = 4;

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGatewayInfo()

public TransactionData.Builder clearGatewayInfo()

Information about the payment gateway's response to the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;

Returns
TypeDescription
TransactionData.Builder

clearItems()

public TransactionData.Builder clearItems()

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Returns
TypeDescription
TransactionData.Builder

clearMerchants()

public TransactionData.Builder clearMerchants()

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Returns
TypeDescription
TransactionData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPaymentMethod()

public TransactionData.Builder clearPaymentMethod()

The payment method for the transaction. The allowed values are:

  • credit-card
  • debit-card
  • gift-card
  • processor-{name} (If a third-party is used, for example, processor-paypal)
  • custom-{name} (If an alternative method is used, for example, custom-crypto)

string payment_method = 1;

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

clearShippingAddress()

public TransactionData.Builder clearShippingAddress()

Destination address if this transaction involves shipping a physical item.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;

Returns
TypeDescription
TransactionData.Builder

clearShippingValue()

public TransactionData.Builder clearShippingValue()

The value of shipping in the specified currency. 0 for free or no shipping.

double shipping_value = 12;

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

clearTransactionId()

public TransactionData.Builder clearTransactionId()

Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.

optional string transaction_id = 11;

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

clearUser()

public TransactionData.Builder clearUser()

Information about the user paying/initiating the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;

Returns
TypeDescription
TransactionData.Builder

clearValue()

public TransactionData.Builder clearValue()

The decimal value of the transaction in the specified currency.

double value = 5;

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

clone()

public TransactionData.Builder clone()
Returns
TypeDescription
TransactionData.Builder
Overrides

getBillingAddress()

public TransactionData.Address getBillingAddress()

Address associated with the payment method when applicable.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;

Returns
TypeDescription
TransactionData.Address

The billingAddress.

getBillingAddressBuilder()

public TransactionData.Address.Builder getBillingAddressBuilder()

Address associated with the payment method when applicable.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;

Returns
TypeDescription
TransactionData.Address.Builder

getBillingAddressOrBuilder()

public TransactionData.AddressOrBuilder getBillingAddressOrBuilder()

Address associated with the payment method when applicable.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;

Returns
TypeDescription
TransactionData.AddressOrBuilder

getCardBin()

public String getCardBin()

The Bank Identification Number - generally the first 6 or 8 digits of the card.

string card_bin = 2;

Returns
TypeDescription
String

The cardBin.

getCardBinBytes()

public ByteString getCardBinBytes()

The Bank Identification Number - generally the first 6 or 8 digits of the card.

string card_bin = 2;

Returns
TypeDescription
ByteString

The bytes for cardBin.

getCardLastFour()

public String getCardLastFour()

The last four digits of the card.

string card_last_four = 3;

Returns
TypeDescription
String

The cardLastFour.

getCardLastFourBytes()

public ByteString getCardLastFourBytes()

The last four digits of the card.

string card_last_four = 3;

Returns
TypeDescription
ByteString

The bytes for cardLastFour.

getCurrencyCode()

public String getCurrencyCode()

The currency code in ISO-4217 format.

string currency_code = 4;

Returns
TypeDescription
String

The currencyCode.

getCurrencyCodeBytes()

public ByteString getCurrencyCodeBytes()

The currency code in ISO-4217 format.

string currency_code = 4;

Returns
TypeDescription
ByteString

The bytes for currencyCode.

getDefaultInstanceForType()

public TransactionData getDefaultInstanceForType()
Returns
TypeDescription
TransactionData

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGatewayInfo()

public TransactionData.GatewayInfo getGatewayInfo()

Information about the payment gateway's response to the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;

Returns
TypeDescription
TransactionData.GatewayInfo

The gatewayInfo.

getGatewayInfoBuilder()

public TransactionData.GatewayInfo.Builder getGatewayInfoBuilder()

Information about the payment gateway's response to the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;

Returns
TypeDescription
TransactionData.GatewayInfo.Builder

getGatewayInfoOrBuilder()

public TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder()

Information about the payment gateway's response to the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;

Returns
TypeDescription
TransactionData.GatewayInfoOrBuilder

getItems(int index)

public TransactionData.Item getItems(int index)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransactionData.Item

getItemsBuilder(int index)

public TransactionData.Item.Builder getItemsBuilder(int index)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransactionData.Item.Builder

getItemsBuilderList()

public List<TransactionData.Item.Builder> getItemsBuilderList()

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Returns
TypeDescription
List<Builder>

getItemsCount()

public int getItemsCount()

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Returns
TypeDescription
int

getItemsList()

public List<TransactionData.Item> getItemsList()

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Returns
TypeDescription
List<Item>

getItemsOrBuilder(int index)

public TransactionData.ItemOrBuilder getItemsOrBuilder(int index)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransactionData.ItemOrBuilder

getItemsOrBuilderList()

public List<? extends TransactionData.ItemOrBuilder> getItemsOrBuilderList()

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Returns
TypeDescription
List<? extends com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder>

getMerchants(int index)

public TransactionData.User getMerchants(int index)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransactionData.User

getMerchantsBuilder(int index)

public TransactionData.User.Builder getMerchantsBuilder(int index)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransactionData.User.Builder

getMerchantsBuilderList()

public List<TransactionData.User.Builder> getMerchantsBuilderList()

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Returns
TypeDescription
List<Builder>

getMerchantsCount()

public int getMerchantsCount()

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Returns
TypeDescription
int

getMerchantsList()

public List<TransactionData.User> getMerchantsList()

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Returns
TypeDescription
List<User>

getMerchantsOrBuilder(int index)

public TransactionData.UserOrBuilder getMerchantsOrBuilder(int index)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransactionData.UserOrBuilder

getMerchantsOrBuilderList()

public List<? extends TransactionData.UserOrBuilder> getMerchantsOrBuilderList()

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Returns
TypeDescription
List<? extends com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder>

getPaymentMethod()

public String getPaymentMethod()

The payment method for the transaction. The allowed values are:

  • credit-card
  • debit-card
  • gift-card
  • processor-{name} (If a third-party is used, for example, processor-paypal)
  • custom-{name} (If an alternative method is used, for example, custom-crypto)

string payment_method = 1;

Returns
TypeDescription
String

The paymentMethod.

getPaymentMethodBytes()

public ByteString getPaymentMethodBytes()

The payment method for the transaction. The allowed values are:

  • credit-card
  • debit-card
  • gift-card
  • processor-{name} (If a third-party is used, for example, processor-paypal)
  • custom-{name} (If an alternative method is used, for example, custom-crypto)

string payment_method = 1;

Returns
TypeDescription
ByteString

The bytes for paymentMethod.

getShippingAddress()

public TransactionData.Address getShippingAddress()

Destination address if this transaction involves shipping a physical item.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;

Returns
TypeDescription
TransactionData.Address

The shippingAddress.

getShippingAddressBuilder()

public TransactionData.Address.Builder getShippingAddressBuilder()

Destination address if this transaction involves shipping a physical item.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;

Returns
TypeDescription
TransactionData.Address.Builder

getShippingAddressOrBuilder()

public TransactionData.AddressOrBuilder getShippingAddressOrBuilder()

Destination address if this transaction involves shipping a physical item.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;

Returns
TypeDescription
TransactionData.AddressOrBuilder

getShippingValue()

public double getShippingValue()

The value of shipping in the specified currency. 0 for free or no shipping.

double shipping_value = 12;

Returns
TypeDescription
double

The shippingValue.

getTransactionId()

public String getTransactionId()

Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.

optional string transaction_id = 11;

Returns
TypeDescription
String

The transactionId.

getTransactionIdBytes()

public ByteString getTransactionIdBytes()

Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.

optional string transaction_id = 11;

Returns
TypeDescription
ByteString

The bytes for transactionId.

getUser()

public TransactionData.User getUser()

Information about the user paying/initiating the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;

Returns
TypeDescription
TransactionData.User

The user.

getUserBuilder()

public TransactionData.User.Builder getUserBuilder()

Information about the user paying/initiating the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;

Returns
TypeDescription
TransactionData.User.Builder

getUserOrBuilder()

public TransactionData.UserOrBuilder getUserOrBuilder()

Information about the user paying/initiating the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;

Returns
TypeDescription
TransactionData.UserOrBuilder

getValue()

public double getValue()

The decimal value of the transaction in the specified currency.

double value = 5;

Returns
TypeDescription
double

The value.

hasBillingAddress()

public boolean hasBillingAddress()

Address associated with the payment method when applicable.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;

Returns
TypeDescription
boolean

Whether the billingAddress field is set.

hasGatewayInfo()

public boolean hasGatewayInfo()

Information about the payment gateway's response to the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;

Returns
TypeDescription
boolean

Whether the gatewayInfo field is set.

hasShippingAddress()

public boolean hasShippingAddress()

Destination address if this transaction involves shipping a physical item.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;

Returns
TypeDescription
boolean

Whether the shippingAddress field is set.

hasTransactionId()

public boolean hasTransactionId()

Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.

optional string transaction_id = 11;

Returns
TypeDescription
boolean

Whether the transactionId field is set.

hasUser()

public boolean hasUser()

Information about the user paying/initiating the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;

Returns
TypeDescription
boolean

Whether the user field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBillingAddress(TransactionData.Address value)

public TransactionData.Builder mergeBillingAddress(TransactionData.Address value)

Address associated with the payment method when applicable.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;

Parameter
NameDescription
valueTransactionData.Address
Returns
TypeDescription
TransactionData.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransactionData other)

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

mergeGatewayInfo(TransactionData.GatewayInfo value)

public TransactionData.Builder mergeGatewayInfo(TransactionData.GatewayInfo value)

Information about the payment gateway's response to the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;

Parameter
NameDescription
valueTransactionData.GatewayInfo
Returns
TypeDescription
TransactionData.Builder

mergeShippingAddress(TransactionData.Address value)

public TransactionData.Builder mergeShippingAddress(TransactionData.Address value)

Destination address if this transaction involves shipping a physical item.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;

Parameter
NameDescription
valueTransactionData.Address
Returns
TypeDescription
TransactionData.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUser(TransactionData.User value)

public TransactionData.Builder mergeUser(TransactionData.User value)

Information about the user paying/initiating the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;

Parameter
NameDescription
valueTransactionData.User
Returns
TypeDescription
TransactionData.Builder

removeItems(int index)

public TransactionData.Builder removeItems(int index)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransactionData.Builder

removeMerchants(int index)

public TransactionData.Builder removeMerchants(int index)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransactionData.Builder

setBillingAddress(TransactionData.Address value)

public TransactionData.Builder setBillingAddress(TransactionData.Address value)

Address associated with the payment method when applicable.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;

Parameter
NameDescription
valueTransactionData.Address
Returns
TypeDescription
TransactionData.Builder

setBillingAddress(TransactionData.Address.Builder builderForValue)

public TransactionData.Builder setBillingAddress(TransactionData.Address.Builder builderForValue)

Address associated with the payment method when applicable.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;

Parameter
NameDescription
builderForValueTransactionData.Address.Builder
Returns
TypeDescription
TransactionData.Builder

setCardBin(String value)

public TransactionData.Builder setCardBin(String value)

The Bank Identification Number - generally the first 6 or 8 digits of the card.

string card_bin = 2;

Parameter
NameDescription
valueString

The cardBin to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

setCardBinBytes(ByteString value)

public TransactionData.Builder setCardBinBytes(ByteString value)

The Bank Identification Number - generally the first 6 or 8 digits of the card.

string card_bin = 2;

Parameter
NameDescription
valueByteString

The bytes for cardBin to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

setCardLastFour(String value)

public TransactionData.Builder setCardLastFour(String value)

The last four digits of the card.

string card_last_four = 3;

Parameter
NameDescription
valueString

The cardLastFour to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

setCardLastFourBytes(ByteString value)

public TransactionData.Builder setCardLastFourBytes(ByteString value)

The last four digits of the card.

string card_last_four = 3;

Parameter
NameDescription
valueByteString

The bytes for cardLastFour to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

setCurrencyCode(String value)

public TransactionData.Builder setCurrencyCode(String value)

The currency code in ISO-4217 format.

string currency_code = 4;

Parameter
NameDescription
valueString

The currencyCode to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

setCurrencyCodeBytes(ByteString value)

public TransactionData.Builder setCurrencyCodeBytes(ByteString value)

The currency code in ISO-4217 format.

string currency_code = 4;

Parameter
NameDescription
valueByteString

The bytes for currencyCode to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGatewayInfo(TransactionData.GatewayInfo value)

public TransactionData.Builder setGatewayInfo(TransactionData.GatewayInfo value)

Information about the payment gateway's response to the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;

Parameter
NameDescription
valueTransactionData.GatewayInfo
Returns
TypeDescription
TransactionData.Builder

setGatewayInfo(TransactionData.GatewayInfo.Builder builderForValue)

public TransactionData.Builder setGatewayInfo(TransactionData.GatewayInfo.Builder builderForValue)

Information about the payment gateway's response to the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;

Parameter
NameDescription
builderForValueTransactionData.GatewayInfo.Builder
Returns
TypeDescription
TransactionData.Builder

setItems(int index, TransactionData.Item value)

public TransactionData.Builder setItems(int index, TransactionData.Item value)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameters
NameDescription
indexint
valueTransactionData.Item
Returns
TypeDescription
TransactionData.Builder

setItems(int index, TransactionData.Item.Builder builderForValue)

public TransactionData.Builder setItems(int index, TransactionData.Item.Builder builderForValue)

Items purchased in this transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;

Parameters
NameDescription
indexint
builderForValueTransactionData.Item.Builder
Returns
TypeDescription
TransactionData.Builder

setMerchants(int index, TransactionData.User value)

public TransactionData.Builder setMerchants(int index, TransactionData.User value)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameters
NameDescription
indexint
valueTransactionData.User
Returns
TypeDescription
TransactionData.Builder

setMerchants(int index, TransactionData.User.Builder builderForValue)

public TransactionData.Builder setMerchants(int index, TransactionData.User.Builder builderForValue)

Information about the user or users fulfilling the transaction.

repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;

Parameters
NameDescription
indexint
builderForValueTransactionData.User.Builder
Returns
TypeDescription
TransactionData.Builder

setPaymentMethod(String value)

public TransactionData.Builder setPaymentMethod(String value)

The payment method for the transaction. The allowed values are:

  • credit-card
  • debit-card
  • gift-card
  • processor-{name} (If a third-party is used, for example, processor-paypal)
  • custom-{name} (If an alternative method is used, for example, custom-crypto)

string payment_method = 1;

Parameter
NameDescription
valueString

The paymentMethod to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

setPaymentMethodBytes(ByteString value)

public TransactionData.Builder setPaymentMethodBytes(ByteString value)

The payment method for the transaction. The allowed values are:

  • credit-card
  • debit-card
  • gift-card
  • processor-{name} (If a third-party is used, for example, processor-paypal)
  • custom-{name} (If an alternative method is used, for example, custom-crypto)

string payment_method = 1;

Parameter
NameDescription
valueByteString

The bytes for paymentMethod to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

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

public TransactionData.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TransactionData.Builder
Overrides

setShippingAddress(TransactionData.Address value)

public TransactionData.Builder setShippingAddress(TransactionData.Address value)

Destination address if this transaction involves shipping a physical item.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;

Parameter
NameDescription
valueTransactionData.Address
Returns
TypeDescription
TransactionData.Builder

setShippingAddress(TransactionData.Address.Builder builderForValue)

public TransactionData.Builder setShippingAddress(TransactionData.Address.Builder builderForValue)

Destination address if this transaction involves shipping a physical item.

.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;

Parameter
NameDescription
builderForValueTransactionData.Address.Builder
Returns
TypeDescription
TransactionData.Builder

setShippingValue(double value)

public TransactionData.Builder setShippingValue(double value)

The value of shipping in the specified currency. 0 for free or no shipping.

double shipping_value = 12;

Parameter
NameDescription
valuedouble

The shippingValue to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

setTransactionId(String value)

public TransactionData.Builder setTransactionId(String value)

Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.

optional string transaction_id = 11;

Parameter
NameDescription
valueString

The transactionId to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

setTransactionIdBytes(ByteString value)

public TransactionData.Builder setTransactionIdBytes(ByteString value)

Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.

optional string transaction_id = 11;

Parameter
NameDescription
valueByteString

The bytes for transactionId to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUser(TransactionData.User value)

public TransactionData.Builder setUser(TransactionData.User value)

Information about the user paying/initiating the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;

Parameter
NameDescription
valueTransactionData.User
Returns
TypeDescription
TransactionData.Builder

setUser(TransactionData.User.Builder builderForValue)

public TransactionData.Builder setUser(TransactionData.User.Builder builderForValue)

Information about the user paying/initiating the transaction.

.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;

Parameter
NameDescription
builderForValueTransactionData.User.Builder
Returns
TypeDescription
TransactionData.Builder

setValue(double value)

public TransactionData.Builder setValue(double value)

The decimal value of the transaction in the specified currency.

double value = 5;

Parameter
NameDescription
valuedouble

The value to set.

Returns
TypeDescription
TransactionData.Builder

This builder for chaining.