Class CartData (0.1.0)

public final class CartData extends GeneratedMessageV3 implements CartDataOrBuilder

The cart data associated with the event.

Protobuf type google.ads.datamanager.v1.CartData

Implements

CartDataOrBuilder

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()
Returns
Type Description
CartData

getDescriptor()

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

newBuilder()

public static CartData.Builder newBuilder()
Returns
Type Description
CartData.Builder

newBuilder(CartData prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CartData getDefaultInstanceForType()
Returns
Type Description
CartData

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

Returns
Type Description
List<Item>

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

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()
Returns
Type Description
Parser<CartData>
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CartData.Builder newBuilderForType()
Returns
Type Description
CartData.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public CartData.Builder toBuilder()
Returns
Type Description
CartData.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException