public final class CartData extends GeneratedMessage implements CartDataOrBuilder
The cart data associated with the event.
Protobuf type google.ads.datamanager.v1.CartData
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
COUPON_CODES_FIELD_NUMBER
public static final int COUPON_CODES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ITEMS_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MERCHANT_FEED_LABEL_FIELD_NUMBER
public static final int MERCHANT_FEED_LABEL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MERCHANT_FEED_LANGUAGE_CODE_FIELD_NUMBER
public static final int MERCHANT_FEED_LANGUAGE_CODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MERCHANT_ID_FIELD_NUMBER
public static final int MERCHANT_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TRANSACTION_DISCOUNT_FIELD_NUMBER
public static final int TRANSACTION_DISCOUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static CartData getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CartData.Builder newBuilder()
newBuilder(CartData prototype)
public static CartData.Builder newBuilder(CartData prototype)
| Parameter |
| Name |
Description |
prototype |
CartData
|
public static CartData parseDelimitedFrom(InputStream input)
public static CartData parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CartData parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CartData parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CartData parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CartData parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CartData parseFrom(CodedInputStream input)
public static CartData parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CartData parseFrom(InputStream input)
public static CartData parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CartData parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CartData parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CartData> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getCouponCodes(int index)
public 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 |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The couponCodes at the given index.
|
getCouponCodesBytes(int index)
public 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 |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the couponCodes at the given index.
|
getCouponCodesCount()
public 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 ProtocolStringList 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];
getDefaultInstanceForType()
public CartData getDefaultInstanceForType()
getItems(int index)
public 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 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 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];
getItemsOrBuilder(int index)
public 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
|
getItemsOrBuilderList()
public 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 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 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 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 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 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 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.
|
getParserForType()
public Parser<CartData> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getTransactionDiscount()
public 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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CartData.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CartData.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public CartData.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides