// Copyright 2017 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.dfp.jaxws.v201702; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for ProductError.Reason. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <simpleType name="ProductError.Reason"> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="TEMPLATE_NOT_FOUND"/> * <enumeration value="MALFORMED_PRODUCT_ID"/> * <enumeration value="BAD_PRODUCT_ID_FEATURE"/> * <enumeration value="BAD_PRODUCT_TEMPLATE_ID"/> * <enumeration value="CANNOT_UPDATE_ARCHIVED_PRODUCT"/> * <enumeration value="QUERY_TOO_LARGE"/> * <enumeration value="PRODUCT_TEMPLATE_ID_IS_NOT_ZERO"/> * <enumeration value="INVALID_RATE"/> * <enumeration value="INVALID_CURRENCY"/> * <enumeration value="UNKNOWN"/> * </restriction> * </simpleType> * </pre> * */ @XmlType(name = "ProductError.Reason") @XmlEnum public enum ProductErrorReason { /** * * The specified template is not found. * * */ TEMPLATE_NOT_FOUND, /** * * The product ID is not correctly formed. * * */ MALFORMED_PRODUCT_ID, /** * * The product ID does not match the expanded features configured in its product template. * * */ BAD_PRODUCT_ID_FEATURE, /** * * The product template ID specified in the parameters does not match the product template ID * implied in the product ID. * * */ BAD_PRODUCT_TEMPLATE_ID, /** * * Cannot update an archived product. * * */ CANNOT_UPDATE_ARCHIVED_PRODUCT, /** * * The query is too large to be processed. * * */ QUERY_TOO_LARGE, /** * * When not using sales management, {@link Product products} should not have * {@link ProductTemplate product templates}. * * */ PRODUCT_TEMPLATE_ID_IS_NOT_ZERO, /** * * When not using sales management, {@link Product products} cannot have zero-value rates. * * */ INVALID_RATE, /** * * When not using sales management, the currency code for {@link Product products} must be the * same as the network default currency code. * * */ INVALID_CURRENCY, /** * * The value returned if the actual value is not exposed by the requested API version. * * */ UNKNOWN; public String value() { return name(); } public static ProductErrorReason fromValue(String v) { return valueOf(v); } }