<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def AllFieldsFromDescriptor(self, message_descriptor):
 """Gets all direct fields of Message Descriptor to FieldMask."""

    self.Clear()
    for field in message_descriptor.fields:
      self.paths.append(field.name)