Enum google_api_proto::google::ads::googleads::v15::errors::media_file_error_enum::MediaFileError
source · #[repr(i32)]pub enum MediaFileError {
Show 25 variants
Unspecified = 0,
Unknown = 1,
CannotCreateStandardIcon = 2,
CannotSelectStandardIconWithOtherTypes = 3,
CannotSpecifyMediaFileIdAndData = 4,
DuplicateMedia = 5,
EmptyField = 6,
ResourceReferencedInMultipleOps = 7,
FieldNotSupportedForMediaSubType = 8,
InvalidMediaFileId = 9,
InvalidMediaSubType = 10,
InvalidMediaFileType = 11,
InvalidMimeType = 12,
InvalidReferenceId = 13,
InvalidYouTubeId = 14,
MediaFileFailedTranscoding = 15,
MediaNotTranscoded = 16,
MediaTypeDoesNotMatchMediaFileType = 17,
NoFieldsSpecified = 18,
NullReferenceIdAndMediaId = 19,
TooLong = 20,
UnsupportedType = 21,
YouTubeServiceUnavailable = 22,
YouTubeVideoHasNonPositiveDuration = 23,
YouTubeVideoNotFound = 24,
}
Expand description
Enum describing possible media file errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
CannotCreateStandardIcon = 2
Cannot create a standard icon type.
CannotSelectStandardIconWithOtherTypes = 3
May only select Standard Icons alone.
CannotSpecifyMediaFileIdAndData = 4
Image contains both a media file ID and data.
DuplicateMedia = 5
A media file with given type and reference ID already exists.
EmptyField = 6
A required field was not specified or is an empty string.
ResourceReferencedInMultipleOps = 7
A media file may only be modified once per call.
FieldNotSupportedForMediaSubType = 8
Field is not supported for the media sub type.
InvalidMediaFileId = 9
The media file ID is invalid.
InvalidMediaSubType = 10
The media subtype is invalid.
InvalidMediaFileType = 11
The media file type is invalid.
InvalidMimeType = 12
The mimetype is invalid.
InvalidReferenceId = 13
The media reference ID is invalid.
InvalidYouTubeId = 14
The YouTube video ID is invalid.
MediaFileFailedTranscoding = 15
Media file has failed transcoding
MediaNotTranscoded = 16
Media file has not been transcoded.
MediaTypeDoesNotMatchMediaFileType = 17
The media type does not match the actual media file’s type.
NoFieldsSpecified = 18
None of the fields have been specified.
NullReferenceIdAndMediaId = 19
One of reference ID or media file ID must be specified.
TooLong = 20
The string has too many characters.
UnsupportedType = 21
The specified type is not supported.
YouTube is unavailable for requesting video data.
YouTubeVideoHasNonPositiveDuration = 23
The YouTube video has a non positive duration.
YouTubeVideoNotFound = 24
The YouTube video ID is syntactically valid but the video was not found.
Implementations§
source§impl MediaFileError
impl MediaFileError
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for MediaFileError
impl Clone for MediaFileError
source§fn clone(&self) -> MediaFileError
fn clone(&self) -> MediaFileError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MediaFileError
impl Debug for MediaFileError
source§impl Default for MediaFileError
impl Default for MediaFileError
source§fn default() -> MediaFileError
fn default() -> MediaFileError
source§impl From<MediaFileError> for i32
impl From<MediaFileError> for i32
source§fn from(value: MediaFileError) -> i32
fn from(value: MediaFileError) -> i32
source§impl Hash for MediaFileError
impl Hash for MediaFileError
source§impl Ord for MediaFileError
impl Ord for MediaFileError
source§fn cmp(&self, other: &MediaFileError) -> Ordering
fn cmp(&self, other: &MediaFileError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for MediaFileError
impl PartialEq for MediaFileError
source§fn eq(&self, other: &MediaFileError) -> bool
fn eq(&self, other: &MediaFileError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MediaFileError
impl PartialOrd for MediaFileError
source§fn partial_cmp(&self, other: &MediaFileError) -> Option<Ordering>
fn partial_cmp(&self, other: &MediaFileError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for MediaFileError
impl TryFrom<i32> for MediaFileError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<MediaFileError, DecodeError>
fn try_from(value: i32) -> Result<MediaFileError, DecodeError>
impl Copy for MediaFileError
impl Eq for MediaFileError
impl StructuralPartialEq for MediaFileError
Auto Trait Implementations§
impl Freeze for MediaFileError
impl RefUnwindSafe for MediaFileError
impl Send for MediaFileError
impl Sync for MediaFileError
impl Unpin for MediaFileError
impl UnwindSafe for MediaFileError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request