#NEWLINE# def validate_property( self , constraint , prop ) : #NEWLINE# #INDENT# 'Validates a property.\n\n    Args:\n      constraint: a _ValidationConstraint to apply\n      prop: an googledatastore.PropertiesEntry\n\n    Raises:\n      ValidationError: if the property is invalid\n    ' #NEWLINE# self . validate_property_name ( constraint , constraint . key ) #NEWLINE# _assert_condition ( prop . HasField ( 'value' ) , ( 'Property "%s" has no value.' % prop . key ) ) #NEWLINE# self . validate_value ( constraint , prop . value )