public interface CartDataOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
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 |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
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 |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
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 |
int |
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 |
List<String> |
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 |
int |
| Returns | |
|---|---|
| Type | Description |
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 |
int |
|
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 |
List<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 |
int |
| Returns | |
|---|---|
| Type | Description |
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 |
List<? 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 |
String |
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 |
ByteString |
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 |
String |
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 |
ByteString |
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 |
String |
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 |
ByteString |
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 |
double |
The transactionDiscount. |