Class 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 type google.ads.googleads.v10.common.PromotionAsset
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
      • clear

        public PromotionAsset.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
      • getDefaultInstanceForType

        public PromotionAsset getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public PromotionAsset build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public PromotionAsset buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public PromotionAsset.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
      • setField

        public PromotionAsset.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
      • clearField

        public PromotionAsset.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
      • clearOneof

        public PromotionAsset.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
      • addRepeatedField

        public PromotionAsset.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
      • mergeFrom

        public PromotionAsset.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PromotionAsset.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PromotionAsset.Builder>
        Throws:
        java.io.IOException
      • 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:
        getPromotionTarget in interface PromotionAssetOrBuilder
        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:
        getPromotionTargetBytes in interface PromotionAssetOrBuilder
        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:
        getDiscountModifierValue in interface PromotionAssetOrBuilder
        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.
      • 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:
        getRedemptionStartDate in interface PromotionAssetOrBuilder
        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:
        getRedemptionStartDateBytes in interface PromotionAssetOrBuilder
        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:
        getRedemptionEndDate in interface PromotionAssetOrBuilder
        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:
        getRedemptionEndDateBytes in interface PromotionAssetOrBuilder
        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:
        getOccasionValue in interface PromotionAssetOrBuilder
        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.
      • 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:
        getLanguageCode in interface PromotionAssetOrBuilder
        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:
        getLanguageCodeBytes in interface PromotionAssetOrBuilder
        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:
        getStartDate in interface PromotionAssetOrBuilder
        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:
        getStartDateBytes in interface PromotionAssetOrBuilder
        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:
        getEndDate in interface PromotionAssetOrBuilder
        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:
        getEndDateBytes in interface PromotionAssetOrBuilder
        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:
        getAdScheduleTargetsList in interface PromotionAssetOrBuilder
      • 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:
        getAdScheduleTargetsCount in interface PromotionAssetOrBuilder
      • 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:
        getAdScheduleTargets in interface PromotionAssetOrBuilder
      • 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:
        getAdScheduleTargetsOrBuilder in interface PromotionAssetOrBuilder
      • 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:
        getAdScheduleTargetsOrBuilderList in interface PromotionAssetOrBuilder
      • 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:
        hasPercentOff in interface PromotionAssetOrBuilder
        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:
        getPercentOff in interface PromotionAssetOrBuilder
        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:
        hasMoneyAmountOff in interface PromotionAssetOrBuilder
        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:
        getMoneyAmountOff in interface PromotionAssetOrBuilder
        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;
      • hasPromotionCode

        public boolean hasPromotionCode()
         A code the user should use in order to be eligible for the promotion.
         
        string promotion_code = 5;
        Specified by:
        hasPromotionCode in interface PromotionAssetOrBuilder
        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:
        getPromotionCode in interface PromotionAssetOrBuilder
        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:
        getPromotionCodeBytes in interface PromotionAssetOrBuilder
        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:
        hasOrdersOverAmount in interface PromotionAssetOrBuilder
        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:
        getOrdersOverAmount in interface PromotionAssetOrBuilder
        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;
      • setUnknownFields

        public final PromotionAsset.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>
      • mergeUnknownFields

        public final PromotionAsset.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionAsset.Builder>