@Throws(IOException::class) fun writeEnum(fieldNumber: Int, value: Int) { 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 .