Class PromotionFeedItem.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
- com.google.ads.googleads.v10.common.PromotionFeedItem.Builder
-
- All Implemented Interfaces:
PromotionFeedItemOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- PromotionFeedItem
public static final class PromotionFeedItem.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder> implements PromotionFeedItemOrBuilder
Represents a Promotion extension.
Protobuf typegoogle.ads.googleads.v10.common.PromotionFeedItem
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PromotionFeedItem.BuilderaddAllFinalMobileUrls(java.lang.Iterable<java.lang.String> values)A list of possible final mobile URLs after all cross domain redirects.PromotionFeedItem.BuilderaddAllFinalUrls(java.lang.Iterable<java.lang.String> values)A list of possible final URLs after all cross domain redirects.PromotionFeedItem.BuilderaddAllUrlCustomParameters(java.lang.Iterable<? extends CustomParameter> values)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.PromotionFeedItem.BuilderaddFinalMobileUrls(java.lang.String value)A list of possible final mobile URLs after all cross domain redirects.PromotionFeedItem.BuilderaddFinalMobileUrlsBytes(com.google.protobuf.ByteString value)A list of possible final mobile URLs after all cross domain redirects.PromotionFeedItem.BuilderaddFinalUrls(java.lang.String value)A list of possible final URLs after all cross domain redirects.PromotionFeedItem.BuilderaddFinalUrlsBytes(com.google.protobuf.ByteString value)A list of possible final URLs after all cross domain redirects.PromotionFeedItem.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)PromotionFeedItem.BuilderaddUrlCustomParameters(int index, CustomParameter value)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.PromotionFeedItem.BuilderaddUrlCustomParameters(int index, CustomParameter.Builder builderForValue)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.PromotionFeedItem.BuilderaddUrlCustomParameters(CustomParameter value)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.PromotionFeedItem.BuilderaddUrlCustomParameters(CustomParameter.Builder builderForValue)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.CustomParameter.BuilderaddUrlCustomParametersBuilder()A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.CustomParameter.BuilderaddUrlCustomParametersBuilder(int index)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.PromotionFeedItembuild()PromotionFeedItembuildPartial()PromotionFeedItem.Builderclear()PromotionFeedItem.BuilderclearDiscountModifier()Enum that modifies the qualification of the discount.PromotionFeedItem.BuilderclearDiscountType()PromotionFeedItem.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PromotionFeedItem.BuilderclearFinalMobileUrls()A list of possible final mobile URLs after all cross domain redirects.PromotionFeedItem.BuilderclearFinalUrls()A list of possible final URLs after all cross domain redirects.PromotionFeedItem.BuilderclearFinalUrlSuffix()URL template for appending params to landing page URLs served with parallel tracking.PromotionFeedItem.BuilderclearLanguageCode()The language of the promotion.PromotionFeedItem.BuilderclearMoneyAmountOff()Money amount off for discount in the promotion.PromotionFeedItem.BuilderclearOccasion()The occasion the promotion was intended for.PromotionFeedItem.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PromotionFeedItem.BuilderclearOrdersOverAmount()The amount the total order needs to be for the user to be eligible for the promotion.PromotionFeedItem.BuilderclearPercentOff()Percentage off discount in the promotion in micros.PromotionFeedItem.BuilderclearPromotionCode()A code the user should use in order to be eligible for the promotion.PromotionFeedItem.BuilderclearPromotionEndDate()Last date when the promotion is eligible to be redeemed.PromotionFeedItem.BuilderclearPromotionStartDate()Start date of when the promotion is eligible to be redeemed.PromotionFeedItem.BuilderclearPromotionTarget()A freeform description of what the promotion is targeting.PromotionFeedItem.BuilderclearPromotionTrigger()PromotionFeedItem.BuilderclearTrackingUrlTemplate()URL template for constructing a tracking URL.PromotionFeedItem.BuilderclearUrlCustomParameters()A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.PromotionFeedItem.Builderclone()PromotionFeedItemgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifiergetDiscountModifier()Enum that modifies the qualification of the discount.intgetDiscountModifierValue()Enum that modifies the qualification of the discount.PromotionFeedItem.DiscountTypeCasegetDiscountTypeCase()java.lang.StringgetFinalMobileUrls(int index)A list of possible final mobile URLs after all cross domain redirects.com.google.protobuf.ByteStringgetFinalMobileUrlsBytes(int index)A list of possible final mobile URLs after all cross domain redirects.intgetFinalMobileUrlsCount()A list of possible final mobile URLs after all cross domain redirects.com.google.protobuf.ProtocolStringListgetFinalMobileUrlsList()A list of possible final mobile URLs after all cross domain redirects.java.lang.StringgetFinalUrls(int index)A list of possible final URLs after all cross domain redirects.com.google.protobuf.ByteStringgetFinalUrlsBytes(int index)A list of possible final URLs after all cross domain redirects.intgetFinalUrlsCount()A list of possible final URLs after all cross domain redirects.com.google.protobuf.ProtocolStringListgetFinalUrlsList()A list of possible final URLs after all cross domain redirects.java.lang.StringgetFinalUrlSuffix()URL template for appending params to landing page URLs served with parallel tracking.com.google.protobuf.ByteStringgetFinalUrlSuffixBytes()URL template for appending params to landing page URLs served with parallel tracking.java.lang.StringgetLanguageCode()The language of the promotion.com.google.protobuf.ByteStringgetLanguageCodeBytes()The language of the promotion.MoneygetMoneyAmountOff()Money amount off for discount in the promotion.Money.BuildergetMoneyAmountOffBuilder()Money amount off for discount in the promotion.MoneyOrBuildergetMoneyAmountOffOrBuilder()Money amount off for discount in the promotion.PromotionExtensionOccasionEnum.PromotionExtensionOccasiongetOccasion()The occasion the promotion was intended for.intgetOccasionValue()The occasion the promotion was intended for.MoneygetOrdersOverAmount()The amount the total order needs to be for the user to be eligible for the promotion.Money.BuildergetOrdersOverAmountBuilder()The amount the total order needs to be for the user to be eligible for the promotion.MoneyOrBuildergetOrdersOverAmountOrBuilder()The amount the total order needs to be for the user to be eligible for the promotion.longgetPercentOff()Percentage off discount in the promotion in micros.java.lang.StringgetPromotionCode()A code the user should use in order to be eligible for the promotion.com.google.protobuf.ByteStringgetPromotionCodeBytes()A code the user should use in order to be eligible for the promotion.java.lang.StringgetPromotionEndDate()Last date when the promotion is eligible to be redeemed.com.google.protobuf.ByteStringgetPromotionEndDateBytes()Last date when the promotion is eligible to be redeemed.java.lang.StringgetPromotionStartDate()Start date of when the promotion is eligible to be redeemed.com.google.protobuf.ByteStringgetPromotionStartDateBytes()Start date of when the promotion is eligible to be redeemed.java.lang.StringgetPromotionTarget()A freeform description of what the promotion is targeting.com.google.protobuf.ByteStringgetPromotionTargetBytes()A freeform description of what the promotion is targeting.PromotionFeedItem.PromotionTriggerCasegetPromotionTriggerCase()java.lang.StringgetTrackingUrlTemplate()URL template for constructing a tracking URL.com.google.protobuf.ByteStringgetTrackingUrlTemplateBytes()URL template for constructing a tracking URL.CustomParametergetUrlCustomParameters(int index)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.CustomParameter.BuildergetUrlCustomParametersBuilder(int index)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.java.util.List<CustomParameter.Builder>getUrlCustomParametersBuilderList()A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.intgetUrlCustomParametersCount()A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.java.util.List<CustomParameter>getUrlCustomParametersList()A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.CustomParameterOrBuildergetUrlCustomParametersOrBuilder(int index)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.java.util.List<? extends CustomParameterOrBuilder>getUrlCustomParametersOrBuilderList()A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.booleanhasFinalUrlSuffix()URL template for appending params to landing page URLs served with parallel tracking.booleanhasLanguageCode()The language of the promotion.booleanhasMoneyAmountOff()Money amount off for discount in the promotion.booleanhasOrdersOverAmount()The amount the total order needs to be for the user to be eligible for the promotion.booleanhasPercentOff()Percentage off discount in the promotion in micros.booleanhasPromotionCode()A code the user should use in order to be eligible for the promotion.booleanhasPromotionEndDate()Last date when the promotion is eligible to be redeemed.booleanhasPromotionStartDate()Start date of when the promotion is eligible to be redeemed.booleanhasPromotionTarget()A freeform description of what the promotion is targeting.booleanhasTrackingUrlTemplate()URL template for constructing a tracking URL.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PromotionFeedItem.BuildermergeFrom(PromotionFeedItem other)PromotionFeedItem.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PromotionFeedItem.BuildermergeFrom(com.google.protobuf.Message other)PromotionFeedItem.BuildermergeMoneyAmountOff(Money value)Money amount off for discount in the promotion.PromotionFeedItem.BuildermergeOrdersOverAmount(Money value)The amount the total order needs to be for the user to be eligible for the promotion.PromotionFeedItem.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PromotionFeedItem.BuilderremoveUrlCustomParameters(int index)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.PromotionFeedItem.BuildersetDiscountModifier(PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier value)Enum that modifies the qualification of the discount.PromotionFeedItem.BuildersetDiscountModifierValue(int value)Enum that modifies the qualification of the discount.PromotionFeedItem.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)PromotionFeedItem.BuildersetFinalMobileUrls(int index, java.lang.String value)A list of possible final mobile URLs after all cross domain redirects.PromotionFeedItem.BuildersetFinalUrls(int index, java.lang.String value)A list of possible final URLs after all cross domain redirects.PromotionFeedItem.BuildersetFinalUrlSuffix(java.lang.String value)URL template for appending params to landing page URLs served with parallel tracking.PromotionFeedItem.BuildersetFinalUrlSuffixBytes(com.google.protobuf.ByteString value)URL template for appending params to landing page URLs served with parallel tracking.PromotionFeedItem.BuildersetLanguageCode(java.lang.String value)The language of the promotion.PromotionFeedItem.BuildersetLanguageCodeBytes(com.google.protobuf.ByteString value)The language of the promotion.PromotionFeedItem.BuildersetMoneyAmountOff(Money value)Money amount off for discount in the promotion.PromotionFeedItem.BuildersetMoneyAmountOff(Money.Builder builderForValue)Money amount off for discount in the promotion.PromotionFeedItem.BuildersetOccasion(PromotionExtensionOccasionEnum.PromotionExtensionOccasion value)The occasion the promotion was intended for.PromotionFeedItem.BuildersetOccasionValue(int value)The occasion the promotion was intended for.PromotionFeedItem.BuildersetOrdersOverAmount(Money value)The amount the total order needs to be for the user to be eligible for the promotion.PromotionFeedItem.BuildersetOrdersOverAmount(Money.Builder builderForValue)The amount the total order needs to be for the user to be eligible for the promotion.PromotionFeedItem.BuildersetPercentOff(long value)Percentage off discount in the promotion in micros.PromotionFeedItem.BuildersetPromotionCode(java.lang.String value)A code the user should use in order to be eligible for the promotion.PromotionFeedItem.BuildersetPromotionCodeBytes(com.google.protobuf.ByteString value)A code the user should use in order to be eligible for the promotion.PromotionFeedItem.BuildersetPromotionEndDate(java.lang.String value)Last date when the promotion is eligible to be redeemed.PromotionFeedItem.BuildersetPromotionEndDateBytes(com.google.protobuf.ByteString value)Last date when the promotion is eligible to be redeemed.PromotionFeedItem.BuildersetPromotionStartDate(java.lang.String value)Start date of when the promotion is eligible to be redeemed.PromotionFeedItem.BuildersetPromotionStartDateBytes(com.google.protobuf.ByteString value)Start date of when the promotion is eligible to be redeemed.PromotionFeedItem.BuildersetPromotionTarget(java.lang.String value)A freeform description of what the promotion is targeting.PromotionFeedItem.BuildersetPromotionTargetBytes(com.google.protobuf.ByteString value)A freeform description of what the promotion is targeting.PromotionFeedItem.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)PromotionFeedItem.BuildersetTrackingUrlTemplate(java.lang.String value)URL template for constructing a tracking URL.PromotionFeedItem.BuildersetTrackingUrlTemplateBytes(com.google.protobuf.ByteString value)URL template for constructing a tracking URL.PromotionFeedItem.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PromotionFeedItem.BuildersetUrlCustomParameters(int index, CustomParameter value)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.PromotionFeedItem.BuildersetUrlCustomParameters(int index, CustomParameter.Builder builderForValue)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.-
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<PromotionFeedItem.Builder>
-
clear
public PromotionFeedItem.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<PromotionFeedItem.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<PromotionFeedItem.Builder>
-
getDefaultInstanceForType
public PromotionFeedItem getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PromotionFeedItem build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PromotionFeedItem buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PromotionFeedItem.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<PromotionFeedItem.Builder>
-
setField
public PromotionFeedItem.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<PromotionFeedItem.Builder>
-
clearField
public PromotionFeedItem.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
clearOneof
public PromotionFeedItem.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
setRepeatedField
public PromotionFeedItem.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<PromotionFeedItem.Builder>
-
addRepeatedField
public PromotionFeedItem.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<PromotionFeedItem.Builder>
-
mergeFrom
public PromotionFeedItem.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PromotionFeedItem.Builder>
-
mergeFrom
public PromotionFeedItem.Builder mergeFrom(PromotionFeedItem other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
mergeFrom
public PromotionFeedItem.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<PromotionFeedItem.Builder>- Throws:
java.io.IOException
-
getDiscountTypeCase
public PromotionFeedItem.DiscountTypeCase getDiscountTypeCase()
- Specified by:
getDiscountTypeCasein interfacePromotionFeedItemOrBuilder
-
clearDiscountType
public PromotionFeedItem.Builder clearDiscountType()
-
getPromotionTriggerCase
public PromotionFeedItem.PromotionTriggerCase getPromotionTriggerCase()
- Specified by:
getPromotionTriggerCasein interfacePromotionFeedItemOrBuilder
-
clearPromotionTrigger
public PromotionFeedItem.Builder clearPromotionTrigger()
-
hasPromotionTarget
public boolean hasPromotionTarget()
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Specified by:
hasPromotionTargetin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionTarget field is set.
-
getPromotionTarget
public java.lang.String getPromotionTarget()
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Specified by:
getPromotionTargetin interfacePromotionFeedItemOrBuilder- Returns:
- The promotionTarget.
-
getPromotionTargetBytes
public com.google.protobuf.ByteString getPromotionTargetBytes()
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Specified by:
getPromotionTargetBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionTarget.
-
setPromotionTarget
public PromotionFeedItem.Builder setPromotionTarget(java.lang.String value)
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Parameters:
value- The promotionTarget to set.- Returns:
- This builder for chaining.
-
clearPromotionTarget
public PromotionFeedItem.Builder clearPromotionTarget()
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Returns:
- This builder for chaining.
-
setPromotionTargetBytes
public PromotionFeedItem.Builder setPromotionTargetBytes(com.google.protobuf.ByteString value)
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Parameters:
value- The bytes for promotionTarget to set.- Returns:
- This builder for chaining.
-
getDiscountModifierValue
public int getDiscountModifierValue()
Enum that modifies the qualification of the discount.
.google.ads.googleads.v10.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierValuein interfacePromotionFeedItemOrBuilder- Returns:
- The enum numeric value on the wire for discountModifier.
-
setDiscountModifierValue
public PromotionFeedItem.Builder setDiscountModifierValue(int value)
Enum that modifies the qualification of the discount.
.google.ads.googleads.v10.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Parameters:
value- The enum numeric value on the wire for discountModifier to set.- Returns:
- This builder for chaining.
-
getDiscountModifier
public PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier getDiscountModifier()
Enum that modifies the qualification of the discount.
.google.ads.googleads.v10.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierin interfacePromotionFeedItemOrBuilder- Returns:
- The discountModifier.
-
setDiscountModifier
public PromotionFeedItem.Builder setDiscountModifier(PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier value)
Enum that modifies the qualification of the discount.
.google.ads.googleads.v10.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Parameters:
value- The discountModifier to set.- Returns:
- This builder for chaining.
-
clearDiscountModifier
public PromotionFeedItem.Builder clearDiscountModifier()
Enum that modifies the qualification of the discount.
.google.ads.googleads.v10.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Returns:
- This builder for chaining.
-
hasPromotionStartDate
public boolean hasPromotionStartDate()
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Specified by:
hasPromotionStartDatein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionStartDate field is set.
-
getPromotionStartDate
public java.lang.String getPromotionStartDate()
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Specified by:
getPromotionStartDatein interfacePromotionFeedItemOrBuilder- Returns:
- The promotionStartDate.
-
getPromotionStartDateBytes
public com.google.protobuf.ByteString getPromotionStartDateBytes()
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Specified by:
getPromotionStartDateBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionStartDate.
-
setPromotionStartDate
public PromotionFeedItem.Builder setPromotionStartDate(java.lang.String value)
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Parameters:
value- The promotionStartDate to set.- Returns:
- This builder for chaining.
-
clearPromotionStartDate
public PromotionFeedItem.Builder clearPromotionStartDate()
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Returns:
- This builder for chaining.
-
setPromotionStartDateBytes
public PromotionFeedItem.Builder setPromotionStartDateBytes(com.google.protobuf.ByteString value)
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Parameters:
value- The bytes for promotionStartDate to set.- Returns:
- This builder for chaining.
-
hasPromotionEndDate
public boolean hasPromotionEndDate()
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Specified by:
hasPromotionEndDatein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionEndDate field is set.
-
getPromotionEndDate
public java.lang.String getPromotionEndDate()
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Specified by:
getPromotionEndDatein interfacePromotionFeedItemOrBuilder- Returns:
- The promotionEndDate.
-
getPromotionEndDateBytes
public com.google.protobuf.ByteString getPromotionEndDateBytes()
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Specified by:
getPromotionEndDateBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionEndDate.
-
setPromotionEndDate
public PromotionFeedItem.Builder setPromotionEndDate(java.lang.String value)
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Parameters:
value- The promotionEndDate to set.- Returns:
- This builder for chaining.
-
clearPromotionEndDate
public PromotionFeedItem.Builder clearPromotionEndDate()
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Returns:
- This builder for chaining.
-
setPromotionEndDateBytes
public PromotionFeedItem.Builder setPromotionEndDateBytes(com.google.protobuf.ByteString value)
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Parameters:
value- The bytes for promotionEndDate to set.- Returns:
- This builder for chaining.
-
getOccasionValue
public int getOccasionValue()
The occasion the promotion was intended for. If an occasion is set, the redemption window will need to fall within the date range associated with the occasion.
.google.ads.googleads.v10.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Specified by:
getOccasionValuein interfacePromotionFeedItemOrBuilder- Returns:
- The enum numeric value on the wire for occasion.
-
setOccasionValue
public PromotionFeedItem.Builder setOccasionValue(int value)
The occasion the promotion was intended for. If an occasion is set, the redemption window will need to fall within the date range associated with the occasion.
.google.ads.googleads.v10.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Parameters:
value- The enum numeric value on the wire for occasion to set.- Returns:
- This builder for chaining.
-
getOccasion
public PromotionExtensionOccasionEnum.PromotionExtensionOccasion getOccasion()
The occasion the promotion was intended for. If an occasion is set, the redemption window will need to fall within the date range associated with the occasion.
.google.ads.googleads.v10.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Specified by:
getOccasionin interfacePromotionFeedItemOrBuilder- Returns:
- The occasion.
-
setOccasion
public PromotionFeedItem.Builder setOccasion(PromotionExtensionOccasionEnum.PromotionExtensionOccasion value)
The occasion the promotion was intended for. If an occasion is set, the redemption window will need to fall within the date range associated with the occasion.
.google.ads.googleads.v10.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Parameters:
value- The occasion to set.- Returns:
- This builder for chaining.
-
clearOccasion
public PromotionFeedItem.Builder clearOccasion()
The occasion the promotion was intended for. If an occasion is set, the redemption window will need to fall within the date range associated with the occasion.
.google.ads.googleads.v10.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Returns:
- This builder for chaining.
-
getFinalUrlsList
public com.google.protobuf.ProtocolStringList getFinalUrlsList()
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsListin interfacePromotionFeedItemOrBuilder- Returns:
- A list containing the finalUrls.
-
getFinalUrlsCount
public int getFinalUrlsCount()
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsCountin interfacePromotionFeedItemOrBuilder- Returns:
- The count of finalUrls.
-
getFinalUrls
public java.lang.String getFinalUrls(int index)
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The finalUrls at the given index.
-
getFinalUrlsBytes
public com.google.protobuf.ByteString getFinalUrlsBytes(int index)
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsBytesin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the finalUrls at the given index.
-
setFinalUrls
public PromotionFeedItem.Builder setFinalUrls(int index, java.lang.String value)
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Parameters:
index- The index to set the value at.value- The finalUrls to set.- Returns:
- This builder for chaining.
-
addFinalUrls
public PromotionFeedItem.Builder addFinalUrls(java.lang.String value)
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Parameters:
value- The finalUrls to add.- Returns:
- This builder for chaining.
-
addAllFinalUrls
public PromotionFeedItem.Builder addAllFinalUrls(java.lang.Iterable<java.lang.String> values)
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Parameters:
values- The finalUrls to add.- Returns:
- This builder for chaining.
-
clearFinalUrls
public PromotionFeedItem.Builder clearFinalUrls()
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Returns:
- This builder for chaining.
-
addFinalUrlsBytes
public PromotionFeedItem.Builder addFinalUrlsBytes(com.google.protobuf.ByteString value)
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Parameters:
value- The bytes of the finalUrls to add.- Returns:
- This builder for chaining.
-
getFinalMobileUrlsList
public com.google.protobuf.ProtocolStringList getFinalMobileUrlsList()
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsListin interfacePromotionFeedItemOrBuilder- Returns:
- A list containing the finalMobileUrls.
-
getFinalMobileUrlsCount
public int getFinalMobileUrlsCount()
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsCountin interfacePromotionFeedItemOrBuilder- Returns:
- The count of finalMobileUrls.
-
getFinalMobileUrls
public java.lang.String getFinalMobileUrls(int index)
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The finalMobileUrls at the given index.
-
getFinalMobileUrlsBytes
public com.google.protobuf.ByteString getFinalMobileUrlsBytes(int index)
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsBytesin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the finalMobileUrls at the given index.
-
setFinalMobileUrls
public PromotionFeedItem.Builder setFinalMobileUrls(int index, java.lang.String value)
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Parameters:
index- The index to set the value at.value- The finalMobileUrls to set.- Returns:
- This builder for chaining.
-
addFinalMobileUrls
public PromotionFeedItem.Builder addFinalMobileUrls(java.lang.String value)
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Parameters:
value- The finalMobileUrls to add.- Returns:
- This builder for chaining.
-
addAllFinalMobileUrls
public PromotionFeedItem.Builder addAllFinalMobileUrls(java.lang.Iterable<java.lang.String> values)
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Parameters:
values- The finalMobileUrls to add.- Returns:
- This builder for chaining.
-
clearFinalMobileUrls
public PromotionFeedItem.Builder clearFinalMobileUrls()
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Returns:
- This builder for chaining.
-
addFinalMobileUrlsBytes
public PromotionFeedItem.Builder addFinalMobileUrlsBytes(com.google.protobuf.ByteString value)
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Parameters:
value- The bytes of the finalMobileUrls to add.- Returns:
- This builder for chaining.
-
hasTrackingUrlTemplate
public boolean hasTrackingUrlTemplate()
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Specified by:
hasTrackingUrlTemplatein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the trackingUrlTemplate field is set.
-
getTrackingUrlTemplate
public java.lang.String getTrackingUrlTemplate()
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Specified by:
getTrackingUrlTemplatein interfacePromotionFeedItemOrBuilder- Returns:
- The trackingUrlTemplate.
-
getTrackingUrlTemplateBytes
public com.google.protobuf.ByteString getTrackingUrlTemplateBytes()
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Specified by:
getTrackingUrlTemplateBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for trackingUrlTemplate.
-
setTrackingUrlTemplate
public PromotionFeedItem.Builder setTrackingUrlTemplate(java.lang.String value)
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Parameters:
value- The trackingUrlTemplate to set.- Returns:
- This builder for chaining.
-
clearTrackingUrlTemplate
public PromotionFeedItem.Builder clearTrackingUrlTemplate()
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Returns:
- This builder for chaining.
-
setTrackingUrlTemplateBytes
public PromotionFeedItem.Builder setTrackingUrlTemplateBytes(com.google.protobuf.ByteString value)
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Parameters:
value- The bytes for trackingUrlTemplate to set.- Returns:
- This builder for chaining.
-
getUrlCustomParametersList
public java.util.List<CustomParameter> getUrlCustomParametersList()
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersListin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParametersCount
public int getUrlCustomParametersCount()
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersCountin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParameters
public CustomParameter getUrlCustomParameters(int index)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersin interfacePromotionFeedItemOrBuilder
-
setUrlCustomParameters
public PromotionFeedItem.Builder setUrlCustomParameters(int index, CustomParameter value)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
setUrlCustomParameters
public PromotionFeedItem.Builder setUrlCustomParameters(int index, CustomParameter.Builder builderForValue)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
addUrlCustomParameters
public PromotionFeedItem.Builder addUrlCustomParameters(CustomParameter value)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
addUrlCustomParameters
public PromotionFeedItem.Builder addUrlCustomParameters(int index, CustomParameter value)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
addUrlCustomParameters
public PromotionFeedItem.Builder addUrlCustomParameters(CustomParameter.Builder builderForValue)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
addUrlCustomParameters
public PromotionFeedItem.Builder addUrlCustomParameters(int index, CustomParameter.Builder builderForValue)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
addAllUrlCustomParameters
public PromotionFeedItem.Builder addAllUrlCustomParameters(java.lang.Iterable<? extends CustomParameter> values)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
clearUrlCustomParameters
public PromotionFeedItem.Builder clearUrlCustomParameters()
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
removeUrlCustomParameters
public PromotionFeedItem.Builder removeUrlCustomParameters(int index)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
getUrlCustomParametersBuilder
public CustomParameter.Builder getUrlCustomParametersBuilder(int index)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
getUrlCustomParametersOrBuilder
public CustomParameterOrBuilder getUrlCustomParametersOrBuilder(int index)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersOrBuilderin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParametersOrBuilderList
public java.util.List<? extends CustomParameterOrBuilder> getUrlCustomParametersOrBuilderList()
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersOrBuilderListin interfacePromotionFeedItemOrBuilder
-
addUrlCustomParametersBuilder
public CustomParameter.Builder addUrlCustomParametersBuilder()
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
addUrlCustomParametersBuilder
public CustomParameter.Builder addUrlCustomParametersBuilder(int index)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
getUrlCustomParametersBuilderList
public java.util.List<CustomParameter.Builder> getUrlCustomParametersBuilderList()
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;
-
hasFinalUrlSuffix
public boolean hasFinalUrlSuffix()
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Specified by:
hasFinalUrlSuffixin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the finalUrlSuffix field is set.
-
getFinalUrlSuffix
public java.lang.String getFinalUrlSuffix()
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Specified by:
getFinalUrlSuffixin interfacePromotionFeedItemOrBuilder- Returns:
- The finalUrlSuffix.
-
getFinalUrlSuffixBytes
public com.google.protobuf.ByteString getFinalUrlSuffixBytes()
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Specified by:
getFinalUrlSuffixBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for finalUrlSuffix.
-
setFinalUrlSuffix
public PromotionFeedItem.Builder setFinalUrlSuffix(java.lang.String value)
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Parameters:
value- The finalUrlSuffix to set.- Returns:
- This builder for chaining.
-
clearFinalUrlSuffix
public PromotionFeedItem.Builder clearFinalUrlSuffix()
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Returns:
- This builder for chaining.
-
setFinalUrlSuffixBytes
public PromotionFeedItem.Builder setFinalUrlSuffixBytes(com.google.protobuf.ByteString value)
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Parameters:
value- The bytes for finalUrlSuffix to set.- Returns:
- This builder for chaining.
-
hasLanguageCode
public boolean hasLanguageCode()
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Specified by:
hasLanguageCodein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the languageCode field is set.
-
getLanguageCode
public java.lang.String getLanguageCode()
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Specified by:
getLanguageCodein interfacePromotionFeedItemOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Specified by:
getLanguageCodeBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
public PromotionFeedItem.Builder setLanguageCode(java.lang.String value)
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
public PromotionFeedItem.Builder clearLanguageCode()
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
public PromotionFeedItem.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
hasPercentOff
public boolean hasPercentOff()
Percentage off discount in the promotion in micros. One million is equivalent to one percent. Either this or money_off_amount is required.
int64 percent_off = 17;- Specified by:
hasPercentOffin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the percentOff field is set.
-
getPercentOff
public long getPercentOff()
Percentage off discount in the promotion in micros. One million is equivalent to one percent. Either this or money_off_amount is required.
int64 percent_off = 17;- Specified by:
getPercentOffin interfacePromotionFeedItemOrBuilder- Returns:
- The percentOff.
-
setPercentOff
public PromotionFeedItem.Builder setPercentOff(long value)
Percentage off discount in the promotion in micros. One million is equivalent to one percent. Either this or money_off_amount is required.
int64 percent_off = 17;- Parameters:
value- The percentOff to set.- Returns:
- This builder for chaining.
-
clearPercentOff
public PromotionFeedItem.Builder clearPercentOff()
Percentage off discount in the promotion in micros. One million is equivalent to one percent. Either this or money_off_amount is required.
int64 percent_off = 17;- Returns:
- This builder for chaining.
-
hasMoneyAmountOff
public boolean hasMoneyAmountOff()
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;- Specified by:
hasMoneyAmountOffin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the moneyAmountOff field is set.
-
getMoneyAmountOff
public Money getMoneyAmountOff()
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;- Specified by:
getMoneyAmountOffin interfacePromotionFeedItemOrBuilder- Returns:
- The moneyAmountOff.
-
setMoneyAmountOff
public PromotionFeedItem.Builder setMoneyAmountOff(Money value)
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;
-
setMoneyAmountOff
public PromotionFeedItem.Builder setMoneyAmountOff(Money.Builder builderForValue)
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;
-
mergeMoneyAmountOff
public PromotionFeedItem.Builder mergeMoneyAmountOff(Money value)
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;
-
clearMoneyAmountOff
public PromotionFeedItem.Builder clearMoneyAmountOff()
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;
-
getMoneyAmountOffBuilder
public Money.Builder getMoneyAmountOffBuilder()
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;
-
getMoneyAmountOffOrBuilder
public MoneyOrBuilder getMoneyAmountOffOrBuilder()
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;- Specified by:
getMoneyAmountOffOrBuilderin interfacePromotionFeedItemOrBuilder
-
hasPromotionCode
public boolean hasPromotionCode()
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Specified by:
hasPromotionCodein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionCode field is set.
-
getPromotionCode
public java.lang.String getPromotionCode()
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Specified by:
getPromotionCodein interfacePromotionFeedItemOrBuilder- Returns:
- The promotionCode.
-
getPromotionCodeBytes
public com.google.protobuf.ByteString getPromotionCodeBytes()
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Specified by:
getPromotionCodeBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionCode.
-
setPromotionCode
public PromotionFeedItem.Builder setPromotionCode(java.lang.String value)
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Parameters:
value- The promotionCode to set.- Returns:
- This builder for chaining.
-
clearPromotionCode
public PromotionFeedItem.Builder clearPromotionCode()
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Returns:
- This builder for chaining.
-
setPromotionCodeBytes
public PromotionFeedItem.Builder setPromotionCodeBytes(com.google.protobuf.ByteString value)
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Parameters:
value- The bytes for promotionCode to set.- Returns:
- This builder for chaining.
-
hasOrdersOverAmount
public boolean hasOrdersOverAmount()
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;- Specified by:
hasOrdersOverAmountin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the ordersOverAmount field is set.
-
getOrdersOverAmount
public Money getOrdersOverAmount()
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;- Specified by:
getOrdersOverAmountin interfacePromotionFeedItemOrBuilder- Returns:
- The ordersOverAmount.
-
setOrdersOverAmount
public PromotionFeedItem.Builder setOrdersOverAmount(Money value)
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;
-
setOrdersOverAmount
public PromotionFeedItem.Builder setOrdersOverAmount(Money.Builder builderForValue)
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;
-
mergeOrdersOverAmount
public PromotionFeedItem.Builder mergeOrdersOverAmount(Money value)
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;
-
clearOrdersOverAmount
public PromotionFeedItem.Builder clearOrdersOverAmount()
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;
-
getOrdersOverAmountBuilder
public Money.Builder getOrdersOverAmountBuilder()
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;
-
getOrdersOverAmountOrBuilder
public MoneyOrBuilder getOrdersOverAmountOrBuilder()
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;- Specified by:
getOrdersOverAmountOrBuilderin interfacePromotionFeedItemOrBuilder
-
setUnknownFields
public final PromotionFeedItem.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
mergeUnknownFields
public final PromotionFeedItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
-