Class TransactionData.Item.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
- com.google.recaptchaenterprise.v1beta1.TransactionData.Item.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransactionData.ItemOrBuilder,Cloneable
- Enclosing class:
- TransactionData.Item
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 typegoogle.cloud.recaptchaenterprise.v1beta1.TransactionData.Item
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionData.Item.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransactionData.Itembuild()TransactionData.ItembuildPartial()TransactionData.Item.Builderclear()TransactionData.Item.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TransactionData.Item.BuilderclearMerchantAccountId()When a merchant is specified, its corresponding account_id.TransactionData.Item.BuilderclearName()The full name of the item.TransactionData.Item.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TransactionData.Item.BuilderclearQuantity()The quantity of this item that is being purchased.TransactionData.Item.BuilderclearValue()The value per item that the user is paying, in the transaction currency, after discounts.TransactionData.Item.Builderclone()TransactionData.ItemgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMerchantAccountId()When a merchant is specified, its corresponding account_id.com.google.protobuf.ByteStringgetMerchantAccountIdBytes()When a merchant is specified, its corresponding account_id.StringgetName()The full name of the item.com.google.protobuf.ByteStringgetNameBytes()The full name of the item.longgetQuantity()The quantity of this item that is being purchased.doublegetValue()The value per item that the user is paying, in the transaction currency, after discounts.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TransactionData.Item.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TransactionData.Item.BuildermergeFrom(com.google.protobuf.Message other)TransactionData.Item.BuildermergeFrom(TransactionData.Item other)TransactionData.Item.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TransactionData.Item.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TransactionData.Item.BuildersetMerchantAccountId(String value)When a merchant is specified, its corresponding account_id.TransactionData.Item.BuildersetMerchantAccountIdBytes(com.google.protobuf.ByteString value)When a merchant is specified, its corresponding account_id.TransactionData.Item.BuildersetName(String value)The full name of the item.TransactionData.Item.BuildersetNameBytes(com.google.protobuf.ByteString value)The full name of the item.TransactionData.Item.BuildersetQuantity(long value)The quantity of this item that is being purchased.TransactionData.Item.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TransactionData.Item.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TransactionData.Item.BuildersetValue(double value)The value per item that the user is paying, in the transaction currency, after discounts.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
clear
public TransactionData.Item.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
getDefaultInstanceForType
public TransactionData.Item getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransactionData.Item build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransactionData.Item buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransactionData.Item.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
setField
public TransactionData.Item.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
clearField
public TransactionData.Item.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
clearOneof
public TransactionData.Item.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
setRepeatedField
public TransactionData.Item.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
addRepeatedField
public TransactionData.Item.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
mergeFrom
public TransactionData.Item.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransactionData.Item.Builder>
-
mergeFrom
public TransactionData.Item.Builder mergeFrom(TransactionData.Item other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
mergeFrom
public TransactionData.Item.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TransactionData.Item.Builder>- Throws:
IOException
-
getName
public String getName()
The full name of the item.
string name = 1;- Specified by:
getNamein interfaceTransactionData.ItemOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The full name of the item.
string name = 1;- Specified by:
getNameBytesin interfaceTransactionData.ItemOrBuilder- Returns:
- The bytes for name.
-
setName
public TransactionData.Item.Builder setName(String value)
The full name of the item.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public TransactionData.Item.Builder clearName()
The full name of the item.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public TransactionData.Item.Builder setNameBytes(com.google.protobuf.ByteString value)
The full name of the item.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getValue
public double getValue()
The value per item that the user is paying, in the transaction currency, after discounts.
double value = 2;- Specified by:
getValuein interfaceTransactionData.ItemOrBuilder- Returns:
- The value.
-
setValue
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;- Parameters:
value- The value to set.- Returns:
- 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:
- This builder for chaining.
-
getQuantity
public long getQuantity()
The quantity of this item that is being purchased.
int64 quantity = 3;- Specified by:
getQuantityin interfaceTransactionData.ItemOrBuilder- Returns:
- The quantity.
-
setQuantity
public TransactionData.Item.Builder setQuantity(long value)
The quantity of this item that is being purchased.
int64 quantity = 3;- Parameters:
value- The quantity to set.- Returns:
- This builder for chaining.
-
clearQuantity
public TransactionData.Item.Builder clearQuantity()
The quantity of this item that is being purchased.
int64 quantity = 3;- Returns:
- This builder for chaining.
-
getMerchantAccountId
public String getMerchantAccountId()
When a merchant is specified, its corresponding account_id. Necessary to populate marketplace-style transactions.
string merchant_account_id = 4;- Specified by:
getMerchantAccountIdin interfaceTransactionData.ItemOrBuilder- Returns:
- The merchantAccountId.
-
getMerchantAccountIdBytes
public 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;- Specified by:
getMerchantAccountIdBytesin interfaceTransactionData.ItemOrBuilder- Returns:
- The bytes for merchantAccountId.
-
setMerchantAccountId
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;- Parameters:
value- The merchantAccountId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setMerchantAccountIdBytes
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;- Parameters:
value- The bytes for merchantAccountId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final TransactionData.Item.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
mergeUnknownFields
public final TransactionData.Item.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
-