parameters: (obj)
docstring: Stringify a protobuf structure.
docstring_summary: Stringify a protobuf structure.
docstring_tokens: Stringify a protobuf structure .
function: def _stringify_proto(obj):
      """
      Stringify a protobuf structure.
      """
      if obj is str: return obj
      elif isinstance(obj, Message): return obj.SerializeToString()
      else: raise TypeError('object can not be serialized as a string')
function_tokens: def _stringify_proto ( obj ) : if obj is str : return obj elif isinstance ( obj , Message ) : return obj . SerializeToString ( ) else : raise TypeError ( 'object can not be serialized as a string' )