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

    Modifier and Type
    Method
    Description
    The shopping id of the item.
    com.google.protobuf.ByteString
    The shopping id of the item.
    int
    Number of items sold.
    double
    Unit price excluding tax, shipping, and any transaction level discounts.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getProductId

      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.