Class TransactionData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
- com.google.recaptchaenterprise.v1.TransactionData.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,TransactionDataOrBuilder
,Cloneable
- Enclosing class:
- TransactionData
public static final class TransactionData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder> implements TransactionDataOrBuilder
Transaction data associated with a payment protected by reCAPTCHA Enterprise. All fields are optional.
Protobuf typegoogle.cloud.recaptchaenterprise.v1.TransactionData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionData.Builder
addAllItems(Iterable<? extends TransactionData.Item> values)
Items purchased in this transaction.TransactionData.Builder
addAllMerchants(Iterable<? extends TransactionData.User> values)
Information about the user or users fulfilling the transaction.TransactionData.Builder
addItems(int index, TransactionData.Item value)
Items purchased in this transaction.TransactionData.Builder
addItems(int index, TransactionData.Item.Builder builderForValue)
Items purchased in this transaction.TransactionData.Builder
addItems(TransactionData.Item value)
Items purchased in this transaction.TransactionData.Builder
addItems(TransactionData.Item.Builder builderForValue)
Items purchased in this transaction.TransactionData.Item.Builder
addItemsBuilder()
Items purchased in this transaction.TransactionData.Item.Builder
addItemsBuilder(int index)
Items purchased in this transaction.TransactionData.Builder
addMerchants(int index, TransactionData.User value)
Information about the user or users fulfilling the transaction.TransactionData.Builder
addMerchants(int index, TransactionData.User.Builder builderForValue)
Information about the user or users fulfilling the transaction.TransactionData.Builder
addMerchants(TransactionData.User value)
Information about the user or users fulfilling the transaction.TransactionData.Builder
addMerchants(TransactionData.User.Builder builderForValue)
Information about the user or users fulfilling the transaction.TransactionData.User.Builder
addMerchantsBuilder()
Information about the user or users fulfilling the transaction.TransactionData.User.Builder
addMerchantsBuilder(int index)
Information about the user or users fulfilling the transaction.TransactionData.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TransactionData
build()
TransactionData
buildPartial()
TransactionData.Builder
clear()
TransactionData.Builder
clearBillingAddress()
Address associated with the payment method when applicable.TransactionData.Builder
clearCardBin()
The Bank Identification Number - generally the first 6 or 8 digits of the card.TransactionData.Builder
clearCardLastFour()
The last four digits of the card.TransactionData.Builder
clearCurrencyCode()
The currency code in ISO-4217 format.TransactionData.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TransactionData.Builder
clearGatewayInfo()
Information about the payment gateway's response to the transaction.TransactionData.Builder
clearItems()
Items purchased in this transaction.TransactionData.Builder
clearMerchants()
Information about the user or users fulfilling the transaction.TransactionData.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TransactionData.Builder
clearPaymentMethod()
The payment method for the transaction.TransactionData.Builder
clearShippingAddress()
Destination address if this transaction involves shipping a physical item.TransactionData.Builder
clearShippingValue()
The value of shipping in the specified currency.TransactionData.Builder
clearTransactionId()
Unique identifier for the transaction.TransactionData.Builder
clearUser()
Information about the user paying/initiating the transaction.TransactionData.Builder
clearValue()
The decimal value of the transaction in the specified currency.TransactionData.Builder
clone()
TransactionData.Address
getBillingAddress()
Address associated with the payment method when applicable.TransactionData.Address.Builder
getBillingAddressBuilder()
Address associated with the payment method when applicable.TransactionData.AddressOrBuilder
getBillingAddressOrBuilder()
Address associated with the payment method when applicable.String
getCardBin()
The Bank Identification Number - generally the first 6 or 8 digits of the card.com.google.protobuf.ByteString
getCardBinBytes()
The Bank Identification Number - generally the first 6 or 8 digits of the card.String
getCardLastFour()
The last four digits of the card.com.google.protobuf.ByteString
getCardLastFourBytes()
The last four digits of the card.String
getCurrencyCode()
The currency code in ISO-4217 format.com.google.protobuf.ByteString
getCurrencyCodeBytes()
The currency code in ISO-4217 format.TransactionData
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
TransactionData.GatewayInfo
getGatewayInfo()
Information about the payment gateway's response to the transaction.TransactionData.GatewayInfo.Builder
getGatewayInfoBuilder()
Information about the payment gateway's response to the transaction.TransactionData.GatewayInfoOrBuilder
getGatewayInfoOrBuilder()
Information about the payment gateway's response to the transaction.TransactionData.Item
getItems(int index)
Items purchased in this transaction.TransactionData.Item.Builder
getItemsBuilder(int index)
Items purchased in this transaction.List<TransactionData.Item.Builder>
getItemsBuilderList()
Items purchased in this transaction.int
getItemsCount()
Items purchased in this transaction.List<TransactionData.Item>
getItemsList()
Items purchased in this transaction.TransactionData.ItemOrBuilder
getItemsOrBuilder(int index)
Items purchased in this transaction.List<? extends TransactionData.ItemOrBuilder>
getItemsOrBuilderList()
Items purchased in this transaction.TransactionData.User
getMerchants(int index)
Information about the user or users fulfilling the transaction.TransactionData.User.Builder
getMerchantsBuilder(int index)
Information about the user or users fulfilling the transaction.List<TransactionData.User.Builder>
getMerchantsBuilderList()
Information about the user or users fulfilling the transaction.int
getMerchantsCount()
Information about the user or users fulfilling the transaction.List<TransactionData.User>
getMerchantsList()
Information about the user or users fulfilling the transaction.TransactionData.UserOrBuilder
getMerchantsOrBuilder(int index)
Information about the user or users fulfilling the transaction.List<? extends TransactionData.UserOrBuilder>
getMerchantsOrBuilderList()
Information about the user or users fulfilling the transaction.String
getPaymentMethod()
The payment method for the transaction.com.google.protobuf.ByteString
getPaymentMethodBytes()
The payment method for the transaction.TransactionData.Address
getShippingAddress()
Destination address if this transaction involves shipping a physical item.TransactionData.Address.Builder
getShippingAddressBuilder()
Destination address if this transaction involves shipping a physical item.TransactionData.AddressOrBuilder
getShippingAddressOrBuilder()
Destination address if this transaction involves shipping a physical item.double
getShippingValue()
The value of shipping in the specified currency.String
getTransactionId()
Unique identifier for the transaction.com.google.protobuf.ByteString
getTransactionIdBytes()
Unique identifier for the transaction.TransactionData.User
getUser()
Information about the user paying/initiating the transaction.TransactionData.User.Builder
getUserBuilder()
Information about the user paying/initiating the transaction.TransactionData.UserOrBuilder
getUserOrBuilder()
Information about the user paying/initiating the transaction.double
getValue()
The decimal value of the transaction in the specified currency.boolean
hasBillingAddress()
Address associated with the payment method when applicable.boolean
hasGatewayInfo()
Information about the payment gateway's response to the transaction.boolean
hasShippingAddress()
Destination address if this transaction involves shipping a physical item.boolean
hasTransactionId()
Unique identifier for the transaction.boolean
hasUser()
Information about the user paying/initiating the transaction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TransactionData.Builder
mergeBillingAddress(TransactionData.Address value)
Address associated with the payment method when applicable.TransactionData.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TransactionData.Builder
mergeFrom(com.google.protobuf.Message other)
TransactionData.Builder
mergeFrom(TransactionData other)
TransactionData.Builder
mergeGatewayInfo(TransactionData.GatewayInfo value)
Information about the payment gateway's response to the transaction.TransactionData.Builder
mergeShippingAddress(TransactionData.Address value)
Destination address if this transaction involves shipping a physical item.TransactionData.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TransactionData.Builder
mergeUser(TransactionData.User value)
Information about the user paying/initiating the transaction.TransactionData.Builder
removeItems(int index)
Items purchased in this transaction.TransactionData.Builder
removeMerchants(int index)
Information about the user or users fulfilling the transaction.TransactionData.Builder
setBillingAddress(TransactionData.Address value)
Address associated with the payment method when applicable.TransactionData.Builder
setBillingAddress(TransactionData.Address.Builder builderForValue)
Address associated with the payment method when applicable.TransactionData.Builder
setCardBin(String value)
The Bank Identification Number - generally the first 6 or 8 digits of the card.TransactionData.Builder
setCardBinBytes(com.google.protobuf.ByteString value)
The Bank Identification Number - generally the first 6 or 8 digits of the card.TransactionData.Builder
setCardLastFour(String value)
The last four digits of the card.TransactionData.Builder
setCardLastFourBytes(com.google.protobuf.ByteString value)
The last four digits of the card.TransactionData.Builder
setCurrencyCode(String value)
The currency code in ISO-4217 format.TransactionData.Builder
setCurrencyCodeBytes(com.google.protobuf.ByteString value)
The currency code in ISO-4217 format.TransactionData.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
TransactionData.Builder
setGatewayInfo(TransactionData.GatewayInfo value)
Information about the payment gateway's response to the transaction.TransactionData.Builder
setGatewayInfo(TransactionData.GatewayInfo.Builder builderForValue)
Information about the payment gateway's response to the transaction.TransactionData.Builder
setItems(int index, TransactionData.Item value)
Items purchased in this transaction.TransactionData.Builder
setItems(int index, TransactionData.Item.Builder builderForValue)
Items purchased in this transaction.TransactionData.Builder
setMerchants(int index, TransactionData.User value)
Information about the user or users fulfilling the transaction.TransactionData.Builder
setMerchants(int index, TransactionData.User.Builder builderForValue)
Information about the user or users fulfilling the transaction.TransactionData.Builder
setPaymentMethod(String value)
The payment method for the transaction.TransactionData.Builder
setPaymentMethodBytes(com.google.protobuf.ByteString value)
The payment method for the transaction.TransactionData.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
TransactionData.Builder
setShippingAddress(TransactionData.Address value)
Destination address if this transaction involves shipping a physical item.TransactionData.Builder
setShippingAddress(TransactionData.Address.Builder builderForValue)
Destination address if this transaction involves shipping a physical item.TransactionData.Builder
setShippingValue(double value)
The value of shipping in the specified currency.TransactionData.Builder
setTransactionId(String value)
Unique identifier for the transaction.TransactionData.Builder
setTransactionIdBytes(com.google.protobuf.ByteString value)
Unique identifier for the transaction.TransactionData.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TransactionData.Builder
setUser(TransactionData.User value)
Information about the user paying/initiating the transaction.TransactionData.Builder
setUser(TransactionData.User.Builder builderForValue)
Information about the user paying/initiating the transaction.TransactionData.Builder
setValue(double value)
The decimal value of the transaction in the specified currency.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
clear
public TransactionData.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
getDefaultInstanceForType
public TransactionData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransactionData build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransactionData buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransactionData.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
setField
public TransactionData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
clearField
public TransactionData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
clearOneof
public TransactionData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
setRepeatedField
public TransactionData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
addRepeatedField
public TransactionData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
mergeFrom
public TransactionData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TransactionData.Builder>
-
mergeFrom
public TransactionData.Builder mergeFrom(TransactionData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
mergeFrom
public TransactionData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TransactionData.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasTransactionId
in interfaceTransactionDataOrBuilder
- Returns:
- Whether the transactionId field is set.
-
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;
- Specified by:
getTransactionId
in interfaceTransactionDataOrBuilder
- Returns:
- The transactionId.
-
getTransactionIdBytes
public com.google.protobuf.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;
- Specified by:
getTransactionIdBytes
in interfaceTransactionDataOrBuilder
- Returns:
- The bytes for transactionId.
-
setTransactionId
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;
- Parameters:
value
- The transactionId to set.- Returns:
- 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:
- This builder for chaining.
-
setTransactionIdBytes
public TransactionData.Builder setTransactionIdBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for transactionId to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getPaymentMethod
in interfaceTransactionDataOrBuilder
- Returns:
- The paymentMethod.
-
getPaymentMethodBytes
public com.google.protobuf.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;
- Specified by:
getPaymentMethodBytes
in interfaceTransactionDataOrBuilder
- Returns:
- The bytes for paymentMethod.
-
setPaymentMethod
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;
- Parameters:
value
- The paymentMethod to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPaymentMethodBytes
public TransactionData.Builder setPaymentMethodBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for paymentMethod to set.- Returns:
- This builder for chaining.
-
getCardBin
public String getCardBin()
The Bank Identification Number - generally the first 6 or 8 digits of the card.
string card_bin = 2;
- Specified by:
getCardBin
in interfaceTransactionDataOrBuilder
- Returns:
- The cardBin.
-
getCardBinBytes
public com.google.protobuf.ByteString getCardBinBytes()
The Bank Identification Number - generally the first 6 or 8 digits of the card.
string card_bin = 2;
- Specified by:
getCardBinBytes
in interfaceTransactionDataOrBuilder
- Returns:
- The bytes for cardBin.
-
setCardBin
public TransactionData.Builder setCardBin(String value)
The Bank Identification Number - generally the first 6 or 8 digits of the card.
string card_bin = 2;
- Parameters:
value
- The cardBin to set.- Returns:
- This builder for chaining.
-
clearCardBin
public TransactionData.Builder clearCardBin()
The Bank Identification Number - generally the first 6 or 8 digits of the card.
string card_bin = 2;
- Returns:
- This builder for chaining.
-
setCardBinBytes
public TransactionData.Builder setCardBinBytes(com.google.protobuf.ByteString value)
The Bank Identification Number - generally the first 6 or 8 digits of the card.
string card_bin = 2;
- Parameters:
value
- The bytes for cardBin to set.- Returns:
- This builder for chaining.
-
getCardLastFour
public String getCardLastFour()
The last four digits of the card.
string card_last_four = 3;
- Specified by:
getCardLastFour
in interfaceTransactionDataOrBuilder
- Returns:
- The cardLastFour.
-
getCardLastFourBytes
public com.google.protobuf.ByteString getCardLastFourBytes()
The last four digits of the card.
string card_last_four = 3;
- Specified by:
getCardLastFourBytes
in interfaceTransactionDataOrBuilder
- Returns:
- The bytes for cardLastFour.
-
setCardLastFour
public TransactionData.Builder setCardLastFour(String value)
The last four digits of the card.
string card_last_four = 3;
- Parameters:
value
- The cardLastFour to set.- Returns:
- This builder for chaining.
-
clearCardLastFour
public TransactionData.Builder clearCardLastFour()
The last four digits of the card.
string card_last_four = 3;
- Returns:
- This builder for chaining.
-
setCardLastFourBytes
public TransactionData.Builder setCardLastFourBytes(com.google.protobuf.ByteString value)
The last four digits of the card.
string card_last_four = 3;
- Parameters:
value
- The bytes for cardLastFour to set.- Returns:
- This builder for chaining.
-
getCurrencyCode
public String getCurrencyCode()
The currency code in ISO-4217 format.
string currency_code = 4;
- Specified by:
getCurrencyCode
in interfaceTransactionDataOrBuilder
- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
public com.google.protobuf.ByteString getCurrencyCodeBytes()
The currency code in ISO-4217 format.
string currency_code = 4;
- Specified by:
getCurrencyCodeBytes
in interfaceTransactionDataOrBuilder
- Returns:
- The bytes for currencyCode.
-
setCurrencyCode
public TransactionData.Builder setCurrencyCode(String value)
The currency code in ISO-4217 format.
string currency_code = 4;
- Parameters:
value
- The currencyCode to set.- Returns:
- This builder for chaining.
-
clearCurrencyCode
public TransactionData.Builder clearCurrencyCode()
The currency code in ISO-4217 format.
string currency_code = 4;
- Returns:
- This builder for chaining.
-
setCurrencyCodeBytes
public TransactionData.Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value)
The currency code in ISO-4217 format.
string currency_code = 4;
- Parameters:
value
- The bytes for currencyCode to set.- Returns:
- This builder for chaining.
-
getValue
public double getValue()
The decimal value of the transaction in the specified currency.
double value = 5;
- Specified by:
getValue
in interfaceTransactionDataOrBuilder
- Returns:
- The value.
-
setValue
public TransactionData.Builder setValue(double value)
The decimal value of the transaction in the specified currency.
double value = 5;
- Parameters:
value
- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public TransactionData.Builder clearValue()
The decimal value of the transaction in the specified currency.
double value = 5;
- Returns:
- This builder for chaining.
-
getShippingValue
public double getShippingValue()
The value of shipping in the specified currency. 0 for free or no shipping.
double shipping_value = 12;
- Specified by:
getShippingValue
in interfaceTransactionDataOrBuilder
- Returns:
- The shippingValue.
-
setShippingValue
public TransactionData.Builder setShippingValue(double value)
The value of shipping in the specified currency. 0 for free or no shipping.
double shipping_value = 12;
- Parameters:
value
- The shippingValue to set.- Returns:
- This builder for chaining.
-
clearShippingValue
public TransactionData.Builder clearShippingValue()
The value of shipping in the specified currency. 0 for free or no shipping.
double shipping_value = 12;
- Returns:
- This builder for chaining.
-
hasShippingAddress
public boolean hasShippingAddress()
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;
- Specified by:
hasShippingAddress
in interfaceTransactionDataOrBuilder
- Returns:
- Whether the shippingAddress field is set.
-
getShippingAddress
public TransactionData.Address getShippingAddress()
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;
- Specified by:
getShippingAddress
in interfaceTransactionDataOrBuilder
- Returns:
- The shippingAddress.
-
setShippingAddress
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;
-
setShippingAddress
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;
-
mergeShippingAddress
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;
-
clearShippingAddress
public TransactionData.Builder clearShippingAddress()
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;
-
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;
-
getShippingAddressOrBuilder
public TransactionData.AddressOrBuilder getShippingAddressOrBuilder()
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;
- Specified by:
getShippingAddressOrBuilder
in interfaceTransactionDataOrBuilder
-
hasBillingAddress
public boolean hasBillingAddress()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;
- Specified by:
hasBillingAddress
in interfaceTransactionDataOrBuilder
- Returns:
- Whether the billingAddress field is set.
-
getBillingAddress
public TransactionData.Address getBillingAddress()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;
- Specified by:
getBillingAddress
in interfaceTransactionDataOrBuilder
- Returns:
- The billingAddress.
-
setBillingAddress
public TransactionData.Builder setBillingAddress(TransactionData.Address value)
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;
-
setBillingAddress
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;
-
mergeBillingAddress
public TransactionData.Builder mergeBillingAddress(TransactionData.Address value)
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;
-
clearBillingAddress
public TransactionData.Builder clearBillingAddress()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;
-
getBillingAddressBuilder
public TransactionData.Address.Builder getBillingAddressBuilder()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;
-
getBillingAddressOrBuilder
public TransactionData.AddressOrBuilder getBillingAddressOrBuilder()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;
- Specified by:
getBillingAddressOrBuilder
in interfaceTransactionDataOrBuilder
-
hasUser
public boolean hasUser()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;
- Specified by:
hasUser
in interfaceTransactionDataOrBuilder
- Returns:
- Whether the user field is set.
-
getUser
public TransactionData.User getUser()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;
- Specified by:
getUser
in interfaceTransactionDataOrBuilder
- Returns:
- The user.
-
setUser
public TransactionData.Builder setUser(TransactionData.User value)
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;
-
setUser
public TransactionData.Builder setUser(TransactionData.User.Builder builderForValue)
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;
-
mergeUser
public TransactionData.Builder mergeUser(TransactionData.User value)
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;
-
clearUser
public TransactionData.Builder clearUser()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;
-
getUserBuilder
public TransactionData.User.Builder getUserBuilder()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;
-
getUserOrBuilder
public TransactionData.UserOrBuilder getUserOrBuilder()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;
- Specified by:
getUserOrBuilder
in interfaceTransactionDataOrBuilder
-
getMerchantsList
public List<TransactionData.User> getMerchantsList()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
- Specified by:
getMerchantsList
in interfaceTransactionDataOrBuilder
-
getMerchantsCount
public int getMerchantsCount()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
- Specified by:
getMerchantsCount
in interfaceTransactionDataOrBuilder
-
getMerchants
public TransactionData.User getMerchants(int index)
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
- Specified by:
getMerchants
in interfaceTransactionDataOrBuilder
-
setMerchants
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;
-
setMerchants
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;
-
addMerchants
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;
-
addMerchants
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;
-
addMerchants
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;
-
addMerchants
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;
-
addAllMerchants
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;
-
clearMerchants
public TransactionData.Builder clearMerchants()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
-
removeMerchants
public TransactionData.Builder removeMerchants(int index)
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
-
getMerchantsBuilder
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;
-
getMerchantsOrBuilder
public TransactionData.UserOrBuilder getMerchantsOrBuilder(int index)
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
- Specified by:
getMerchantsOrBuilder
in interfaceTransactionDataOrBuilder
-
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;
- Specified by:
getMerchantsOrBuilderList
in interfaceTransactionDataOrBuilder
-
addMerchantsBuilder
public TransactionData.User.Builder addMerchantsBuilder()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
-
addMerchantsBuilder
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;
-
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;
-
getItemsList
public List<TransactionData.Item> getItemsList()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
- Specified by:
getItemsList
in interfaceTransactionDataOrBuilder
-
getItemsCount
public int getItemsCount()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
- Specified by:
getItemsCount
in interfaceTransactionDataOrBuilder
-
getItems
public TransactionData.Item getItems(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
- Specified by:
getItems
in interfaceTransactionDataOrBuilder
-
setItems
public TransactionData.Builder setItems(int index, TransactionData.Item value)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
setItems
public TransactionData.Builder setItems(int index, TransactionData.Item.Builder builderForValue)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
addItems
public TransactionData.Builder addItems(TransactionData.Item value)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
addItems
public TransactionData.Builder addItems(int index, TransactionData.Item value)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
addItems
public TransactionData.Builder addItems(TransactionData.Item.Builder builderForValue)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
addItems
public TransactionData.Builder addItems(int index, TransactionData.Item.Builder builderForValue)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
addAllItems
public TransactionData.Builder addAllItems(Iterable<? extends TransactionData.Item> values)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
clearItems
public TransactionData.Builder clearItems()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
removeItems
public TransactionData.Builder removeItems(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
getItemsBuilder
public TransactionData.Item.Builder getItemsBuilder(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
getItemsOrBuilder
public TransactionData.ItemOrBuilder getItemsOrBuilder(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
- Specified by:
getItemsOrBuilder
in interfaceTransactionDataOrBuilder
-
getItemsOrBuilderList
public List<? extends TransactionData.ItemOrBuilder> getItemsOrBuilderList()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
- Specified by:
getItemsOrBuilderList
in interfaceTransactionDataOrBuilder
-
addItemsBuilder
public TransactionData.Item.Builder addItemsBuilder()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
addItemsBuilder
public TransactionData.Item.Builder addItemsBuilder(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
getItemsBuilderList
public List<TransactionData.Item.Builder> getItemsBuilderList()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
-
hasGatewayInfo
public boolean hasGatewayInfo()
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;
- Specified by:
hasGatewayInfo
in interfaceTransactionDataOrBuilder
- Returns:
- Whether the gatewayInfo field is set.
-
getGatewayInfo
public TransactionData.GatewayInfo getGatewayInfo()
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;
- Specified by:
getGatewayInfo
in interfaceTransactionDataOrBuilder
- Returns:
- The gatewayInfo.
-
setGatewayInfo
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;
-
setGatewayInfo
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;
-
mergeGatewayInfo
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;
-
clearGatewayInfo
public TransactionData.Builder clearGatewayInfo()
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;
-
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;
-
getGatewayInfoOrBuilder
public TransactionData.GatewayInfoOrBuilder getGatewayInfoOrBuilder()
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;
- Specified by:
getGatewayInfoOrBuilder
in interfaceTransactionDataOrBuilder
-
setUnknownFields
public final TransactionData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
mergeUnknownFields
public final TransactionData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
-