'Limit on the number of results to return.
Raises:
datastore_errors.BadArgumentError if value is not an integer or is less
than zero.'

@datastore_rpc.ConfigOption
def limit(value):

    datastore_types.ValidateInteger(value, 'limit', datastore_errors.BadArgumentError, zero_ok=True)
    return value
