def _AddMessageMethods(message_descriptor, cls):
 _AddListFieldsMethod(message_descriptor, cls)
 _AddHasFieldMethod(message_descriptor, cls)
 _AddClearFieldMethod(message_descriptor, cls)
 if message_descriptor.is_extendable:
  _AddClearExtensionMethod(cls)
  _AddHasExtensionMethod(cls)
 _AddClearMethod(message_descriptor, cls)
 _AddEqualsMethod(message_descriptor, cls)
 _AddStrMethod(message_descriptor, cls)
 _AddUnicodeMethod(message_descriptor, cls)
 _AddSetListenerMethod(cls)
 _AddByteSizeMethod(message_descriptor, cls)
 _AddSerializeToStringMethod(message_descriptor, cls)
 _AddSerializePartialToStringMethod(message_descriptor, cls)
 _AddMergeFromStringMethod(message_descriptor, cls)
 _AddIsInitializedMethod(message_descriptor, cls)
 _AddMergeFromMethod(cls)

def _AddMessageMethods ( message_descriptor , cls ) : _AddListFieldsMethod ( message_descriptor , cls ) _AddHasFieldMethod ( message_descriptor , cls ) _AddClearFieldMethod ( message_descriptor , cls ) if message_descriptor . is_extendable : _AddClearExtensionMethod ( cls ) _AddHasExtensionMethod ( cls ) _AddClearMethod ( message_descriptor , cls ) _AddEqualsMethod ( message_descriptor , cls ) _AddStrMethod ( message_descriptor , cls ) _AddUnicodeMethod ( message_descriptor , cls ) _AddSetListenerMethod ( cls ) _AddByteSizeMethod ( message_descriptor , cls ) _AddSerializeToStringMethod ( message_descriptor , cls ) _AddSerializePartialToStringMethod ( message_descriptor , cls ) _AddMergeFromStringMethod ( message_descriptor , cls ) _AddIsInitializedMethod ( message_descriptor , cls ) _AddMergeFromMethod ( cls )
adds implementations of all message methods to cls .