Send feedback
Class CartData (0.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public final class CartData extends GeneratedMessageV3 implements CartDataOrBuilder
The cart data associated with the event.
Protobuf type google.ads.datamanager.v1.CartData
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
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
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 GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public CartData . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CartData . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public CartData . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-10 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-10 UTC."],[],[]]