public static final class TransactionData.Item.Builder extends GeneratedMessage.Builder<TransactionData.Item.Builder> implements TransactionData.ItemOrBuilderLine items being purchased in this transaction.
Protobuf type google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TransactionData.Item.BuilderImplements
TransactionData.ItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TransactionData.Item build()| Returns | |
|---|---|
| Type | Description |
TransactionData.Item |
|
buildPartial()
public TransactionData.Item buildPartial()| Returns | |
|---|---|
| Type | Description |
TransactionData.Item |
|
clear()
public TransactionData.Item.Builder clear()| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
|
clearMerchantAccountId()
public TransactionData.Item.Builder clearMerchantAccountId()When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
This builder for chaining. |
clearName()
public TransactionData.Item.Builder clearName()The full name of the item.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
This builder for chaining. |
clearQuantity()
public TransactionData.Item.Builder clearQuantity()The quantity of this item that is being purchased.
int64 quantity = 3;
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
This builder for chaining. |
clearValue()
public TransactionData.Item.Builder clearValue()The value per item that the user is paying, in the transaction currency, after discounts.
double value = 2;
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public TransactionData.Item getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TransactionData.Item |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMerchantAccountId()
public String getMerchantAccountId()When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The merchantAccountId. |
getMerchantAccountIdBytes()
public ByteString getMerchantAccountIdBytes()When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for merchantAccountId. |
getName()
public String getName()The full name of the item.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The full name of the item.
string name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getQuantity()
public long getQuantity()The quantity of this item that is being purchased.
int64 quantity = 3;
| Returns | |
|---|---|
| Type | Description |
long |
The quantity. |
getValue()
public double getValue()The value per item that the user is paying, in the transaction currency, after discounts.
double value = 2;
| Returns | |
|---|---|
| Type | Description |
double |
The value. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TransactionData.Item.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TransactionData.Item.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
|
mergeFrom(TransactionData.Item other)
public TransactionData.Item.Builder mergeFrom(TransactionData.Item other)| Parameter | |
|---|---|
| Name | Description |
other |
TransactionData.Item |
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
|
setMerchantAccountId(String value)
public TransactionData.Item.Builder setMerchantAccountId(String value)When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe merchantAccountId to set. |
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
This builder for chaining. |
setMerchantAccountIdBytes(ByteString value)
public TransactionData.Item.Builder setMerchantAccountIdBytes(ByteString value)When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for merchantAccountId to set. |
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
This builder for chaining. |
setName(String value)
public TransactionData.Item.Builder setName(String value)The full name of the item.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public TransactionData.Item.Builder setNameBytes(ByteString value)The full name of the item.
string name = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
This builder for chaining. |
setQuantity(long value)
public TransactionData.Item.Builder setQuantity(long value)The quantity of this item that is being purchased.
int64 quantity = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe quantity to set. |
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
This builder for chaining. |
setValue(double value)
public TransactionData.Item.Builder setValue(double value)The value per item that the user is paying, in the transaction currency, after discounts.
double value = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe value to set. |
| Returns | |
|---|---|
| Type | Description |
TransactionData.Item.Builder |
This builder for chaining. |