parameters: (field, value, out, indent=0,
                      as_utf8=False, as_one_line=False)
docstring: Print a single field value (not including name).  For repeated fields,
    the value should be a single element.
docstring_summary: Print a single field value (not including name).  For repeated fields,
    the value should be a single element.
docstring_tokens: Print a single field value ( not including name ) . For repeated fields the value should be a single element .
function: def PrintFieldValue(field, value, out, indent=0,
                      as_utf8=False, as_one_line=False):
    """Print a single field value (not including name).  For repeated fields,
    the value should be a single element."""
  
    if field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_MESSAGE:
      if as_one_line:
        out.write(' { ')
        PrintMessage(value, out, indent, as_utf8, as_one_line)
        out.write('}')
      else:
        out.write(' {\n')
        PrintMessage(value, out, indent + 2, as_utf8, as_one_line)
        out.write(' ' * indent + '}')
    elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_ENUM:
      enum_value = field.enum_type.values_by_number.get(value, None)
      if enum_value is not None:
        out.write(enum_value.name)
      else:
        out.write(str(value))
    elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_STRING:
      out.write('\"')
      if type(value) is unicode:
        out.write(_CEscape(value.encode('utf-8'), as_utf8))
      else:
        out.write(_CEscape(value, as_utf8))
      out.write('\"')
    elif field.cpp_type == descriptor.FieldDescriptor.CPPTYPE_BOOL:
      if value:
        out.write("true")
      else:
        out.write("false")
    else:
      out.write(str(value))
function_tokens: def PrintFieldValue ( field , value , out , indent = 0 , as_utf8 = False , as_one_line = False ) : if field . cpp_type == descriptor . FieldDescriptor . CPPTYPE_MESSAGE : if as_one_line : out . write ( ' { ' ) PrintMessage ( value , out , indent , as_utf8 , as_one_line ) out . write ( '}' ) else : out . write ( ' {\n' ) PrintMessage ( value , out , indent + 2 , as_utf8 , as_one_line ) out . write ( ' ' * indent + '}' ) elif field . cpp_type == descriptor . FieldDescriptor . CPPTYPE_ENUM : enum_value = field . enum_type . values_by_number . get ( value , None ) if enum_value is not None : out . write ( enum_value . name ) else : out . write ( str ( value ) ) elif field . cpp_type == descriptor . FieldDescriptor . CPPTYPE_STRING : out . write ( '\"' ) if type ( value ) is unicode : out . write ( _CEscape ( value . encode ( 'utf-8' ) , as_utf8 ) ) else : out . write ( _CEscape ( value , as_utf8 ) ) out . write ( '\"' ) elif field . cpp_type == descriptor . FieldDescriptor . CPPTYPE_BOOL : if value : out . write ( "true" ) else : out . write ( "false" ) else : out . write ( str ( value ) )