// 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.cm; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for DateError.Reason. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * <simpleType name="DateError.Reason"> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <enumeration value="INVALID_FIELD_VALUES_IN_DATE"/> * <enumeration value="INVALID_FIELD_VALUES_IN_DATE_TIME"/> * <enumeration value="INVALID_STRING_DATE"/> * <enumeration value="INVALID_STRING_DATE_RANGE"/> * <enumeration value="INVALID_STRING_DATE_TIME"/> * <enumeration value="EARLIER_THAN_MINIMUM_DATE"/> * <enumeration value="LATER_THAN_MAXIMUM_DATE"/> * <enumeration value="DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE"/> * <enumeration value="DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL"/> * </restriction> * </simpleType> * </pre> * */ @XmlType(name = "DateError.Reason") @XmlEnum public enum DateErrorReason { /** * * Given field values do not correspond to a valid date. * * */ INVALID_FIELD_VALUES_IN_DATE, /** * * Given field values do not correspond to a valid date time. * * */ INVALID_FIELD_VALUES_IN_DATE_TIME, /** * * The string date's format should be yyyymmdd. * * */ INVALID_STRING_DATE, /** * * The string date range's format should be yyyymmdd yyyymmdd. * * */ INVALID_STRING_DATE_RANGE, /** * * The string date time's format should be yyyymmdd hhmmss [tz]. * * */ INVALID_STRING_DATE_TIME, /** * * Date is before allowed minimum. * * */ EARLIER_THAN_MINIMUM_DATE, /** * * Date is after allowed maximum. * * */ LATER_THAN_MAXIMUM_DATE, /** * * Date range bounds are not in order. * * */ DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE, /** * * Both dates in range are null. * * */ DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL; public String value() { return name(); } public static DateErrorReason fromValue(String v) { return valueOf(v); } }