parameters: (field, value, out, indent=0, as_utf8=False, as_one_line=False,
                 pointy_brackets=False, use_index_order=False, float_format=None)
docstring: Print a single field name/value pair.  For repeated fields, the value
    should be a single element.
docstring_summary: Print a single field name/value pair.  For repeated fields, the value
    should be a single element.
docstring_tokens: Print a single field name / value pair . For repeated fields the value should be a single element .
function: def PrintField(field, value, out, indent=0, as_utf8=False, as_one_line=False,
                 pointy_brackets=False, use_index_order=False, float_format=None):
    """Print a single field name/value pair.  For repeated fields, the value
    should be a single element."""
  
    out.write(' ' * indent)
    if field.is_extension:
      out.write('[')
      if (field.containing_type.GetOptions().message_set_wire_format and
          field.type == descriptor.FieldDescriptor.TYPE_MESSAGE and
          field.message_type == field.extension_scope and
          field.label == descriptor.FieldDescriptor.LABEL_OPTIONAL):
        out.write(field.message_type.full_name)
      else:
        out.write(field.full_name)
      out.write(']')
    elif field.type == descriptor.FieldDescriptor.TYPE_GROUP:
      # For groups, use the capitalized name.
      out.write(field.message_type.name)
    else:
      out.write(field.name)
  
    if field.cpp_type != descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
      # The colon is optional in this case, but our cross-language golden files
      # don't include it.
      out.write(': ')
  
    PrintFieldValue(field, value, out, indent, as_utf8, as_one_line,
                    pointy_brackets=pointy_brackets,
                    use_index_order=use_index_order,
                    float_format=float_format)
    if as_one_line:
      out.write(' ')
    else:
      out.write('\n')
function_tokens: def PrintField ( field , value , out , indent = 0 , as_utf8 = False , as_one_line = False , pointy_brackets = False , use_index_order = False , float_format = None ) : out . write ( ' ' * indent ) if field . is_extension : out . write ( '[' ) if ( field . containing_type . GetOptions ( ) . message_set_wire_format and field . type == descriptor . FieldDescriptor . TYPE_MESSAGE and field . message_type == field . extension_scope and field . label == descriptor . FieldDescriptor . LABEL_OPTIONAL ) : out . write ( field . message_type . full_name ) else : out . write ( field . full_name ) out . write ( ']' ) elif field . type == descriptor . FieldDescriptor . TYPE_GROUP : # For groups, use the capitalized name. out . write ( field . message_type . name ) else : out . write ( field . name ) if field . cpp_type != descriptor . FieldDescriptor . CPPTYPE_MESSAGE : # The colon is optional in this case, but our cross-language golden files # don't include it. out . write ( ': ' ) PrintFieldValue ( field , value , out , indent , as_utf8 , as_one_line , pointy_brackets = pointy_brackets , use_index_order = use_index_order , float_format = float_format ) if as_one_line : out . write ( ' ' ) else : out . write ( '\n' )