Class PromotionAsset.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
- com.google.ads.googleads.v10.common.PromotionAsset.Builder
-
- All Implemented Interfaces:
PromotionAssetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- PromotionAsset
public static final class PromotionAsset.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder> implements PromotionAssetOrBuilder
A Promotion asset.
Protobuf typegoogle.ads.googleads.v10.common.PromotionAsset
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PromotionAsset.BuilderaddAdScheduleTargets(int index, AdScheduleInfo value)List of non-overlapping schedules specifying all time intervals for which the asset may serve.PromotionAsset.BuilderaddAdScheduleTargets(int index, AdScheduleInfo.Builder builderForValue)List of non-overlapping schedules specifying all time intervals for which the asset may serve.PromotionAsset.BuilderaddAdScheduleTargets(AdScheduleInfo value)List of non-overlapping schedules specifying all time intervals for which the asset may serve.PromotionAsset.BuilderaddAdScheduleTargets(AdScheduleInfo.Builder builderForValue)List of non-overlapping schedules specifying all time intervals for which the asset may serve.AdScheduleInfo.BuilderaddAdScheduleTargetsBuilder()List of non-overlapping schedules specifying all time intervals for which the asset may serve.AdScheduleInfo.BuilderaddAdScheduleTargetsBuilder(int index)List of non-overlapping schedules specifying all time intervals for which the asset may serve.PromotionAsset.BuilderaddAllAdScheduleTargets(java.lang.Iterable<? extends AdScheduleInfo> values)List of non-overlapping schedules specifying all time intervals for which the asset may serve.PromotionAsset.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)PromotionAssetbuild()PromotionAssetbuildPartial()PromotionAsset.Builderclear()PromotionAsset.BuilderclearAdScheduleTargets()List of non-overlapping schedules specifying all time intervals for which the asset may serve.PromotionAsset.BuilderclearDiscountModifier()A modifier for qualification of the discount.PromotionAsset.BuilderclearDiscountType()PromotionAsset.BuilderclearEndDate()Last date of when this asset is effective and still serving, in yyyy-MM-dd format.PromotionAsset.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PromotionAsset.BuilderclearLanguageCode()The language of the promotion.PromotionAsset.BuilderclearMoneyAmountOff()Money amount off for discount in the promotion.PromotionAsset.BuilderclearOccasion()The occasion the promotion was intended for.PromotionAsset.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PromotionAsset.BuilderclearOrdersOverAmount()The amount the total order needs to be for the user to be eligible for the promotion.PromotionAsset.BuilderclearPercentOff()Percentage off discount in the promotion.PromotionAsset.BuilderclearPromotionCode()A code the user should use in order to be eligible for the promotion.PromotionAsset.BuilderclearPromotionTarget()Required.PromotionAsset.BuilderclearPromotionTrigger()PromotionAsset.BuilderclearRedemptionEndDate()Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.PromotionAsset.BuilderclearRedemptionStartDate()Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.PromotionAsset.BuilderclearStartDate()Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.PromotionAsset.Builderclone()AdScheduleInfogetAdScheduleTargets(int index)List of non-overlapping schedules specifying all time intervals for which the asset may serve.AdScheduleInfo.BuildergetAdScheduleTargetsBuilder(int index)List of non-overlapping schedules specifying all time intervals for which the asset may serve.java.util.List<AdScheduleInfo.Builder>getAdScheduleTargetsBuilderList()List of non-overlapping schedules specifying all time intervals for which the asset may serve.intgetAdScheduleTargetsCount()List of non-overlapping schedules specifying all time intervals for which the asset may serve.java.util.List<AdScheduleInfo>getAdScheduleTargetsList()List of non-overlapping schedules specifying all time intervals for which the asset may serve.AdScheduleInfoOrBuildergetAdScheduleTargetsOrBuilder(int index)List of non-overlapping schedules specifying all time intervals for which the asset may serve.java.util.List<? extends AdScheduleInfoOrBuilder>getAdScheduleTargetsOrBuilderList()List of non-overlapping schedules specifying all time intervals for which the asset may serve.PromotionAssetgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifiergetDiscountModifier()A modifier for qualification of the discount.intgetDiscountModifierValue()A modifier for qualification of the discount.PromotionAsset.DiscountTypeCasegetDiscountTypeCase()java.lang.StringgetEndDate()Last date of when this asset is effective and still serving, in yyyy-MM-dd format.com.google.protobuf.ByteStringgetEndDateBytes()Last date of when this asset is effective and still serving, in yyyy-MM-dd format.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.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.StringgetPromotionTarget()Required.com.google.protobuf.ByteStringgetPromotionTargetBytes()Required.PromotionAsset.PromotionTriggerCasegetPromotionTriggerCase()java.lang.StringgetRedemptionEndDate()Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.com.google.protobuf.ByteStringgetRedemptionEndDateBytes()Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.java.lang.StringgetRedemptionStartDate()Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.com.google.protobuf.ByteStringgetRedemptionStartDateBytes()Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.java.lang.StringgetStartDate()Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.com.google.protobuf.ByteStringgetStartDateBytes()Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.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.booleanhasPromotionCode()A code the user should use in order to be eligible for the promotion.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PromotionAsset.BuildermergeFrom(PromotionAsset other)PromotionAsset.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PromotionAsset.BuildermergeFrom(com.google.protobuf.Message other)PromotionAsset.BuildermergeMoneyAmountOff(Money value)Money amount off for discount in the promotion.PromotionAsset.BuildermergeOrdersOverAmount(Money value)The amount the total order needs to be for the user to be eligible for the promotion.PromotionAsset.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PromotionAsset.BuilderremoveAdScheduleTargets(int index)List of non-overlapping schedules specifying all time intervals for which the asset may serve.PromotionAsset.BuildersetAdScheduleTargets(int index, AdScheduleInfo value)List of non-overlapping schedules specifying all time intervals for which the asset may serve.PromotionAsset.BuildersetAdScheduleTargets(int index, AdScheduleInfo.Builder builderForValue)List of non-overlapping schedules specifying all time intervals for which the asset may serve.PromotionAsset.BuildersetDiscountModifier(PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier value)A modifier for qualification of the discount.PromotionAsset.BuildersetDiscountModifierValue(int value)A modifier for qualification of the discount.PromotionAsset.BuildersetEndDate(java.lang.String value)Last date of when this asset is effective and still serving, in yyyy-MM-dd format.PromotionAsset.BuildersetEndDateBytes(com.google.protobuf.ByteString value)Last date of when this asset is effective and still serving, in yyyy-MM-dd format.PromotionAsset.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)PromotionAsset.BuildersetLanguageCode(java.lang.String value)The language of the promotion.PromotionAsset.BuildersetLanguageCodeBytes(com.google.protobuf.ByteString value)The language of the promotion.PromotionAsset.BuildersetMoneyAmountOff(Money value)Money amount off for discount in the promotion.PromotionAsset.BuildersetMoneyAmountOff(Money.Builder builderForValue)Money amount off for discount in the promotion.PromotionAsset.BuildersetOccasion(PromotionExtensionOccasionEnum.PromotionExtensionOccasion value)The occasion the promotion was intended for.PromotionAsset.BuildersetOccasionValue(int value)The occasion the promotion was intended for.PromotionAsset.BuildersetOrdersOverAmount(Money value)The amount the total order needs to be for the user to be eligible for the promotion.PromotionAsset.BuildersetOrdersOverAmount(Money.Builder builderForValue)The amount the total order needs to be for the user to be eligible for the promotion.PromotionAsset.BuildersetPercentOff(long value)Percentage off discount in the promotion.PromotionAsset.BuildersetPromotionCode(java.lang.String value)A code the user should use in order to be eligible for the promotion.PromotionAsset.BuildersetPromotionCodeBytes(com.google.protobuf.ByteString value)A code the user should use in order to be eligible for the promotion.PromotionAsset.BuildersetPromotionTarget(java.lang.String value)Required.PromotionAsset.BuildersetPromotionTargetBytes(com.google.protobuf.ByteString value)Required.PromotionAsset.BuildersetRedemptionEndDate(java.lang.String value)Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.PromotionAsset.BuildersetRedemptionEndDateBytes(com.google.protobuf.ByteString value)Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.PromotionAsset.BuildersetRedemptionStartDate(java.lang.String value)Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.PromotionAsset.BuildersetRedemptionStartDateBytes(com.google.protobuf.ByteString value)Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.PromotionAsset.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)PromotionAsset.BuildersetStartDate(java.lang.String value)Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.PromotionAsset.BuildersetStartDateBytes(com.google.protobuf.ByteString value)Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.PromotionAsset.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
clear
public PromotionAsset.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<PromotionAsset.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<PromotionAsset.Builder>
-
getDefaultInstanceForType
public PromotionAsset getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PromotionAsset build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PromotionAsset buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PromotionAsset.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<PromotionAsset.Builder>
-
setField
public PromotionAsset.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<PromotionAsset.Builder>
-
clearField
public PromotionAsset.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
clearOneof
public PromotionAsset.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
setRepeatedField
public PromotionAsset.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<PromotionAsset.Builder>
-
addRepeatedField
public PromotionAsset.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<PromotionAsset.Builder>
-
mergeFrom
public PromotionAsset.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PromotionAsset.Builder>
-
mergeFrom
public PromotionAsset.Builder mergeFrom(PromotionAsset other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
mergeFrom
public PromotionAsset.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<PromotionAsset.Builder>- Throws:
java.io.IOException
-
getDiscountTypeCase
public PromotionAsset.DiscountTypeCase getDiscountTypeCase()
- Specified by:
getDiscountTypeCasein interfacePromotionAssetOrBuilder
-
clearDiscountType
public PromotionAsset.Builder clearDiscountType()
-
getPromotionTriggerCase
public PromotionAsset.PromotionTriggerCase getPromotionTriggerCase()
- Specified by:
getPromotionTriggerCasein interfacePromotionAssetOrBuilder
-
clearPromotionTrigger
public PromotionAsset.Builder clearPromotionTrigger()
-
getPromotionTarget
public java.lang.String getPromotionTarget()
Required. A freeform description of what the promotion is targeting.
string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPromotionTargetin interfacePromotionAssetOrBuilder- Returns:
- The promotionTarget.
-
getPromotionTargetBytes
public com.google.protobuf.ByteString getPromotionTargetBytes()
Required. A freeform description of what the promotion is targeting.
string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPromotionTargetBytesin interfacePromotionAssetOrBuilder- Returns:
- The bytes for promotionTarget.
-
setPromotionTarget
public PromotionAsset.Builder setPromotionTarget(java.lang.String value)
Required. A freeform description of what the promotion is targeting.
string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The promotionTarget to set.- Returns:
- This builder for chaining.
-
clearPromotionTarget
public PromotionAsset.Builder clearPromotionTarget()
Required. A freeform description of what the promotion is targeting.
string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setPromotionTargetBytes
public PromotionAsset.Builder setPromotionTargetBytes(com.google.protobuf.ByteString value)
Required. A freeform description of what the promotion is targeting.
string promotion_target = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for promotionTarget to set.- Returns:
- This builder for chaining.
-
getDiscountModifierValue
public int getDiscountModifierValue()
A modifier for qualification of the discount.
.google.ads.googleads.v10.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierValuein interfacePromotionAssetOrBuilder- Returns:
- The enum numeric value on the wire for discountModifier.
-
setDiscountModifierValue
public PromotionAsset.Builder setDiscountModifierValue(int value)
A modifier for 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()
A modifier for qualification of the discount.
.google.ads.googleads.v10.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierin interfacePromotionAssetOrBuilder- Returns:
- The discountModifier.
-
setDiscountModifier
public PromotionAsset.Builder setDiscountModifier(PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier value)
A modifier for 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 PromotionAsset.Builder clearDiscountModifier()
A modifier for qualification of the discount.
.google.ads.googleads.v10.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Returns:
- This builder for chaining.
-
getRedemptionStartDate
public java.lang.String getRedemptionStartDate()
Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.
string redemption_start_date = 7;- Specified by:
getRedemptionStartDatein interfacePromotionAssetOrBuilder- Returns:
- The redemptionStartDate.
-
getRedemptionStartDateBytes
public com.google.protobuf.ByteString getRedemptionStartDateBytes()
Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.
string redemption_start_date = 7;- Specified by:
getRedemptionStartDateBytesin interfacePromotionAssetOrBuilder- Returns:
- The bytes for redemptionStartDate.
-
setRedemptionStartDate
public PromotionAsset.Builder setRedemptionStartDate(java.lang.String value)
Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.
string redemption_start_date = 7;- Parameters:
value- The redemptionStartDate to set.- Returns:
- This builder for chaining.
-
clearRedemptionStartDate
public PromotionAsset.Builder clearRedemptionStartDate()
Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.
string redemption_start_date = 7;- Returns:
- This builder for chaining.
-
setRedemptionStartDateBytes
public PromotionAsset.Builder setRedemptionStartDateBytes(com.google.protobuf.ByteString value)
Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.
string redemption_start_date = 7;- Parameters:
value- The bytes for redemptionStartDate to set.- Returns:
- This builder for chaining.
-
getRedemptionEndDate
public java.lang.String getRedemptionEndDate()
Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.
string redemption_end_date = 8;- Specified by:
getRedemptionEndDatein interfacePromotionAssetOrBuilder- Returns:
- The redemptionEndDate.
-
getRedemptionEndDateBytes
public com.google.protobuf.ByteString getRedemptionEndDateBytes()
Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.
string redemption_end_date = 8;- Specified by:
getRedemptionEndDateBytesin interfacePromotionAssetOrBuilder- Returns:
- The bytes for redemptionEndDate.
-
setRedemptionEndDate
public PromotionAsset.Builder setRedemptionEndDate(java.lang.String value)
Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.
string redemption_end_date = 8;- Parameters:
value- The redemptionEndDate to set.- Returns:
- This builder for chaining.
-
clearRedemptionEndDate
public PromotionAsset.Builder clearRedemptionEndDate()
Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.
string redemption_end_date = 8;- Returns:
- This builder for chaining.
-
setRedemptionEndDateBytes
public PromotionAsset.Builder setRedemptionEndDateBytes(com.google.protobuf.ByteString value)
Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.
string redemption_end_date = 8;- Parameters:
value- The bytes for redemptionEndDate 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 interfacePromotionAssetOrBuilder- Returns:
- The enum numeric value on the wire for occasion.
-
setOccasionValue
public PromotionAsset.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 interfacePromotionAssetOrBuilder- Returns:
- The occasion.
-
setOccasion
public PromotionAsset.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 PromotionAsset.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.
-
getLanguageCode
public java.lang.String getLanguageCode()
The language of the promotion. Represented as BCP 47 language tag.
string language_code = 10;- Specified by:
getLanguageCodein interfacePromotionAssetOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()
The language of the promotion. Represented as BCP 47 language tag.
string language_code = 10;- Specified by:
getLanguageCodeBytesin interfacePromotionAssetOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
public PromotionAsset.Builder setLanguageCode(java.lang.String value)
The language of the promotion. Represented as BCP 47 language tag.
string language_code = 10;- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
public PromotionAsset.Builder clearLanguageCode()
The language of the promotion. Represented as BCP 47 language tag.
string language_code = 10;- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
public PromotionAsset.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
The language of the promotion. Represented as BCP 47 language tag.
string language_code = 10;- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
getStartDate
public java.lang.String getStartDate()
Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.
string start_date = 11;- Specified by:
getStartDatein interfacePromotionAssetOrBuilder- Returns:
- The startDate.
-
getStartDateBytes
public com.google.protobuf.ByteString getStartDateBytes()
Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.
string start_date = 11;- Specified by:
getStartDateBytesin interfacePromotionAssetOrBuilder- Returns:
- The bytes for startDate.
-
setStartDate
public PromotionAsset.Builder setStartDate(java.lang.String value)
Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.
string start_date = 11;- Parameters:
value- The startDate to set.- Returns:
- This builder for chaining.
-
clearStartDate
public PromotionAsset.Builder clearStartDate()
Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.
string start_date = 11;- Returns:
- This builder for chaining.
-
setStartDateBytes
public PromotionAsset.Builder setStartDateBytes(com.google.protobuf.ByteString value)
Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.
string start_date = 11;- Parameters:
value- The bytes for startDate to set.- Returns:
- This builder for chaining.
-
getEndDate
public java.lang.String getEndDate()
Last date of when this asset is effective and still serving, in yyyy-MM-dd format.
string end_date = 12;- Specified by:
getEndDatein interfacePromotionAssetOrBuilder- Returns:
- The endDate.
-
getEndDateBytes
public com.google.protobuf.ByteString getEndDateBytes()
Last date of when this asset is effective and still serving, in yyyy-MM-dd format.
string end_date = 12;- Specified by:
getEndDateBytesin interfacePromotionAssetOrBuilder- Returns:
- The bytes for endDate.
-
setEndDate
public PromotionAsset.Builder setEndDate(java.lang.String value)
Last date of when this asset is effective and still serving, in yyyy-MM-dd format.
string end_date = 12;- Parameters:
value- The endDate to set.- Returns:
- This builder for chaining.
-
clearEndDate
public PromotionAsset.Builder clearEndDate()
Last date of when this asset is effective and still serving, in yyyy-MM-dd format.
string end_date = 12;- Returns:
- This builder for chaining.
-
setEndDateBytes
public PromotionAsset.Builder setEndDateBytes(com.google.protobuf.ByteString value)
Last date of when this asset is effective and still serving, in yyyy-MM-dd format.
string end_date = 12;- Parameters:
value- The bytes for endDate to set.- Returns:
- This builder for chaining.
-
getAdScheduleTargetsList
public java.util.List<AdScheduleInfo> getAdScheduleTargetsList()
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;- Specified by:
getAdScheduleTargetsListin interfacePromotionAssetOrBuilder
-
getAdScheduleTargetsCount
public int getAdScheduleTargetsCount()
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;- Specified by:
getAdScheduleTargetsCountin interfacePromotionAssetOrBuilder
-
getAdScheduleTargets
public AdScheduleInfo getAdScheduleTargets(int index)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;- Specified by:
getAdScheduleTargetsin interfacePromotionAssetOrBuilder
-
setAdScheduleTargets
public PromotionAsset.Builder setAdScheduleTargets(int index, AdScheduleInfo value)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
setAdScheduleTargets
public PromotionAsset.Builder setAdScheduleTargets(int index, AdScheduleInfo.Builder builderForValue)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
addAdScheduleTargets
public PromotionAsset.Builder addAdScheduleTargets(AdScheduleInfo value)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
addAdScheduleTargets
public PromotionAsset.Builder addAdScheduleTargets(int index, AdScheduleInfo value)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
addAdScheduleTargets
public PromotionAsset.Builder addAdScheduleTargets(AdScheduleInfo.Builder builderForValue)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
addAdScheduleTargets
public PromotionAsset.Builder addAdScheduleTargets(int index, AdScheduleInfo.Builder builderForValue)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
addAllAdScheduleTargets
public PromotionAsset.Builder addAllAdScheduleTargets(java.lang.Iterable<? extends AdScheduleInfo> values)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
clearAdScheduleTargets
public PromotionAsset.Builder clearAdScheduleTargets()
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
removeAdScheduleTargets
public PromotionAsset.Builder removeAdScheduleTargets(int index)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
getAdScheduleTargetsBuilder
public AdScheduleInfo.Builder getAdScheduleTargetsBuilder(int index)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
getAdScheduleTargetsOrBuilder
public AdScheduleInfoOrBuilder getAdScheduleTargetsOrBuilder(int index)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;- Specified by:
getAdScheduleTargetsOrBuilderin interfacePromotionAssetOrBuilder
-
getAdScheduleTargetsOrBuilderList
public java.util.List<? extends AdScheduleInfoOrBuilder> getAdScheduleTargetsOrBuilderList()
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;- Specified by:
getAdScheduleTargetsOrBuilderListin interfacePromotionAssetOrBuilder
-
addAdScheduleTargetsBuilder
public AdScheduleInfo.Builder addAdScheduleTargetsBuilder()
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
addAdScheduleTargetsBuilder
public AdScheduleInfo.Builder addAdScheduleTargetsBuilder(int index)
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
getAdScheduleTargetsBuilderList
public java.util.List<AdScheduleInfo.Builder> getAdScheduleTargetsBuilderList()
List of non-overlapping schedules specifying all time intervals for which the asset may serve. There can be a maximum of 6 schedules per day, 42 in total.
repeated .google.ads.googleads.v10.common.AdScheduleInfo ad_schedule_targets = 13;
-
hasPercentOff
public boolean hasPercentOff()
Percentage off discount in the promotion. 1,000,000 = 100%. Either this or money_amount_off is required.
int64 percent_off = 3;- Specified by:
hasPercentOffin interfacePromotionAssetOrBuilder- Returns:
- Whether the percentOff field is set.
-
getPercentOff
public long getPercentOff()
Percentage off discount in the promotion. 1,000,000 = 100%. Either this or money_amount_off is required.
int64 percent_off = 3;- Specified by:
getPercentOffin interfacePromotionAssetOrBuilder- Returns:
- The percentOff.
-
setPercentOff
public PromotionAsset.Builder setPercentOff(long value)
Percentage off discount in the promotion. 1,000,000 = 100%. Either this or money_amount_off is required.
int64 percent_off = 3;- Parameters:
value- The percentOff to set.- Returns:
- This builder for chaining.
-
clearPercentOff
public PromotionAsset.Builder clearPercentOff()
Percentage off discount in the promotion. 1,000,000 = 100%. Either this or money_amount_off is required.
int64 percent_off = 3;- 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 interfacePromotionAssetOrBuilder- 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 interfacePromotionAssetOrBuilder- Returns:
- The moneyAmountOff.
-
setMoneyAmountOff
public PromotionAsset.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 PromotionAsset.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 PromotionAsset.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 PromotionAsset.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 interfacePromotionAssetOrBuilder
-
hasPromotionCode
public boolean hasPromotionCode()
A code the user should use in order to be eligible for the promotion.
string promotion_code = 5;- Specified by:
hasPromotionCodein interfacePromotionAssetOrBuilder- 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 = 5;- Specified by:
getPromotionCodein interfacePromotionAssetOrBuilder- 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 = 5;- Specified by:
getPromotionCodeBytesin interfacePromotionAssetOrBuilder- Returns:
- The bytes for promotionCode.
-
setPromotionCode
public PromotionAsset.Builder setPromotionCode(java.lang.String value)
A code the user should use in order to be eligible for the promotion.
string promotion_code = 5;- Parameters:
value- The promotionCode to set.- Returns:
- This builder for chaining.
-
clearPromotionCode
public PromotionAsset.Builder clearPromotionCode()
A code the user should use in order to be eligible for the promotion.
string promotion_code = 5;- Returns:
- This builder for chaining.
-
setPromotionCodeBytes
public PromotionAsset.Builder setPromotionCodeBytes(com.google.protobuf.ByteString value)
A code the user should use in order to be eligible for the promotion.
string promotion_code = 5;- 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 interfacePromotionAssetOrBuilder- 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 interfacePromotionAssetOrBuilder- Returns:
- The ordersOverAmount.
-
setOrdersOverAmount
public PromotionAsset.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 PromotionAsset.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 PromotionAsset.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 PromotionAsset.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 interfacePromotionAssetOrBuilder
-
setUnknownFields
public final PromotionAsset.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
mergeUnknownFields
public final PromotionAsset.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
-