Class TransactionData.Item.Builder (3.50.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.v1.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()

Optional. When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.

string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.Item.Builder

This builder for chaining.

clearName()

public TransactionData.Item.Builder clearName()

Optional. The full name of the item.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. The quantity of this item that is being purchased.

int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionData.Item.Builder

This builder for chaining.

clearValue()

public TransactionData.Item.Builder clearValue()

Optional. The value per item that the user is paying, in the transaction currency, after discounts.

double value = 2 [(.google.api.field_behavior) = OPTIONAL];

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()

Optional. When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.

string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The merchantAccountId.

getMerchantAccountIdBytes()

public ByteString getMerchantAccountIdBytes()

Optional. When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.

string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for merchantAccountId.

getName()

public String getName()

Optional. The full name of the item.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. The full name of the item.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getQuantity()

public long getQuantity()

Optional. The quantity of this item that is being purchased.

int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The quantity.

getValue()

public double getValue()

Optional. The value per item that the user is paying, in the transaction currency, after discounts.

double value = 2 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.

string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.

string merchant_account_id = 4 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The full name of the item.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The full name of the item.

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The quantity of this item that is being purchased.

int64 quantity = 3 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. The value per item that the user is paying, in the transaction currency, after discounts.

double value = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value double

The value to set.

Returns
Type Description
TransactionData.Item.Builder

This builder for chaining.