def add_property_orders(query_proto, *orders):
  for order in orders:
    proto = query_proto.order.add()
    if order[0] == '-':
      order = order[1:]
      proto.direction = query_pb2.PropertyOrder.DESCENDING
    else:
      proto.direction = query_pb2.PropertyOrder.ASCENDING
    proto.property.name = order