'Implements the [] operator. Used to set property value(s).
If the property name is the empty string or not a string, raises
BadPropertyError. If the value is not a supported type, raises
BadValueError.'

def __setitem__(self, name, value):

    datastore_types.ValidateProperty(name, value)
    dict.__setitem__(self, name, value)
