Class TransactionData.Item.Builder (3.40.0)

public static final class TransactionData.Item.Builder extends GeneratedMessageV3.Builder<TransactionData.Item.Builder> implements TransactionData.ItemOrBuilder

Line items being purchased in this transaction.

Protobuf type google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransactionData.Item.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransactionData.Item.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public TransactionData.Item.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TransactionData.Item.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public TransactionData.Item.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TransactionData.Item.Builder
Overrides

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.

clone()

public TransactionData.Item.Builder clone()
Returns
Type Description
TransactionData.Item.Builder
Overrides

getDefaultInstanceForType()

public TransactionData.Item getDefaultInstanceForType()
Returns
Type Description
TransactionData.Item

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

mergeFrom(TransactionData.Item other)

public TransactionData.Item.Builder mergeFrom(TransactionData.Item other)
Parameter
Name Description
other TransactionData.Item
Returns
Type Description
TransactionData.Item.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransactionData.Item.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransactionData.Item.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TransactionData.Item.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TransactionData.Item.Builder
Overrides

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The 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 long

The quantity to set.

Returns
Type Description
TransactionData.Item.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TransactionData.Item.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TransactionData.Item.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final TransactionData.Item.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TransactionData.Item.Builder
Overrides

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 double

The value to set.

Returns
Type Description
TransactionData.Item.Builder

This builder for chaining.