Class CartData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
com.google.ads.googleads.v18.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,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 type
google.ads.googleads.v18.services.CartData-
Method Summary
Modifier and TypeMethodDescriptionaddAllItems(Iterable<? extends CartData.Item> values) Data of the items purchased.addItems(int index, CartData.Item value) Data of the items purchased.addItems(int index, CartData.Item.Builder builderForValue) Data of the items purchased.addItems(CartData.Item value) Data of the items purchased.addItems(CartData.Item.Builder builderForValue) Data of the items purchased.Data of the items purchased.addItemsBuilder(int index) Data of the items purchased.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The country code associated with the feed where the items are uploaded.The language code associated with the feed where the items are uploaded.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Data of the items purchased.Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart.The Merchant Center ID where the items are uploaded.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe country code associated with the feed where the items are uploaded.com.google.protobuf.ByteStringThe country code associated with the feed where the items are uploaded.The language code associated with the feed where the items are uploaded.com.google.protobuf.ByteStringThe language code associated with the feed where the items are uploaded.getItems(int index) Data of the items purchased.getItemsBuilder(int index) Data of the items purchased.Data of the items purchased.intData of the items purchased.Data of the items purchased.getItemsOrBuilder(int index) Data of the items purchased.List<? extends CartData.ItemOrBuilder>Data of the items purchased.doubleSum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart.longThe Merchant Center ID where the items are uploaded.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final CartData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeItems(int index) Data of the items purchased.setFeedCountryCode(String value) The country code associated with the feed where the items are uploaded.setFeedCountryCodeBytes(com.google.protobuf.ByteString value) The country code associated with the feed where the items are uploaded.setFeedLanguageCode(String value) The language code associated with the feed where the items are uploaded.setFeedLanguageCodeBytes(com.google.protobuf.ByteString value) The language code associated with the feed where the items are uploaded.setItems(int index, CartData.Item value) Data of the items purchased.setItems(int index, CartData.Item.Builder builderForValue) Data of the items purchased.setLocalTransactionCost(double value) Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart.setMerchantId(long value) The Merchant Center ID where the items are uploaded.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final 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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CartData.Builder>
-
mergeFrom
-
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 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:
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
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
The Merchant Center ID where the items are uploaded.
int64 merchant_id = 6;- Returns:
- This builder for chaining.
-
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
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
The country code associated with the feed where the items are uploaded.
string feed_country_code = 2;- Returns:
- This builder for chaining.
-
setFeedCountryCodeBytes
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
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
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
The language code associated with the feed where the items are uploaded.
string feed_language_code = 3;- Returns:
- This builder for chaining.
-
setFeedLanguageCodeBytes
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
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
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
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5;- Specified by:
getItemsListin interfaceCartDataOrBuilder
-
getItemsCount
public int getItemsCount()Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5;- Specified by:
getItemsCountin interfaceCartDataOrBuilder
-
getItems
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5;- Specified by:
getItemsin interfaceCartDataOrBuilder
-
setItems
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
setItems
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
addItems
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
addItems
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
addItems
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
addItems
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
addAllItems
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
clearItems
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
removeItems
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
getItemsBuilder
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
getItemsOrBuilder
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5;- Specified by:
getItemsOrBuilderin interfaceCartDataOrBuilder
-
getItemsOrBuilderList
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5;- Specified by:
getItemsOrBuilderListin interfaceCartDataOrBuilder
-
addItemsBuilder
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
addItemsBuilder
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
getItemsBuilderList
Data of the items purchased.
repeated .google.ads.googleads.v18.services.CartData.Item items = 5; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-