# Interface CartDataOrBuilder (0.14.0)

0.14.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface CartDataOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCouponCodes(int index)

    public abstract String getCouponCodes(int index)

Optional. The list of coupon codes that were applied to the cart.
Cart-level and item-level coupon codes are independent.

If the event is for a Google Analytics destination, only provide a single
coupon code. Google Analytics ignores additional coupon codes.

`repeated string coupon_codes = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The couponCodes at the given index. |

### getCouponCodesBytes(int index)

    public abstract ByteString getCouponCodesBytes(int index)

Optional. The list of coupon codes that were applied to the cart.
Cart-level and item-level coupon codes are independent.

If the event is for a Google Analytics destination, only provide a single
coupon code. Google Analytics ignores additional coupon codes.

`repeated string coupon_codes = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the couponCodes at the given index. |

### getCouponCodesCount()

    public abstract int getCouponCodesCount()

Optional. The list of coupon codes that were applied to the cart.
Cart-level and item-level coupon codes are independent.

If the event is for a Google Analytics destination, only provide a single
coupon code. Google Analytics ignores additional coupon codes.

`repeated string coupon_codes = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of couponCodes. |

### getCouponCodesList()

    public abstract List<String> getCouponCodesList()

Optional. The list of coupon codes that were applied to the cart.
Cart-level and item-level coupon codes are independent.

If the event is for a Google Analytics destination, only provide a single
coupon code. Google Analytics ignores additional coupon codes.

`repeated string coupon_codes = 6 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the couponCodes. |

### getItems(int index)

    public abstract Item getItems(int index)

Optional. The list of items associated with the event.

`
repeated .google.ads.datamanager.v1.Item items = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/data-manager/latest/com.google.ads.datamanager.v1.Item` |   |

### getItemsCount()

    public abstract int getItemsCount()

Optional. The list of items associated with the event.

`
repeated .google.ads.datamanager.v1.Item items = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getItemsList()

    public abstract List<Item> getItemsList()

Optional. The list of items associated with the event.

`
repeated .google.ads.datamanager.v1.Item items = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/data-manager/latest/com.google.ads.datamanager.v1.Item>` |   |

### getItemsOrBuilder(int index)

    public abstract ItemOrBuilder getItemsOrBuilder(int index)

Optional. The list of items associated with the event.

`
repeated .google.ads.datamanager.v1.Item items = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/data-manager/latest/com.google.ads.datamanager.v1.ItemOrBuilder` |   |

### getItemsOrBuilderList()

    public abstract List<? extends ItemOrBuilder> getItemsOrBuilderList()

Optional. The list of items associated with the event.

`
repeated .google.ads.datamanager.v1.Item items = 5 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.ads.datamanager.v1.ItemOrBuilder>` |   |

### getMerchantFeedLabel()

    public abstract String getMerchantFeedLabel()

Optional. The Merchant Center feed label associated with the feed of the
items.

`string merchant_feed_label = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The merchantFeedLabel. |

### getMerchantFeedLabelBytes()

    public abstract ByteString getMerchantFeedLabelBytes()

Optional. The Merchant Center feed label associated with the feed of the
items.

`string merchant_feed_label = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for merchantFeedLabel. |

### getMerchantFeedLanguageCode()

    public abstract String getMerchantFeedLanguageCode()

Optional. The language code in ISO 639-1 associated with the Merchant
Center feed of the items.where your items are uploaded.

`string merchant_feed_language_code = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The merchantFeedLanguageCode. |

### getMerchantFeedLanguageCodeBytes()

    public abstract ByteString getMerchantFeedLanguageCodeBytes()

Optional. The language code in ISO 639-1 associated with the Merchant
Center feed of the items.where your items are uploaded.

`string merchant_feed_language_code = 3 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for merchantFeedLanguageCode. |

### getMerchantId()

    public abstract String getMerchantId()

Optional. The Merchant Center ID associated with the items.

`string merchant_id = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The merchantId. |

### getMerchantIdBytes()

    public abstract ByteString getMerchantIdBytes()

Optional. The Merchant Center ID associated with the items.

`string merchant_id = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for merchantId. |

### getTransactionDiscount()

    public abstract double getTransactionDiscount()

Optional. The sum of all discounts associated with the transaction.

`double transaction_discount = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The transactionDiscount. |