<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_kind(query_proto, kind):
 """Set the kind constraint for the given datastore.Query proto message."""

  del query_proto.kind[:]
  query_proto.kind.add().name = kind