title: Set Enum values using reflection in Protocol buffers
body: <p>I have an Enum <code>Update update</code> in  a .proto file . I want to store it using <em>reflections</em> in a message.    </p>
  
  <pre><code>refl-&gt;SetEnum (msg, fd , ???   );
  </code></pre>
  
  <p>???? - should be EnumValueDescriptor * (I do not know how to get it)</p>
  
  <p>How can I do this?</p>
  
  <p>I have tried <code>message_desc-&gt;FindEnumTypeByName(s)-&gt;FindValueByNumber(update)</code> for many different possibilities of s like:</p>
  
  <pre><code>UpdateType
  UpdateType::CONFIRM
  CONFIRM
  ....
  .... 
  </code></pre>