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.v13.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.v13.services.CartData
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CartData.Builder
addAllItems(java.lang.Iterable<? extends CartData.Item> values)
Data of the items purchased.CartData.Builder
addItems(int index, CartData.Item value)
Data of the items purchased.CartData.Builder
addItems(int index, CartData.Item.Builder builderForValue)
Data of the items purchased.CartData.Builder
addItems(CartData.Item value)
Data of the items purchased.CartData.Builder
addItems(CartData.Item.Builder builderForValue)
Data of the items purchased.CartData.Item.Builder
addItemsBuilder()
Data of the items purchased.CartData.Item.Builder
addItemsBuilder(int index)
Data of the items purchased.CartData.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CartData
build()
CartData
buildPartial()
CartData.Builder
clear()
CartData.Builder
clearFeedCountryCode()
The country code associated with the feed where the items are uploaded.CartData.Builder
clearFeedLanguageCode()
The language code associated with the feed where the items are uploaded.CartData.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CartData.Builder
clearItems()
Data of the items purchased.CartData.Builder
clearLocalTransactionCost()
Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart.CartData.Builder
clearMerchantId()
The Merchant Center ID where the items are uploaded.CartData.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CartData.Builder
clone()
CartData
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getFeedCountryCode()
The country code associated with the feed where the items are uploaded.com.google.protobuf.ByteString
getFeedCountryCodeBytes()
The country code associated with the feed where the items are uploaded.java.lang.String
getFeedLanguageCode()
The language code associated with the feed where the items are uploaded.com.google.protobuf.ByteString
getFeedLanguageCodeBytes()
The language code associated with the feed where the items are uploaded.CartData.Item
getItems(int index)
Data of the items purchased.CartData.Item.Builder
getItemsBuilder(int index)
Data of the items purchased.java.util.List<CartData.Item.Builder>
getItemsBuilderList()
Data of the items purchased.int
getItemsCount()
Data of the items purchased.java.util.List<CartData.Item>
getItemsList()
Data of the items purchased.CartData.ItemOrBuilder
getItemsOrBuilder(int index)
Data of the items purchased.java.util.List<? extends CartData.ItemOrBuilder>
getItemsOrBuilderList()
Data of the items purchased.double
getLocalTransactionCost()
Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart.long
getMerchantId()
The Merchant Center ID where the items are uploaded.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CartData.Builder
mergeFrom(CartData other)
CartData.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CartData.Builder
mergeFrom(com.google.protobuf.Message other)
CartData.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CartData.Builder
removeItems(int index)
Data of the items purchased.CartData.Builder
setFeedCountryCode(java.lang.String value)
The country code associated with the feed where the items are uploaded.CartData.Builder
setFeedCountryCodeBytes(com.google.protobuf.ByteString value)
The country code associated with the feed where the items are uploaded.CartData.Builder
setFeedLanguageCode(java.lang.String value)
The language code associated with the feed where the items are uploaded.CartData.Builder
setFeedLanguageCodeBytes(com.google.protobuf.ByteString value)
The language code associated with the feed where the items are uploaded.CartData.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
CartData.Builder
setItems(int index, CartData.Item value)
Data of the items purchased.CartData.Builder
setItems(int index, CartData.Item.Builder builderForValue)
Data of the items purchased.CartData.Builder
setLocalTransactionCost(double value)
Sum of all transaction level discounts, such as free shipping and coupon discounts for the whole cart.CartData.Builder
setMerchantId(long value)
The Merchant Center ID where the items are uploaded.CartData.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
CartData.Builder
setUnknownFields(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
clear
public CartData.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
getDefaultInstanceForType
public CartData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CartData build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CartData buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CartData.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
setField
public CartData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
clearField
public CartData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
clearOneof
public CartData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
addRepeatedField
public CartData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
mergeFrom
public CartData.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CartData.Builder>
-
mergeFrom
public CartData.Builder mergeFrom(CartData other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getMerchantId
in 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:
getFeedCountryCode
in 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:
getFeedCountryCodeBytes
in 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:
getFeedLanguageCode
in 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:
getFeedLanguageCodeBytes
in 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:
getLocalTransactionCost
in 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.v13.services.CartData.Item items = 5;
- Specified by:
getItemsList
in interfaceCartDataOrBuilder
-
getItemsCount
public int getItemsCount()
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
- Specified by:
getItemsCount
in interfaceCartDataOrBuilder
-
getItems
public CartData.Item getItems(int index)
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
- Specified by:
getItems
in interfaceCartDataOrBuilder
-
setItems
public CartData.Builder setItems(int index, CartData.Item value)
Data of the items purchased.
repeated .google.ads.googleads.v13.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.v13.services.CartData.Item items = 5;
-
addItems
public CartData.Builder addItems(CartData.Item value)
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
-
addItems
public CartData.Builder addItems(int index, CartData.Item value)
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
-
addItems
public CartData.Builder addItems(CartData.Item.Builder builderForValue)
Data of the items purchased.
repeated .google.ads.googleads.v13.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.v13.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.v13.services.CartData.Item items = 5;
-
clearItems
public CartData.Builder clearItems()
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
-
removeItems
public CartData.Builder removeItems(int index)
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
-
getItemsBuilder
public CartData.Item.Builder getItemsBuilder(int index)
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
-
getItemsOrBuilder
public CartData.ItemOrBuilder getItemsOrBuilder(int index)
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
- Specified by:
getItemsOrBuilder
in interfaceCartDataOrBuilder
-
getItemsOrBuilderList
public java.util.List<? extends CartData.ItemOrBuilder> getItemsOrBuilderList()
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
- Specified by:
getItemsOrBuilderList
in interfaceCartDataOrBuilder
-
addItemsBuilder
public CartData.Item.Builder addItemsBuilder()
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
-
addItemsBuilder
public CartData.Item.Builder addItemsBuilder(int index)
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
-
getItemsBuilderList
public java.util.List<CartData.Item.Builder> getItemsBuilderList()
Data of the items purchased.
repeated .google.ads.googleads.v13.services.CartData.Item items = 5;
-
setUnknownFields
public final CartData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
mergeUnknownFields
public final CartData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CartData.Builder>
-
-