class documentation

class MediaInfo(bb.Union): (source)

View In Hierarchy

This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar files.MediaInfo.pending: Indicate the photo/video is still under processing and metadata is not available yet. :ivar MediaMetadata MediaInfo.metadata: The metadata for the photo/video.

Class Method metadata Create an instance of this class set to the ``metadata`` tag with value ``val``.
Method get_metadata The metadata for the photo/video.
Method is_metadata Check if the union tag is ``metadata``.
Method is_pending Check if the union tag is ``pending``.
Class Variable pending Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def metadata(cls, val): (source)

Create an instance of this class set to the ``metadata`` tag with value ``val``. :param MediaMetadata val: :rtype: MediaInfo

def get_metadata(self): (source)

The metadata for the photo/video. Only call this if :meth:`is_metadata` is true. :rtype: MediaMetadata

def is_metadata(self): (source)

Check if the union tag is ``metadata``. :rtype: bool

def is_pending(self): (source)

Check if the union tag is ``pending``. :rtype: bool

Undocumented

def _process_custom_annotations(self, annotation_type, field_path, processor): (source)

Undocumented

_catch_all = (source)

Undocumented