Class TransactionData.Item (3.31.0)

public static final class TransactionData.Item extends GeneratedMessageV3 implements TransactionData.ItemOrBuilder

Line items being purchased in this transaction.

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

Static Fields

MERCHANT_ACCOUNT_ID_FIELD_NUMBER

public static final int MERCHANT_ACCOUNT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

QUANTITY_FIELD_NUMBER

public static final int QUANTITY_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TransactionData.Item getDefaultInstance()
Returns
TypeDescription
TransactionData.Item

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TransactionData.Item.Builder newBuilder()
Returns
TypeDescription
TransactionData.Item.Builder

newBuilder(TransactionData.Item prototype)

public static TransactionData.Item.Builder newBuilder(TransactionData.Item prototype)
Parameter
NameDescription
prototypeTransactionData.Item
Returns
TypeDescription
TransactionData.Item.Builder

parseDelimitedFrom(InputStream input)

public static TransactionData.Item parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Item parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TransactionData.Item parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Item parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TransactionData.Item parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Item parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TransactionData.Item parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Item parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TransactionData.Item parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Item parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TransactionData.Item parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TransactionData.Item parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransactionData.Item
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TransactionData.Item> parser()
Returns
TypeDescription
Parser<Item>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public TransactionData.Item getDefaultInstanceForType()
Returns
TypeDescription
TransactionData.Item

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

The bytes for merchantAccountId.

getName()

public String getName()

The full name of the item.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The full name of the item.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<TransactionData.Item> getParserForType()
Returns
TypeDescription
Parser<Item>
Overrides

getQuantity()

public long getQuantity()

The quantity of this item that is being purchased.

int64 quantity = 3;

Returns
TypeDescription
long

The quantity.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getValue()

public double getValue()

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

double value = 2;

Returns
TypeDescription
double

The value.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TransactionData.Item.Builder newBuilderForType()
Returns
TypeDescription
TransactionData.Item.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TransactionData.Item.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TransactionData.Item.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TransactionData.Item.Builder toBuilder()
Returns
TypeDescription
TransactionData.Item.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException