class documentation

class SetProfilePhotoError(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 account.SetProfilePhotoError.file_type_error: File cannot be set as profile photo. :ivar account.SetProfilePhotoError.file_size_error: File cannot exceed 10 MB. :ivar account.SetProfilePhotoError.dimension_error: Image must be larger than 128 x 128. :ivar account.SetProfilePhotoError.thumbnail_error: Image could not be thumbnailed. :ivar account.SetProfilePhotoError.transient_error: Temporary infrastructure failure, please retry.

Method is_dimension_error Check if the union tag is ``dimension_error``.
Method is_file_size_error Check if the union tag is ``file_size_error``.
Method is_file_type_error Check if the union tag is ``file_type_error``.
Method is_other Check if the union tag is ``other``.
Method is_thumbnail_error Check if the union tag is ``thumbnail_error``.
Method is_transient_error Check if the union tag is ``transient_error``.
Class Variable dimension_error Undocumented
Class Variable file_size_error Undocumented
Class Variable file_type_error Undocumented
Class Variable other Undocumented
Class Variable thumbnail_error Undocumented
Class Variable transient_error Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
def is_dimension_error(self): (source)

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

def is_file_size_error(self): (source)

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

def is_file_type_error(self): (source)

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

def is_other(self): (source)

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

def is_thumbnail_error(self): (source)

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

def is_transient_error(self): (source)

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

dimension_error = (source)

Undocumented

file_size_error = (source)

Undocumented

file_type_error = (source)

Undocumented

Undocumented

thumbnail_error = (source)

Undocumented

transient_error = (source)

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented