Enum CampaignExperimentErrorEnum.CampaignExperimentError

    • Field Detail

      • UNSPECIFIED_VALUE

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

        public static final int UNKNOWN_VALUE
         The received error code is not known in this version.
         
        UNKNOWN = 1;
        See Also:
        Constant Field Values
      • DUPLICATE_NAME_VALUE

        public static final int DUPLICATE_NAME_VALUE
         An active campaign or experiment with this name already exists.
         
        DUPLICATE_NAME = 2;
        See Also:
        Constant Field Values
      • INVALID_TRANSITION_VALUE

        public static final int INVALID_TRANSITION_VALUE
         Experiment cannot be updated from the current state to the
         requested target state. For example, an experiment can only graduate
         if its status is ENABLED.
         
        INVALID_TRANSITION = 3;
        See Also:
        Constant Field Values
      • CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET_VALUE

        public static final int CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET_VALUE
         Cannot create an experiment from a campaign using an explicitly shared
         budget.
         
        CANNOT_CREATE_EXPERIMENT_WITH_SHARED_BUDGET = 4;
        See Also:
        Constant Field Values
      • CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN_VALUE

        public static final int CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN_VALUE
         Cannot create an experiment for a removed base campaign.
         
        CANNOT_CREATE_EXPERIMENT_FOR_REMOVED_BASE_CAMPAIGN = 5;
        See Also:
        Constant Field Values
      • CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT_VALUE

        public static final int CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT_VALUE
         Cannot create an experiment from a draft, which has a status other than
         proposed.
         
        CANNOT_CREATE_EXPERIMENT_FOR_NON_PROPOSED_DRAFT = 6;
        See Also:
        Constant Field Values
      • CUSTOMER_CANNOT_CREATE_EXPERIMENT_VALUE

        public static final int CUSTOMER_CANNOT_CREATE_EXPERIMENT_VALUE
         This customer is not allowed to create an experiment.
         
        CUSTOMER_CANNOT_CREATE_EXPERIMENT = 7;
        See Also:
        Constant Field Values
      • CAMPAIGN_CANNOT_CREATE_EXPERIMENT_VALUE

        public static final int CAMPAIGN_CANNOT_CREATE_EXPERIMENT_VALUE
         This campaign is not allowed to create an experiment.
         
        CAMPAIGN_CANNOT_CREATE_EXPERIMENT = 8;
        See Also:
        Constant Field Values
      • EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP_VALUE

        public static final int EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP_VALUE
         Trying to set an experiment duration which overlaps with another
         experiment.
         
        EXPERIMENT_DURATIONS_MUST_NOT_OVERLAP = 9;
        See Also:
        Constant Field Values
      • EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION_VALUE

        public static final int EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION_VALUE
         All non-removed experiments must start and end within their campaign's
         duration.
         
        EXPERIMENT_DURATION_MUST_BE_WITHIN_CAMPAIGN_DURATION = 10;
        See Also:
        Constant Field Values
      • CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS_VALUE

        public static final int CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS_VALUE
         The experiment cannot be modified because its status is in a terminal
         state, such as REMOVED.
         
        CANNOT_MUTATE_EXPERIMENT_DUE_TO_STATUS = 11;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static CampaignExperimentErrorEnum.CampaignExperimentError[] 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 (CampaignExperimentErrorEnum.CampaignExperimentError c : CampaignExperimentErrorEnum.CampaignExperimentError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CampaignExperimentErrorEnum.CampaignExperimentError 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 CampaignExperimentErrorEnum.CampaignExperimentError 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 CampaignExperimentErrorEnum.CampaignExperimentError 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