code: def AllFieldsFromDescriptor(self, message_descriptor):
      
      self.Clear()
      for field in message_descriptor.fields:
        self.paths.append(field.name)
docs: Gets all direct fields of Message Descriptor to FieldMask.