Send feedback
Class Item (0.1.0)
Stay organized with collections
Save and categorize content based on your preferences.
public final class Item extends GeneratedMessageV3 implements ItemOrBuilder
Represents an item in the cart associated with the event.
Protobuf type google.ads.datamanager.v1.Item
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
ADDITIONAL_ITEM_PARAMETERS_FIELD_NUMBER
public static final int ADDITIONAL_ITEM_PARAMETERS_FIELD_NUMBER
Field Value
Type
Description
int
ITEM_ID_FIELD_NUMBER
public static final int ITEM_ID_FIELD_NUMBER
Field Value
Type
Description
int
MERCHANT_PRODUCT_ID_FIELD_NUMBER
public static final int MERCHANT_PRODUCT_ID_FIELD_NUMBER
Field Value
Type
Description
int
QUANTITY_FIELD_NUMBER
public static final int QUANTITY_FIELD_NUMBER
Field Value
Type
Description
int
UNIT_PRICE_FIELD_NUMBER
public static final int UNIT_PRICE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static Item getDefaultInstance ()
Returns
Type
Description
Item
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static Item . Builder newBuilder ()
newBuilder(Item prototype)
public static Item . Builder newBuilder ( Item prototype )
Parameter
Name
Description
prototype
Item
public static Item parseDelimitedFrom ( InputStream input )
Returns
Type
Description
Item
public static Item parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Item
parseFrom(byte[] data)
public static Item parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Type
Description
Item
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Item parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Item
parseFrom(ByteString data)
public static Item parseFrom ( ByteString data )
Returns
Type
Description
Item
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Item parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Item
public static Item parseFrom ( CodedInputStream input )
Returns
Type
Description
Item
public static Item parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Item
public static Item parseFrom ( InputStream input )
Returns
Type
Description
Item
public static Item parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Item
parseFrom(ByteBuffer data)
public static Item parseFrom ( ByteBuffer data )
Returns
Type
Description
Item
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Item parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Returns
Type
Description
Item
parser()
public static Parser<Item> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getAdditionalItemParameters(int index)
public ItemParameter getAdditionalItemParameters ( int index )
Optional. A bucket of any event parameters related to an
item
to be included within the event that were not already specified using other
structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
getAdditionalItemParametersCount()
public int getAdditionalItemParametersCount ()
Optional. A bucket of any event parameters related to an
item
to be included within the event that were not already specified using other
structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
int
getAdditionalItemParametersList()
public List<ItemParameter> getAdditionalItemParametersList ()
Optional. A bucket of any event parameters related to an
item
to be included within the event that were not already specified using other
structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
getAdditionalItemParametersOrBuilder(int index)
public ItemParameterOrBuilder getAdditionalItemParametersOrBuilder ( int index )
Optional. A bucket of any event parameters related to an
item
to be included within the event that were not already specified using other
structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name
Description
index
int
getAdditionalItemParametersOrBuilderList()
public List <? extends ItemParameterOrBuilder > getAdditionalItemParametersOrBuilderList ()
Optional. A bucket of any event parameters related to an
item
to be included within the event that were not already specified using other
structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
List <? extends com.google.ads.datamanager.v1.ItemParameterOrBuilder >
getDefaultInstanceForType()
public Item getDefaultInstanceForType ()
Returns
Type
Description
Item
getItemId()
public String getItemId ()
Optional. A unique identifier to reference the item.
string item_id = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The itemId.
getItemIdBytes()
public ByteString getItemIdBytes ()
Optional. A unique identifier to reference the item.
string item_id = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for itemId.
getMerchantProductId()
public String getMerchantProductId ()
Optional. The product ID within the Merchant Center account.
string merchant_product_id = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
String
The merchantProductId.
getMerchantProductIdBytes()
public ByteString getMerchantProductIdBytes ()
Optional. The product ID within the Merchant Center account.
string merchant_product_id = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
ByteString
The bytes for merchantProductId.
getParserForType()
public Parser<Item> getParserForType ()
Overrides
getQuantity()
public long getQuantity ()
Optional. The number of this item associated with the event.
int64 quantity = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
long
The quantity.
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getUnitPrice()
public double getUnitPrice ()
Optional. The unit price excluding tax, shipping, and any transaction level
discounts.
double unit_price = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type
Description
double
The unitPrice.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public Item . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Item . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public Item . 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 2025-11-19 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 2025-11-19 UTC."],[],[]]