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 file_properties.LookUpPropertiesError.property_group_not_found: No property group was fo
| 483 | LogicalOperator_validator = bv.Union(LogicalOperator) |
| 484 | |
| 485 | class LookUpPropertiesError(bb.Union): |
| 486 | """ |
| 487 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 488 | return true. To get the associated value of a tag (if one exists), use the |
| 489 | corresponding ``get_*`` method. |
| 490 | |
| 491 | :ivar file_properties.LookUpPropertiesError.property_group_not_found: No |
| 492 | property group was found. |
| 493 | """ |
| 494 | |
| 495 | _catch_all = 'other' |
| 496 | # Attribute is overwritten below the class definition |
| 497 | property_group_not_found = None |
| 498 | # Attribute is overwritten below the class definition |
| 499 | other = None |
| 500 | |
| 501 | def is_property_group_not_found(self): |
| 502 | """ |
| 503 | Check if the union tag is ``property_group_not_found``. |
| 504 | |
| 505 | :rtype: bool |
| 506 | """ |
| 507 | return self._tag == 'property_group_not_found' |
| 508 | |
| 509 | def is_other(self): |
| 510 | """ |
| 511 | Check if the union tag is ``other``. |
| 512 | |
| 513 | :rtype: bool |
| 514 | """ |
| 515 | return self._tag == 'other' |
| 516 | |
| 517 | def _process_custom_annotations(self, annotation_type, field_path, processor): |
| 518 | super(LookUpPropertiesError, self)._process_custom_annotations(annotation_type, field_path, processor) |
| 519 | |
| 520 | LookUpPropertiesError_validator = bv.Union(LookUpPropertiesError) |
| 521 |