public enum LabelServiceErrorReason extends Enum<LabelServiceErrorReason>
Java class for LabelServiceError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="LabelServiceError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="EMPTY_LABEL_NAME"/>
<enumeration value="LABEL_NAME_TOO_LONG"/>
<enumeration value="DUPLICATE_LABEL_NAME"/>
<enumeration value="RESERVED_LABEL_NAME"/>
<enumeration value="CANNOT_BE_DELETED"/>
<enumeration value="TOO_MANY_LABELS"/>
<enumeration value="INVALID_LABEL_ID"/>
<enumeration value="CUSTOMER_CANNOT_CREATE_LABELS"/>
<enumeration value="SERVER_CLIENT_VERSION_MISMATCH"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CANNOT_BE_DELETED
The label cannot be deleted
|
CUSTOMER_CANNOT_CREATE_LABELS
This customer cannot create labels.
|
DUPLICATE_LABEL_NAME
The customer already has an active label with the same name.
|
EMPTY_LABEL_NAME
The label name is empty.
|
INVALID_LABEL_ID
Label id was not found.
|
LABEL_NAME_TOO_LONG
The label name is longer than max allowed size.
|
RESERVED_LABEL_NAME
The label name is reserved by the system.
|
SERVER_CLIENT_VERSION_MISMATCH
An unknown enum value has been given for this error reason.
|
TOO_MANY_LABELS
A customer cannot own more than 200 labels.
|
| Modifier and Type | Method and Description |
|---|---|
static LabelServiceErrorReason |
fromValue(String v) |
String |
value() |
static LabelServiceErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LabelServiceErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LabelServiceErrorReason EMPTY_LABEL_NAME
public static final LabelServiceErrorReason LABEL_NAME_TOO_LONG
public static final LabelServiceErrorReason DUPLICATE_LABEL_NAME
public static final LabelServiceErrorReason RESERVED_LABEL_NAME
public static final LabelServiceErrorReason CANNOT_BE_DELETED
public static final LabelServiceErrorReason TOO_MANY_LABELS
public static final LabelServiceErrorReason INVALID_LABEL_ID
public static final LabelServiceErrorReason CUSTOMER_CANNOT_CREATE_LABELS
public static final LabelServiceErrorReason SERVER_CLIENT_VERSION_MISMATCH
public static LabelServiceErrorReason[] values()
for (LabelServiceErrorReason c : LabelServiceErrorReason.values()) System.out.println(c);
public static LabelServiceErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static LabelServiceErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.