public void writeEnum ( final int fieldNumber , final int value ) throws IOException { writeTag ( fieldNumber , WireFormat . WIRETYPE_VARINT ) ; writeEnumNoTag ( value ) ; }
Write an enum field including tag to the stream . Caller is responsible for converting the enum value to its numeric value .