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.BuilderaddAllItems(Iterable<? extends TransactionData.Item> values)Items purchased in this transaction.TransactionData.BuilderaddAllMerchants(Iterable<? extends TransactionData.User> values)Information about the user or users fulfilling the transaction.TransactionData.BuilderaddItems(int index, TransactionData.Item value)Items purchased in this transaction.TransactionData.BuilderaddItems(int index, TransactionData.Item.Builder builderForValue)Items purchased in this transaction.TransactionData.BuilderaddItems(TransactionData.Item value)Items purchased in this transaction.TransactionData.BuilderaddItems(TransactionData.Item.Builder builderForValue)Items purchased in this transaction.TransactionData.Item.BuilderaddItemsBuilder()Items purchased in this transaction.TransactionData.Item.BuilderaddItemsBuilder(int index)Items purchased in this transaction.TransactionData.BuilderaddMerchants(int index, TransactionData.User value)Information about the user or users fulfilling the transaction.TransactionData.BuilderaddMerchants(int index, TransactionData.User.Builder builderForValue)Information about the user or users fulfilling the transaction.TransactionData.BuilderaddMerchants(TransactionData.User value)Information about the user or users fulfilling the transaction.TransactionData.BuilderaddMerchants(TransactionData.User.Builder builderForValue)Information about the user or users fulfilling the transaction.TransactionData.User.BuilderaddMerchantsBuilder()Information about the user or users fulfilling the transaction.TransactionData.User.BuilderaddMerchantsBuilder(int index)Information about the user or users fulfilling the transaction.TransactionData.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransactionDatabuild()TransactionDatabuildPartial()TransactionData.Builderclear()TransactionData.BuilderclearBillingAddress()Address associated with the payment method when applicable.TransactionData.BuilderclearCardBin()The Bank Identification Number - generally the first 6 or 8 digits of the card.TransactionData.BuilderclearCardLastFour()The last four digits of the card.TransactionData.BuilderclearCurrencyCode()The currency code in ISO-4217 format.TransactionData.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TransactionData.BuilderclearGatewayInfo()Information about the payment gateway's response to the transaction.TransactionData.BuilderclearItems()Items purchased in this transaction.TransactionData.BuilderclearMerchants()Information about the user or users fulfilling the transaction.TransactionData.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TransactionData.BuilderclearPaymentMethod()The payment method for the transaction.TransactionData.BuilderclearShippingAddress()Destination address if this transaction involves shipping a physical item.TransactionData.BuilderclearShippingValue()The value of shipping in the specified currency.TransactionData.BuilderclearTransactionId()Unique identifier for the transaction.TransactionData.BuilderclearUser()Information about the user paying/initiating the transaction.TransactionData.BuilderclearValue()The decimal value of the transaction in the specified currency.TransactionData.Builderclone()TransactionData.AddressgetBillingAddress()Address associated with the payment method when applicable.TransactionData.Address.BuildergetBillingAddressBuilder()Address associated with the payment method when applicable.TransactionData.AddressOrBuildergetBillingAddressOrBuilder()Address associated with the payment method when applicable.StringgetCardBin()The Bank Identification Number - generally the first 6 or 8 digits of the card.com.google.protobuf.ByteStringgetCardBinBytes()The Bank Identification Number - generally the first 6 or 8 digits of the card.StringgetCardLastFour()The last four digits of the card.com.google.protobuf.ByteStringgetCardLastFourBytes()The last four digits of the card.StringgetCurrencyCode()The currency code in ISO-4217 format.com.google.protobuf.ByteStringgetCurrencyCodeBytes()The currency code in ISO-4217 format.TransactionDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()TransactionData.GatewayInfogetGatewayInfo()Information about the payment gateway's response to the transaction.TransactionData.GatewayInfo.BuildergetGatewayInfoBuilder()Information about the payment gateway's response to the transaction.TransactionData.GatewayInfoOrBuildergetGatewayInfoOrBuilder()Information about the payment gateway's response to the transaction.TransactionData.ItemgetItems(int index)Items purchased in this transaction.TransactionData.Item.BuildergetItemsBuilder(int index)Items purchased in this transaction.List<TransactionData.Item.Builder>getItemsBuilderList()Items purchased in this transaction.intgetItemsCount()Items purchased in this transaction.List<TransactionData.Item>getItemsList()Items purchased in this transaction.TransactionData.ItemOrBuildergetItemsOrBuilder(int index)Items purchased in this transaction.List<? extends TransactionData.ItemOrBuilder>getItemsOrBuilderList()Items purchased in this transaction.TransactionData.UsergetMerchants(int index)Information about the user or users fulfilling the transaction.TransactionData.User.BuildergetMerchantsBuilder(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.intgetMerchantsCount()Information about the user or users fulfilling the transaction.List<TransactionData.User>getMerchantsList()Information about the user or users fulfilling the transaction.TransactionData.UserOrBuildergetMerchantsOrBuilder(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.StringgetPaymentMethod()The payment method for the transaction.com.google.protobuf.ByteStringgetPaymentMethodBytes()The payment method for the transaction.TransactionData.AddressgetShippingAddress()Destination address if this transaction involves shipping a physical item.TransactionData.Address.BuildergetShippingAddressBuilder()Destination address if this transaction involves shipping a physical item.TransactionData.AddressOrBuildergetShippingAddressOrBuilder()Destination address if this transaction involves shipping a physical item.doublegetShippingValue()The value of shipping in the specified currency.StringgetTransactionId()Unique identifier for the transaction.com.google.protobuf.ByteStringgetTransactionIdBytes()Unique identifier for the transaction.TransactionData.UsergetUser()Information about the user paying/initiating the transaction.TransactionData.User.BuildergetUserBuilder()Information about the user paying/initiating the transaction.TransactionData.UserOrBuildergetUserOrBuilder()Information about the user paying/initiating the transaction.doublegetValue()The decimal value of the transaction in the specified currency.booleanhasBillingAddress()Address associated with the payment method when applicable.booleanhasGatewayInfo()Information about the payment gateway's response to the transaction.booleanhasShippingAddress()Destination address if this transaction involves shipping a physical item.booleanhasTransactionId()Unique identifier for the transaction.booleanhasUser()Information about the user paying/initiating the transaction.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TransactionData.BuildermergeBillingAddress(TransactionData.Address value)Address associated with the payment method when applicable.TransactionData.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TransactionData.BuildermergeFrom(com.google.protobuf.Message other)TransactionData.BuildermergeFrom(TransactionData other)TransactionData.BuildermergeGatewayInfo(TransactionData.GatewayInfo value)Information about the payment gateway's response to the transaction.TransactionData.BuildermergeShippingAddress(TransactionData.Address value)Destination address if this transaction involves shipping a physical item.TransactionData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TransactionData.BuildermergeUser(TransactionData.User value)Information about the user paying/initiating the transaction.TransactionData.BuilderremoveItems(int index)Items purchased in this transaction.TransactionData.BuilderremoveMerchants(int index)Information about the user or users fulfilling the transaction.TransactionData.BuildersetBillingAddress(TransactionData.Address value)Address associated with the payment method when applicable.TransactionData.BuildersetBillingAddress(TransactionData.Address.Builder builderForValue)Address associated with the payment method when applicable.TransactionData.BuildersetCardBin(String value)The Bank Identification Number - generally the first 6 or 8 digits of the card.TransactionData.BuildersetCardBinBytes(com.google.protobuf.ByteString value)The Bank Identification Number - generally the first 6 or 8 digits of the card.TransactionData.BuildersetCardLastFour(String value)The last four digits of the card.TransactionData.BuildersetCardLastFourBytes(com.google.protobuf.ByteString value)The last four digits of the card.TransactionData.BuildersetCurrencyCode(String value)The currency code in ISO-4217 format.TransactionData.BuildersetCurrencyCodeBytes(com.google.protobuf.ByteString value)The currency code in ISO-4217 format.TransactionData.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransactionData.BuildersetGatewayInfo(TransactionData.GatewayInfo value)Information about the payment gateway's response to the transaction.TransactionData.BuildersetGatewayInfo(TransactionData.GatewayInfo.Builder builderForValue)Information about the payment gateway's response to the transaction.TransactionData.BuildersetItems(int index, TransactionData.Item value)Items purchased in this transaction.TransactionData.BuildersetItems(int index, TransactionData.Item.Builder builderForValue)Items purchased in this transaction.TransactionData.BuildersetMerchants(int index, TransactionData.User value)Information about the user or users fulfilling the transaction.TransactionData.BuildersetMerchants(int index, TransactionData.User.Builder builderForValue)Information about the user or users fulfilling the transaction.TransactionData.BuildersetPaymentMethod(String value)The payment method for the transaction.TransactionData.BuildersetPaymentMethodBytes(com.google.protobuf.ByteString value)The payment method for the transaction.TransactionData.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TransactionData.BuildersetShippingAddress(TransactionData.Address value)Destination address if this transaction involves shipping a physical item.TransactionData.BuildersetShippingAddress(TransactionData.Address.Builder builderForValue)Destination address if this transaction involves shipping a physical item.TransactionData.BuildersetShippingValue(double value)The value of shipping in the specified currency.TransactionData.BuildersetTransactionId(String value)Unique identifier for the transaction.TransactionData.BuildersetTransactionIdBytes(com.google.protobuf.ByteString value)Unique identifier for the transaction.TransactionData.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TransactionData.BuildersetUser(TransactionData.User value)Information about the user paying/initiating the transaction.TransactionData.BuildersetUser(TransactionData.User.Builder builderForValue)Information about the user paying/initiating the transaction.TransactionData.BuildersetValue(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
clear
public TransactionData.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
getDefaultInstanceForType
public TransactionData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransactionData build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransactionData buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransactionData.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
setField
public TransactionData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
clearField
public TransactionData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
clearOneof
public TransactionData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
setRepeatedField
public TransactionData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
addRepeatedField
public TransactionData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
mergeFrom
public TransactionData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransactionData.Builder>
-
mergeFrom
public TransactionData.Builder mergeFrom(TransactionData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasTransactionIdin 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:
getTransactionIdin 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:
getTransactionIdBytesin 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:
getPaymentMethodin 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:
getPaymentMethodBytesin 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:
getCardBinin 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:
getCardBinBytesin 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:
getCardLastFourin 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:
getCardLastFourBytesin 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:
getCurrencyCodein interfaceTransactionDataOrBuilder- Returns:
- The currencyCode.
-
getCurrencyCodeBytes
public com.google.protobuf.ByteString getCurrencyCodeBytes()
The currency code in ISO-4217 format.
string currency_code = 4;- Specified by:
getCurrencyCodeBytesin 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:
getValuein 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:
getShippingValuein 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:
hasShippingAddressin 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:
getShippingAddressin 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:
getShippingAddressOrBuilderin interfaceTransactionDataOrBuilder
-
hasBillingAddress
public boolean hasBillingAddress()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;- Specified by:
hasBillingAddressin 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:
getBillingAddressin 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:
getBillingAddressOrBuilderin interfaceTransactionDataOrBuilder
-
hasUser
public boolean hasUser()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;- Specified by:
hasUserin 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:
getUserin 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:
getUserOrBuilderin 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:
getMerchantsListin 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:
getMerchantsCountin 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:
getMerchantsin 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:
getMerchantsOrBuilderin 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:
getMerchantsOrBuilderListin 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:
getItemsListin interfaceTransactionDataOrBuilder
-
getItemsCount
public int getItemsCount()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;- Specified by:
getItemsCountin interfaceTransactionDataOrBuilder
-
getItems
public TransactionData.Item getItems(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;- Specified by:
getItemsin 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:
getItemsOrBuilderin interfaceTransactionDataOrBuilder
-
getItemsOrBuilderList
public List<? extends TransactionData.ItemOrBuilder> getItemsOrBuilderList()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;- Specified by:
getItemsOrBuilderListin 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:
hasGatewayInfoin 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:
getGatewayInfoin 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:
getGatewayInfoOrBuilderin interfaceTransactionDataOrBuilder
-
setUnknownFields
public final TransactionData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
mergeUnknownFields
public final TransactionData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Builder>
-
-