def __validate_value_meaning_matches_union(self, value):
    if not value.meaning:
      return
    message = 'Value meaning %d does not match %s field.'
    meaning = value.meaning
    field = value.WhichOneof('value_type')
    if meaning in _STRING_VALUE_MEANINGS:
      _assert_condition(field == 'string_value',
                        message % (meaning, 'string_value'))
    elif meaning in _BLOB_VALUE_MEANINGS:
      _assert_condition(field == 'blob_value',
                        message % (meaning, 'blob_value'))
    elif meaning == datastore_pbs.MEANING_PREDEFINED_ENTITY_USER:
      _assert_condition(field == 'entity_value',
                        message % (meaning, 'entity_value'))
    elif meaning == datastore_pbs.MEANING_POINT_WITHOUT_V3_MEANING:
      _assert_condition(field == 'geo_point_value',
                        message % (meaning, 'geo_point_value'))
    elif meaning in _INTEGER_VALUE_MEANINGS:
      _assert_condition(field == 'integer_value',
                        message % (meaning, 'integer_value'))
    elif meaning == datastore_pbs.MEANING_INDEX_ONLY:
      _assert_condition(field != 'timestamp_value',
                        message % (meaning, 'timestamp_value'))
      _assert_condition(field != 'entity_value',
                        message % (meaning, 'entity_value'))
    elif meaning == datastore_pbs.MEANING_BLOBKEY:
      _assert_condition(field == 'string_value',
                         message % (meaning, 'string_value'))
    else:
      _assert_condition(False,
                        'Unknown value meaning %d' % meaning)
Creates the list of size hint constraints for this widget.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/datastore/cloud_datastore_validator.py/_EntityValidator.__validate_value_meaning_matches_union--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/wx/wx_constraints_widget.py/WxConstraintsWidget._default_size_hint_cns