Class PromotionAsset.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
com.google.ads.googleads.v18.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,Cloneable
- Enclosing class:
- PromotionAsset
public static final class PromotionAsset.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
implements PromotionAssetOrBuilder
A Promotion asset.Protobuf type
google.ads.googleads.v18.common.PromotionAsset-
Method Summary
Modifier and TypeMethodDescriptionaddAdScheduleTargets(int index, AdScheduleInfo value) List of non-overlapping schedules specifying all time intervals for which the asset may serve.addAdScheduleTargets(int index, AdScheduleInfo.Builder builderForValue) List of non-overlapping schedules specifying all time intervals for which the asset may serve.List of non-overlapping schedules specifying all time intervals for which the asset may serve.addAdScheduleTargets(AdScheduleInfo.Builder builderForValue) List of non-overlapping schedules specifying all time intervals for which the asset may serve.List of non-overlapping schedules specifying all time intervals for which the asset may serve.addAdScheduleTargetsBuilder(int index) List of non-overlapping schedules specifying all time intervals for which the asset may serve.addAllAdScheduleTargets(Iterable<? extends AdScheduleInfo> values) List of non-overlapping schedules specifying all time intervals for which the asset may serve.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()List of non-overlapping schedules specifying all time intervals for which the asset may serve.A modifier for qualification of the discount.Last date of when this asset is effective and still serving, in yyyy-MM-dd format.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The language of the promotion.Money amount off for discount in the promotion.The occasion the promotion was intended for.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The amount the total order needs to be for the user to be eligible for the promotion.Percentage off discount in the promotion.A code the user should use in order to be eligible for the promotion.Required.Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.clone()getAdScheduleTargets(int index) List of non-overlapping schedules specifying all time intervals for which the asset may serve.getAdScheduleTargetsBuilder(int index) List of non-overlapping schedules specifying all time intervals for which the asset may serve.List of non-overlapping schedules specifying all time intervals for which the asset may serve.intList of non-overlapping schedules specifying all time intervals for which the asset may serve.List of non-overlapping schedules specifying all time intervals for which the asset may serve.getAdScheduleTargetsOrBuilder(int index) List of non-overlapping schedules specifying all time intervals for which the asset may serve.List<? extends AdScheduleInfoOrBuilder>List of non-overlapping schedules specifying all time intervals for which the asset may serve.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA modifier for qualification of the discount.intA modifier for qualification of the discount.Last date of when this asset is effective and still serving, in yyyy-MM-dd format.com.google.protobuf.ByteStringLast date of when this asset is effective and still serving, in yyyy-MM-dd format.The language of the promotion.com.google.protobuf.ByteStringThe language of the promotion.Money amount off for discount in the promotion.Money amount off for discount in the promotion.Money amount off for discount in the promotion.The occasion the promotion was intended for.intThe occasion the promotion was intended for.The amount the total order needs to be for the user to be eligible for the promotion.The amount the total order needs to be for the user to be eligible for the promotion.The amount the total order needs to be for the user to be eligible for the promotion.longPercentage off discount in the promotion.A code the user should use in order to be eligible for the promotion.com.google.protobuf.ByteStringA code the user should use in order to be eligible for the promotion.Required.com.google.protobuf.ByteStringRequired.Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.com.google.protobuf.ByteStringLast date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.com.google.protobuf.ByteStringStart date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.com.google.protobuf.ByteStringStart date of when this asset is effective and can begin serving, in yyyy-MM-dd format.booleanMoney amount off for discount in the promotion.booleanThe amount the total order needs to be for the user to be eligible for the promotion.booleanPercentage off discount in the promotion.booleanA code the user should use in order to be eligible for the promotion.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(PromotionAsset other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMoneyAmountOff(Money value) Money amount off for discount in the promotion.mergeOrdersOverAmount(Money value) The amount the total order needs to be for the user to be eligible for the promotion.final PromotionAsset.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeAdScheduleTargets(int index) List of non-overlapping schedules specifying all time intervals for which the asset may serve.setAdScheduleTargets(int index, AdScheduleInfo value) List of non-overlapping schedules specifying all time intervals for which the asset may serve.setAdScheduleTargets(int index, AdScheduleInfo.Builder builderForValue) List of non-overlapping schedules specifying all time intervals for which the asset may serve.setDiscountModifier(PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier value) A modifier for qualification of the discount.setDiscountModifierValue(int value) A modifier for qualification of the discount.setEndDate(String value) Last date of when this asset is effective and still serving, in yyyy-MM-dd format.setEndDateBytes(com.google.protobuf.ByteString value) Last date of when this asset is effective and still serving, in yyyy-MM-dd format.setLanguageCode(String value) The language of the promotion.setLanguageCodeBytes(com.google.protobuf.ByteString value) The language of the promotion.setMoneyAmountOff(Money value) Money amount off for discount in the promotion.setMoneyAmountOff(Money.Builder builderForValue) Money amount off for discount in the promotion.The occasion the promotion was intended for.setOccasionValue(int value) The occasion the promotion was intended for.setOrdersOverAmount(Money value) The amount the total order needs to be for the user to be eligible for the promotion.setOrdersOverAmount(Money.Builder builderForValue) The amount the total order needs to be for the user to be eligible for the promotion.setPercentOff(long value) Percentage off discount in the promotion.setPromotionCode(String value) A code the user should use in order to be eligible for the promotion.setPromotionCodeBytes(com.google.protobuf.ByteString value) A code the user should use in order to be eligible for the promotion.setPromotionTarget(String value) Required.setPromotionTargetBytes(com.google.protobuf.ByteString value) Required.setRedemptionEndDate(String value) Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.setRedemptionEndDateBytes(com.google.protobuf.ByteString value) Last date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.setRedemptionStartDate(String value) Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.setRedemptionStartDateBytes(com.google.protobuf.ByteString value) Start date of when the promotion is eligible to be redeemed, in yyyy-MM-dd format.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartDate(String value) Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.setStartDateBytes(com.google.protobuf.ByteString value) Start date of when this asset is effective and can begin serving, in yyyy-MM-dd format.final 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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
setField
public PromotionAsset.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PromotionAsset.Builder>
-
mergeFrom
-
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 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:
IOException
-
getDiscountTypeCase
- Specified by:
getDiscountTypeCasein interfacePromotionAssetOrBuilder
-
clearDiscountType
-
getPromotionTriggerCase
- Specified by:
getPromotionTriggerCasein interfacePromotionAssetOrBuilder
-
clearPromotionTrigger
-
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
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
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
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.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierValuein interfacePromotionAssetOrBuilder- Returns:
- The enum numeric value on the wire for discountModifier.
-
setDiscountModifierValue
A modifier for qualification of the discount.
.google.ads.googleads.v18.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.v18.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.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Parameters:
value- The discountModifier to set.- Returns:
- This builder for chaining.
-
clearDiscountModifier
A modifier for qualification of the discount.
.google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Returns:
- This builder for chaining.
-
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
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
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
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
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
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
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
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.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Specified by:
getOccasionValuein interfacePromotionAssetOrBuilder- Returns:
- The enum numeric value on the wire for occasion.
-
setOccasionValue
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.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Parameters:
value- The enum numeric value on the wire for occasion to set.- Returns:
- This builder for chaining.
-
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.v18.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.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Parameters:
value- The occasion to set.- Returns:
- This builder for chaining.
-
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.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Returns:
- This builder for chaining.
-
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
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
The language of the promotion. Represented as BCP 47 language tag.
string language_code = 10;- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
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
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
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
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
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
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
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
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
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
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.v18.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.v18.common.AdScheduleInfo ad_schedule_targets = 13;- Specified by:
getAdScheduleTargetsCountin interfacePromotionAssetOrBuilder
-
getAdScheduleTargets
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.v18.common.AdScheduleInfo ad_schedule_targets = 13;- Specified by:
getAdScheduleTargetsin interfacePromotionAssetOrBuilder
-
setAdScheduleTargets
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.v18.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.v18.common.AdScheduleInfo ad_schedule_targets = 13; -
addAdScheduleTargets
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.v18.common.AdScheduleInfo ad_schedule_targets = 13; -
addAdScheduleTargets
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.v18.common.AdScheduleInfo ad_schedule_targets = 13; -
addAdScheduleTargets
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.v18.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.v18.common.AdScheduleInfo ad_schedule_targets = 13; -
addAllAdScheduleTargets
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.v18.common.AdScheduleInfo ad_schedule_targets = 13; -
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.v18.common.AdScheduleInfo ad_schedule_targets = 13; -
removeAdScheduleTargets
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.v18.common.AdScheduleInfo ad_schedule_targets = 13; -
getAdScheduleTargetsBuilder
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.v18.common.AdScheduleInfo ad_schedule_targets = 13; -
getAdScheduleTargetsOrBuilder
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.v18.common.AdScheduleInfo ad_schedule_targets = 13;- Specified by:
getAdScheduleTargetsOrBuilderin interfacePromotionAssetOrBuilder
-
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.v18.common.AdScheduleInfo ad_schedule_targets = 13;- Specified by:
getAdScheduleTargetsOrBuilderListin interfacePromotionAssetOrBuilder
-
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.v18.common.AdScheduleInfo ad_schedule_targets = 13; -
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.v18.common.AdScheduleInfo ad_schedule_targets = 13; -
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.v18.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
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
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.v18.common.Money money_amount_off = 4;- Specified by:
hasMoneyAmountOffin interfacePromotionAssetOrBuilder- Returns:
- Whether the moneyAmountOff field is set.
-
getMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4;- Specified by:
getMoneyAmountOffin interfacePromotionAssetOrBuilder- Returns:
- The moneyAmountOff.
-
setMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4; -
setMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4; -
mergeMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4; -
clearMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4; -
getMoneyAmountOffBuilder
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4; -
getMoneyAmountOffOrBuilder
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.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
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
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
A code the user should use in order to be eligible for the promotion.
string promotion_code = 5;- Returns:
- This builder for chaining.
-
setPromotionCodeBytes
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.v18.common.Money orders_over_amount = 6;- Specified by:
hasOrdersOverAmountin interfacePromotionAssetOrBuilder- Returns:
- Whether the ordersOverAmount field is set.
-
getOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6;- Specified by:
getOrdersOverAmountin interfacePromotionAssetOrBuilder- Returns:
- The ordersOverAmount.
-
setOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6; -
setOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6; -
mergeOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6; -
clearOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6; -
getOrdersOverAmountBuilder
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6; -
getOrdersOverAmountOrBuilder
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.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>
-