public final class TransactionData extends GeneratedMessageV3 implements TransactionDataOrBuilder
Transaction data associated with a payment protected by reCAPTCHA Enterprise.
All fields are optional.
Protobuf type google.cloud.recaptchaenterprise.v1.TransactionData
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
BILLING_ADDRESS_FIELD_NUMBER
public static final int BILLING_ADDRESS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CARD_BIN_FIELD_NUMBER
public static final int CARD_BIN_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CARD_LAST_FOUR_FIELD_NUMBER
public static final int CARD_LAST_FOUR_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CURRENCY_CODE_FIELD_NUMBER
public static final int CURRENCY_CODE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
GATEWAY_INFO_FIELD_NUMBER
public static final int GATEWAY_INFO_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ITEMS_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
MERCHANTS_FIELD_NUMBER
public static final int MERCHANTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PAYMENT_METHOD_FIELD_NUMBER
public static final int PAYMENT_METHOD_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SHIPPING_ADDRESS_FIELD_NUMBER
public static final int SHIPPING_ADDRESS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SHIPPING_VALUE_FIELD_NUMBER
public static final int SHIPPING_VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TRANSACTION_ID_FIELD_NUMBER
public static final int TRANSACTION_ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
USER_FIELD_NUMBER
public static final int USER_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static TransactionData getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static TransactionData.Builder newBuilder()
newBuilder(TransactionData prototype)
public static TransactionData.Builder newBuilder(TransactionData prototype)
public static TransactionData parseDelimitedFrom(InputStream input)
public static TransactionData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static TransactionData parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TransactionData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static TransactionData parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TransactionData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TransactionData parseFrom(CodedInputStream input)
public static TransactionData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TransactionData parseFrom(InputStream input)
public static TransactionData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static TransactionData parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TransactionData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<TransactionData> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getBillingAddress()
public TransactionData.Address getBillingAddress()
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;
getCardBin()
public String getCardBin()
The Bank Identification Number - generally the first 6 or 8 digits of the
card.
string card_bin = 2;
Returns |
---|
Type | Description |
String | The cardBin.
|
getCardBinBytes()
public ByteString getCardBinBytes()
The Bank Identification Number - generally the first 6 or 8 digits of the
card.
string card_bin = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for cardBin.
|
getCardLastFour()
public String getCardLastFour()
The last four digits of the card.
string card_last_four = 3;
Returns |
---|
Type | Description |
String | The cardLastFour.
|
getCardLastFourBytes()
public ByteString getCardLastFourBytes()
The last four digits of the card.
string card_last_four = 3;
Returns |
---|
Type | Description |
ByteString | The bytes for cardLastFour.
|
getCurrencyCode()
public String getCurrencyCode()
The currency code in ISO-4217 format.
string currency_code = 4;
Returns |
---|
Type | Description |
String | The currencyCode.
|
getCurrencyCodeBytes()
public ByteString getCurrencyCodeBytes()
The currency code in ISO-4217 format.
string currency_code = 4;
Returns |
---|
Type | Description |
ByteString | The bytes for currencyCode.
|
getDefaultInstanceForType()
public TransactionData getDefaultInstanceForType()
getGatewayInfo()
public TransactionData.GatewayInfo getGatewayInfo()
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;
getItems(int index)
public TransactionData.Item getItems(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
Parameter |
---|
Name | Description |
index | int
|
getItemsCount()
public int getItemsCount()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
Returns |
---|
Type | Description |
int | |
getItemsList()
public List<TransactionData.Item> getItemsList()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
getItemsOrBuilder(int index)
public TransactionData.ItemOrBuilder getItemsOrBuilder(int index)
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
Parameter |
---|
Name | Description |
index | int
|
getItemsOrBuilderList()
public List<? extends TransactionData.ItemOrBuilder> getItemsOrBuilderList()
Items purchased in this transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.Item items = 14;
Returns |
---|
Type | Description |
List<? extends com.google.recaptchaenterprise.v1.TransactionData.ItemOrBuilder> | |
getMerchants(int index)
public TransactionData.User getMerchants(int index)
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
Parameter |
---|
Name | Description |
index | int
|
getMerchantsCount()
public int getMerchantsCount()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
Returns |
---|
Type | Description |
int | |
getMerchantsList()
public List<TransactionData.User> getMerchantsList()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
getMerchantsOrBuilder(int index)
public TransactionData.UserOrBuilder getMerchantsOrBuilder(int index)
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
Parameter |
---|
Name | Description |
index | int
|
getMerchantsOrBuilderList()
public List<? extends TransactionData.UserOrBuilder> getMerchantsOrBuilderList()
Information about the user or users fulfilling the transaction.
repeated .google.cloud.recaptchaenterprise.v1.TransactionData.User merchants = 13;
Returns |
---|
Type | Description |
List<? extends com.google.recaptchaenterprise.v1.TransactionData.UserOrBuilder> | |
getParserForType()
public Parser<TransactionData> getParserForType()
Overrides
getPaymentMethod()
public String getPaymentMethod()
The payment method for the transaction. The allowed values are:
- credit-card
- debit-card
- gift-card
- processor-{name} (If a third-party is used, for example,
processor-paypal)
- custom-{name} (If an alternative method is used, for example,
custom-crypto)
string payment_method = 1;
Returns |
---|
Type | Description |
String | The paymentMethod.
|
getPaymentMethodBytes()
public ByteString getPaymentMethodBytes()
The payment method for the transaction. The allowed values are:
- credit-card
- debit-card
- gift-card
- processor-{name} (If a third-party is used, for example,
processor-paypal)
- custom-{name} (If an alternative method is used, for example,
custom-crypto)
string payment_method = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for paymentMethod.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getShippingAddress()
public TransactionData.Address getShippingAddress()
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;
getShippingValue()
public double getShippingValue()
The value of shipping in the specified currency. 0 for free or no shipping.
double shipping_value = 12;
Returns |
---|
Type | Description |
double | The shippingValue.
|
getTransactionId()
public String getTransactionId()
Unique identifier for the transaction. This custom identifier can be used
to reference this transaction in the future, for example, labeling a refund
or chargeback event. Two attempts at the same transaction should use the
same transaction id.
optional string transaction_id = 11;
Returns |
---|
Type | Description |
String | The transactionId.
|
getTransactionIdBytes()
public ByteString getTransactionIdBytes()
Unique identifier for the transaction. This custom identifier can be used
to reference this transaction in the future, for example, labeling a refund
or chargeback event. Two attempts at the same transaction should use the
same transaction id.
optional string transaction_id = 11;
Returns |
---|
Type | Description |
ByteString | The bytes for transactionId.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getUser()
public TransactionData.User getUser()
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;
getValue()
The decimal value of the transaction in the specified currency.
double value = 5;
Returns |
---|
Type | Description |
double | The value.
|
hasBillingAddress()
public boolean hasBillingAddress()
Address associated with the payment method when applicable.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address billing_address = 7;
Returns |
---|
Type | Description |
boolean | Whether the billingAddress field is set.
|
hasGatewayInfo()
public boolean hasGatewayInfo()
Information about the payment gateway's response to the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.GatewayInfo gateway_info = 10;
Returns |
---|
Type | Description |
boolean | Whether the gatewayInfo field is set.
|
hasShippingAddress()
public boolean hasShippingAddress()
Destination address if this transaction involves shipping a physical item.
.google.cloud.recaptchaenterprise.v1.TransactionData.Address shipping_address = 6;
Returns |
---|
Type | Description |
boolean | Whether the shippingAddress field is set.
|
hasTransactionId()
public boolean hasTransactionId()
Unique identifier for the transaction. This custom identifier can be used
to reference this transaction in the future, for example, labeling a refund
or chargeback event. Two attempts at the same transaction should use the
same transaction id.
optional string transaction_id = 11;
Returns |
---|
Type | Description |
boolean | Whether the transactionId field is set.
|
hasUser()
Information about the user paying/initiating the transaction.
.google.cloud.recaptchaenterprise.v1.TransactionData.User user = 8;
Returns |
---|
Type | Description |
boolean | Whether the user field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public TransactionData.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TransactionData.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public TransactionData.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides