Class PromotionFeedItem.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
com.google.ads.googleads.v18.common.PromotionFeedItem.Builder
All Implemented Interfaces:
PromotionFeedItemOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PromotionFeedItem

public static final class PromotionFeedItem.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder> implements PromotionFeedItemOrBuilder
 Represents a Promotion extension.
 
Protobuf type google.ads.googleads.v18.common.PromotionFeedItem
  • Method Details

    • 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<PromotionFeedItem.Builder>
    • clear

      public PromotionFeedItem.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<PromotionFeedItem.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<PromotionFeedItem.Builder>
    • getDefaultInstanceForType

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

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

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

      public PromotionFeedItem.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<PromotionFeedItem.Builder>
    • setField

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

      public PromotionFeedItem.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<PromotionFeedItem.Builder>
    • clearOneof

      public PromotionFeedItem.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<PromotionFeedItem.Builder>
    • setRepeatedField

      public PromotionFeedItem.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
    • addRepeatedField

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

      public PromotionFeedItem.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<PromotionFeedItem.Builder>
    • mergeFrom

      public PromotionFeedItem.Builder mergeFrom(PromotionFeedItem other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
    • mergeFrom

      public PromotionFeedItem.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<PromotionFeedItem.Builder>
      Throws:
      IOException
    • getDiscountTypeCase

      public PromotionFeedItem.DiscountTypeCase getDiscountTypeCase()
      Specified by:
      getDiscountTypeCase in interface PromotionFeedItemOrBuilder
    • clearDiscountType

      public PromotionFeedItem.Builder clearDiscountType()
    • getPromotionTriggerCase

      public PromotionFeedItem.PromotionTriggerCase getPromotionTriggerCase()
      Specified by:
      getPromotionTriggerCase in interface PromotionFeedItemOrBuilder
    • clearPromotionTrigger

      public PromotionFeedItem.Builder clearPromotionTrigger()
    • hasPromotionTarget

      public boolean hasPromotionTarget()
       A freeform description of what the promotion is targeting.
       This field is required.
       
      optional string promotion_target = 16;
      Specified by:
      hasPromotionTarget in interface PromotionFeedItemOrBuilder
      Returns:
      Whether the promotionTarget field is set.
    • getPromotionTarget

      public String getPromotionTarget()
       A freeform description of what the promotion is targeting.
       This field is required.
       
      optional string promotion_target = 16;
      Specified by:
      getPromotionTarget in interface PromotionFeedItemOrBuilder
      Returns:
      The promotionTarget.
    • getPromotionTargetBytes

      public com.google.protobuf.ByteString getPromotionTargetBytes()
       A freeform description of what the promotion is targeting.
       This field is required.
       
      optional string promotion_target = 16;
      Specified by:
      getPromotionTargetBytes in interface PromotionFeedItemOrBuilder
      Returns:
      The bytes for promotionTarget.
    • setPromotionTarget

      public PromotionFeedItem.Builder setPromotionTarget(String value)
       A freeform description of what the promotion is targeting.
       This field is required.
       
      optional string promotion_target = 16;
      Parameters:
      value - The promotionTarget to set.
      Returns:
      This builder for chaining.
    • clearPromotionTarget

      public PromotionFeedItem.Builder clearPromotionTarget()
       A freeform description of what the promotion is targeting.
       This field is required.
       
      optional string promotion_target = 16;
      Returns:
      This builder for chaining.
    • setPromotionTargetBytes

      public PromotionFeedItem.Builder setPromotionTargetBytes(com.google.protobuf.ByteString value)
       A freeform description of what the promotion is targeting.
       This field is required.
       
      optional string promotion_target = 16;
      Parameters:
      value - The bytes for promotionTarget to set.
      Returns:
      This builder for chaining.
    • getDiscountModifierValue

      public int getDiscountModifierValue()
       Enum that modifies the qualification of the discount.
       
      .google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
      Specified by:
      getDiscountModifierValue in interface PromotionFeedItemOrBuilder
      Returns:
      The enum numeric value on the wire for discountModifier.
    • setDiscountModifierValue

      public PromotionFeedItem.Builder setDiscountModifierValue(int value)
       Enum that modifies the qualification of the discount.
       
      .google.ads.googleads.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

       Enum that modifies the qualification of the discount.
       
      .google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
      Specified by:
      getDiscountModifier in interface PromotionFeedItemOrBuilder
      Returns:
      The discountModifier.
    • setDiscountModifier

       Enum that modifies the 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

      public PromotionFeedItem.Builder clearDiscountModifier()
       Enum that modifies the qualification of the discount.
       
      .google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
      Returns:
      This builder for chaining.
    • hasPromotionStartDate

      public boolean hasPromotionStartDate()
       Start date of when the promotion is eligible to be redeemed.
       
      optional string promotion_start_date = 19;
      Specified by:
      hasPromotionStartDate in interface PromotionFeedItemOrBuilder
      Returns:
      Whether the promotionStartDate field is set.
    • getPromotionStartDate

      public String getPromotionStartDate()
       Start date of when the promotion is eligible to be redeemed.
       
      optional string promotion_start_date = 19;
      Specified by:
      getPromotionStartDate in interface PromotionFeedItemOrBuilder
      Returns:
      The promotionStartDate.
    • getPromotionStartDateBytes

      public com.google.protobuf.ByteString getPromotionStartDateBytes()
       Start date of when the promotion is eligible to be redeemed.
       
      optional string promotion_start_date = 19;
      Specified by:
      getPromotionStartDateBytes in interface PromotionFeedItemOrBuilder
      Returns:
      The bytes for promotionStartDate.
    • setPromotionStartDate

      public PromotionFeedItem.Builder setPromotionStartDate(String value)
       Start date of when the promotion is eligible to be redeemed.
       
      optional string promotion_start_date = 19;
      Parameters:
      value - The promotionStartDate to set.
      Returns:
      This builder for chaining.
    • clearPromotionStartDate

      public PromotionFeedItem.Builder clearPromotionStartDate()
       Start date of when the promotion is eligible to be redeemed.
       
      optional string promotion_start_date = 19;
      Returns:
      This builder for chaining.
    • setPromotionStartDateBytes

      public PromotionFeedItem.Builder setPromotionStartDateBytes(com.google.protobuf.ByteString value)
       Start date of when the promotion is eligible to be redeemed.
       
      optional string promotion_start_date = 19;
      Parameters:
      value - The bytes for promotionStartDate to set.
      Returns:
      This builder for chaining.
    • hasPromotionEndDate

      public boolean hasPromotionEndDate()
       Last date when the promotion is eligible to be redeemed.
       
      optional string promotion_end_date = 20;
      Specified by:
      hasPromotionEndDate in interface PromotionFeedItemOrBuilder
      Returns:
      Whether the promotionEndDate field is set.
    • getPromotionEndDate

      public String getPromotionEndDate()
       Last date when the promotion is eligible to be redeemed.
       
      optional string promotion_end_date = 20;
      Specified by:
      getPromotionEndDate in interface PromotionFeedItemOrBuilder
      Returns:
      The promotionEndDate.
    • getPromotionEndDateBytes

      public com.google.protobuf.ByteString getPromotionEndDateBytes()
       Last date when the promotion is eligible to be redeemed.
       
      optional string promotion_end_date = 20;
      Specified by:
      getPromotionEndDateBytes in interface PromotionFeedItemOrBuilder
      Returns:
      The bytes for promotionEndDate.
    • setPromotionEndDate

      public PromotionFeedItem.Builder setPromotionEndDate(String value)
       Last date when the promotion is eligible to be redeemed.
       
      optional string promotion_end_date = 20;
      Parameters:
      value - The promotionEndDate to set.
      Returns:
      This builder for chaining.
    • clearPromotionEndDate

      public PromotionFeedItem.Builder clearPromotionEndDate()
       Last date when the promotion is eligible to be redeemed.
       
      optional string promotion_end_date = 20;
      Returns:
      This builder for chaining.
    • setPromotionEndDateBytes

      public PromotionFeedItem.Builder setPromotionEndDateBytes(com.google.protobuf.ByteString value)
       Last date when the promotion is eligible to be redeemed.
       
      optional string promotion_end_date = 20;
      Parameters:
      value - The bytes for promotionEndDate to set.
      Returns:
      This builder for chaining.
    • getOccasionValue

      public int getOccasionValue()
       The occasion the promotion was intended for.
       If an occasion is set, the redemption window will need to fall within
       the date range associated with the occasion.
       
      .google.ads.googleads.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;
      Specified by:
      getOccasionValue in interface PromotionFeedItemOrBuilder
      Returns:
      The enum numeric value on the wire for occasion.
    • setOccasionValue

      public PromotionFeedItem.Builder setOccasionValue(int value)
       The occasion the promotion was intended for.
       If an occasion is set, the redemption window will need to fall within
       the date range associated with the occasion.
       
      .google.ads.googleads.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:
      getOccasion in interface PromotionFeedItemOrBuilder
      Returns:
      The occasion.
    • setOccasion

       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

      public PromotionFeedItem.Builder clearOccasion()
       The occasion the promotion was intended for.
       If an occasion is set, the redemption window will need to fall within
       the date range associated with the occasion.
       
      .google.ads.googleads.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;
      Returns:
      This builder for chaining.
    • getFinalUrlsList

      public com.google.protobuf.ProtocolStringList getFinalUrlsList()
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Specified by:
      getFinalUrlsList in interface PromotionFeedItemOrBuilder
      Returns:
      A list containing the finalUrls.
    • getFinalUrlsCount

      public int getFinalUrlsCount()
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Specified by:
      getFinalUrlsCount in interface PromotionFeedItemOrBuilder
      Returns:
      The count of finalUrls.
    • getFinalUrls

      public String getFinalUrls(int index)
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Specified by:
      getFinalUrls in interface PromotionFeedItemOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The finalUrls at the given index.
    • getFinalUrlsBytes

      public com.google.protobuf.ByteString getFinalUrlsBytes(int index)
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Specified by:
      getFinalUrlsBytes in interface PromotionFeedItemOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the finalUrls at the given index.
    • setFinalUrls

      public PromotionFeedItem.Builder setFinalUrls(int index, String value)
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Parameters:
      index - The index to set the value at.
      value - The finalUrls to set.
      Returns:
      This builder for chaining.
    • addFinalUrls

      public PromotionFeedItem.Builder addFinalUrls(String value)
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Parameters:
      value - The finalUrls to add.
      Returns:
      This builder for chaining.
    • addAllFinalUrls

      public PromotionFeedItem.Builder addAllFinalUrls(Iterable<String> values)
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Parameters:
      values - The finalUrls to add.
      Returns:
      This builder for chaining.
    • clearFinalUrls

      public PromotionFeedItem.Builder clearFinalUrls()
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Returns:
      This builder for chaining.
    • addFinalUrlsBytes

      public PromotionFeedItem.Builder addFinalUrlsBytes(com.google.protobuf.ByteString value)
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Parameters:
      value - The bytes of the finalUrls to add.
      Returns:
      This builder for chaining.
    • getFinalMobileUrlsList

      public com.google.protobuf.ProtocolStringList getFinalMobileUrlsList()
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Specified by:
      getFinalMobileUrlsList in interface PromotionFeedItemOrBuilder
      Returns:
      A list containing the finalMobileUrls.
    • getFinalMobileUrlsCount

      public int getFinalMobileUrlsCount()
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Specified by:
      getFinalMobileUrlsCount in interface PromotionFeedItemOrBuilder
      Returns:
      The count of finalMobileUrls.
    • getFinalMobileUrls

      public String getFinalMobileUrls(int index)
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Specified by:
      getFinalMobileUrls in interface PromotionFeedItemOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The finalMobileUrls at the given index.
    • getFinalMobileUrlsBytes

      public com.google.protobuf.ByteString getFinalMobileUrlsBytes(int index)
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Specified by:
      getFinalMobileUrlsBytes in interface PromotionFeedItemOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the finalMobileUrls at the given index.
    • setFinalMobileUrls

      public PromotionFeedItem.Builder setFinalMobileUrls(int index, String value)
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Parameters:
      index - The index to set the value at.
      value - The finalMobileUrls to set.
      Returns:
      This builder for chaining.
    • addFinalMobileUrls

      public PromotionFeedItem.Builder addFinalMobileUrls(String value)
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Parameters:
      value - The finalMobileUrls to add.
      Returns:
      This builder for chaining.
    • addAllFinalMobileUrls

      public PromotionFeedItem.Builder addAllFinalMobileUrls(Iterable<String> values)
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Parameters:
      values - The finalMobileUrls to add.
      Returns:
      This builder for chaining.
    • clearFinalMobileUrls

      public PromotionFeedItem.Builder clearFinalMobileUrls()
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Returns:
      This builder for chaining.
    • addFinalMobileUrlsBytes

      public PromotionFeedItem.Builder addFinalMobileUrlsBytes(com.google.protobuf.ByteString value)
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Parameters:
      value - The bytes of the finalMobileUrls to add.
      Returns:
      This builder for chaining.
    • hasTrackingUrlTemplate

      public boolean hasTrackingUrlTemplate()
       URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 23;
      Specified by:
      hasTrackingUrlTemplate in interface PromotionFeedItemOrBuilder
      Returns:
      Whether the trackingUrlTemplate field is set.
    • getTrackingUrlTemplate

      public String getTrackingUrlTemplate()
       URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 23;
      Specified by:
      getTrackingUrlTemplate in interface PromotionFeedItemOrBuilder
      Returns:
      The trackingUrlTemplate.
    • getTrackingUrlTemplateBytes

      public com.google.protobuf.ByteString getTrackingUrlTemplateBytes()
       URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 23;
      Specified by:
      getTrackingUrlTemplateBytes in interface PromotionFeedItemOrBuilder
      Returns:
      The bytes for trackingUrlTemplate.
    • setTrackingUrlTemplate

      public PromotionFeedItem.Builder setTrackingUrlTemplate(String value)
       URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 23;
      Parameters:
      value - The trackingUrlTemplate to set.
      Returns:
      This builder for chaining.
    • clearTrackingUrlTemplate

      public PromotionFeedItem.Builder clearTrackingUrlTemplate()
       URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 23;
      Returns:
      This builder for chaining.
    • setTrackingUrlTemplateBytes

      public PromotionFeedItem.Builder setTrackingUrlTemplateBytes(com.google.protobuf.ByteString value)
       URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 23;
      Parameters:
      value - The bytes for trackingUrlTemplate to set.
      Returns:
      This builder for chaining.
    • getUrlCustomParametersList

      public List<CustomParameter> getUrlCustomParametersList()
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
      Specified by:
      getUrlCustomParametersList in interface PromotionFeedItemOrBuilder
    • getUrlCustomParametersCount

      public int getUrlCustomParametersCount()
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
      Specified by:
      getUrlCustomParametersCount in interface PromotionFeedItemOrBuilder
    • getUrlCustomParameters

      public CustomParameter getUrlCustomParameters(int index)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
      Specified by:
      getUrlCustomParameters in interface PromotionFeedItemOrBuilder
    • setUrlCustomParameters

      public PromotionFeedItem.Builder setUrlCustomParameters(int index, CustomParameter value)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • setUrlCustomParameters

      public PromotionFeedItem.Builder setUrlCustomParameters(int index, CustomParameter.Builder builderForValue)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • addUrlCustomParameters

      public PromotionFeedItem.Builder addUrlCustomParameters(CustomParameter value)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • addUrlCustomParameters

      public PromotionFeedItem.Builder addUrlCustomParameters(int index, CustomParameter value)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • addUrlCustomParameters

      public PromotionFeedItem.Builder addUrlCustomParameters(CustomParameter.Builder builderForValue)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • addUrlCustomParameters

      public PromotionFeedItem.Builder addUrlCustomParameters(int index, CustomParameter.Builder builderForValue)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • addAllUrlCustomParameters

      public PromotionFeedItem.Builder addAllUrlCustomParameters(Iterable<? extends CustomParameter> values)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • clearUrlCustomParameters

      public PromotionFeedItem.Builder clearUrlCustomParameters()
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • removeUrlCustomParameters

      public PromotionFeedItem.Builder removeUrlCustomParameters(int index)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • getUrlCustomParametersBuilder

      public CustomParameter.Builder getUrlCustomParametersBuilder(int index)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • getUrlCustomParametersOrBuilder

      public CustomParameterOrBuilder getUrlCustomParametersOrBuilder(int index)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
      Specified by:
      getUrlCustomParametersOrBuilder in interface PromotionFeedItemOrBuilder
    • getUrlCustomParametersOrBuilderList

      public List<? extends CustomParameterOrBuilder> getUrlCustomParametersOrBuilderList()
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
      Specified by:
      getUrlCustomParametersOrBuilderList in interface PromotionFeedItemOrBuilder
    • addUrlCustomParametersBuilder

      public CustomParameter.Builder addUrlCustomParametersBuilder()
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • addUrlCustomParametersBuilder

      public CustomParameter.Builder addUrlCustomParametersBuilder(int index)
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • getUrlCustomParametersBuilderList

      public List<CustomParameter.Builder> getUrlCustomParametersBuilderList()
       A list of mappings to be used for substituting URL custom parameter tags in
       the tracking_url_template, final_urls, and/or final_mobile_urls.
       
      repeated .google.ads.googleads.v18.common.CustomParameter url_custom_parameters = 13;
    • hasFinalUrlSuffix

      public boolean hasFinalUrlSuffix()
       URL template for appending params to landing page URLs served with parallel
       tracking.
       
      optional string final_url_suffix = 24;
      Specified by:
      hasFinalUrlSuffix in interface PromotionFeedItemOrBuilder
      Returns:
      Whether the finalUrlSuffix field is set.
    • getFinalUrlSuffix

      public String getFinalUrlSuffix()
       URL template for appending params to landing page URLs served with parallel
       tracking.
       
      optional string final_url_suffix = 24;
      Specified by:
      getFinalUrlSuffix in interface PromotionFeedItemOrBuilder
      Returns:
      The finalUrlSuffix.
    • getFinalUrlSuffixBytes

      public com.google.protobuf.ByteString getFinalUrlSuffixBytes()
       URL template for appending params to landing page URLs served with parallel
       tracking.
       
      optional string final_url_suffix = 24;
      Specified by:
      getFinalUrlSuffixBytes in interface PromotionFeedItemOrBuilder
      Returns:
      The bytes for finalUrlSuffix.
    • setFinalUrlSuffix

      public PromotionFeedItem.Builder setFinalUrlSuffix(String value)
       URL template for appending params to landing page URLs served with parallel
       tracking.
       
      optional string final_url_suffix = 24;
      Parameters:
      value - The finalUrlSuffix to set.
      Returns:
      This builder for chaining.
    • clearFinalUrlSuffix

      public PromotionFeedItem.Builder clearFinalUrlSuffix()
       URL template for appending params to landing page URLs served with parallel
       tracking.
       
      optional string final_url_suffix = 24;
      Returns:
      This builder for chaining.
    • setFinalUrlSuffixBytes

      public PromotionFeedItem.Builder setFinalUrlSuffixBytes(com.google.protobuf.ByteString value)
       URL template for appending params to landing page URLs served with parallel
       tracking.
       
      optional string final_url_suffix = 24;
      Parameters:
      value - The bytes for finalUrlSuffix to set.
      Returns:
      This builder for chaining.
    • hasLanguageCode

      public boolean hasLanguageCode()
       The language of the promotion.
       Represented as BCP 47 language tag.
       
      optional string language_code = 25;
      Specified by:
      hasLanguageCode in interface PromotionFeedItemOrBuilder
      Returns:
      Whether the languageCode field is set.
    • getLanguageCode

      public String getLanguageCode()
       The language of the promotion.
       Represented as BCP 47 language tag.
       
      optional string language_code = 25;
      Specified by:
      getLanguageCode in interface PromotionFeedItemOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       The language of the promotion.
       Represented as BCP 47 language tag.
       
      optional string language_code = 25;
      Specified by:
      getLanguageCodeBytes in interface PromotionFeedItemOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public PromotionFeedItem.Builder setLanguageCode(String value)
       The language of the promotion.
       Represented as BCP 47 language tag.
       
      optional string language_code = 25;
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public PromotionFeedItem.Builder clearLanguageCode()
       The language of the promotion.
       Represented as BCP 47 language tag.
       
      optional string language_code = 25;
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public PromotionFeedItem.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       The language of the promotion.
       Represented as BCP 47 language tag.
       
      optional string language_code = 25;
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • hasPercentOff

      public boolean hasPercentOff()
       Percentage off discount in the promotion in micros.
       One million is equivalent to one percent.
       Either this or money_off_amount is required.
       
      int64 percent_off = 17;
      Specified by:
      hasPercentOff in interface PromotionFeedItemOrBuilder
      Returns:
      Whether the percentOff field is set.
    • getPercentOff

      public long getPercentOff()
       Percentage off discount in the promotion in micros.
       One million is equivalent to one percent.
       Either this or money_off_amount is required.
       
      int64 percent_off = 17;
      Specified by:
      getPercentOff in interface PromotionFeedItemOrBuilder
      Returns:
      The percentOff.
    • setPercentOff

      public PromotionFeedItem.Builder setPercentOff(long value)
       Percentage off discount in the promotion in micros.
       One million is equivalent to one percent.
       Either this or money_off_amount is required.
       
      int64 percent_off = 17;
      Parameters:
      value - The percentOff to set.
      Returns:
      This builder for chaining.
    • clearPercentOff

      public PromotionFeedItem.Builder clearPercentOff()
       Percentage off discount in the promotion in micros.
       One million is equivalent to one percent.
       Either this or money_off_amount is required.
       
      int64 percent_off = 17;
      Returns:
      This builder for chaining.
    • hasMoneyAmountOff

      public boolean hasMoneyAmountOff()
       Money amount off for discount in the promotion.
       Either this or percent_off is required.
       
      .google.ads.googleads.v18.common.Money money_amount_off = 4;
      Specified by:
      hasMoneyAmountOff in interface PromotionFeedItemOrBuilder
      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.v18.common.Money money_amount_off = 4;
      Specified by:
      getMoneyAmountOff in interface PromotionFeedItemOrBuilder
      Returns:
      The moneyAmountOff.
    • setMoneyAmountOff

      public PromotionFeedItem.Builder setMoneyAmountOff(Money value)
       Money amount off for discount in the promotion.
       Either this or percent_off is required.
       
      .google.ads.googleads.v18.common.Money money_amount_off = 4;
    • setMoneyAmountOff

      public PromotionFeedItem.Builder setMoneyAmountOff(Money.Builder builderForValue)
       Money amount off for discount in the promotion.
       Either this or percent_off is required.
       
      .google.ads.googleads.v18.common.Money money_amount_off = 4;
    • mergeMoneyAmountOff

      public PromotionFeedItem.Builder mergeMoneyAmountOff(Money value)
       Money amount off for discount in the promotion.
       Either this or percent_off is required.
       
      .google.ads.googleads.v18.common.Money money_amount_off = 4;
    • clearMoneyAmountOff

      public PromotionFeedItem.Builder clearMoneyAmountOff()
       Money amount off for discount in the promotion.
       Either this or percent_off is required.
       
      .google.ads.googleads.v18.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.v18.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.v18.common.Money money_amount_off = 4;
      Specified by:
      getMoneyAmountOffOrBuilder in interface PromotionFeedItemOrBuilder
    • hasPromotionCode

      public boolean hasPromotionCode()
       A code the user should use in order to be eligible for the promotion.
       
      string promotion_code = 18;
      Specified by:
      hasPromotionCode in interface PromotionFeedItemOrBuilder
      Returns:
      Whether the promotionCode field is set.
    • getPromotionCode

      public String getPromotionCode()
       A code the user should use in order to be eligible for the promotion.
       
      string promotion_code = 18;
      Specified by:
      getPromotionCode in interface PromotionFeedItemOrBuilder
      Returns:
      The promotionCode.
    • getPromotionCodeBytes

      public com.google.protobuf.ByteString getPromotionCodeBytes()
       A code the user should use in order to be eligible for the promotion.
       
      string promotion_code = 18;
      Specified by:
      getPromotionCodeBytes in interface PromotionFeedItemOrBuilder
      Returns:
      The bytes for promotionCode.
    • setPromotionCode

      public PromotionFeedItem.Builder setPromotionCode(String value)
       A code the user should use in order to be eligible for the promotion.
       
      string promotion_code = 18;
      Parameters:
      value - The promotionCode to set.
      Returns:
      This builder for chaining.
    • clearPromotionCode

      public PromotionFeedItem.Builder clearPromotionCode()
       A code the user should use in order to be eligible for the promotion.
       
      string promotion_code = 18;
      Returns:
      This builder for chaining.
    • setPromotionCodeBytes

      public PromotionFeedItem.Builder setPromotionCodeBytes(com.google.protobuf.ByteString value)
       A code the user should use in order to be eligible for the promotion.
       
      string promotion_code = 18;
      Parameters:
      value - The bytes for promotionCode to set.
      Returns:
      This builder for chaining.
    • hasOrdersOverAmount

      public boolean hasOrdersOverAmount()
       The amount the total order needs to be for the user to be eligible for
       the promotion.
       
      .google.ads.googleads.v18.common.Money orders_over_amount = 6;
      Specified by:
      hasOrdersOverAmount in interface PromotionFeedItemOrBuilder
      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.v18.common.Money orders_over_amount = 6;
      Specified by:
      getOrdersOverAmount in interface PromotionFeedItemOrBuilder
      Returns:
      The ordersOverAmount.
    • setOrdersOverAmount

      public PromotionFeedItem.Builder setOrdersOverAmount(Money value)
       The amount the total order needs to be for the user to be eligible for
       the promotion.
       
      .google.ads.googleads.v18.common.Money orders_over_amount = 6;
    • setOrdersOverAmount

      public PromotionFeedItem.Builder setOrdersOverAmount(Money.Builder builderForValue)
       The amount the total order needs to be for the user to be eligible for
       the promotion.
       
      .google.ads.googleads.v18.common.Money orders_over_amount = 6;
    • mergeOrdersOverAmount

      public PromotionFeedItem.Builder mergeOrdersOverAmount(Money value)
       The amount the total order needs to be for the user to be eligible for
       the promotion.
       
      .google.ads.googleads.v18.common.Money orders_over_amount = 6;
    • clearOrdersOverAmount

      public PromotionFeedItem.Builder clearOrdersOverAmount()
       The amount the total order needs to be for the user to be eligible for
       the promotion.
       
      .google.ads.googleads.v18.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.v18.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.v18.common.Money orders_over_amount = 6;
      Specified by:
      getOrdersOverAmountOrBuilder in interface PromotionFeedItemOrBuilder
    • setUnknownFields

      public final PromotionFeedItem.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<PromotionFeedItem.Builder>
    • mergeUnknownFields

      public final PromotionFeedItem.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<PromotionFeedItem.Builder>