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.CreateFolderBatchError.too_many_files: The operation would involve too many files
| 566 | CreateFolderBatchArg_validator = bv.Struct(CreateFolderBatchArg) |
| 567 | |
| 568 | class CreateFolderBatchError(bb.Union): |
| 569 | """ |
| 570 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 571 | return true. To get the associated value of a tag (if one exists), use the |
| 572 | corresponding ``get_*`` method. |
| 573 | |
| 574 | :ivar files.CreateFolderBatchError.too_many_files: The operation would |
| 575 | involve too many files or folders. |
| 576 | """ |
| 577 | |
| 578 | _catch_all = 'other' |
| 579 | # Attribute is overwritten below the class definition |
| 580 | too_many_files = None |
| 581 | # Attribute is overwritten below the class definition |
| 582 | other = None |
| 583 | |
| 584 | def is_too_many_files(self): |
| 585 | """ |
| 586 | Check if the union tag is ``too_many_files``. |
| 587 | |
| 588 | :rtype: bool |
| 589 | """ |
| 590 | return self._tag == 'too_many_files' |
| 591 | |
| 592 | def is_other(self): |
| 593 | """ |
| 594 | Check if the union tag is ``other``. |
| 595 | |
| 596 | :rtype: bool |
| 597 | """ |
| 598 | return self._tag == 'other' |
| 599 | |
| 600 | def _process_custom_annotations(self, annotation_type, field_path, processor): |
| 601 | super(CreateFolderBatchError, self)._process_custom_annotations(annotation_type, field_path, processor) |
| 602 | |
| 603 | CreateFolderBatchError_validator = bv.Union(CreateFolderBatchError) |
| 604 |