Enum CustomAudienceErrorEnum.CustomAudienceError

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<CustomAudienceErrorEnum.CustomAudienceError>
    Enclosing class:
    CustomAudienceErrorEnum

    public static enum CustomAudienceErrorEnum.CustomAudienceError
    extends java.lang.Enum<CustomAudienceErrorEnum.CustomAudienceError>
    implements com.google.protobuf.ProtocolMessageEnum
     Enum describing possible custom audience errors.
     
    Protobuf enum google.ads.googleads.v10.errors.CustomAudienceErrorEnum.CustomAudienceError
    • 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
      • NAME_ALREADY_USED_VALUE

        public static final int NAME_ALREADY_USED_VALUE
         New name in the custom audience is duplicated ignoring cases.
         
        NAME_ALREADY_USED = 2;
        See Also:
        Constant Field Values
      • CANNOT_REMOVE_WHILE_IN_USE_VALUE

        public static final int CANNOT_REMOVE_WHILE_IN_USE_VALUE
         Cannot remove a custom audience while it's still being used as targeting.
         
        CANNOT_REMOVE_WHILE_IN_USE = 3;
        See Also:
        Constant Field Values
      • RESOURCE_ALREADY_REMOVED_VALUE

        public static final int RESOURCE_ALREADY_REMOVED_VALUE
         Cannot update or remove a custom audience that is already removed.
         
        RESOURCE_ALREADY_REMOVED = 4;
        See Also:
        Constant Field Values
      • MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED_VALUE

        public static final int MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED_VALUE
         The pair of [type, value] already exists in members.
         
        MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED = 5;
        See Also:
        Constant Field Values
      • INVALID_MEMBER_TYPE_VALUE

        public static final int INVALID_MEMBER_TYPE_VALUE
         Member type is invalid.
         
        INVALID_MEMBER_TYPE = 6;
        See Also:
        Constant Field Values
      • MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH_VALUE

        public static final int MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH_VALUE
         Member type does not have associated value.
         
        MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH = 7;
        See Also:
        Constant Field Values
      • POLICY_VIOLATION_VALUE

        public static final int POLICY_VIOLATION_VALUE
         Custom audience contains a member that violates policy.
         
        POLICY_VIOLATION = 8;
        See Also:
        Constant Field Values
      • INVALID_TYPE_CHANGE_VALUE

        public static final int INVALID_TYPE_CHANGE_VALUE
         Change in custom audience type is not allowed.
         
        INVALID_TYPE_CHANGE = 9;
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

        public static CustomAudienceErrorEnum.CustomAudienceError 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 CustomAudienceErrorEnum.CustomAudienceError 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
      • forNumber

        public static CustomAudienceErrorEnum.CustomAudienceError forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • 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 CustomAudienceErrorEnum.CustomAudienceError 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