Enum CustomAudienceErrorEnum.CustomAudienceError
- java.lang.Object
-
- java.lang.Enum<CustomAudienceErrorEnum.CustomAudienceError>
-
- com.google.ads.googleads.v10.errors.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 enumgoogle.ads.googleads.v10.errors.CustomAudienceErrorEnum.CustomAudienceError
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANNOT_REMOVE_WHILE_IN_USECannot remove a custom audience while it's still being used as targeting.INVALID_MEMBER_TYPEMember type is invalid.INVALID_TYPE_CHANGEChange in custom audience type is not allowed.MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTEDThe pair of [type, value] already exists in members.MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCHMember type does not have associated value.NAME_ALREADY_USEDNew name in the custom audience is duplicated ignoring cases.POLICY_VIOLATIONCustom audience contains a member that violates policy.RESOURCE_ALREADY_REMOVEDCannot update or remove a custom audience that is already removed.UNKNOWNThe received error code is not known in this version.UNRECOGNIZEDUNSPECIFIEDEnum unspecified.
-
Field Summary
Fields Modifier and Type Field Description static intCANNOT_REMOVE_WHILE_IN_USE_VALUECannot remove a custom audience while it's still being used as targeting.static intINVALID_MEMBER_TYPE_VALUEMember type is invalid.static intINVALID_TYPE_CHANGE_VALUEChange in custom audience type is not allowed.static intMEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED_VALUEThe pair of [type, value] already exists in members.static intMEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH_VALUEMember type does not have associated value.static intNAME_ALREADY_USED_VALUENew name in the custom audience is duplicated ignoring cases.static intPOLICY_VIOLATION_VALUECustom audience contains a member that violates policy.static intRESOURCE_ALREADY_REMOVED_VALUECannot update or remove a custom audience that is already removed.static intUNKNOWN_VALUEThe received error code is not known in this version.static intUNSPECIFIED_VALUEEnum unspecified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CustomAudienceErrorEnum.CustomAudienceErrorforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<CustomAudienceErrorEnum.CustomAudienceError>internalGetValueMap()static CustomAudienceErrorEnum.CustomAudienceErrorvalueOf(int value)Deprecated.static CustomAudienceErrorEnum.CustomAudienceErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static CustomAudienceErrorEnum.CustomAudienceErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CustomAudienceErrorEnum.CustomAudienceError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final CustomAudienceErrorEnum.CustomAudienceError UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0;
-
UNKNOWN
public static final CustomAudienceErrorEnum.CustomAudienceError UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1;
-
NAME_ALREADY_USED
public static final CustomAudienceErrorEnum.CustomAudienceError NAME_ALREADY_USED
New name in the custom audience is duplicated ignoring cases.
NAME_ALREADY_USED = 2;
-
CANNOT_REMOVE_WHILE_IN_USE
public static final CustomAudienceErrorEnum.CustomAudienceError CANNOT_REMOVE_WHILE_IN_USE
Cannot remove a custom audience while it's still being used as targeting.
CANNOT_REMOVE_WHILE_IN_USE = 3;
-
RESOURCE_ALREADY_REMOVED
public static final CustomAudienceErrorEnum.CustomAudienceError RESOURCE_ALREADY_REMOVED
Cannot update or remove a custom audience that is already removed.
RESOURCE_ALREADY_REMOVED = 4;
-
MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED
public static final CustomAudienceErrorEnum.CustomAudienceError MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED
The pair of [type, value] already exists in members.
MEMBER_TYPE_AND_PARAMETER_ALREADY_EXISTED = 5;
-
INVALID_MEMBER_TYPE
public static final CustomAudienceErrorEnum.CustomAudienceError INVALID_MEMBER_TYPE
Member type is invalid.
INVALID_MEMBER_TYPE = 6;
-
MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH
public static final CustomAudienceErrorEnum.CustomAudienceError MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH
Member type does not have associated value.
MEMBER_TYPE_AND_VALUE_DOES_NOT_MATCH = 7;
-
POLICY_VIOLATION
public static final CustomAudienceErrorEnum.CustomAudienceError POLICY_VIOLATION
Custom audience contains a member that violates policy.
POLICY_VIOLATION = 8;
-
INVALID_TYPE_CHANGE
public static final CustomAudienceErrorEnum.CustomAudienceError INVALID_TYPE_CHANGE
Change in custom audience type is not allowed.
INVALID_TYPE_CHANGE = 9;
-
UNRECOGNIZED
public static final CustomAudienceErrorEnum.CustomAudienceError UNRECOGNIZED
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.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 namejava.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.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<CustomAudienceErrorEnum.CustomAudienceError> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.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 namejava.lang.NullPointerException- if the argument is null
-
-