Class CartData.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
- com.google.ads.googleads.v10.services.CartData.Builder
-
- All Implemented Interfaces:
CartDataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- CartData
public static final class CartData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder> implements CartDataOrBuilder
Contains additional information about cart data.
Protobuf typegoogle.ads.googleads.v10.services.CartData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CartData.BuilderaddAllItems(java.lang.Iterable<? extends CartData.Item> values)Data of the items purchased.CartData.BuilderaddItems(int index, CartData.Item value)Data of the items purchased.CartData.BuilderaddItems(int index, CartData.Item.Builder builderForValue)Data of the items purchased.CartData.BuilderaddItems(CartData.Item value)Data of the items purchased.CartData.BuilderaddItems(CartData.Item.Builder builderForValue)Data of the items purchased.CartData.Item.BuilderaddItemsBuilder()Data of the items purchased.CartData.Item.BuilderaddItemsBuilder(int index)Data of the items purchased.CartData.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CartDatabuild()CartDatabuildPartial()CartData.Builderclear()CartData.BuilderclearFeedCountryCode()The country code associated with the feed where the items are uploaded.CartData.BuilderclearFeedLanguageCode()The language code associated with the feed where the items are uploaded.CartData.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CartData.BuilderclearItems()Data of the items purchased.CartData.BuilderclearLocalTransactionCost()Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart.CartData.BuilderclearMerchantId()The Merchant Center ID where the items are uploaded.CartData.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CartData.Builderclone()CartDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetFeedCountryCode()The country code associated with the feed where the items are uploaded.com.google.protobuf.ByteStringgetFeedCountryCodeBytes()The country code associated with the feed where the items are uploaded.java.lang.StringgetFeedLanguageCode()The language code associated with the feed where the items are uploaded.com.google.protobuf.ByteStringgetFeedLanguageCodeBytes()The language code associated with the feed where the items are uploaded.CartData.ItemgetItems(int index)Data of the items purchased.CartData.Item.BuildergetItemsBuilder(int index)Data of the items purchased.java.util.List<CartData.Item.Builder>getItemsBuilderList()Data of the items purchased.intgetItemsCount()Data of the items purchased.java.util.List<CartData.Item>getItemsList()Data of the items purchased.CartData.ItemOrBuildergetItemsOrBuilder(int index)Data of the items purchased.java.util.List<? extends CartData.ItemOrBuilder>getItemsOrBuilderList()Data of the items purchased.doublegetLocalTransactionCost()Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart.longgetMerchantId()The Merchant Center ID where the items are uploaded.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CartData.BuildermergeFrom(CartData other)CartData.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CartData.BuildermergeFrom(com.google.protobuf.Message other)CartData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CartData.BuilderremoveItems(int index)Data of the items purchased.CartData.BuildersetFeedCountryCode(java.lang.String value)The country code associated with the feed where the items are uploaded.CartData.BuildersetFeedCountryCodeBytes(com.google.protobuf.ByteString value)The country code associated with the feed where the items are uploaded.CartData.BuildersetFeedLanguageCode(java.lang.String value)The language code associated with the feed where the items are uploaded.CartData.BuildersetFeedLanguageCodeBytes(com.google.protobuf.ByteString value)The language code associated with the feed where the items are uploaded.CartData.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)CartData.BuildersetItems(int index, CartData.Item value)Data of the items purchased.CartData.BuildersetItems(int index, CartData.Item.Builder builderForValue)Data of the items purchased.CartData.BuildersetLocalTransactionCost(double value)Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart.CartData.BuildersetMerchantId(long value)The Merchant Center ID where the items are uploaded.CartData.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)CartData.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
clear
public CartData.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
getDefaultInstanceForType
public CartData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CartData build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CartData buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CartData.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
setField
public CartData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
clearField
public CartData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
clearOneof
public CartData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
setRepeatedField
public CartData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
addRepeatedField
public CartData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
mergeFrom
public CartData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CartData.Builder>
-
mergeFrom
public CartData.Builder mergeFrom(CartData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
mergeFrom
public CartData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CartData.Builder>- Throws:
java.io.IOException
-
getMerchantId
public long getMerchantId()
The Merchant Center ID where the items are uploaded.
int64 merchant_id = 6;- Specified by:
getMerchantIdin interfaceCartDataOrBuilder- Returns:
- The merchantId.
-
setMerchantId
public CartData.Builder setMerchantId(long value)
The Merchant Center ID where the items are uploaded.
int64 merchant_id = 6;- Parameters:
value- The merchantId to set.- Returns:
- This builder for chaining.
-
clearMerchantId
public CartData.Builder clearMerchantId()
The Merchant Center ID where the items are uploaded.
int64 merchant_id = 6;- Returns:
- This builder for chaining.
-
getFeedCountryCode
public java.lang.String getFeedCountryCode()
The country code associated with the feed where the items are uploaded.
string feed_country_code = 2;- Specified by:
getFeedCountryCodein interfaceCartDataOrBuilder- Returns:
- The feedCountryCode.
-
getFeedCountryCodeBytes
public com.google.protobuf.ByteString getFeedCountryCodeBytes()
The country code associated with the feed where the items are uploaded.
string feed_country_code = 2;- Specified by:
getFeedCountryCodeBytesin interfaceCartDataOrBuilder- Returns:
- The bytes for feedCountryCode.
-
setFeedCountryCode
public CartData.Builder setFeedCountryCode(java.lang.String value)
The country code associated with the feed where the items are uploaded.
string feed_country_code = 2;- Parameters:
value- The feedCountryCode to set.- Returns:
- This builder for chaining.
-
clearFeedCountryCode
public CartData.Builder clearFeedCountryCode()
The country code associated with the feed where the items are uploaded.
string feed_country_code = 2;- Returns:
- This builder for chaining.
-
setFeedCountryCodeBytes
public CartData.Builder setFeedCountryCodeBytes(com.google.protobuf.ByteString value)
The country code associated with the feed where the items are uploaded.
string feed_country_code = 2;- Parameters:
value- The bytes for feedCountryCode to set.- Returns:
- This builder for chaining.
-
getFeedLanguageCode
public java.lang.String getFeedLanguageCode()
The language code associated with the feed where the items are uploaded.
string feed_language_code = 3;- Specified by:
getFeedLanguageCodein interfaceCartDataOrBuilder- Returns:
- The feedLanguageCode.
-
getFeedLanguageCodeBytes
public com.google.protobuf.ByteString getFeedLanguageCodeBytes()
The language code associated with the feed where the items are uploaded.
string feed_language_code = 3;- Specified by:
getFeedLanguageCodeBytesin interfaceCartDataOrBuilder- Returns:
- The bytes for feedLanguageCode.
-
setFeedLanguageCode
public CartData.Builder setFeedLanguageCode(java.lang.String value)
The language code associated with the feed where the items are uploaded.
string feed_language_code = 3;- Parameters:
value- The feedLanguageCode to set.- Returns:
- This builder for chaining.
-
clearFeedLanguageCode
public CartData.Builder clearFeedLanguageCode()
The language code associated with the feed where the items are uploaded.
string feed_language_code = 3;- Returns:
- This builder for chaining.
-
setFeedLanguageCodeBytes
public CartData.Builder setFeedLanguageCodeBytes(com.google.protobuf.ByteString value)
The language code associated with the feed where the items are uploaded.
string feed_language_code = 3;- Parameters:
value- The bytes for feedLanguageCode to set.- Returns:
- This builder for chaining.
-
getLocalTransactionCost
public double getLocalTransactionCost()
Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart. The currency code is the same as that in the ClickConversion message.
double local_transaction_cost = 4;- Specified by:
getLocalTransactionCostin interfaceCartDataOrBuilder- Returns:
- The localTransactionCost.
-
setLocalTransactionCost
public CartData.Builder setLocalTransactionCost(double value)
Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart. The currency code is the same as that in the ClickConversion message.
double local_transaction_cost = 4;- Parameters:
value- The localTransactionCost to set.- Returns:
- This builder for chaining.
-
clearLocalTransactionCost
public CartData.Builder clearLocalTransactionCost()
Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart. The currency code is the same as that in the ClickConversion message.
double local_transaction_cost = 4;- Returns:
- This builder for chaining.
-
getItemsList
public java.util.List<CartData.Item> getItemsList()
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;- Specified by:
getItemsListin interfaceCartDataOrBuilder
-
getItemsCount
public int getItemsCount()
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;- Specified by:
getItemsCountin interfaceCartDataOrBuilder
-
getItems
public CartData.Item getItems(int index)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;- Specified by:
getItemsin interfaceCartDataOrBuilder
-
setItems
public CartData.Builder setItems(int index, CartData.Item value)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
setItems
public CartData.Builder setItems(int index, CartData.Item.Builder builderForValue)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
addItems
public CartData.Builder addItems(CartData.Item value)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
addItems
public CartData.Builder addItems(int index, CartData.Item value)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
addItems
public CartData.Builder addItems(CartData.Item.Builder builderForValue)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
addItems
public CartData.Builder addItems(int index, CartData.Item.Builder builderForValue)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
addAllItems
public CartData.Builder addAllItems(java.lang.Iterable<? extends CartData.Item> values)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
clearItems
public CartData.Builder clearItems()
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
removeItems
public CartData.Builder removeItems(int index)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
getItemsBuilder
public CartData.Item.Builder getItemsBuilder(int index)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
getItemsOrBuilder
public CartData.ItemOrBuilder getItemsOrBuilder(int index)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;- Specified by:
getItemsOrBuilderin interfaceCartDataOrBuilder
-
getItemsOrBuilderList
public java.util.List<? extends CartData.ItemOrBuilder> getItemsOrBuilderList()
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;- Specified by:
getItemsOrBuilderListin interfaceCartDataOrBuilder
-
addItemsBuilder
public CartData.Item.Builder addItemsBuilder()
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
addItemsBuilder
public CartData.Item.Builder addItemsBuilder(int index)
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
getItemsBuilderList
public java.util.List<CartData.Item.Builder> getItemsBuilderList()
Data of the items purchased.
repeated .google.ads.googleads.v10.services.CartData.Item items = 5;
-
setUnknownFields
public final CartData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
mergeUnknownFields
public final CartData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
-