def _SinglePropertyIndex(prop_name, direction):
 index = entity_pb.Index()
 prop = index.add_property()
 prop.set_name(prop_name)
 prop.set_direction(direction)
 return index

def _SinglePropertyIndex ( prop_name , direction ) : index = entity_pb . Index ( ) prop = index . add_property ( ) prop . set_name ( prop_name ) prop . set_direction ( direction ) return index
creates a single property index for the given name and direction .