// 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.adwords.jaxws.v201702.cm;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for MediaError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="MediaError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="CANNOT_ADD_STANDARD_ICON"/>
* <enumeration value="CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES"/>
* <enumeration value="CANNOT_SPECIFY_MEDIA_ID_AND_DATA"/>
* <enumeration value="DUPLICATE_MEDIA"/>
* <enumeration value="EMPTY_FIELD"/>
* <enumeration value="ENTITY_REFERENCED_IN_MULTIPLE_OPS"/>
* <enumeration value="FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE"/>
* <enumeration value="INVALID_MEDIA_ID"/>
* <enumeration value="INVALID_MEDIA_SUB_TYPE"/>
* <enumeration value="INVALID_MEDIA_TYPE"/>
* <enumeration value="INVALID_MIME_TYPE"/>
* <enumeration value="INVALID_REFERENCE_ID"/>
* <enumeration value="INVALID_YOU_TUBE_ID"/>
* <enumeration value="MEDIA_FAILED_TRANSCODING"/>
* <enumeration value="MEDIA_NOT_TRANSCODED"/>
* <enumeration value="MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE"/>
* <enumeration value="NO_FIELDS_SPECIFIED"/>
* <enumeration value="NULL_REFERENCE_ID_AND_MEDIA_ID"/>
* <enumeration value="TOO_LONG"/>
* <enumeration value="UNSUPPORTED_OPERATION"/>
* <enumeration value="UNSUPPORTED_TYPE"/>
* <enumeration value="YOU_TUBE_SERVICE_UNAVAILABLE"/>
* <enumeration value="YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION"/>
* <enumeration value="YOU_TUBE_VIDEO_NOT_FOUND"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "MediaError.Reason")
@XmlEnum
public enum MediaErrorReason {
/**
*
* Cannot add a standard icon type
*
*
*/
CANNOT_ADD_STANDARD_ICON,
/**
*
* May only select Standard Icons alone
*
*
*/
CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES,
/**
*
* Image contains both a media ID and media data.
*
*
*/
CANNOT_SPECIFY_MEDIA_ID_AND_DATA,
/**
*
* A media with given type and reference id already exists
*
*
*/
DUPLICATE_MEDIA,
/**
*
* A required field was not specified or is an empty string.
*
*
*/
EMPTY_FIELD,
/**
*
* A media may only be modified once per call
*
*
*/
ENTITY_REFERENCED_IN_MULTIPLE_OPS,
/**
*
* Field is not supported for the media sub type.
*
*
*/
FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE,
/**
*
* The media id is invalid
*
*
*/
INVALID_MEDIA_ID,
/**
*
* The media subtype is invalid
*
*
*/
INVALID_MEDIA_SUB_TYPE,
/**
*
* The media type is invalid
*
*
*/
INVALID_MEDIA_TYPE,
/**
*
* The mimetype is invalid
*
*
*/
INVALID_MIME_TYPE,
/**
*
* The media reference id is invalid
*
*
*/
INVALID_REFERENCE_ID,
/**
*
* The YouTube video id is invalid
*
*
*/
INVALID_YOU_TUBE_ID,
/**
*
* Media has failed transcoding
*
*
*/
MEDIA_FAILED_TRANSCODING,
/**
*
* Media has not been transcoded
*
*
*/
MEDIA_NOT_TRANSCODED,
/**
*
* The MediaType does not match the actual media object's type
*
*
*/
MEDIA_TYPE_DOES_NOT_MATCH_OBJECT_TYPE,
/**
*
* None of the fields have been specified.
*
*
*/
NO_FIELDS_SPECIFIED,
/**
*
* One of reference Id or media Id must be specified
*
*
*/
NULL_REFERENCE_ID_AND_MEDIA_ID,
/**
*
* The string has too many characters.
*
*
*/
TOO_LONG,
/**
*
* The specified operation is not supported. Only ADD, SET, and REMOVE
* are supported
*
*
*/
UNSUPPORTED_OPERATION,
/**
*
* The specified type is not supported.
*
*
*/
UNSUPPORTED_TYPE,
/**
*
* YouTube is unavailable for requesting video data.
*
*
*/
YOU_TUBE_SERVICE_UNAVAILABLE,
/**
*
* The YouTube video has a non positive duration.
*
*
*/
YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION,
/**
*
* The YouTube video id is syntactically valid but the video was not found.
*
*
*/
YOU_TUBE_VIDEO_NOT_FOUND;
public String value() {
return name();
}
public static MediaErrorReason fromValue(String v) {
return valueOf(v);
}
}