#NEWLINE# def validate_project_id( self , constraint , project_id ) : #NEWLINE# #INDENT# 'Validates a project ID.\n\n    Args:\n      constraint: a _ValidationConstraint to apply\n      project_id: project ID\n\n    Raises:\n      ValidationError: if the partition ID dimension is invalid\n    ' #NEWLINE# _assert_condition ( constraint , 'The project id is missing' ) #NEWLINE# _assert_valid_utf8 ( project_id , 'project id' ) #NEWLINE# _assert_string_not_too_long ( project_id , datastore_pbs . MAX_DATASET_ID_LENGTH , 'project id' ) #NEWLINE# _assert_condition ( _PROJECT_ID_RE . match ( project_id ) , ( 'Illegal string "%s" in project id.' % project_id ) ) #NEWLINE# if ( not constraint . reserved_key_allowed ) : #NEWLINE# #INDENT# _assert_string_not_reserved ( project_id , 'project id' )