(text,
          message,
          allow_unknown_extension=False,
          allow_field_number=False)
return ParseLines(
      text.split('\n'), message, allow_unknown_extension, allow_field_number)
Parses a text representation of a protocol message into a message.

  Args:
    text: Message text representation.
    message: A protocol buffer message to merge into.
    allow_unknown_extension: if True, skip over missing extensions and keep
      parsing
    allow_field_number: if True, both field number and field name are allowed.

  Returns:
    The same message passed as argument.

  Raises:
    ParseError: On text parsing problems.
Parses a text representation of a protocol message into a message.
Parses a text representation of a protocol message into a message .
def Parse(text,
          message,
          allow_unknown_extension=False,
          allow_field_number=False):
  """Parses a text representation of a protocol message into a message.

  Args:
    text: Message text representation.
    message: A protocol buffer message to merge into.
    allow_unknown_extension: if True, skip over missing extensions and keep
      parsing
    allow_field_number: if True, both field number and field name are allowed.

  Returns:
    The same message passed as argument.

  Raises:
    ParseError: On text parsing problems.
  """
  if not isinstance(text, str):
    text = text.decode('utf-8')
  return ParseLines(
      text.split('\n'), message, allow_unknown_extension, allow_field_number)
def Parse ( text , message , allow_unknown_extension = False , allow_field_number = False ) : if not isinstance ( text , str ) : text = text . decode ( 'utf-8' ) return ParseLines ( text . split ( '\n' ) , message , allow_unknown_extension , allow_field_number )