Enum MediaFileErrorEnum.MediaFileError

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<MediaFileErrorEnum.MediaFileError>
    Enclosing class:
    MediaFileErrorEnum

    public static enum MediaFileErrorEnum.MediaFileError
    extends java.lang.Enum<MediaFileErrorEnum.MediaFileError>
    implements com.google.protobuf.ProtocolMessageEnum
     Enum describing possible media file errors.
     
    Protobuf enum google.ads.googleads.v10.errors.MediaFileErrorEnum.MediaFileError
    • Enum Constant Detail

      • CANNOT_CREATE_STANDARD_ICON

        public static final MediaFileErrorEnum.MediaFileError CANNOT_CREATE_STANDARD_ICON
         Cannot create a standard icon type.
         
        CANNOT_CREATE_STANDARD_ICON = 2;
      • CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES

        public static final MediaFileErrorEnum.MediaFileError CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES
         May only select Standard Icons alone.
         
        CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3;
      • CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA

        public static final MediaFileErrorEnum.MediaFileError CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA
         Image contains both a media file ID and data.
         
        CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA = 4;
      • DUPLICATE_MEDIA

        public static final MediaFileErrorEnum.MediaFileError DUPLICATE_MEDIA
         A media file with given type and reference ID already exists.
         
        DUPLICATE_MEDIA = 5;
      • RESOURCE_REFERENCED_IN_MULTIPLE_OPS

        public static final MediaFileErrorEnum.MediaFileError RESOURCE_REFERENCED_IN_MULTIPLE_OPS
         A media file may only be modified once per call.
         
        RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7;
      • FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE

        public static final MediaFileErrorEnum.MediaFileError FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE
         Field is not supported for the media sub type.
         
        FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8;
      • INVALID_MEDIA_FILE_TYPE

        public static final MediaFileErrorEnum.MediaFileError INVALID_MEDIA_FILE_TYPE
         The media file type is invalid.
         
        INVALID_MEDIA_FILE_TYPE = 11;
      • MEDIA_FILE_FAILED_TRANSCODING

        public static final MediaFileErrorEnum.MediaFileError MEDIA_FILE_FAILED_TRANSCODING
         Media file has failed transcoding
         
        MEDIA_FILE_FAILED_TRANSCODING = 15;
      • MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE

        public static final MediaFileErrorEnum.MediaFileError MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE
         The media type does not match the actual media file's type.
         
        MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE = 17;
      • NULL_REFERENCE_ID_AND_MEDIA_ID

        public static final MediaFileErrorEnum.MediaFileError NULL_REFERENCE_ID_AND_MEDIA_ID
         One of reference ID or media file ID must be specified.
         
        NULL_REFERENCE_ID_AND_MEDIA_ID = 19;
      • YOU_TUBE_SERVICE_UNAVAILABLE

        public static final MediaFileErrorEnum.MediaFileError YOU_TUBE_SERVICE_UNAVAILABLE
         YouTube is unavailable for requesting video data.
         
        YOU_TUBE_SERVICE_UNAVAILABLE = 22;
      • YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION

        public static final MediaFileErrorEnum.MediaFileError YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION
         The YouTube video has a non positive duration.
         
        YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 23;
      • YOU_TUBE_VIDEO_NOT_FOUND

        public static final MediaFileErrorEnum.MediaFileError YOU_TUBE_VIDEO_NOT_FOUND
         The YouTube video ID is syntactically valid but the video was not found.
         
        YOU_TUBE_VIDEO_NOT_FOUND = 24;
    • Field Detail

      • UNSPECIFIED_VALUE

        public static final int UNSPECIFIED_VALUE
         Enum unspecified.
         
        UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • UNKNOWN_VALUE

        public static final int UNKNOWN_VALUE
         The received error code is not known in this version.
         
        UNKNOWN = 1;
        See Also:
        Constant Field Values
      • CANNOT_CREATE_STANDARD_ICON_VALUE

        public static final int CANNOT_CREATE_STANDARD_ICON_VALUE
         Cannot create a standard icon type.
         
        CANNOT_CREATE_STANDARD_ICON = 2;
        See Also:
        Constant Field Values
      • CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES_VALUE

        public static final int CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES_VALUE
         May only select Standard Icons alone.
         
        CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3;
        See Also:
        Constant Field Values
      • CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA_VALUE

        public static final int CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA_VALUE
         Image contains both a media file ID and data.
         
        CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA = 4;
        See Also:
        Constant Field Values
      • DUPLICATE_MEDIA_VALUE

        public static final int DUPLICATE_MEDIA_VALUE
         A media file with given type and reference ID already exists.
         
        DUPLICATE_MEDIA = 5;
        See Also:
        Constant Field Values
      • EMPTY_FIELD_VALUE

        public static final int EMPTY_FIELD_VALUE
         A required field was not specified or is an empty string.
         
        EMPTY_FIELD = 6;
        See Also:
        Constant Field Values
      • RESOURCE_REFERENCED_IN_MULTIPLE_OPS_VALUE

        public static final int RESOURCE_REFERENCED_IN_MULTIPLE_OPS_VALUE
         A media file may only be modified once per call.
         
        RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7;
        See Also:
        Constant Field Values
      • FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE_VALUE

        public static final int FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE_VALUE
         Field is not supported for the media sub type.
         
        FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8;
        See Also:
        Constant Field Values
      • INVALID_MEDIA_FILE_ID_VALUE

        public static final int INVALID_MEDIA_FILE_ID_VALUE
         The media file ID is invalid.
         
        INVALID_MEDIA_FILE_ID = 9;
        See Also:
        Constant Field Values
      • INVALID_MEDIA_SUB_TYPE_VALUE

        public static final int INVALID_MEDIA_SUB_TYPE_VALUE
         The media subtype is invalid.
         
        INVALID_MEDIA_SUB_TYPE = 10;
        See Also:
        Constant Field Values
      • INVALID_MEDIA_FILE_TYPE_VALUE

        public static final int INVALID_MEDIA_FILE_TYPE_VALUE
         The media file type is invalid.
         
        INVALID_MEDIA_FILE_TYPE = 11;
        See Also:
        Constant Field Values
      • INVALID_MIME_TYPE_VALUE

        public static final int INVALID_MIME_TYPE_VALUE
         The mimetype is invalid.
         
        INVALID_MIME_TYPE = 12;
        See Also:
        Constant Field Values
      • INVALID_REFERENCE_ID_VALUE

        public static final int INVALID_REFERENCE_ID_VALUE
         The media reference ID is invalid.
         
        INVALID_REFERENCE_ID = 13;
        See Also:
        Constant Field Values
      • INVALID_YOU_TUBE_ID_VALUE

        public static final int INVALID_YOU_TUBE_ID_VALUE
         The YouTube video ID is invalid.
         
        INVALID_YOU_TUBE_ID = 14;
        See Also:
        Constant Field Values
      • MEDIA_FILE_FAILED_TRANSCODING_VALUE

        public static final int MEDIA_FILE_FAILED_TRANSCODING_VALUE
         Media file has failed transcoding
         
        MEDIA_FILE_FAILED_TRANSCODING = 15;
        See Also:
        Constant Field Values
      • MEDIA_NOT_TRANSCODED_VALUE

        public static final int MEDIA_NOT_TRANSCODED_VALUE
         Media file has not been transcoded.
         
        MEDIA_NOT_TRANSCODED = 16;
        See Also:
        Constant Field Values
      • MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE_VALUE

        public static final int MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE_VALUE
         The media type does not match the actual media file's type.
         
        MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE = 17;
        See Also:
        Constant Field Values
      • NO_FIELDS_SPECIFIED_VALUE

        public static final int NO_FIELDS_SPECIFIED_VALUE
         None of the fields have been specified.
         
        NO_FIELDS_SPECIFIED = 18;
        See Also:
        Constant Field Values
      • NULL_REFERENCE_ID_AND_MEDIA_ID_VALUE

        public static final int NULL_REFERENCE_ID_AND_MEDIA_ID_VALUE
         One of reference ID or media file ID must be specified.
         
        NULL_REFERENCE_ID_AND_MEDIA_ID = 19;
        See Also:
        Constant Field Values
      • TOO_LONG_VALUE

        public static final int TOO_LONG_VALUE
         The string has too many characters.
         
        TOO_LONG = 20;
        See Also:
        Constant Field Values
      • UNSUPPORTED_TYPE_VALUE

        public static final int UNSUPPORTED_TYPE_VALUE
         The specified type is not supported.
         
        UNSUPPORTED_TYPE = 21;
        See Also:
        Constant Field Values
      • YOU_TUBE_SERVICE_UNAVAILABLE_VALUE

        public static final int YOU_TUBE_SERVICE_UNAVAILABLE_VALUE
         YouTube is unavailable for requesting video data.
         
        YOU_TUBE_SERVICE_UNAVAILABLE = 22;
        See Also:
        Constant Field Values
      • YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION_VALUE

        public static final int YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION_VALUE
         The YouTube video has a non positive duration.
         
        YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 23;
        See Also:
        Constant Field Values
      • YOU_TUBE_VIDEO_NOT_FOUND_VALUE

        public static final int YOU_TUBE_VIDEO_NOT_FOUND_VALUE
         The YouTube video ID is syntactically valid but the video was not found.
         
        YOU_TUBE_VIDEO_NOT_FOUND = 24;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static MediaFileErrorEnum.MediaFileError[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MediaFileErrorEnum.MediaFileError c : MediaFileErrorEnum.MediaFileError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MediaFileErrorEnum.MediaFileError valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static MediaFileErrorEnum.MediaFileError valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • forNumber

        public static MediaFileErrorEnum.MediaFileError forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static MediaFileErrorEnum.MediaFileError valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null