public final class Item extends GeneratedMessage implements ItemOrBuilder
Represents an item in the cart associated with the event.
Protobuf type google.ads.datamanager.v1.Item
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
ADDITIONAL_ITEM_PARAMETERS_FIELD_NUMBER
public static final int ADDITIONAL_ITEM_PARAMETERS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CONVERSION_VALUE_FIELD_NUMBER
public static final int CONVERSION_VALUE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CUSTOM_VARIABLES_FIELD_NUMBER
public static final int CUSTOM_VARIABLES_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_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 |
|
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> |
|
getConversionValue()
public double getConversionValue()
Optional. The conversion value associated with this item within the event,
for cases where the conversion value is different for each item.
optional double conversion_value = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
double |
The conversionValue.
|
getCustomVariables(int index)
public ItemCustomVariable getCustomVariables(int index)
Optional. Additional key/value pair information to send to the conversion
containers (conversion action or Floodlight activity), when tracking
per-item
conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getCustomVariablesCount()
public int getCustomVariablesCount()
Optional. Additional key/value pair information to send to the conversion
containers (conversion action or Floodlight activity), when tracking
per-item
conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
getCustomVariablesList()
public List<ItemCustomVariable> getCustomVariablesList()
Optional. Additional key/value pair information to send to the conversion
containers (conversion action or Floodlight activity), when tracking
per-item
conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
getCustomVariablesOrBuilder(int index)
public ItemCustomVariableOrBuilder getCustomVariablesOrBuilder(int index)
Optional. Additional key/value pair information to send to the conversion
containers (conversion action or Floodlight activity), when tracking
per-item
conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
getCustomVariablesOrBuilderList()
public List<? extends ItemCustomVariableOrBuilder> getCustomVariablesOrBuilderList()
Optional. Additional key/value pair information to send to the conversion
containers (conversion action or Floodlight activity), when tracking
per-item
conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.ads.datamanager.v1.ItemCustomVariableOrBuilder> |
|
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.
|
getMerchantFeedLabel()
public String getMerchantFeedLabel()
Optional. The feed label of the Merchant Center feed. If countries are
still being used, the 2-letter country code in ISO-3166-1 alpha-2 can be
used instead. For Store Sales events this will override the value set at
the cart level. This field is ignored for other events.
string merchant_feed_label = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The merchantFeedLabel.
|
getMerchantFeedLabelBytes()
public ByteString getMerchantFeedLabelBytes()
Optional. The feed label of the Merchant Center feed. If countries are
still being used, the 2-letter country code in ISO-3166-1 alpha-2 can be
used instead. For Store Sales events this will override the value set at
the cart level. This field is ignored for other events.
string merchant_feed_label = 7 [(.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 where your items are uploaded.
string merchant_feed_language_code = 8 [(.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 where your items are uploaded.
string merchant_feed_language_code = 8 [(.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 item. For Store Sales
events this will override the value set at the cart level. This field is
ignored for other events.
string merchant_id = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The merchantId.
|
getMerchantIdBytes()
public ByteString getMerchantIdBytes()
Optional. The Merchant Center ID associated with the item. For Store Sales
events this will override the value set at the cart level. This field is
ignored for other events.
string merchant_id = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for merchantId.
|
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.
|
hasConversionValue()
public boolean hasConversionValue()
Optional. The conversion value associated with this item within the event,
for cases where the conversion value is different for each item.
optional double conversion_value = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the conversionValue field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Item.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Item.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Item.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides