setState

Sets the field 'state'.