Enum Class LabelErrorEnum.LabelError
java.lang.Object
java.lang.Enum<LabelErrorEnum.LabelError>
com.google.ads.googleads.v18.errors.LabelErrorEnum.LabelError
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<LabelErrorEnum.LabelError>,Constable
- Enclosing class:
- LabelErrorEnum
public static enum LabelErrorEnum.LabelError
extends Enum<LabelErrorEnum.LabelError>
implements com.google.protobuf.ProtocolMessageEnum
Enum describing possible label errors.Protobuf enum
google.ads.googleads.v18.errors.LabelErrorEnum.LabelError-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn inactive label cannot be applied.A label cannot be applied to a disabled ad group criterion.A label cannot be applied to a negative ad group criterion.Labels cannot be applied to a draft.Labels not from a manager account cannot be applied to the customer resource.Label names must be unique.Cannot apply more than 50 labels per resource.Label names cannot be empty.Labels from a manager account cannot be applied to campaign, ad group, ad group ad, or ad group criterion resources.The received error code is not known in this version.Enum unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn inactive label cannot be applied.static final intA label cannot be applied to a disabled ad group criterion.static final intA label cannot be applied to a negative ad group criterion.static final intLabels cannot be applied to a draft.static final intLabels not from a manager account cannot be applied to the customer resource.static final intLabel names must be unique.static final intCannot apply more than 50 labels per resource.static final intLabel names cannot be empty.static final intLabels from a manager account cannot be applied to campaign, ad group, ad group ad, or ad group criterion resources.static final intThe received error code is not known in this version.static final intEnum unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic LabelErrorEnum.LabelErrorforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<LabelErrorEnum.LabelError>static LabelErrorEnum.LabelErrorvalueOf(int value) Deprecated.static LabelErrorEnum.LabelErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static LabelErrorEnum.LabelErrorReturns the enum constant of this class with the specified name.static LabelErrorEnum.LabelError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0; -
UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1; -
CANNOT_APPLY_INACTIVE_LABEL
An inactive label cannot be applied.
CANNOT_APPLY_INACTIVE_LABEL = 2; -
CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION
A label cannot be applied to a disabled ad group criterion.
CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION = 3; -
CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION
A label cannot be applied to a negative ad group criterion.
CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION = 4; -
EXCEEDED_LABEL_LIMIT_PER_TYPE
Cannot apply more than 50 labels per resource.
EXCEEDED_LABEL_LIMIT_PER_TYPE = 5; -
INVALID_RESOURCE_FOR_MANAGER_LABEL
Labels from a manager account cannot be applied to campaign, ad group, ad group ad, or ad group criterion resources.
INVALID_RESOURCE_FOR_MANAGER_LABEL = 6; -
DUPLICATE_NAME
Label names must be unique.
DUPLICATE_NAME = 7; -
INVALID_LABEL_NAME
Label names cannot be empty.
INVALID_LABEL_NAME = 8; -
CANNOT_ATTACH_LABEL_TO_DRAFT
Labels cannot be applied to a draft.
CANNOT_ATTACH_LABEL_TO_DRAFT = 9; -
CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER
Labels not from a manager account cannot be applied to the customer resource.
CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUEEnum unspecified.
UNSPECIFIED = 0;- See Also:
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe received error code is not known in this version.
UNKNOWN = 1;- See Also:
-
CANNOT_APPLY_INACTIVE_LABEL_VALUE
public static final int CANNOT_APPLY_INACTIVE_LABEL_VALUEAn inactive label cannot be applied.
CANNOT_APPLY_INACTIVE_LABEL = 2;- See Also:
-
CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION_VALUE
public static final int CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION_VALUEA label cannot be applied to a disabled ad group criterion.
CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION = 3;- See Also:
-
CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION_VALUE
public static final int CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION_VALUEA label cannot be applied to a negative ad group criterion.
CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION = 4;- See Also:
-
EXCEEDED_LABEL_LIMIT_PER_TYPE_VALUE
public static final int EXCEEDED_LABEL_LIMIT_PER_TYPE_VALUECannot apply more than 50 labels per resource.
EXCEEDED_LABEL_LIMIT_PER_TYPE = 5;- See Also:
-
INVALID_RESOURCE_FOR_MANAGER_LABEL_VALUE
public static final int INVALID_RESOURCE_FOR_MANAGER_LABEL_VALUELabels from a manager account cannot be applied to campaign, ad group, ad group ad, or ad group criterion resources.
INVALID_RESOURCE_FOR_MANAGER_LABEL = 6;- See Also:
-
DUPLICATE_NAME_VALUE
public static final int DUPLICATE_NAME_VALUELabel names must be unique.
DUPLICATE_NAME = 7;- See Also:
-
INVALID_LABEL_NAME_VALUE
public static final int INVALID_LABEL_NAME_VALUELabel names cannot be empty.
INVALID_LABEL_NAME = 8;- See Also:
-
CANNOT_ATTACH_LABEL_TO_DRAFT_VALUE
public static final int CANNOT_ATTACH_LABEL_TO_DRAFT_VALUELabels cannot be applied to a draft.
CANNOT_ATTACH_LABEL_TO_DRAFT = 9;- See Also:
-
CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER_VALUE
public static final int CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER_VALUELabels not from a manager account cannot be applied to the customer resource.
CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10;- 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 nameNullPointerException- 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.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 nameNullPointerException- if the argument is null
-
forNumber
- 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<LabelErrorEnum.LabelError> 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 LabelErrorEnum.LabelError 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 nameNullPointerException- if the argument is null
-