Enum Class CustomAudienceErrorEnum.CustomAudienceError

java.lang.Object
java.lang.Enum<CustomAudienceErrorEnum.CustomAudienceError>
com.google.ads.googleads.v18.errors.CustomAudienceErrorEnum.CustomAudienceError
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<CustomAudienceErrorEnum.CustomAudienceError>, Constable
Enclosing class:
CustomAudienceErrorEnum

public static enum CustomAudienceErrorEnum.CustomAudienceError extends Enum<CustomAudienceErrorEnum.CustomAudienceError> implements com.google.protobuf.ProtocolMessageEnum
 Enum describing possible custom audience errors.
 
Protobuf enum google.ads.googleads.v18.errors.CustomAudienceErrorEnum.CustomAudienceError
  • Enum Constant Details

  • Field Details

    • UNSPECIFIED_VALUE

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

      public static final int UNKNOWN_VALUE
       The received error code is not known in this version.
       
      UNKNOWN = 1;
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • INVALID_MEMBER_TYPE_VALUE

      public static final int INVALID_MEMBER_TYPE_VALUE
       Member type is invalid.
       
      INVALID_MEMBER_TYPE = 6;
      See Also:
    • 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:
    • POLICY_VIOLATION_VALUE

      public static final int POLICY_VIOLATION_VALUE
       Custom audience contains a member that violates policy.
       
      POLICY_VIOLATION = 8;
      See Also:
    • 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:
  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      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.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<CustomAudienceErrorEnum.CustomAudienceError> internalGetValueMap()
    • 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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null