// Copyright 2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.adwords.jaxws.v201607.mcm;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for LabelServiceError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <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>
* </pre>
*
*/
@XmlType(name = "LabelServiceError.Reason")
@XmlEnum
public enum LabelServiceErrorReason {
/**
*
* The label name is empty.
*
*
*/
EMPTY_LABEL_NAME,
/**
*
* The label name is longer than max allowed size.
*
*
*/
LABEL_NAME_TOO_LONG,
/**
*
* The customer already has an active label with the same name.
*
*
*/
DUPLICATE_LABEL_NAME,
/**
*
* The label name is reserved by the system.
*
*
*/
RESERVED_LABEL_NAME,
/**
*
* The label cannot be deleted
*
*
*/
CANNOT_BE_DELETED,
/**
*
* A customer cannot own more than 200 labels.
*
*
*/
TOO_MANY_LABELS,
/**
*
* Label id was not found.
*
*
*/
INVALID_LABEL_ID,
/**
*
* This customer cannot create labels. Only manager customers may create labels.
*
*
*/
CUSTOMER_CANNOT_CREATE_LABELS,
/**
*
* An unknown enum value has been given for this error reason.
*
*
*/
SERVER_CLIENT_VERSION_MISMATCH;
public String value() {
return name();
}
public static LabelServiceErrorReason fromValue(String v) {
return valueOf(v);
}
}