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.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.-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
clear
public TransactionData.Item.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
getDefaultInstanceForType
public TransactionData.Item getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TransactionData.Item build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TransactionData.Item buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TransactionData.Item.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
setField
public TransactionData.Item.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
clearField
public TransactionData.Item.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
clearOneof
public TransactionData.Item.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
addRepeatedField
public TransactionData.Item.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
mergeFrom
public TransactionData.Item.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TransactionData.Item.Builder>
-
mergeFrom
public TransactionData.Item.Builder mergeFrom(TransactionData.Item other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in interfaceTransactionData.ItemOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The full name of the item.
string name = 1;
- Specified by:
getNameBytes
in 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:
getValue
in 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:
getQuantity
in 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:
getMerchantAccountId
in 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:
getMerchantAccountIdBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
mergeUnknownFields
public final TransactionData.Item.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TransactionData.Item.Builder>
-
-