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.InvalidPropertyGroupError.property_field_too_large: One or more of the s
| 190 | PropertiesError_validator = bv.Union(PropertiesError) |
| 191 | |
| 192 | class InvalidPropertyGroupError(PropertiesError): |
| 193 | """ |
| 194 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 195 | return true. To get the associated value of a tag (if one exists), use the |
| 196 | corresponding ``get_*`` method. |
| 197 | |
| 198 | :ivar file_properties.InvalidPropertyGroupError.property_field_too_large: |
| 199 | One or more of the supplied property field values is too large. |
| 200 | :ivar file_properties.InvalidPropertyGroupError.does_not_fit_template: One |
| 201 | or more of the supplied property fields does not conform to the template |
| 202 | specifications. |
| 203 | :ivar file_properties.InvalidPropertyGroupError.duplicate_property_groups: |
| 204 | There are 2 or more property groups referring to the same templates in |
| 205 | the input. |
| 206 | """ |
| 207 | |
| 208 | # Attribute is overwritten below the class definition |
| 209 | property_field_too_large = None |
| 210 | # Attribute is overwritten below the class definition |
| 211 | does_not_fit_template = None |
| 212 | # Attribute is overwritten below the class definition |
| 213 | duplicate_property_groups = None |
| 214 | |
| 215 | def is_property_field_too_large(self): |
| 216 | """ |
| 217 | Check if the union tag is ``property_field_too_large``. |
| 218 | |
| 219 | :rtype: bool |
| 220 | """ |
| 221 | return self._tag == 'property_field_too_large' |
| 222 | |
| 223 | def is_does_not_fit_template(self): |
| 224 | """ |
| 225 | Check if the union tag is ``does_not_fit_template``. |
| 226 | |
| 227 | :rtype: bool |
| 228 | """ |
| 229 | return self._tag == 'does_not_fit_template' |
| 230 | |
| 231 | def is_duplicate_property_groups(self): |
| 232 | """ |
| 233 | Check if the union tag is ``duplicate_property_groups``. |
| 234 | |
| 235 | :rtype: bool |
| 236 | """ |
| 237 | return self._tag == 'duplicate_property_groups' |
| 238 | |
| 239 | def _process_custom_annotations(self, annotation_type, field_path, processor): |
| 240 | super(InvalidPropertyGroupError, self)._process_custom_annotations(annotation_type, field_path, processor) |
| 241 | |
| 242 | InvalidPropertyGroupError_validator = bv.Union(InvalidPropertyGroupError) |
| 243 |