Class Item (0.1.0)

  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

Implements

ItemOrBuilder

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

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

newBuilder()

  public 
  
 static 
  
 Item 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Item prototype)

  public 
  
 static 
  
 Item 
 . 
 Builder 
  
 newBuilder 
 ( 
 Item 
  
 prototype 
 ) 
 
Parameter
Name
Description
prototype
Returns
Type
Description

parseDelimitedFrom(InputStream input)

  public 
  
 static 
  
 Item 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Item 
  
 parseDelimitedFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data)

  public 
  
 static 
  
 Item 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 ) 
 
Parameter
Name
Description
data
byte []
Returns
Type
Description
Exceptions
Type
Description

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Item 
  
 parseFrom 
 ( 
 byte 
 [] 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
byte []
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data)

  public 
  
 static 
  
 Item 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Item 
  
 parseFrom 
 ( 
 ByteString 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input)

  public 
  
 static 
  
 Item 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Exceptions
Type
Description

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Item 
  
 parseFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input)

  public 
  
 static 
  
 Item 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 ) 
 
Parameter
Name
Description
input
Returns
Type
Description
Exceptions
Type
Description

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Item 
  
 parseFrom 
 ( 
 InputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
input
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data)

  public 
  
 static 
  
 Item 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 ) 
 
Parameter
Name
Description
data
Returns
Type
Description
Exceptions
Type
Description

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

  public 
  
 static 
  
 Item 
  
 parseFrom 
 ( 
 ByteBuffer 
  
 data 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
data
extensionRegistry
Returns
Type
Description
Exceptions
Type
Description

parser()

  public 
  
 static 
  
 Parser<Item> 
  
 parser 
 () 
 
Returns
Type
Description
Parser < Item >

Methods

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
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
Returns
Type
Description

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];

Returns
Type
Description

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
Returns
Type
Description

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

getItemId()

  public 
  
 String 
  
 getItemId 
 () 
 

Optional. A unique identifier to reference the item.

string item_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type
Description

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

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

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

The bytes for merchantProductId.

getParserForType()

  public 
  
 Parser<Item> 
  
 getParserForType 
 () 
 
Returns
Type
Description
Parser < Item >
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

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

The unitPrice.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Item 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

  protected 
  
 Item 
 . 
 Builder 
  
 newBuilderForType 
 ( 
 GeneratedMessageV3 
 . 
 BuilderParent 
  
 parent 
 ) 
 
Parameter
Name
Description
parent
Returns
Type
Description
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

  protected 
  
 Object 
  
 newInstance 
 ( 
 GeneratedMessageV3 
 . 
 UnusedPrivateParameter 
  
 unused 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

toBuilder()

  public 
  
 Item 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: