public static final class TransactionData.Item.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder> implements TransactionData.ItemOrBuilder
Line items being purchased in this transaction.Protobuf type
google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item| Modifier and Type | Method and Description |
|---|---|
TransactionData.Item.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionData.Item |
build() |
TransactionData.Item |
buildPartial() |
TransactionData.Item.Builder |
clear() |
TransactionData.Item.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TransactionData.Item.Builder |
clearMerchantAccountId()
When a merchant is specified, its corresponding account_id.
|
TransactionData.Item.Builder |
clearName()
The full name of the item.
|
TransactionData.Item.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TransactionData.Item.Builder |
clearQuantity()
The quantity of this item that is being purchased.
|
TransactionData.Item.Builder |
clearValue()
The value per item that the user is paying, in the transaction currency,
after discounts.
|
TransactionData.Item.Builder |
clone() |
TransactionData.Item |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getMerchantAccountId()
When a merchant is specified, its corresponding account_id.
|
com.google.protobuf.ByteString |
getMerchantAccountIdBytes()
When a merchant is specified, its corresponding account_id.
|
String |
getName()
The full name of the item.
|
com.google.protobuf.ByteString |
getNameBytes()
The full name of the item.
|
long |
getQuantity()
The quantity of this item that is being purchased.
|
double |
getValue()
The value per item that the user is paying, in the transaction currency,
after discounts.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TransactionData.Item.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TransactionData.Item.Builder |
mergeFrom(com.google.protobuf.Message other) |
TransactionData.Item.Builder |
mergeFrom(TransactionData.Item other) |
TransactionData.Item.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransactionData.Item.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionData.Item.Builder |
setMerchantAccountId(String value)
When a merchant is specified, its corresponding account_id.
|
TransactionData.Item.Builder |
setMerchantAccountIdBytes(com.google.protobuf.ByteString value)
When a merchant is specified, its corresponding account_id.
|
TransactionData.Item.Builder |
setName(String value)
The full name of the item.
|
TransactionData.Item.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The full name of the item.
|
TransactionData.Item.Builder |
setQuantity(long value)
The quantity of this item that is being purchased.
|
TransactionData.Item.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TransactionData.Item.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransactionData.Item.Builder |
setValue(double value)
The value per item that the user is paying, in the transaction currency,
after discounts.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public TransactionData.Item.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public TransactionData.Item getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TransactionData.Item build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TransactionData.Item buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TransactionData.Item.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public TransactionData.Item.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public TransactionData.Item.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public TransactionData.Item.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public TransactionData.Item.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public TransactionData.Item.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public TransactionData.Item.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionData.Item.Builder>public TransactionData.Item.Builder mergeFrom(TransactionData.Item other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public TransactionData.Item.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionData.Item.Builder>IOExceptionpublic String getName()
The full name of the item.
string name = 1;getName in interface TransactionData.ItemOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The full name of the item.
string name = 1;getNameBytes in interface TransactionData.ItemOrBuilderpublic TransactionData.Item.Builder setName(String value)
The full name of the item.
string name = 1;value - The name to set.public TransactionData.Item.Builder clearName()
The full name of the item.
string name = 1;public TransactionData.Item.Builder setNameBytes(com.google.protobuf.ByteString value)
The full name of the item.
string name = 1;value - The bytes for name to set.public double getValue()
The value per item that the user is paying, in the transaction currency, after discounts.
double value = 2;getValue in interface TransactionData.ItemOrBuilderpublic TransactionData.Item.Builder setValue(double value)
The value per item that the user is paying, in the transaction currency, after discounts.
double value = 2;value - The value to set.public TransactionData.Item.Builder clearValue()
The value per item that the user is paying, in the transaction currency, after discounts.
double value = 2;public long getQuantity()
The quantity of this item that is being purchased.
int64 quantity = 3;getQuantity in interface TransactionData.ItemOrBuilderpublic TransactionData.Item.Builder setQuantity(long value)
The quantity of this item that is being purchased.
int64 quantity = 3;value - The quantity to set.public TransactionData.Item.Builder clearQuantity()
The quantity of this item that is being purchased.
int64 quantity = 3;public String getMerchantAccountId()
When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;getMerchantAccountId in interface TransactionData.ItemOrBuilderpublic com.google.protobuf.ByteString getMerchantAccountIdBytes()
When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;getMerchantAccountIdBytes in interface TransactionData.ItemOrBuilderpublic 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;value - The merchantAccountId to set.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;public TransactionData.Item.Builder setMerchantAccountIdBytes(com.google.protobuf.ByteString value)
When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;value - The bytes for merchantAccountId to set.public final TransactionData.Item.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>public final TransactionData.Item.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>Copyright © 2023 Google LLC. All rights reserved.