Enum PromotionPlaceholderFieldEnum.PromotionPlaceholderField

    • Field Detail

      • UNSPECIFIED_VALUE

        public static final int UNSPECIFIED_VALUE
         Not specified.
         
        UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • UNKNOWN_VALUE

        public static final int UNKNOWN_VALUE
         Used for return value only. Represents value unknown in this version.
         
        UNKNOWN = 1;
        See Also:
        Constant Field Values
      • PROMOTION_TARGET_VALUE

        public static final int PROMOTION_TARGET_VALUE
         Data Type: STRING. The text that appears on the ad when the extension is
         shown.
         
        PROMOTION_TARGET = 2;
        See Also:
        Constant Field Values
      • DISCOUNT_MODIFIER_VALUE

        public static final int DISCOUNT_MODIFIER_VALUE
         Data Type: STRING. Allows you to add "up to" phrase to the promotion,
         in case you have variable promotion rates.
         
        DISCOUNT_MODIFIER = 3;
        See Also:
        Constant Field Values
      • PERCENT_OFF_VALUE

        public static final int PERCENT_OFF_VALUE
         Data Type: INT64. Takes a value in micros, where 1 million micros
         represents 1%, and is shown as a percentage when rendered.
         
        PERCENT_OFF = 4;
        See Also:
        Constant Field Values
      • MONEY_AMOUNT_OFF_VALUE

        public static final int MONEY_AMOUNT_OFF_VALUE
         Data Type: MONEY. Requires a currency and an amount of money.
         
        MONEY_AMOUNT_OFF = 5;
        See Also:
        Constant Field Values
      • PROMOTION_CODE_VALUE

        public static final int PROMOTION_CODE_VALUE
         Data Type: STRING. A string that the user enters to get the discount.
         
        PROMOTION_CODE = 6;
        See Also:
        Constant Field Values
      • ORDERS_OVER_AMOUNT_VALUE

        public static final int ORDERS_OVER_AMOUNT_VALUE
         Data Type: MONEY. A minimum spend before the user qualifies for the
         promotion.
         
        ORDERS_OVER_AMOUNT = 7;
        See Also:
        Constant Field Values
      • PROMOTION_START_VALUE

        public static final int PROMOTION_START_VALUE
         Data Type: DATE. The start date of the promotion.
         
        PROMOTION_START = 8;
        See Also:
        Constant Field Values
      • PROMOTION_END_VALUE

        public static final int PROMOTION_END_VALUE
         Data Type: DATE. The end date of the promotion.
         
        PROMOTION_END = 9;
        See Also:
        Constant Field Values
      • OCCASION_VALUE

        public static final int OCCASION_VALUE
         Data Type: STRING. Describes the associated event for the promotion using
         one of the PromotionExtensionOccasion enum values, for example NEW_YEARS.
         
        OCCASION = 10;
        See Also:
        Constant Field Values
      • FINAL_URLS_VALUE

        public static final int FINAL_URLS_VALUE
         Data Type: URL_LIST. Final URLs to be used in the ad when using Upgraded
         URLs.
         
        FINAL_URLS = 11;
        See Also:
        Constant Field Values
      • FINAL_MOBILE_URLS_VALUE

        public static final int FINAL_MOBILE_URLS_VALUE
         Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded
         URLs.
         
        FINAL_MOBILE_URLS = 12;
        See Also:
        Constant Field Values
      • TRACKING_URL_VALUE

        public static final int TRACKING_URL_VALUE
         Data Type: URL. Tracking template for the ad when using Upgraded URLs.
         
        TRACKING_URL = 13;
        See Also:
        Constant Field Values
      • LANGUAGE_VALUE

        public static final int LANGUAGE_VALUE
         Data Type: STRING. A string represented by a language code for the
         promotion.
         
        LANGUAGE = 14;
        See Also:
        Constant Field Values
      • FINAL_URL_SUFFIX_VALUE

        public static final int FINAL_URL_SUFFIX_VALUE
         Data Type: STRING. Final URL suffix for the ad when using parallel
         tracking.
         
        FINAL_URL_SUFFIX = 15;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static PromotionPlaceholderFieldEnum.PromotionPlaceholderField[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PromotionPlaceholderFieldEnum.PromotionPlaceholderField c : PromotionPlaceholderFieldEnum.PromotionPlaceholderField.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PromotionPlaceholderFieldEnum.PromotionPlaceholderField valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static PromotionPlaceholderFieldEnum.PromotionPlaceholderField valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static PromotionPlaceholderFieldEnum.PromotionPlaceholderField valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null