#NEWLINE# @ staticmethod #NEWLINE# def validate_write( disposition ) : #NEWLINE# #INDENT# values = ( BigQueryDisposition . WRITE_TRUNCATE , BigQueryDisposition . WRITE_APPEND , BigQueryDisposition . WRITE_EMPTY ) #NEWLINE# if ( disposition not in values ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Invalid write disposition %s. Expecting %s' % ( disposition , disposition ) ) ) #NEWLINE# #UNINDENT# return disposition