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.AddPropertiesError.property_group_already_exists: A property group assoc
| 242 | InvalidPropertyGroupError_validator = bv.Union(InvalidPropertyGroupError) |
| 243 | |
| 244 | class AddPropertiesError(InvalidPropertyGroupError): |
| 245 | """ |
| 246 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 247 | return true. To get the associated value of a tag (if one exists), use the |
| 248 | corresponding ``get_*`` method. |
| 249 | |
| 250 | :ivar file_properties.AddPropertiesError.property_group_already_exists: A |
| 251 | property group associated with this template and file already exists. |
| 252 | """ |
| 253 | |
| 254 | # Attribute is overwritten below the class definition |
| 255 | property_group_already_exists = None |
| 256 | |
| 257 | def is_property_group_already_exists(self): |
| 258 | """ |
| 259 | Check if the union tag is ``property_group_already_exists``. |
| 260 | |
| 261 | :rtype: bool |
| 262 | """ |
| 263 | return self._tag == 'property_group_already_exists' |
| 264 | |
| 265 | def _process_custom_annotations(self, annotation_type, field_path, processor): |
| 266 | super(AddPropertiesError, self)._process_custom_annotations(annotation_type, field_path, processor) |
| 267 | |
| 268 | AddPropertiesError_validator = bv.Union(AddPropertiesError) |
| 269 |