Interface CartData.ItemOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CartData.Item,CartData.Item.Builder
- Enclosing class:
- CartData
public static interface CartData.ItemOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetProductId()The shopping id of the item.com.google.protobuf.ByteStringgetProductIdBytes()The shopping id of the item.intgetQuantity()Number of items sold.doublegetUnitPrice()Unit price excluding tax, shipping, and any transaction level discounts.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getProductId
java.lang.String getProductId()
The shopping id of the item. Must be equal to the Merchant Center product identifier.
string product_id = 1;- Returns:
- The productId.
-
getProductIdBytes
com.google.protobuf.ByteString getProductIdBytes()
The shopping id of the item. Must be equal to the Merchant Center product identifier.
string product_id = 1;- Returns:
- The bytes for productId.
-
getQuantity
int getQuantity()
Number of items sold.
int32 quantity = 2;- Returns:
- The quantity.
-
getUnitPrice
double getUnitPrice()
Unit price excluding tax, shipping, and any transaction level discounts. The currency code is the same as that in the ClickConversion message.
double unit_price = 3;- Returns:
- The unitPrice.
-
-