- 3.51.0 (latest)
- 3.50.0
- 3.49.0
- 3.48.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.24.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.12
- 2.6.1
- 2.5.0
- 2.4.10
- 2.3.1
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.v1beta1.TransactionData
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TransactionData.BuilderImplements
TransactionDataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.Item items = 14;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.recaptchaenterprise.v1beta1.TransactionData.Item> |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.User merchants = 13;
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.recaptchaenterprise.v1beta1.TransactionData.User> |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
addItems(TransactionData.Item value)
public TransactionData.Builder addItems(TransactionData.Item value)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Parameter | |
---|---|
Name | Description |
value | TransactionData.Item |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
addItems(TransactionData.Item.Builder builderForValue)
public TransactionData.Builder addItems(TransactionData.Item.Builder builderForValue)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Parameter | |
---|---|
Name | Description |
builderForValue | TransactionData.Item.Builder |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.Item items = 14;
Parameters | |
---|---|
Name | Description |
index | int |
value | TransactionData.Item |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.Item items = 14;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | TransactionData.Item.Builder |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
addItemsBuilder()
public TransactionData.Item.Builder addItemsBuilder()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Returns | |
---|---|
Type | Description |
TransactionData.Item.Builder |
addItemsBuilder(int index)
public TransactionData.Item.Builder addItemsBuilder(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.User merchants = 13;
Parameter | |
---|---|
Name | Description |
value | TransactionData.User |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.User merchants = 13;
Parameter | |
---|---|
Name | Description |
builderForValue | TransactionData.User.Builder |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.User merchants = 13;
Parameters | |
---|---|
Name | Description |
index | int |
value | TransactionData.User |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.User merchants = 13;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | TransactionData.User.Builder |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
addMerchantsBuilder()
public TransactionData.User.Builder addMerchantsBuilder()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.User merchants = 13;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
TransactionData.User.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TransactionData.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
build()
public TransactionData build()
Returns | |
---|---|
Type | Description |
TransactionData |
buildPartial()
public TransactionData buildPartial()
Returns | |
---|---|
Type | Description |
TransactionData |
clear()
public TransactionData.Builder clear()
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
clearBillingAddress()
public TransactionData.Builder clearBillingAddress()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TransactionData.Builder | This builder for chaining. |
clearCardLastFour()
public TransactionData.Builder clearCardLastFour()
The last four digits of the card.
string card_last_four = 3;
Returns | |
---|---|
Type | Description |
TransactionData.Builder | This builder for chaining. |
clearCurrencyCode()
public TransactionData.Builder clearCurrencyCode()
The currency code in ISO-4217 format.
string currency_code = 4;
Returns | |
---|---|
Type | Description |
TransactionData.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TransactionData.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
clearGatewayInfo()
public TransactionData.Builder clearGatewayInfo()
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10;
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
clearItems()
public TransactionData.Builder clearItems()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
clearMerchants()
public TransactionData.Builder clearMerchants()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TransactionData.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
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 | |
---|---|
Type | Description |
TransactionData.Builder | This builder for chaining. |
clearShippingAddress()
public TransactionData.Builder clearShippingAddress()
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
TransactionData.Builder | This builder for chaining. |
clearUser()
public TransactionData.Builder clearUser()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8;
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
clearValue()
public TransactionData.Builder clearValue()
The decimal value of the transaction in the specified currency.
double value = 5;
Returns | |
---|---|
Type | Description |
TransactionData.Builder | This builder for chaining. |
clone()
public TransactionData.Builder clone()
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
getBillingAddress()
public TransactionData.Address getBillingAddress()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7;
Returns | |
---|---|
Type | Description |
TransactionData.Address | The billingAddress. |
getBillingAddressBuilder()
public TransactionData.Address.Builder getBillingAddressBuilder()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7;
Returns | |
---|---|
Type | Description |
TransactionData.Address.Builder |
getBillingAddressOrBuilder()
public TransactionData.AddressOrBuilder getBillingAddressOrBuilder()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for cardBin. |
getCardLastFour()
public String getCardLastFour()
The last four digits of the card.
string card_last_four = 3;
Returns | |
---|---|
Type | Description |
String | The cardLastFour. |
getCardLastFourBytes()
public ByteString getCardLastFourBytes()
The last four digits of the card.
string card_last_four = 3;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for cardLastFour. |
getCurrencyCode()
public String getCurrencyCode()
The currency code in ISO-4217 format.
string currency_code = 4;
Returns | |
---|---|
Type | Description |
String | The currencyCode. |
getCurrencyCodeBytes()
public ByteString getCurrencyCodeBytes()
The currency code in ISO-4217 format.
string currency_code = 4;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for currencyCode. |
getDefaultInstanceForType()
public TransactionData getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TransactionData |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getGatewayInfo()
public TransactionData.GatewayInfo getGatewayInfo()
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10;
Returns | |
---|---|
Type | Description |
TransactionData.GatewayInfo | The gatewayInfo. |
getGatewayInfoBuilder()
public TransactionData.GatewayInfo.Builder getGatewayInfoBuilder()
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10;
Returns | |
---|---|
Type | Description |
TransactionData.GatewayInfo.Builder |
getGatewayInfoOrBuilder()
public TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder()
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10;
Returns | |
---|---|
Type | Description |
TransactionData.GatewayInfoOrBuilder |
getItems(int index)
public TransactionData.Item getItems(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
TransactionData.Item |
getItemsBuilder(int index)
public TransactionData.Item.Builder getItemsBuilder(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
TransactionData.Item.Builder |
getItemsBuilderList()
public List<TransactionData.Item.Builder> getItemsBuilderList()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Returns | |
---|---|
Type | Description |
List<Builder> |
getItemsCount()
public int getItemsCount()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Returns | |
---|---|
Type | Description |
int |
getItemsList()
public List<TransactionData.Item> getItemsList()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Returns | |
---|---|
Type | Description |
List<Item> |
getItemsOrBuilder(int index)
public TransactionData.ItemOrBuilder getItemsOrBuilder(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
TransactionData.ItemOrBuilder |
getItemsOrBuilderList()
public List<? extends TransactionData.ItemOrBuilder> getItemsOrBuilderList()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Returns | |
---|---|
Type | Description |
List<? extends com.google.recaptchaenterprise.v1beta1.TransactionData.ItemOrBuilder> |
getMerchants(int index)
public TransactionData.User getMerchants(int index)
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.User merchants = 13;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
TransactionData.User.Builder |
getMerchantsBuilderList()
public List<TransactionData.User.Builder> getMerchantsBuilderList()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;
Returns | |
---|---|
Type | Description |
List<Builder> |
getMerchantsCount()
public int getMerchantsCount()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;
Returns | |
---|---|
Type | Description |
int |
getMerchantsList()
public List<TransactionData.User> getMerchantsList()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;
Returns | |
---|---|
Type | Description |
List<User> |
getMerchantsOrBuilder(int index)
public TransactionData.UserOrBuilder getMerchantsOrBuilder(int index)
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
TransactionData.UserOrBuilder |
getMerchantsOrBuilderList()
public List<? extends TransactionData.UserOrBuilder> getMerchantsOrBuilderList()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;
Returns | |
---|---|
Type | Description |
List<? extends com.google.recaptchaenterprise.v1beta1.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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for paymentMethod. |
getShippingAddress()
public TransactionData.Address getShippingAddress()
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6;
Returns | |
---|---|
Type | Description |
TransactionData.Address | The shippingAddress. |
getShippingAddressBuilder()
public TransactionData.Address.Builder getShippingAddressBuilder()
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6;
Returns | |
---|---|
Type | Description |
TransactionData.Address.Builder |
getShippingAddressOrBuilder()
public TransactionData.AddressOrBuilder getShippingAddressOrBuilder()
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for transactionId. |
getUser()
public TransactionData.User getUser()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8;
Returns | |
---|---|
Type | Description |
TransactionData.User | The user. |
getUserBuilder()
public TransactionData.User.Builder getUserBuilder()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8;
Returns | |
---|---|
Type | Description |
TransactionData.User.Builder |
getUserOrBuilder()
public TransactionData.UserOrBuilder getUserOrBuilder()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8;
Returns | |
---|---|
Type | Description |
TransactionData.UserOrBuilder |
getValue()
public double getValue()
The decimal value of the transaction in the specified currency.
double value = 5;
Returns | |
---|---|
Type | Description |
double | The value. |
hasBillingAddress()
public boolean hasBillingAddress()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7;
Returns | |
---|---|
Type | Description |
boolean | Whether the billingAddress field is set. |
hasGatewayInfo()
public boolean hasGatewayInfo()
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10;
Returns | |
---|---|
Type | Description |
boolean | Whether the gatewayInfo field is set. |
hasShippingAddress()
public boolean hasShippingAddress()
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the transactionId field is set. |
hasUser()
public boolean hasUser()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8;
Returns | |
---|---|
Type | Description |
boolean | Whether the user field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeBillingAddress(TransactionData.Address value)
public TransactionData.Builder mergeBillingAddress(TransactionData.Address value)
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7;
Parameter | |
---|---|
Name | Description |
value | TransactionData.Address |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TransactionData.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TransactionData.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
mergeFrom(TransactionData other)
public TransactionData.Builder mergeFrom(TransactionData other)
Parameter | |
---|---|
Name | Description |
other | TransactionData |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.GatewayInfo gateway_info = 10;
Parameter | |
---|---|
Name | Description |
value | TransactionData.GatewayInfo |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.Address shipping_address = 6;
Parameter | |
---|---|
Name | Description |
value | TransactionData.Address |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TransactionData.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
mergeUser(TransactionData.User value)
public TransactionData.Builder mergeUser(TransactionData.User value)
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8;
Parameter | |
---|---|
Name | Description |
value | TransactionData.User |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
removeItems(int index)
public TransactionData.Builder removeItems(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item items = 14;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
removeMerchants(int index)
public TransactionData.Builder removeMerchants(int index)
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1beta1.TransactionData.User merchants = 13;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
setBillingAddress(TransactionData.Address value)
public TransactionData.Builder setBillingAddress(TransactionData.Address value)
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address billing_address = 7;
Parameter | |
---|---|
Name | Description |
value | TransactionData.Address |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.Address billing_address = 7;
Parameter | |
---|---|
Name | Description |
builderForValue | TransactionData.Address.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The cardBin to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for cardBin to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The cardLastFour to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for cardLastFour to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The currencyCode to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for currencyCode to set. |
Returns | |
---|---|
Type | Description |
TransactionData.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TransactionData.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
setGatewayInfo(TransactionData.GatewayInfo value)
public TransactionData.Builder setGatewayInfo(TransactionData.GatewayInfo value)
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo gateway_info = 10;
Parameter | |
---|---|
Name | Description |
value | TransactionData.GatewayInfo |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.GatewayInfo gateway_info = 10;
Parameter | |
---|---|
Name | Description |
builderForValue | TransactionData.GatewayInfo.Builder |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.Item items = 14;
Parameters | |
---|---|
Name | Description |
index | int |
value | TransactionData.Item |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.Item items = 14;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | TransactionData.Item.Builder |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.User merchants = 13;
Parameters | |
---|---|
Name | Description |
index | int |
value | TransactionData.User |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.User merchants = 13;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | TransactionData.User.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The paymentMethod to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for paymentMethod to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
setShippingAddress(TransactionData.Address value)
public TransactionData.Builder setShippingAddress(TransactionData.Address value)
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address shipping_address = 6;
Parameter | |
---|---|
Name | Description |
value | TransactionData.Address |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.Address shipping_address = 6;
Parameter | |
---|---|
Name | Description |
builderForValue | TransactionData.Address.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | double The shippingValue to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | String The transactionId to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | ByteString The bytes for transactionId to set. |
Returns | |
---|---|
Type | Description |
TransactionData.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TransactionData.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TransactionData.Builder |
setUser(TransactionData.User value)
public TransactionData.Builder setUser(TransactionData.User value)
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User user = 8;
Parameter | |
---|---|
Name | Description |
value | TransactionData.User |
Returns | |
---|---|
Type | Description |
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.v1beta1.TransactionData.User user = 8;
Parameter | |
---|---|
Name | Description |
builderForValue | TransactionData.User.Builder |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value | double The value to set. |
Returns | |
---|---|
Type | Description |
TransactionData.Builder | This builder for chaining. |