#NEWLINE# def UserPropertyToProto( prop , index ) : #NEWLINE# #INDENT# 'Converts a model property to a user message field.\n\n  Args:\n    prop: The NDB property to be converted.\n    index: The index of the property within the message.\n\n  Returns:\n    A message field with attributes corresponding to those in prop, index\n        corresponding to that which was passed in and with underlying message\n        class equal to UserMessage.\n  ' #NEWLINE# kwargs = GetKeywordArgs ( index , include_default = False ) #NEWLINE# return messages . MessageField ( UserMessage , index , ** kwargs )